Commit a14868ad by 前端

fixed

2 parents 6d52cbed 396e1482
Showing 46 changed files with 1178 additions and 5 deletions
......@@ -12,11 +12,18 @@
"axios": "^0.21.1",
"core-js": "^3.4.4",
"el-tree-transfer": "^2.2.6",
<<<<<<< HEAD
"glsx-common": "^1.4.9",
"glsx-components": "^1.5.2",
"glsx-table": "^1.0.9",
"vue-draggable-resizable": "^2.3.0",
"vue-template-compiler": "^2.7.9",
=======
"glsx-common": "^1.4.6",
"glsx-components": "^1.4.2",
"glsx-table": "^1.0.9",
"vue-draggable-resizable": "^2.3.0",
>>>>>>> 396e1482ded1b79e8dc9f700b1a584ff319bc981
"vuedraggable": "^2.24.3",
"xlsx": "^0.18.5"
},
......
......@@ -6,7 +6,7 @@
* @param {*} params
* @returns
*/
import { http } from '@/main'
import { http, http_tag } from '@/main'
let session = 'mini-c38a80dd-cf48-4491-8933-fb2eb57fb4ca-rop'
const getListApi = params => {
params.method = 'entmicro.api.staff.listFollowerStaffByPage'
......@@ -31,7 +31,11 @@ const getFollower = params => {
const querylabeltree = params => {
params.method = 'scrm.api.datahub.labelgroup.queryLabelTree'
params.sessionId = session
<<<<<<< HEAD
return http({
=======
return http_tag({
>>>>>>> 396e1482ded1b79e8dc9f700b1a584ff319bc981
url: '/rop-scrm-datahub/router',
method: 'POST',
data: params,
......@@ -40,7 +44,11 @@ const querylabeltree = params => {
}
const queryCrowdtree = params => {
params.method = 'scrm.api.datahub.user.queryCrowdTree'
<<<<<<< HEAD
return http({
=======
return http_tag({
>>>>>>> 396e1482ded1b79e8dc9f700b1a584ff319bc981
url: '/rop-scrm-datahub/router',
method: 'POST',
data: params,
......
import { http } from '@/main'
// 获取客户列表
const getCustomerListApi = params => {
params.method = 'entmicro.api.customer.page'
params.source = 'scrm-home'
return http({
url: 'rop-scrm-entmicro/router',
method: 'POST',
data: params,
sign: true
})
}
// 标签获取客户列表
const getCustomerByTagListApi = params => {
params.method = 'entmicro.api.customer.getCustomerPageByTag'
return http({
url: 'rop-scrm-entmicro/router',
method: 'POST',
data: params,
sign: true
})
}
// 人群获取客户列表
const getCustomerCrowdApi = params => {
params.method = 'entmicro.api.customer.crowd.page'
return http({
url: 'rop-scrm-entmicro/router',
method: 'POST',
data: params,
sign: true
})
}
const getSopInfoListApi = params => {
params.method = 'scrm.api.sop.sopInfo.listWithPage'
return http({
url: 'rop-scrm-sop/router',
method: 'POST',
data: params,
sign: true
})
}
// sop基本信息
const getSopBaseInfoApi = params => {
params.method = 'scrm.api.sop.sopInfo.getBaseBySopId'
return http({
url: 'rop-scrm-sop/router',
method: 'POST',
data: params,
sign: true
})
}
//sop分析-触达率-筛选框
const getEventListApi = params => {
params.method = 'scrm.api.sop.sopEvent.listWithPage'
return http({
url: 'rop-scrm-sop/router',
method: 'POST',
data: params,
sign: true
})
}
// sop分析-触达率列表
const getSopCustomerStatisticsListApi = params => {
params.method = 'scrm.api.sop.sopCustomer.listStatisticsWithPage'
return http({
url: 'rop-scrm-sop/router',
method: 'POST',
data: params,
sign: true
})
}
// sop分析-员工完成率列表
const getSopStaffTaskListApi = params => {
params.method = 'scrm.api.sop.staffTaskStatistics.listWithPage'
return http({
url: 'rop-scrm-sop/router',
method: 'POST',
data: params,
sign: true
})
}
// sop-完成率-根据evnetid获取失败事件列表
const getFailEventList = params => {
params.method = 'scrm.api.sop.sopEvent.listEventFailByEventId'
return http({
url: 'rop-scrm-sop/router',
method: 'POST',
data: params,
sign: true
})
}
// 校验当前商户的企微群发任务情况
const getTaskStatusApi = params => {
params.method = 'scrm.api.sop.task.merchantWWMsgTaskStatusCheck'
return http({
url: 'rop-scrm-sop/router',
method: 'POST',
data: params,
sign: true
})
}
// sop营销事件次数分析
const parseEventCountApi = params => {
params.method = 'scrm.api.sop.sopEvent.parseEventCount'
return http({
url: 'rop-scrm-sop/router',
method: 'POST',
data: params,
sign: true
})
}
// 删除sop事件
const deleteSopEventApi = params => {
params.method = 'scrm.api.sop.sopInfo.delete'
return http({
url: 'rop-scrm-sop/router',
method: 'POST',
data: params,
sign: true,
returnAll: true
})
}
// 结束sop事件
const endSopEventApi = params => {
params.method = 'scrm.api.sop.sopInfo.updateEndStatus'
return http({
url: 'rop-scrm-sop/router',
method: 'POST',
data: params,
sign: true,
returnAll: true
})
}
// 事件进行中,修改sop事件列表
// const insertOrUpdateSopEventApi = params => {
// params.method = 'scrm.api.sop.sopEvent.insertOrUpdate'
// return http({
// url: 'rop-scrm-sop/router',
// method: 'POST',
// data: params,
// sign: true,
// returnAll: true
// })
// }
// 事件进行中,批量编辑sop
const batchEditSopEventApi = params => {
params.method = 'scrm.api.sop.sopEvent.batchEdit'
return http({
url: 'rop-scrm-sop/router',
method: 'POST',
data: params,
sign: true,
returnAll: true
})
}
// 新增或者事件未开始,新增/修改sop
const insertOrUpdateSopApi = params => {
params.method = 'scrm.api.sop.sopInfo.insertOrUpdate'
return http({
url: 'rop-scrm-sop/router',
method: 'POST',
data: params,
sign: true,
returnAll: true
})
}
const getSopInfoDetailApi = params => {
params.method = 'scrm.api.sop.sopInfo.getDetailBySopId'
return http({
url: 'rop-scrm-sop/router',
method: 'POST',
data: params,
sign: true
})
}
// 获取素材组列表
const getGroupListApi = params => {
params.method = 'marketing.api.material.group.list'
return http({
url: 'rop-scrm-marketing/router',
method: 'POST',
data: params,
sign: true
})
}
// 获取素材列表
const getMaterialListApi = params => {
// params.method = 'marketing.api.material.page'
params.method = 'marketing.api.material.sop.page'
return http({
url: 'rop-scrm-marketing/router',
method: 'POST',
data: params,
sign: true
})
}
// 朋友圈模板
const getMomentListApi = params => {
params.method = 'marketing.api.moment.page'
return http({
url: 'rop-scrm-marketing/router',
method: 'POST',
data: params,
sign: true
})
}
export default { getCustomerListApi, getCustomerByTagListApi, getCustomerCrowdApi, getSopInfoListApi, getSopBaseInfoApi, getEventListApi, getSopCustomerStatisticsListApi, getSopStaffTaskListApi, getFailEventList, getTaskStatusApi, parseEventCountApi, deleteSopEventApi, endSopEventApi, batchEditSopEventApi, insertOrUpdateSopApi, getSopInfoDetailApi, getGroupListApi, getMaterialListApi, getMomentListApi }
......@@ -210,3 +210,42 @@ img {
.el-radio:focus:not(.is-focus):not(:active):not(.is-disabled) .el-radio__inner {
box-shadow: none !important;
}
.el-message-box .el-message-box__title,.el-message-box .el-message-box__headerbtn {
display: none;
}
.el-message-box__content {
text-align: center;
padding: 50px 0px 50px;
}
.el-message-box__status.el-icon-warning {
display: none;
}
.el-message-box__btns {
text-align: center;
padding: 20px 0px 10px;
border-top: 1px solid #E6E6E6;
}
.el-message-box__btns button:nth-child(2) {
margin-left: 40px;
}
.el-message-box__status+.el-message-box__message {
padding: 0px 10px;
}
.el-message-box--center {
padding: 0px;
}
.el-message--info {
height: 40px;
background: #e6e9ff;
border: 1px solid #5850ff;
border-radius: 4px;
font-size: 14px;
color: rgba(0, 0, 0, 0.65);
}
.el-message .el-icon-info {
color: #5850ff;
font-size: 16px;
}
.el-radio:focus:not(.is-focus):not(:active):not(.is-disabled) .el-radio__inner {
box-shadow: none!important;
}
\ No newline at end of file
<template>
<<<<<<< HEAD
<div class="full-container" v-bind="$attrs">
=======
<div class="full-container">
>>>>>>> 396e1482ded1b79e8dc9f700b1a584ff319bc981
<el-tooltip placement="top" v-if="hoverStatus">
<div slot="content">
<template v-if="$slots.default"><slot></slot></template>
......@@ -7,6 +11,7 @@
{{ label }}
</template>
</div>
<<<<<<< HEAD
<div :class="['full-text', identification]" :style="{ 'max-width': labelWidth + 'px' }" v-if="textType != 'text' && !haveClose">
<el-tag type="info" class="full-text" :disable-transitions="false">
<i class="el-icon-user-solid" v-if="textType == 'user'"></i>
......@@ -17,12 +22,25 @@
</el-tag>
</div>
<div v-if="textType != 'text' && haveClose">
=======
<div :class="['full-text', identification]" :style="{ width: labelWidth + 'px' }" @mouseenter="hoverFun" v-if="textType != 'text' && !haveClose">
<el-tag type="info" class="full-text" :disable-transitions="false">
<i class="el-icon-user-solid" v-if="textType == 'user'"></i>
{{ label }}
</el-tag>
</div>
<div v-if="textType != 'text' && haveClose" @mouseenter="hoverFun">
>>>>>>> 396e1482ded1b79e8dc9f700b1a584ff319bc981
<el-tag class="tag-user-closable" :style="{ 'max-width': labelWidth + 'px' }" type="info" :disable-transitions="false" closable @close="handleRemove">
<i class="el-icon-user-solid" v-if="textType == 'user'"></i>
<span :class="['full-text-user', { 'user-icon-checked': textType == 'user' && haveClose }, identification]">{{ label }}</span>
</el-tag>
</div>
<<<<<<< HEAD
<div :class="[line ? 'full-text-line' : 'full-text', identification]" :style="{ 'max-width': labelWidth + 'px', '-webkit-line-clamp': line }" v-if="textType == 'text'">
=======
<div :class="[line ? 'full-text-line' : 'full-text', identification]" @mouseenter="hoverFun" :style="{ width: labelWidth + 'px', '-webkit-line-clamp': line }" v-if="textType == 'text'">
>>>>>>> 396e1482ded1b79e8dc9f700b1a584ff319bc981
<template v-if="$slots.default"><slot></slot></template>
<template v-else>
{{ label }}
......@@ -30,6 +48,7 @@
</div>
</el-tooltip>
<template v-else>
<<<<<<< HEAD
<div :class="['full-text', identification]" @mouseenter="hoverFun" :style="{ 'max-width': labelWidth + 'px' }" v-if="textType != 'text' && !haveClose">
<el-tag type="info" class="full-text" :disable-transitions="false">
<i class="el-icon-user-solid" v-if="textType == 'user'"></i>
......@@ -37,6 +56,12 @@
<template v-else>
{{ label }}
</template>
=======
<div :class="['full-text', identification]" @mouseenter="hoverFun" :style="{ width: labelWidth + 'px' }" v-if="textType != 'text' && !haveClose">
<el-tag type="info" class="full-text" :disable-transitions="false">
<i class="el-icon-user-solid" v-if="textType == 'user'"></i>
{{ label }}
>>>>>>> 396e1482ded1b79e8dc9f700b1a584ff319bc981
</el-tag>
</div>
<div @mouseenter="hoverFun" v-if="textType != 'text' && haveClose">
......@@ -45,7 +70,11 @@
<span :class="['full-text-user', identification]">{{ label }}</span>
</el-tag>
</div>
<<<<<<< HEAD
<div :class="[line ? 'full-text-line' : 'full-text', identification]" @mouseenter="hoverFun" :style="{ 'max-width': labelWidth + 'px', '-webkit-line-clamp': line }" v-if="textType == 'text'">
=======
<div :class="[line ? 'full-text-line' : 'full-text', identification]" @mouseenter="hoverFun" :style="{ width: labelWidth + 'px', '-webkit-line-clamp': line }" v-if="textType == 'text'">
>>>>>>> 396e1482ded1b79e8dc9f700b1a584ff319bc981
<template v-if="$slots.default"><slot></slot></template>
<template v-else>
{{ label }}
......@@ -59,8 +88,12 @@ export default {
name: 'GLFull',
data() {
return {
<<<<<<< HEAD
hoverStatus: false,
identification: 'text_' + this.identi
=======
hoverStatus: false
>>>>>>> 396e1482ded1b79e8dc9f700b1a584ff319bc981
}
},
props: {
......@@ -97,12 +130,22 @@ export default {
default: false
}
},
<<<<<<< HEAD
methods: {
hoverFun() {
if (this.line > 1) {
this.hoverStatus = document.querySelector(`.${this.identification}`).scrollHeight - 10 > document.querySelector(`.${this.identification}`).offsetHeight
return
}
=======
computed: {
identification() {
return 'text_' + this.identi
}
},
methods: {
hoverFun() {
>>>>>>> 396e1482ded1b79e8dc9f700b1a584ff319bc981
if (this.haveClose) {
//this.hoverStatus = this.identi ? document.querySelector(`.${this.identification}`).scrollWidth > document.querySelector(`.${this.identification}`).offsetWidth : document.querySelector(`.full-text`).scrollWidth > this.labelWidth - 30
this.hoverStatus = document.querySelector(`.${this.identification}`).scrollWidth > document.querySelector(`.${this.identification}`).offsetWidth
......@@ -111,9 +154,16 @@ export default {
// this.hoverStatus = this.identi ? document.querySelector(`.${this.identification}`).scrollWidth - widthMuti > this.labelWidth : document.querySelector(`.full-text`).scrollWidth > this.labelWidth
this.hoverStatus = document.querySelector(`.${this.identification}`).scrollWidth - widthMuti > this.labelWidth
}
<<<<<<< HEAD
},
handleRemove() {
this.$emit('handleRemove', this.$attrs)
=======
console.log(this.hoverStatus)
},
handleRemove() {
this.$emit('handleRemove')
>>>>>>> 396e1482ded1b79e8dc9f700b1a584ff319bc981
}
}
}
......@@ -121,12 +171,19 @@ export default {
<style scoped lang="scss">
.full-container {
display: inline-block;
<<<<<<< HEAD
margin-right: 4px;
/deep/ {
.el-tag {
// margin-right: 10px;
line-height: 26px;
height: 26px;
=======
/deep/ {
.el-tag {
height: 26px;
line-height: 26px;
>>>>>>> 396e1482ded1b79e8dc9f700b1a584ff319bc981
}
}
}
......
......@@ -26,6 +26,10 @@ export default {
},
filters: {
ellipsis(value,that) {
<<<<<<< HEAD
=======
console.log(value,that)
>>>>>>> 396e1482ded1b79e8dc9f700b1a584ff319bc981
if (value.length > that.textLength) {
that.tooltipStatus = true
return value.slice(0, that.textLength) + '...'
......
<template>
<div class="collect-panel" :style="{ display }" v-stat="dataAnalyics">
<slot></slot>
</div>
</template>
<script>
import Vue from 'vue'
export default {
name: 'collect-form',
data() {
return {}
},
props: {
dataAnalyics: Object,
display: {
type: String,
default: 'inline-block'
}
},
directives: {
stat: function(el, binding, vnode) {
el.addEventListener('click', () => {
const datajson = binding.value
Vue.prototype.$tracker.track(datajson)
})
}
}
}
</script>
<!-- 弹窗 -->
<template>
<div>
<el-dialog :title="title" :top="top" :visible.sync="isVisible" :show-close="showClose" :before-close="handleClose" :close-on-click-modal="false" :modal-append-to-body="false" :width="width">
<el-scrollbar v-if="hasScroll">
<span slot="title">
<span class="main-title">{{ title }}</span>
<span class="dialog-sub-title">
<slot name="sub-title"></slot>
</span>
</span>
<slot></slot>
</el-scrollbar>
<template v-if="!hasScroll">
<span slot="title">
<span class="main-title">{{ title }}</span>
<span class="dialog-sub-title">
<slot name="sub-title"></slot>
</span>
</span>
<slot></slot>
</template>
<div slot="footer">
<slot name="btn-start"></slot>
<el-button :type="typeName" v-if="!noClose" :size="btnSize" @click="handleClose">{{ btnCloseLabel }}</el-button>
<el-button type="default" v-if="!noCancel" :size="btnSize" @click="handleClose">{{ btnCancelLabel }}</el-button>
<el-button type="primary" v-if="!noBtnOk" :size="btnSize" @click="handleConfirm">{{ btnOkLabel }}</el-button>
<slot name="btn-middle"></slot>
</div>
</el-dialog>
</div>
</template>
<script>
export default {
name: 'glsx-dialog',
data() {
return {}
},
props: {
hasScroll: {
type: Boolean,
default: true
},
title: {
type: String,
default: ''
},
isVisible: {
type: Boolean,
default: false
},
showClose: {
type: Boolean,
default: false
},
btnCloseLabel: {
type: String,
default: '关闭'
},
btnOkLabel: {
type: String,
default: '确定'
},
btnCancelLabel: {
type: String,
default: '取消'
},
noBtnOk: {
type: Boolean,
default: false
},
noCancel: {
type: Boolean,
default: false
},
noClose: {
type: Boolean,
default: true
},
typeName: {
type: String,
default: 'default'
},
// modalAppendToBody:{
// type: Boolean,
// default: false
// },
width: {
type: String,
default: '580px'
},
btnSize: {
type: String,
default: 'small'
}
},
methods: {
handleClose() {
this.$emit('closeDialog')
},
handleConfirm() {
this.$emit('confirmDialog')
}
}
}
</script>
<style lang="scss">
.dialog-sub-title {
font-size: 12px;
color: #666666;
}
// ::v-deep .el-dialog__body {
// border-top: 1px solid #e6e6e6;
// border-bottom: 1px solid #e6e6e6;
// padding: 20px 25px;
// }
// .el-dialog-div {
// height: 60vh;
// overflow: auto;
// }
// .app-dialog {
// // .el-dialog__header {
// // padding: 15px;
// // }
// .el-dialog__body {
// border-top: 1px solid #eaeefb;
// border-bottom: 1px solid #eaeefb;
// }
// .el-dialog__footer {
// padding: 15px;
// // .el-button--small {
// // padding: 9px 21px;
// // font-size: 14px;
// // border-radius: 4px;
// // }
// }
// }
</style>
<template>
<div class="tag-main">
<<<<<<< HEAD
<el-dialog bigTitle="选择标签" :visible.sync="dialogVisible" width="50%" :before-close="handleClose">
=======
<el-dialog title="选择标签" :visible.sync="dialogVisible" width="50%" :before-close="handleClose">
>>>>>>> 396e1482ded1b79e8dc9f700b1a584ff319bc981
<div class="tag-panel">
<div class="tag-panel-select">
<div class="tag-title">预选标签</div>
......
......@@ -7,7 +7,11 @@
-->
<template>
<div>
<<<<<<< HEAD
<GLDialog title="人群筛选" :hasFooter="true" :visible.sync="crowdVisible" mode="big">
=======
<el-dialog :title="'人群筛选'" :width="'1080px'" :visible.sync="crowdVisible" v-if="crowdVisible">
>>>>>>> 396e1482ded1b79e8dc9f700b1a584ff319bc981
<div class="member-wrapper">
<div class="member-left">
<div class="member-title">
......@@ -43,7 +47,11 @@
<el-button style="width: 68px;" size="small" @click="crowdVisible = false">取 消</el-button>
<el-button style="width: 68px;" size="small" type="primary" @click.native="handleConfirm">确 定</el-button>
</span>
<<<<<<< HEAD
</GLDialog>
=======
</el-dialog>
>>>>>>> 396e1482ded1b79e8dc9f700b1a584ff319bc981
</div>
</template>
......@@ -97,6 +105,10 @@ export default {
},
methods: {
init(val) {
<<<<<<< HEAD
=======
// console.log(val)
>>>>>>> 396e1482ded1b79e8dc9f700b1a584ff319bc981
this.inner = this.$common.utils.deepClone(val)
this.innerTags = this.$common.utils.deepClone(val)
this.crowdVisible = true
......
......@@ -295,9 +295,15 @@ export default {
}
}
.model-item-panel {
<<<<<<< HEAD
display: grid;
grid-template-columns: repeat(4, 25%);
grid-row-gap: 10px;
=======
// display: grid;
// grid-template-columns: repeat(4, 25%);
// grid-row-gap: 10px;
>>>>>>> 396e1482ded1b79e8dc9f700b1a584ff319bc981
max-height: 38vh;
overflow: auto;
display: flex;
......@@ -305,8 +311,13 @@ export default {
align-items: stretch;
flex-direction: row;
.model-item {
<<<<<<< HEAD
width: 100%;
// margin-right: 24px;
=======
width: 240px;
margin-right: 24px;
>>>>>>> 396e1482ded1b79e8dc9f700b1a584ff319bc981
margin-bottom: 24px;
padding: 12px 16px;
position: relative;
......
......@@ -265,6 +265,7 @@ export default {
let htm = target.innerHTML
const list = emoji.flat(Infinity)
<<<<<<< HEAD
<<<<<<< HEAD
const cutImg = htm
.replace(/<img src="https:\/\/img01.glsx.com.cn\/weapp\/resource\/saas\/scrm\/emoji\//g, '')
.replace(/<wise.+?(?:<\/wise>)/g, '@昵称')
......@@ -274,6 +275,10 @@ export default {
const cutImg = htm.replaceAll('<img src="https://img01.glsx.com.cn/weapp/resource/saas/scrm/emoji/', '').replaceAll('<wise id="1">@昵称</wise>', '@昵称').replaceAll('<br>', '\n')
const replaceImg = cutImg.replace(/(\d){3}.png">/g, function (str) {
>>>>>>> fbad4209013d5b97224e1e78016ca7165eb5df09
=======
const cutImg = htm.replaceAll('<img src="https://img01.glsx.com.cn/weapp/resource/saas/scrm/emoji/', '').replaceAll('<wise id="1">@昵称</wise>', '@昵称').replaceAll('<br>', '\n')
const replaceImg = cutImg.replace(/(\d){3}.png">/g, function (str) {
>>>>>>> 396e1482ded1b79e8dc9f700b1a584ff319bc981
let s = list[parseInt(str.split('.')[0]) - 1]
return `[${s}]`
})
......@@ -307,6 +312,7 @@ export default {
console.log(htm)
const list = emoji.flat(Infinity)
<<<<<<< HEAD
<<<<<<< HEAD
const cutImg = htm
.replace(/<img src="https:\/\/img01.glsx.com.cn\/weapp\/resource\/saas\/scrm\/emoji\//g, '')
.replace(/<wise.+?(?:<\/wise>)/g, '@昵称')
......@@ -316,6 +322,10 @@ export default {
const cutImg = htm.replaceAll('<img src="https://img01.glsx.com.cn/weapp/resource/saas/scrm/emoji/', '').replaceAll('<wise id="1">@昵称</wise>', '@昵称').replaceAll('<br>', '\n')
const replaceImg = cutImg.replace(/(\d){3}.png">/g, function (str) {
>>>>>>> fbad4209013d5b97224e1e78016ca7165eb5df09
=======
const cutImg = htm.replaceAll('<img src="https://img01.glsx.com.cn/weapp/resource/saas/scrm/emoji/', '').replaceAll('<wise id="1">@昵称</wise>', '@昵称').replaceAll('<br>', '\n')
const replaceImg = cutImg.replace(/(\d){3}.png">/g, function (str) {
>>>>>>> 396e1482ded1b79e8dc9f700b1a584ff319bc981
let s = list[parseInt(str.split('.')[0]) - 1]
return `[${s}]`
})
......
......@@ -52,10 +52,14 @@
<input v-if="item.type == 'img'" type="file" style="opacity: 0" :id="item.name + 'file'" ref="file" class="welcome-input upload-img" :accept="item.accept || 'image/png, image/jpeg, image/jpg'" @change="e => handleImgChange(e, item)" />
<input v-else-if="item.type == 'video'" type="file" style="opacity: 0" :id="item.name + 'file'" ref="file" class="welcome-input" :accept="item.accept || 'video/*'" @change="e => handleVideoChange(e, item)" />
<<<<<<< HEAD
<<<<<<< HEAD
<el-link v-else-if="item.type == 'nickname' || item.type == 'acivity' || item.type == 'material'" style="opacity: 0" @click="handleFun(item.funName)">{{ item.name }}</el-link>
=======
<el-link v-else-if="item.type == 'nickname' || item.type == 'acivity'" style="opacity: 0" @click="handleFun(item.funName)">{{ item.name }}</el-link>
>>>>>>> fbad4209013d5b97224e1e78016ca7165eb5df09
=======
<el-link v-else-if="item.type == 'nickname' || item.type == 'acivity' || item.type == 'material'" style="opacity: 0" @click="handleFun(item.funName)">{{ item.name }}</el-link>
>>>>>>> 396e1482ded1b79e8dc9f700b1a584ff319bc981
</div>
</div>
</div>
......@@ -83,9 +87,13 @@ const ATT_TYPE = {
import emoji from '@/utils/emo'
import ActivityModel from './activityModel'
<<<<<<< HEAD
<<<<<<< HEAD
// import materialModel from './materialModel'
=======
>>>>>>> fbad4209013d5b97224e1e78016ca7165eb5df09
=======
// import materialModel from './materialModel'
>>>>>>> 396e1482ded1b79e8dc9f700b1a584ff319bc981
import Emotion from './emotionWords'
import wTextarea from './tag-textarea'
import { utils } from 'glsx-common'
......@@ -94,9 +102,13 @@ export default {
components: {
ActivityModel,
<<<<<<< HEAD
<<<<<<< HEAD
// materialModel,
=======
>>>>>>> fbad4209013d5b97224e1e78016ca7165eb5df09
=======
// materialModel,
>>>>>>> 396e1482ded1b79e8dc9f700b1a584ff319bc981
Emotion,
wTextarea
},
......@@ -106,9 +118,13 @@ export default {
loading: false,
emotionStatus: false,
<<<<<<< HEAD
<<<<<<< HEAD
isMaterialVisible: false,
=======
>>>>>>> fbad4209013d5b97224e1e78016ca7165eb5df09
=======
isMaterialVisible: false,
>>>>>>> 396e1482ded1b79e8dc9f700b1a584ff319bc981
btnList: [
{
id: 1,
......@@ -322,6 +338,37 @@ export default {
}
}
},
<<<<<<< HEAD
=======
insertHtmlAtCaret(html) {
var sel, range, frag
if (window.getSelection) {
sel = window.getSelection()
if (sel.getRangeAt && sel.rangeCount) {
range = sel.getRangeAt(0)
range.deleteContents()
var el = document.createElement('span')
el.innerHTML = '<span contenteditable="false" class="nickname">@昵称<i class="el-icon-error"></i></span>'
// var el = document.createElement('div')
// el.innerHTML = html
frag = document.createDocumentFragment()
var node
var lastNode
while ((node = el.firstChild)) {
lastNode = frag.appendChild(node)
}
range.insertNode(frag)
if (lastNode) {
range = range.cloneRange()
range.setEndAfter(lastNode)
range.collapse(true)
sel.removeAllRanges()
sel.addRange(range)
}
}
}
},
>>>>>>> 396e1482ded1b79e8dc9f700b1a584ff319bc981
changeInput: utils.debounce(function() {
console.log(document.getElementById('editor').childNodes)
var allNodes = document.getElementById('editor').childNodes
......@@ -346,8 +393,12 @@ export default {
const htm = attContent.replace(/\[[\u4E00-\u9FA56]{1,4}]/gi, function(res) {
=======
let attContent = obj.attContent.replaceAll('[@昵称]', '<wise id="1">@昵称</wise>')
<<<<<<< HEAD
const htm = attContent.replace(/\[[\u4E00-\u9FA56]{1,4}]/gi, function (res) {
>>>>>>> fbad4209013d5b97224e1e78016ca7165eb5df09
=======
const htm = attContent.replace(/\[[\u4E00-\u9FA56]{1,4}]/gi, function(res) {
>>>>>>> 396e1482ded1b79e8dc9f700b1a584ff319bc981
let word = res.replace(/\[|\]/gi, '')
const list = emoji.flat(Infinity)
let index = parseInt(list.indexOf(word)) + 1
......
......@@ -17,8 +17,13 @@ export const fetchConfig = function(isEnv = true) {
Object.assign(request, { timeout })
return Promise.resolve(cfg)
}
<<<<<<< HEAD
// return new Http({ request: { timeout: 100000 } }).get('https://oss-config.test.glsx.com.cn/mock/618a32851072f92988f05a17/drainage/config')
return new Http({ request: { timeout: 100000 } }).get('https://oss-config.dev.glsx.com.cn/mock/618a32851072f92988f05a17/drainage/config')
=======
return new Http({ request: { timeout: 100000 } }).get('https://oss-config.dev.glsx.com.cn/mock/618a32851072f92988f05a17/drainage/config')
// return new Http({ request: { timeout: 100000 } }).get('https://oss-config.dev.glsx.com.cn/mock/618a32851072f92988f05a17/drainage/config')
>>>>>>> 396e1482ded1b79e8dc9f700b1a584ff319bc981
}
export const config = {
install(vue, cfg) {
......
......@@ -34,14 +34,22 @@ const staticRoutes = Object.freeze([
path: '/square/import',
component: resolve => require([`@/views/square/import.vue`], resolve),
meta: {}
<<<<<<< HEAD
},
{
=======
}, {
>>>>>>> 396e1482ded1b79e8dc9f700b1a584ff319bc981
name: 'customDetail',
path: '/square/customDetail',
component: resolve => require([`@/views/square/customDetail.vue`], resolve),
meta: {}
<<<<<<< HEAD
},
{
=======
}, {
>>>>>>> 396e1482ded1b79e8dc9f700b1a584ff319bc981
name: 'importResult',
path: '/square/importResult/:id',
component: resolve => require([`@/views/square/importResult.vue`], resolve),
......@@ -64,20 +72,32 @@ const staticRoutes = Object.freeze([
path: '/market/config',
component: resolve => require([`@/views/market/config.vue`], resolve),
meta: {}
<<<<<<< HEAD
},
{
=======
}, {
>>>>>>> 396e1482ded1b79e8dc9f700b1a584ff319bc981
name: 'configDetail',
path: '/market/configDetail/:id?',
component: resolve => require([`@/views/market/configDetail.vue`], resolve),
meta: {}
<<<<<<< HEAD
},
{
=======
}, {
>>>>>>> 396e1482ded1b79e8dc9f700b1a584ff319bc981
name: 'effect',
path: '/market/effect/:id?',
component: resolve => require([`@/views/market/effect.vue`], resolve),
meta: {}
<<<<<<< HEAD
},
{
=======
}, {
>>>>>>> 396e1482ded1b79e8dc9f700b1a584ff319bc981
name: 'overview',
path: '/overview/index',
component: resolve => require([`@/views/overview/index.vue`], resolve),
......
......@@ -10,8 +10,13 @@ import Vue from 'vue'
// import { message } from '@/plugins/element.js'
import { fetchConfig } from '@/config'
import ElementUI from 'element-ui'
<<<<<<< HEAD
import { GLTable, GLButton, GLFooter, GLCombiForm, GLDialog, GLTableButton, GLTabs } from 'glsx-components' //权限按钮 (根据权限动态创建)
import GLEditor from 'glsx-components/src/packages/Editor' //权限按钮 (根据权限动态创建)
=======
import { GLTable, GLButton, GLFooter, GLCombiForm } from 'glsx-components' //权限按钮 (根据权限动态创建)
import collectForm from '@/components/collectForm'
>>>>>>> 396e1482ded1b79e8dc9f700b1a584ff319bc981
import GLFull from '@/components/GLFull'
import { getRoutes } from '@/router'
import render from './render'
......@@ -19,6 +24,7 @@ Vue.use(ElementUI)
Vue.use(GLTable)
Vue.use(GLFooter)
Vue.use(GLCombiForm)
<<<<<<< HEAD
Vue.use(GLDialog)
Vue.use(GLTableButton)
......@@ -27,6 +33,12 @@ Vue.use(GLTableButton)
Vue.component('GLEditor', GLEditor)
Vue.component('GLFull', GLFull)
Vue.component('GLTabs', GLTabs)
=======
Vue.component('GLFull', GLFull)
Vue.component(collectForm.name, collectForm)
// import GLTable from '@/components/glsx-table/index'
// Vue.component('GLTable', GLTable)
>>>>>>> 396e1482ded1b79e8dc9f700b1a584ff319bc981
// import 'glsx-components/src/theme/theme.scss'
import 'glsx-components/dist/glsx-components.css'
import '@/assets/css/common.scss'
......@@ -39,6 +51,10 @@ export async function bootstrap({ name, id, history, common, messenger, globalSt
Vue.prototype.$messenger = messenger
Vue.prototype.$globalState = globalState
Vue.prototype.$common = common
<<<<<<< HEAD
=======
Vue.prototype.$tracker = common.tracker
>>>>>>> 396e1482ded1b79e8dc9f700b1a584ff319bc981
Vue.prototype.$http = new common.Http({ response, request, sign, secret, alert: ElementUI.Message.error, headers: { token: globalState.session.token } })
Vue.prototype.$http_tag = new common.Http({ response, request: request_tag, sign, secret, alert: ElementUI.Message.error, headers: { token: globalState.session.token } })
Vue.prototype.$http_common = new common.Http({ response, signWay: 'md5', request: request_common, sign: sign_common, secret, alert: ElementUI.Message.error, headers: { TGT: globalState.session.token } })
......
......@@ -17,6 +17,19 @@ const render = (base, routes) => {
routes,
mode: 'history'
})
<<<<<<< HEAD
=======
// router.beforeEach((to, from, next) => {
// const pageName = to.meta.title
// Vue.prototype.$tracker.track(
// {
// pageName
// },
// 'pv'
// )
// next()
// })
>>>>>>> 396e1482ded1b79e8dc9f700b1a584ff319bc981
router.afterEach(() => {
document.querySelector('#app').scrollTop = 0
})
......
......@@ -110,6 +110,10 @@ util.downloadIamge = function(imgsrc, name = new Date().getTime()) {
a.href = url // 将生成的URL设置为a.href属性
a.dispatchEvent(event) // 触发a的单击事件
}
<<<<<<< HEAD
image.src = imgsrc.replace(/https?:/, '')
=======
image.src = imgsrc
>>>>>>> 396e1482ded1b79e8dc9f700b1a584ff319bc981
}
export default util
......@@ -86,12 +86,56 @@
<span>{{ staffInfo.length }}</span>
人
</span>
<<<<<<< HEAD
<div class="form-tips">客户扫码后将添加所选专员为好友,选择多名专员则按ABAB的顺序添加客户</div>
<div class="el-input-tag input-tag-wrapper" v-show="staffInfo.length">
<el-tag effect="plain" type="info" v-for="(tag, idx) in staffInfo" :key="idx" closable :disable-transitions="false" @close="removeStaff(idx)">
<i class="el-icon-user-solid"></i>
{{ tag.staffName }}
</el-tag>
=======
<div class="form-tips">自动为通过该活码添加的客户打上所选标签</div>
<div class="el-input-tag input-tag-wrapper" v-show="taggingLength">
<template v-if="tagging && tagging.length > 0">
<!-- <template v-for="(item, index) in tagging">
<el-tag type="info" v-for="(tag, idx) in item.labelList" :key="idx" closable :disable-transitions="false" @close="removeTag(item, idx, index)">
{{ tag ? tag.name : '' }}
</el-tag>
</template> -->
<template v-for="(item, index) in tagging">
<div v-for="(tag, idx) in item.labelList" :key="idx">
<GLFull :labelWidth="150" :idx="idx" @handleRemove="removeTag(item, idx, index)" :identi="`node_${tag.id}`" :label="tag.name" :haveClose="true" textType="tag"></GLFull>
</div>
</template>
</template>
</div>
</el-form-item>
</el-row>
<el-row>
<div class="el-form-item is-required">
<label for="codeName" class="el-form-item__label" style="width: 120px">选择专员</label>
<div class="el-form-item__content" style="margin-left: 120px">
<el-button size="small" @click="handleAddEmp">
<i class="el-icon-plus"></i>
选择专员
</el-button>
<span class="form-tips-btn">
已选择
<span>{{ staffInfo.length }}</span>
人
</span>
<div class="form-tips">客户扫码后将添加所选专员为好友,选择多名专员则按ABAB的顺序添加客户</div>
<div class="el-input-tag input-tag-wrapper" v-show="staffInfo.length">
<!-- <el-tag effect="plain" type="info" v-for="(tag, idx) in staffInfo" :key="idx" closable :disable-transitions="false" @close="removeStaff(idx)">
<i class="el-icon-user-solid"></i>
{{ tag.staffName }}
</el-tag> -->
<div v-for="(tag, idx) in staffInfo" :key="idx">
<GLFull :labelWidth="150" @handleRemove="removeStaff(idx)" :identi="`node_${idx}`" :label="tag.staffName" :haveClose="true" textType="user"></GLFull>
</div>
</div>
<div class="el-form-item__error" v-if="staffStatus">请选择专员</div>
>>>>>>> 396e1482ded1b79e8dc9f700b1a584ff319bc981
</div>
<div class="el-form-item__error" v-if="staffStatus">请选择专员</div>
</div>
......@@ -116,7 +160,10 @@
<el-button type="primary" @click="handleSave">提交</el-button>
<el-button @click="goback">取消</el-button>
</GLFooter>
<<<<<<< HEAD
<GLDialog title="提示" @onOk="handleSure" @onCancel="dialogVisible = false" type="warning" content="当前有内容信息未保存,是否继续返回?" :visible.sync="dialogVisible" mode="small"></GLDialog>
=======
>>>>>>> 396e1482ded1b79e8dc9f700b1a584ff319bc981
<select-emp @selectTable="selectTable" ref="selectEmpForm"></select-emp>
<select-tag ref="selectTagForm" @tagSelected="tagSelected"></select-tag>
</div>
......@@ -193,6 +240,7 @@ export default {
})
})
if (this.editStatus || (this.$refs.welcome.previewList.length > 0 && !this.codeId)) {
<<<<<<< HEAD
this.dialogVisible = true
} else {
this.$router.push('/channel/index')
......@@ -205,10 +253,27 @@ export default {
item.labelList.splice(idx, 1)
if (item.labelList.length == 0) {
this.tagging.splice(index, 1)
=======
this.$confirm('当前有内容信息未保存,是否继续返回?', '提示', {
confirmButtonText: '确定',
cancelButtonText: '取消',
type: 'warning'
}).then(() => {
this.$router.push('/channel/index')
})
} else {
this.$router.push('/channel/index')
>>>>>>> 396e1482ded1b79e8dc9f700b1a584ff319bc981
}
},
removeStaff(index) {
this.staffInfo.splice(index, 1)
removeTag(item, idx, index) {
item.labelList.splice(idx, 1)
if (item.labelList.length == 0) {
this.tagging.splice(index, 1)
}
},
removeStaff(idx) {
this.staffInfo.splice(idx, 1)
},
handleAddEmp() {
this.staffStatus = false
......@@ -278,6 +343,13 @@ export default {
}
return item
})
this.$tracker.track({
codeName: param.codeName,
staffInfo: this.staffInfo,
welcomeInfo: attachmentList,
pageName: this.codeId ? '活码编辑' : '新增活码',
name: '提交'
})
param.welcomeInfo = attachmentList
this.$apis.channel[channel](param).then(res => {
if (res) this.$router.push('/channel/index')
......@@ -416,6 +488,7 @@ export default {
outline: none;
padding: 5px 5px 0px 5px;
max-height: 68px;
min-height: 40px;
overflow: auto;
flex-wrap: wrap;
transition: border-color 0.2s cubic-bezier(0.645, 0.045, 0.355, 1);
......@@ -424,6 +497,11 @@ export default {
align-items: center;
margin-top: 6px;
font-size: 14px;
> div {
height: 26px;
line-height: 26px;
margin: 0px 5px 5px 0px;
}
i {
color: #75acff;
margin-right: 3px;
......@@ -437,6 +515,7 @@ export default {
margin-bottom: 5px;
}
}
<<<<<<< HEAD
.channel-main-guidance {
display: flex;
padding: 20px;
......@@ -481,4 +560,6 @@ export default {
}
}
}
=======
>>>>>>> 396e1482ded1b79e8dc9f700b1a584ff319bc981
</style>
......@@ -4,6 +4,7 @@
<GLButton type="primary" size="small" icon="el-icon-add" @click="handleAddCode" fn="新增活码">新建渠道活码</GLButton>
</div>
<div class="form-panel scrm-box-f">
<<<<<<< HEAD
<GLCombiForm :rowNumber="1" ref="formSearch" :formObj="tableSearchForm" :formData="searchFormData" @handleOk="handleSearch" @handleRest="handleReset"></GLCombiForm>
<GLTable v-loading="loading" ref="table" @refreshTable="handleSearch" :searchForm="tableSearchForm" :layout="layout" :tableData="tableData" :tableTotal="tableTotal" :pageConf="pageConf" :tableParams="tableParams">
<div class="table-btns" slot="optionBtns" slot-scope="scope">
......@@ -12,6 +13,15 @@
<GLButton type="text" @click="handleEdit(scope.scope)" fn="活码编辑">修改</GLButton>
<el-button type="text" @click="handleDelete(scope.scope)">删除</el-button>
<GLButton type="text" @click="handleAddPoster(scope.scope)" fn="活码海报">活码海报</GLButton> -->
=======
<GLCombiForm ref="formSearch" :formObj="tableSearchForm" :formData="searchFormData" @handleOk="handleSearch" @handleRest="handleReset"></GLCombiForm>
<GLTable v-loading="loading" ref="table" @refreshTable="handleSearch" :searchForm="tableSearchForm" :layout="layout" :tableData="tableData" :tableTotal="tableTotal" :pageConf="pageConf" :tableParams="tableParams">
<div class="table-btns" slot="optionBtns" slot-scope="scope">
<collect-form :dataAnalyics="{ pageName: '渠道活码', codeId: scope.scope.id, name: '数据' }"><GLButton type="text" @click="handleDetail(scope.scope)" fn="到店咨询客户数据">数据</GLButton></collect-form>
<collect-form :dataAnalyics="{ pageName: '渠道活码', codeId: scope.scope.id, name: '修改' }"><GLButton type="text" @click="handleEdit(scope.scope)" fn="活码编辑">修改</GLButton></collect-form>
<el-button type="text" @click="handleDelete(scope.scope)">删除</el-button>
<collect-form :dataAnalyics="{ pageName: '渠道活码', codeId: scope.scope.id, name: '活码海报' }"><GLButton type="text" @click="handleAddPoster(scope.scope)" fn="活码海报">活码海报</GLButton></collect-form>
>>>>>>> 396e1482ded1b79e8dc9f700b1a584ff319bc981
</div>
<div slot="yesterdayNum" slot-scope="scope">
<div class="link-dialog" @click="handleEmpDetail(scope.scope, 'day')" v-if="scope.scope.yesterdayNum">{{ scope.scope.yesterdayNum }}</div>
......@@ -23,6 +33,7 @@
</div>
<div slot="staffInfo" slot-scope="scope">
<el-popover trigger="hover" placement="top" v-if="staffNameSplit(scope.scope.staffName).length > 3">
<<<<<<< HEAD
<GLFull :labelWidth="110" :label="item" textType="user" :identi="`text_${Math.random().toString().replace('.', '')}`" v-for="(item, index) in staffNameSplit(scope.scope.staffName)" :key="index"></GLFull>
<div slot="reference" class="name-wrapper">
<div style="display: inline-block" v-for="(item, index) in staffNameSplit(scope.scope.staffName)" :key="index" v-show="index < 4">
......@@ -38,10 +49,28 @@
</el-popover>
<GLFull :labelWidth="110" :label="item" textType="user" :identi="`text_${Math.random().toString().replace('.', '')}`" v-for="(item, index) in staffNameSplit(scope.scope.staffName)" :key="index" v-else></GLFull>
<!-- <div v-for="(item, index) in staffNameSplit(scope.scope.staffName)" :key="index" v-else>
=======
<div class="accountType-row" v-for="(item, index) in staffNameSplit(scope.scope.staffName)" :key="index">
<i class="el-icon-user-solid"></i>
<GLTitle :content="item" textLength="4"></GLTitle>
</div>
<div slot="reference" class="name-wrapper">
<div v-for="(item, index) in staffNameSplit(scope.scope.staffName)" :key="index" v-show="index < 4">
<div class="accountType-row">
<i class="el-icon-user-solid"></i>
<span v-if="index == 3 && staffNameSplit(scope.scope.staffName).length > 3">{{ '...(' + staffNameSplit(scope.scope.staffName).length + ')' }}</span>
<GLTitle :content="item" textLength="4" v-else></GLTitle>
</div>
</div>
</div>
</el-popover>
<div v-for="(item, index) in staffNameSplit(scope.scope.staffName)" :key="index" v-else>
>>>>>>> 396e1482ded1b79e8dc9f700b1a584ff319bc981
<div class="accountType-row">
<i class="el-icon-user-solid"></i>
<GLTitle :content="item" textLength="4"></GLTitle>
</div>
<<<<<<< HEAD
</div> -->
</div>
<div slot="qrCode" slot-scope="scope">
......@@ -52,6 +81,18 @@
</div>
<img :src="scope.scope.qrCode" style="width: 36px; height: 36px" slot="reference" />
</el-popover>
=======
</div>
</div>
<div slot="qrCode" slot-scope="scope">
<el-popover placement="bottom" width="400" trigger="click">
<img :src="scope.scope.qrCode" style="width: 360px; height: 360px" />
<img :src="scope.scope.qrCode" style="width: 80px; height: 80px" slot="reference" />
</el-popover>
<collect-form :dataAnalyics="{ qrCode: scope.scope.qrCode }" display="block">
<div class="download-link" @click="downloadIamge(scope.scope.qrCode)">下载二维码</div>
</collect-form>
>>>>>>> 396e1482ded1b79e8dc9f700b1a584ff319bc981
</div>
<div slot="tagging" slot-scope="scope" class="tag-panel">
<el-popover trigger="hover" placement="top" v-if="scope.scope.taggingList && scope.scope.taggingList.length > 3">
......@@ -80,21 +121,31 @@
</div>
</GLTable>
</div>
<<<<<<< HEAD
<GLDialog title="提示" @onOk="handleSure" @onCancel="dialogVisibleDel = false" type="error" content="是否删除?" :visible.sync="dialogVisibleDel" mode="small"></GLDialog>
=======
>>>>>>> 396e1482ded1b79e8dc9f700b1a584ff319bc981
<emp-detail ref="empDetailForm"></emp-detail>
</div>
</template>
<script>
import util from '@/utils/util'
<<<<<<< HEAD
import empDetail from '@/components/empDetail'
=======
import empDetail from './empDetail.vue'
>>>>>>> 396e1482ded1b79e8dc9f700b1a584ff319bc981
export default {
components: { empDetail },
name: 'channelList',
data() {
return {
<<<<<<< HEAD
dialogVisibleDel: false,
selectItem: '',
=======
>>>>>>> 396e1482ded1b79e8dc9f700b1a584ff319bc981
loading: false,
tableSearchForm: {
staffName: '',
......@@ -174,13 +225,21 @@ export default {
{
label: '今日新增客户数',
prop: 'yesterdayNum',
<<<<<<< HEAD
width: 130,
=======
width: '130px',
>>>>>>> 396e1482ded1b79e8dc9f700b1a584ff319bc981
addHtml: 'yesterdayNum'
},
{
label: '总新增客户数',
prop: 'totalNum',
<<<<<<< HEAD
width: 120,
=======
width: '120px',
>>>>>>> 396e1482ded1b79e8dc9f700b1a584ff319bc981
addHtml: 'totalNum'
},
{
......@@ -194,7 +253,11 @@ export default {
label: '活码',
prop: 'qrCode',
addHtml: 'qrCode',
<<<<<<< HEAD
width: '100px'
=======
width: '120px'
>>>>>>> 396e1482ded1b79e8dc9f700b1a584ff319bc981
},
{
label: '标签',
......@@ -205,12 +268,20 @@ export default {
{
label: '创建时间',
prop: 'createdTime',
<<<<<<< HEAD
minWidth: 180
=======
width: '180px'
>>>>>>> 396e1482ded1b79e8dc9f700b1a584ff319bc981
},
{
label: '操作',
prop: 'optionBtns',
<<<<<<< HEAD
width: '170px',
=======
width: '220px',
>>>>>>> 396e1482ded1b79e8dc9f700b1a584ff319bc981
addHtml: 'optionBtns',
fixed: 'right'
}
......
......@@ -64,9 +64,15 @@
<script>
import utils from '@/utils/util'
<<<<<<< HEAD
import linechart from '@/components/linechart'
import selectChannel from '@/components/selectChannel'
import empDetail from '@/components/empDetail'
=======
import linechart from './linechart'
import selectChannel from './selectChannel'
import empDetail from './empDetail.vue'
>>>>>>> 396e1482ded1b79e8dc9f700b1a584ff319bc981
export default {
name: 'channelStatistics',
components: {
......
......@@ -151,20 +151,35 @@ export default {
label: '客户性别',
prop: 'customerSex',
formatter: cellValue => {
<<<<<<< HEAD
return cellValue.customerSex == 1 ? '男' : '女'
},
minWidth: 100
=======
console.log(cellValue)
return cellValue.customerSex == 1 ? '男' : '女'
},
width: '80px'
>>>>>>> 396e1482ded1b79e8dc9f700b1a584ff319bc981
},
{
label: '状态',
prop: 'status',
addHtml: 'status',
<<<<<<< HEAD
minWidth: 100
=======
width: '80px'
>>>>>>> 396e1482ded1b79e8dc9f700b1a584ff319bc981
},
{
label: '跟进员工',
prop: 'followStaff',
<<<<<<< HEAD
minWidth: 100
=======
width: '80px'
>>>>>>> 396e1482ded1b79e8dc9f700b1a584ff319bc981
},
{
label: '添加时间',
......@@ -173,7 +188,11 @@ export default {
{
label: '操作',
prop: 'optionBtns',
<<<<<<< HEAD
minWidth: '80px',
=======
width: '80px',
>>>>>>> 396e1482ded1b79e8dc9f700b1a584ff319bc981
addHtml: 'optionBtns'
}
]
......@@ -229,7 +248,10 @@ export default {
})
},
init(item, value, day) {
<<<<<<< HEAD
=======
>>>>>>> 396e1482ded1b79e8dc9f700b1a584ff319bc981
this.createTime = []
this.pStatus = null
this.staffIds = null
......
......@@ -10,7 +10,11 @@
<div class="selected-panel">
<div class="selected-item" v-for="(item, index) in selectedList" :key="index">
<div :title="item.codeName">
<<<<<<< HEAD
<span :style="{ background: colorList[index] }"></span>
=======
<span :style="{ background: colorList[index]}"></span>
>>>>>>> 396e1482ded1b79e8dc9f700b1a584ff319bc981
{{ item.codeName }}
</div>
<img src="@/assets/img/channel/del.png" @click="delTag(item)" />
......
......@@ -17,6 +17,7 @@ export default {
},
data() {
return {
<<<<<<< HEAD
activeName: 'first',
tabPaneList: [
{
......@@ -42,6 +43,12 @@ export default {
})
])
},
=======
activeName: 'first'
}
},
methods: {
>>>>>>> 396e1482ded1b79e8dc9f700b1a584ff319bc981
jumpWx() {
this.$history.push('/settings/enterpriseWechat/index')
},
......
......@@ -252,10 +252,18 @@ export default {
getDraggable(img_url) {
let img = new Image()
img.src = img_url
<<<<<<< HEAD
img.onload = () => {
this.dragHeight = (img.height * 375) / img.width
this.dialogVisible = true
this.loading = false
=======
let self = this
img.onload = function() {
self.dragHeight = (img.height * 375) / img.width
self.dialogVisible = true
self.loading = false
>>>>>>> 396e1482ded1b79e8dc9f700b1a584ff319bc981
}
}
},
......
......@@ -56,14 +56,22 @@
<div class="count-panel">
<div class="count-panel-item">
<div class="count-item-title">今日新增客户</div>
<<<<<<< HEAD
<div class="count-item-num" @click="handleEmpDetail(detailCodeForm, 'day')" v-if="detailCodeForm.yesTodayAddCount">{{ detailCodeForm.yesTodayAddCount }}人</div>
=======
<div class="count-item-num" @click="handleEmpDetail(detailCodeForm,'day')" v-if="detailCodeForm.yesTodayAddCount">{{ detailCodeForm.yesTodayAddCount }}人</div>
>>>>>>> 396e1482ded1b79e8dc9f700b1a584ff319bc981
<div class="count-item-num2" v-else>0人</div>
<img src="@/assets/img/channel/count3.png" class="count-item-icon" />
</div>
<div class="count-panel-item">
<div class="count-item-title">总新增客户</div>
<div class="count-item-num" @click="handleEmpDetail(detailCodeForm)" v-if="detailCodeForm.newlyCount">{{ detailCodeForm.newlyCount }}人</div>
<<<<<<< HEAD
<div class="count-item-num2" v-else>0人</div>
=======
<div class="count-item-num2" v-else>0人</div>
>>>>>>> 396e1482ded1b79e8dc9f700b1a584ff319bc981
<img src="@/assets/img/channel/count2.png" class="count-item-icon" />
</div>
<div class="count-panel-item">
......@@ -73,8 +81,13 @@
<img src="@/assets/img/question.png" slot="reference" class="count-item-question" />
</el-popover>
</div>
<<<<<<< HEAD
<div class="count-item-num" @click="handleEmpDetail(detailCodeForm, 'status')" v-if="detailCodeForm.newlyKeepCount">{{ detailCodeForm.newlyKeepCount }}人</div>
<div class="count-item-num2" v-else>0人</div>
=======
<div class="count-item-num" @click="handleEmpDetail(detailCodeForm,'status')" v-if="detailCodeForm.newlyKeepCount">{{ detailCodeForm.newlyKeepCount }}人</div>
<div class="count-item-num2" v-else>0人</div>
>>>>>>> 396e1482ded1b79e8dc9f700b1a584ff319bc981
<img src="@/assets/img/channel/count1.png" class="count-item-icon" />
</div>
</div>
......@@ -90,17 +103,30 @@
</div>
<div slot="newlyKeepCount" slot-scope="scope">
<div class="link-dialog" @click="handleEmpDetail(scope.scope, 'status', scope.scope.dayTime)" v-if="scope.scope.newlyKeepCount">{{ scope.scope.newlyKeepCount }}</div>
<<<<<<< HEAD
<div v-else>0</div>
=======
<div v-else>0</div>
>>>>>>> 396e1482ded1b79e8dc9f700b1a584ff319bc981
</div>
</GLTable>
<GLTable v-show="activeName == 2" @refreshTable="listStaff" :layout="layout" :tableTotal="tableTotal" ref="memberTabel" :tableData="getMemberApi" :tableParams="tableMemberParams" :pageConf="pageMemberConf" :hasNum="false">
<div slot="newlyCount" slot-scope="scope">
<<<<<<< HEAD
<div class="link-dialog" @click="handleEmpDetail(scope.scope, 'staffIds')" v-if="scope.scope.newlyCount">{{ scope.scope.newlyCount }}</div>
<div v-else>0</div>
</div>
<div slot="newlyKeepCount" slot-scope="scope">
<div class="link-dialog" @click="handleEmpDetail(scope.scope, 'statusAndStaffIds')" v-if="scope.scope.newlyKeepCount">{{ scope.scope.newlyKeepCount }}</div>
<div v-else>0</div>
=======
<div class="link-dialog" @click="handleEmpDetail(scope.scope,'staffIds')" v-if="scope.scope.newlyCount">{{ scope.scope.newlyCount }}</div>
<div v-else>0</div>
</div>
<div slot="newlyKeepCount" slot-scope="scope">
<div class="link-dialog" @click="handleEmpDetail(scope.scope,'statusAndStaffIds')" v-if="scope.scope.newlyKeepCount">{{ scope.scope.newlyKeepCount }}</div>
<div v-else>0</div>
>>>>>>> 396e1482ded1b79e8dc9f700b1a584ff319bc981
</div>
</GLTable>
<emp-detail ref="empDetailForm"></emp-detail>
......@@ -177,8 +203,13 @@ export default {
goback() {
this.$router.push('/channel/index')
},
<<<<<<< HEAD
handleEmpDetail(scope, status, day) {
this.$refs.empDetailForm.init(scope, status, day)
=======
handleEmpDetail(scope,status,day) {
this.$refs.empDetailForm.init(scope,status,day)
>>>>>>> 396e1482ded1b79e8dc9f700b1a584ff319bc981
},
detailChannelCode(id, codeUuid) {
let param = {
......
......@@ -4,12 +4,17 @@
<div class="drainage-title">营销配置</div>
<div class="form-main">
<div class="drainage-form">
<<<<<<< HEAD
<!-- <div class="drainage-form-item">
=======
<div class="drainage-form-item">
>>>>>>> 396e1482ded1b79e8dc9f700b1a584ff319bc981
<label class="is-require" style="line-height: 32px">营销名称</label>
<div style="position: relative">
<el-input @focus="imNameStatus = false" type="type" size="small" placeholder="请输入营销名称" v-model.trim="imName" :disabled="!editStatus" maxlength="30"></el-input>
<div class="el-form-item__error" v-if="imNameStatus">请输入营销名称</div>
</div>
<<<<<<< HEAD
</div> -->
<div class="drainage-form-item">
<!-- <label>群发短信</label> -->
......@@ -23,13 +28,30 @@
<el-time-picker is-range :disabled="!editStatus" value-format="HH:mm" format="HH:mm" v-model="addForm.time" range-separator="至" start-placeholder="开始时间" end-placeholder="结束时间" placeholder="选择时间范围"></el-time-picker>
</el-form-item>
<el-form-item label="短信内容:" prop="content">
=======
</div>
<div class="drainage-form-item">
<label>群发短信</label>
<div class="message-panel">
<el-form ref="configForm" label-position="left" label-width="100px" :model="addForm" :rules="addRules" class="code-body-form">
<el-form-item label="推送规则:"><div class="configForm-desc">系统将在「开始营销时间」之后启动短信营销,并在「截止营销时间」之后停止短信下放。由于相关管控限制,营销类短信无法实时触达用户,若短信时效要求很高,请谨慎使用。</div></el-form-item>
<el-form-item size="small" label="营销时间" prop="time">
<el-time-picker is-range :disabled="!editStatus" value-format="HH:mm" format="HH:mm" v-model="addForm.time" range-separator="至" start-placeholder="开始时间" end-placeholder="结束时间" placeholder="选择时间范围"></el-time-picker>
</el-form-item>
<el-form-item label="短信内容" prop="content">
>>>>>>> 396e1482ded1b79e8dc9f700b1a584ff319bc981
<el-input type="textarea" v-model="addForm.content" rows="5" :disabled="!editStatus" maxlength="280" show-word-limit></el-input>
<div class="form-tips">70字內(含70字)计一条,超过70字,按70字/条计费。</div>
<div class="form-tips">提示:当前短信已有{{ addForm.content.length }}字,按{{ content.length }}条短信发送且计费。</div>
</el-form-item>
<div class="drainage-form-item">
<<<<<<< HEAD
<label>
自动打标签:
=======
<label style="width: 100px; text-align: left; color: #666">
自动打标签
>>>>>>> 396e1482ded1b79e8dc9f700b1a584ff319bc981
<el-popover placement="top" width="400" trigger="hover" content="提示:通过该营销活动添加员工企微的客户,将自动使用以下标签进行标记。">
<img src="@/assets/img/question.png" slot="reference" class="count-item-question" />
</el-popover>
......@@ -46,8 +68,13 @@
</div>
</div>
<div class="drainage-form-item">
<<<<<<< HEAD
<label style="margin-left: 20px">
跟进员工:
=======
<label>
跟进员工
>>>>>>> 396e1482ded1b79e8dc9f700b1a584ff319bc981
<el-popover placement="top" width="400" trigger="hover" content="用户点击短信中的链接后,将自动分配以下某位员工的企微名片,客户添加好友将自动回复后台所配置的欢迎语。">
<img src="@/assets/img/question.png" slot="reference" class="count-item-question" />
</el-popover>
......@@ -74,7 +101,11 @@
<div class="chanel-form-title">欢迎语</div>
<div class="welcome-panel">
<div class="welcome-switch">
<<<<<<< HEAD
<label>自动发送欢迎语:</label>
=======
<label>自动发送欢迎语</label>
>>>>>>> 396e1482ded1b79e8dc9f700b1a584ff319bc981
<el-switch v-model="autoWelcome" :disabled="!editStatus" active-color="#5850FF" inactive-color="#999999"></el-switch>
</div>
<div class="welcome-box" v-show="!editStatus && autoWelcome">
......@@ -99,10 +130,13 @@
<img src="@/assets/img/guestCustom/icon-applet.png" alt="" />
<span>{{ item.attContent }}</span>
</div>
<<<<<<< HEAD
<div v-else-if="item.attType == 6">
<img src="@/assets/img/guestCustom/icon-applet.png" alt="" />
<span>{{ JSON.parse(item.attContent).fileName }}</span>
</div>
=======
>>>>>>> 396e1482ded1b79e8dc9f700b1a584ff319bc981
<div v-else-if="item.attType == 7">
<img src="@/assets/img/guestCustom/icon-applet.png" alt="" />
<span>{{ item.attContent.marketingName }}</span>
......@@ -156,7 +190,11 @@ export default {
},
watch: {
'addForm.content': {
<<<<<<< HEAD
handler: function() {
=======
handler: function () {
>>>>>>> 396e1482ded1b79e8dc9f700b1a584ff319bc981
this.content = []
let str = this.addForm.content
let num = 70
......@@ -192,7 +230,11 @@ export default {
deep: true
},
tagging: {
<<<<<<< HEAD
handler: function() {
=======
handler: function () {
>>>>>>> 396e1482ded1b79e8dc9f700b1a584ff319bc981
this.taggingLength = 0
this.tagging.forEach(item => {
this.taggingLength += item.labelList.length
......@@ -222,14 +264,21 @@ export default {
this.addForm.content = res.dracImMessageConResponse.content
this.imName = res.imName
this.autoWelcome = res.autoWelcome ? true : false
<<<<<<< HEAD
const dracScrmWelcomeConfigDTOS = res.dracScrmWelcomeConfigDTOS ? res.dracScrmWelcomeConfigDTOS : []
const previewList = dracScrmWelcomeConfigDTOS.map(item => {
if (item.attType == 7) item.attContent = JSON.parse(item.attContent)
if (item.attType == 1) item.attContent = item.attContent.replaceAll('[@昵称]', '<span style="color:#5850FF">@昵称</span>').replaceAll(/\n/g, '<br>')
=======
const previewList = res.dracScrmWelcomeConfigDTOS.map(item => {
if (item.attType == 7) item.attContent = JSON.parse(item.attContent)
if (item.attType == 1) item.attContent = item.attContent.replaceAll('[@昵称]', '<span style="color:#5850FF">@昵称</span>')
>>>>>>> 396e1482ded1b79e8dc9f700b1a584ff319bc981
return item
})
this.welcomeInfo = previewList
const tagging = eval(res.tagging)
<<<<<<< HEAD
if (tagging && tagging.length) {
const taggingList = tagging.map(item => {
let name = item.name.split(',')
......@@ -249,6 +298,24 @@ export default {
this.tagging = taggingList
}
=======
const taggingList = tagging.map(item => {
let name = item.name.split(',')
let ids = item.tagIds.split(',')
console.log(ids)
let labelList = name.map((tag, index) => {
return { id: ids[index], name: tag }
})
return {
labelGroup: {
id: item.groupId,
name: item.labelType
},
labelList
}
})
this.tagging = taggingList
>>>>>>> 396e1482ded1b79e8dc9f700b1a584ff319bc981
this.$nextTick(() => {
this.saveStatus = false
})
......@@ -261,11 +328,19 @@ export default {
this.findById(id)
}
}
<<<<<<< HEAD
</script>
<style lang="scss" scoped>
.channel-main-welcome {
margin: 20px 0px 16px;
=======
</script>
<style lang="scss" scoped>
.channel-main-welcome {
margin: 20px 0px 60px;
>>>>>>> 396e1482ded1b79e8dc9f700b1a584ff319bc981
.chanel-form-title {
padding-left: 20px;
font-size: 16px;
......@@ -288,7 +363,11 @@ export default {
}
}
.welcome-box {
<<<<<<< HEAD
margin-left: 70px;
=======
margin-left: 48px;
>>>>>>> 396e1482ded1b79e8dc9f700b1a584ff319bc981
&-contaner {
margin: 20px;
background: rgba(247, 247, 247, 0.52);
......@@ -455,11 +534,17 @@ export default {
}
}
label {
<<<<<<< HEAD
font-size: 14px;
text-align: right;
color: #666;
width: 140px;
margin-right: 12px;
=======
width: 120px;
text-align: right;
margin-right: 20px;
>>>>>>> 396e1482ded1b79e8dc9f700b1a584ff319bc981
height: 36px;
line-height: 36px;
img {
......@@ -712,4 +797,8 @@ export default {
}
}
}
<<<<<<< HEAD
</style>
=======
</style>
>>>>>>> 396e1482ded1b79e8dc9f700b1a584ff319bc981
......@@ -21,18 +21,24 @@
</el-row>
</el-form>
<GLTable v-loading="loading" ref="table" @refreshTable="handleSearch" :searchForm="tableSearchForm" :layout="layout" :tableData="tableData" :tableTotal="tableTotal" :pageConf="pageConf" :tableParams="tableParams">
<<<<<<< HEAD
<div slot="status" slot-scope="scope">
<span :class="['task_icon',scope.scope.status==1?'green-icon':'yellow-icon']">{{ scope.scope.statusName }}</span>
</div>
=======
>>>>>>> 396e1482ded1b79e8dc9f700b1a584ff319bc981
<div class="table-btns" slot="optionBtns" slot-scope="scope">
<el-button type="text" @click="handleDetail(scope.scope)">短信内容</el-button>
</div>
</GLTable>
<<<<<<< HEAD
<GLDialog title="短信内容" :hasFooter="true" :content="messageContent" :visible.sync="dialogVisible" mode="small">
<span slot="footer" class="dialog-footer">
<el-button size="small" type="primary" @click="dialogVisible = false">确定</el-button>
</span>
</GLDialog>
=======
>>>>>>> 396e1482ded1b79e8dc9f700b1a584ff319bc981
</div>
</div>
</template>
......@@ -44,9 +50,13 @@ export default {
data() {
return {
loading: false,
<<<<<<< HEAD
messageContent: '',
tableSearchForm: {},
dialogVisible: false,
=======
tableSearchForm: {},
>>>>>>> 396e1482ded1b79e8dc9f700b1a584ff319bc981
tableData: [],
optionstatus: [
{
......@@ -76,8 +86,12 @@ export default {
},
{
label: '发送状态',
<<<<<<< HEAD
prop: 'statusName',
addHtml: 'status'
=======
prop: 'statusName'
>>>>>>> 396e1482ded1b79e8dc9f700b1a584ff319bc981
},
{
label: '发送时间',
......@@ -99,8 +113,12 @@ export default {
},
methods: {
handleDetail(scope) {
<<<<<<< HEAD
this.dialogVisible = true
this.messageContent = scope.content
=======
this.$alert(scope.content, { center: true })
>>>>>>> 396e1482ded1b79e8dc9f700b1a584ff319bc981
},
handleSearch() {
this.listChannelCodeByPage()
......@@ -143,7 +161,11 @@ export default {
this.listChannelCodeByPage()
}
}
<<<<<<< HEAD
</script>
=======
</script>
>>>>>>> 396e1482ded1b79e8dc9f700b1a584ff319bc981
<style>
.el-popover {
max-width: 800px;
......@@ -294,4 +316,8 @@ export default {
// top: 7px;
// }
}
<<<<<<< HEAD
</style>
=======
</style>
>>>>>>> 396e1482ded1b79e8dc9f700b1a584ff319bc981
......@@ -4,7 +4,11 @@
<div class="drainage-title">指定客户</div>
<div class="drainage-form">
<div class="drainage-form-item">
<<<<<<< HEAD
<label style="margin: 0 0 0 32px">指定方式:</label>
=======
<label>指定方式</label>
>>>>>>> 396e1482ded1b79e8dc9f700b1a584ff319bc981
<div class="upload-box drainage-type">
<el-radio-group v-model="selectType">
<el-radio :label="1">通过标签筛选</el-radio>
......@@ -14,7 +18,11 @@
</div>
</div>
<div class="drainage-form-item" v-if="selectType == 1">
<<<<<<< HEAD
<label style="margin: 0 0 0 32px">客户信息:</label>
=======
<label>客户信息</label>
>>>>>>> 396e1482ded1b79e8dc9f700b1a584ff319bc981
<div class="upload-box">
<el-button size="small" @click="handleScreenTag">
<i class="el-icon-plus"></i>
......@@ -36,7 +44,11 @@
</div>
</div>
<div class="drainage-form-item" v-if="selectType == 3">
<<<<<<< HEAD
<label style="margin: 0 0 0 32px">客户信息:</label>
=======
<label>客户信息</label>
>>>>>>> 396e1482ded1b79e8dc9f700b1a584ff319bc981
<div class="upload-box">
<el-button size="small" @click="handleCrowd">
<i class="el-icon-plus"></i>
......@@ -58,7 +70,11 @@
</div>
</div>
<div class="drainage-form-item" v-if="selectType == 2">
<<<<<<< HEAD
<label style="margin: 0 0 0 32px">客户信息:</label>
=======
<label>客户信息</label>
>>>>>>> 396e1482ded1b79e8dc9f700b1a584ff319bc981
<div class="upload-box">
<div class="upload-file-panel">
<div class="image-uploader">
......@@ -112,8 +128,13 @@
<div class="form-tips">提示:当前短信已有{{ addForm.content.length }}字,按{{ content.length }}条短信发送且计费。</div>
</el-form-item>
<div class="drainage-form-item">
<<<<<<< HEAD
<label>
自动打标签:
=======
<label style="width: 100px; text-align: left; color: #666">
自动打标签
>>>>>>> 396e1482ded1b79e8dc9f700b1a584ff319bc981
<el-popover placement="top" width="400" trigger="hover" content="提示:通过该营销活动添加员工企微的客户,将自动使用以下标签进行标记。">
<img src="@/assets/img/question.png" slot="reference" class="count-item-question" />
</el-popover>
......@@ -142,8 +163,13 @@
</div>
</div>
<div class="drainage-form-item" v-if="editStatus">
<<<<<<< HEAD
<label class="is-require" style="margin-left: 20px">
跟进员工:
=======
<label class="is-require">
跟进员工
>>>>>>> 396e1482ded1b79e8dc9f700b1a584ff319bc981
<el-popover placement="top" width="400" trigger="hover" content="用户点击短信中的链接后,将自动分配以下某位员工的企微名片,客户添加好友将自动回复后台所配置的欢迎语。">
<img src="@/assets/img/question.png" slot="reference" class="count-item-question" />
</el-popover>
......@@ -164,8 +190,13 @@
</div>
</div>
<div class="drainage-form-item" v-else>
<<<<<<< HEAD
<label style="margin-left: 20px">
跟进员工:
=======
<label>
跟进员工
>>>>>>> 396e1482ded1b79e8dc9f700b1a584ff319bc981
<el-popover placement="top" width="400" trigger="hover" content="用户点击短信中的链接后,将自动分配以下某位员工的企微名片,客户添加好友将自动回复后台所配置的欢迎语。">
<img src="@/assets/img/question.png" slot="reference" class="count-item-question" />
</el-popover>
......@@ -294,7 +325,12 @@ export default {
selectTag,
screenTag,
selectCrowd,
<<<<<<< HEAD
messageModel
=======
messageModel,
welcomeWords
>>>>>>> 396e1482ded1b79e8dc9f700b1a584ff319bc981
},
data() {
return {
......@@ -335,7 +371,10 @@ export default {
ModelItem: {},
merchantName: this.$globalState.session.merchantName,
addRules: {
<<<<<<< HEAD
imName: [{ required: true, message: '请输入营销名称', trigger: 'blur' }],
=======
>>>>>>> 396e1482ded1b79e8dc9f700b1a584ff319bc981
time: [
{ required: true, message: '请选择营销时间', trigger: 'change' },
{ validator: validateTime, trigger: 'change' }
......@@ -349,7 +388,7 @@ export default {
},
watch: {
'addForm.content': {
handler: function () {
handler: function() {
this.content = []
let str = this.addForm.content
let num = 70
......@@ -385,7 +424,7 @@ export default {
deep: true
},
tagging: {
handler: function () {
handler: function() {
this.taggingLength = 0
this.tagging.forEach(item => {
this.taggingLength += item.labelList.length
......@@ -477,8 +516,24 @@ export default {
goback() {
this.importStatus = false
},
<<<<<<< HEAD
handleSure() {
this.$router.push('/market/index')
=======
handleCancel() {
console.log(this.saveStatus)
if (this.saveStatus || (this.$refs.welcome && this.$refs.welcome.previewList.length > 0 && this.editStatus)) {
this.$confirm('当前有内容信息未保存,是否继续返回?', '提示', {
confirmButtonText: '确定',
cancelButtonText: '取消',
type: 'warning'
}).then(() => {
this.$router.push('/market/index')
})
} else {
this.$router.push('/market/index')
}
>>>>>>> 396e1482ded1b79e8dc9f700b1a584ff319bc981
},
handleCancel() {
console.log(this.saveStatus)
......@@ -636,7 +691,11 @@ export default {
const groupIds = this.crowding.map(item => item.crowdId)
let params = {
autoWelcome: this.autoWelcome ? 1 : 0,
<<<<<<< HEAD
imName: this.addForm.imName,
=======
imName: this.imName,
>>>>>>> 396e1482ded1b79e8dc9f700b1a584ff319bc981
imType: 2,
tagging: JSON.stringify(tagging),
filterTagging: JSON.stringify(this.filterTagging),
......@@ -666,6 +725,16 @@ export default {
}
return item
})
<<<<<<< HEAD
=======
this.$tracker.track({
selectType: this.selectType == 1 ? '通过标签筛选' : this.selectType == 2 ? '通过Excel导入' : '通过人群筛选',
marketInfo: `短信内容:${this.addForm.content},营销时间:${this.addForm.time},营销名称:${this.imName}`,
welcomeInfo: attachmentList,
pageName: '新增营销',
name: '提交'
})
>>>>>>> 396e1482ded1b79e8dc9f700b1a584ff319bc981
params.welcomeInfo = attachmentList
this.loading = true
this.$apis.marketing.exportAdd(params).then(res => {
......@@ -883,13 +952,21 @@ export default {
}
}
.drainage-wrap {
<<<<<<< HEAD
margin-bottom: 16px;
=======
margin-bottom: 20px;
>>>>>>> 396e1482ded1b79e8dc9f700b1a584ff319bc981
&:nth-child(2) {
margin-bottom: 20px;
}
&.drainage-bottom {
<<<<<<< HEAD
margin-bottom: 16px;
=======
margin-bottom: 60px;
>>>>>>> 396e1482ded1b79e8dc9f700b1a584ff319bc981
}
.drainage-title {
padding-left: 20px;
......@@ -1004,7 +1081,11 @@ export default {
.upload-box {
margin-bottom: 10px;
&.drainage-type {
<<<<<<< HEAD
margin-left: -28px;
=======
margin-left: -10px;
>>>>>>> 396e1482ded1b79e8dc9f700b1a584ff319bc981
}
.tag-count {
color: #666666;
......
......@@ -5,9 +5,15 @@
<el-tab-pane label="客户列表" name="second"></el-tab-pane>
</el-tabs>
<component :is="activeName == 'first' ? configInfo : customList"></component>
<<<<<<< HEAD
<!-- <GLFooter>
<el-button type="primary" @click="goback">返回</el-button>
</GLFooter> -->
=======
<GLFooter>
<el-button type="primary" @click="goback">返回</el-button>
</GLFooter>
>>>>>>> 396e1482ded1b79e8dc9f700b1a584ff319bc981
</div>
</template>
......
......@@ -14,7 +14,11 @@
</div>
<div class="square-tabel scrm-box-f">
<div class="square-tabel-form">
<<<<<<< HEAD
<GLCombiForm :rowNumber="1" ref="formSearch" :formObj="tableSearchForm" :formData="searchFormData" @handleOk="handleSearch" @handleRest="handleReset"></GLCombiForm>
=======
<GLCombiForm ref="formSearch" :formObj="tableSearchForm" :formData="searchFormData" @handleOk="handleSearch" @handleRest="handleReset"></GLCombiForm>
>>>>>>> 396e1482ded1b79e8dc9f700b1a584ff319bc981
<GLTable ref="employeeRef" :getListApi="getListApi" :searchForm="tableSearchForm" :tableParams="tableParams" :pageConf="pageConf" :beforeSearchFn="beforeSearchFn">
<div slot="imStatus" slot-scope="scope">
<span :class="['task_icon',scope.scope.imStatus==3?'green-icon':'yellow-icon']">{{ scope.scope.imStatusName }}</span>
......@@ -116,7 +120,11 @@ export default {
{
label: '创建人',
prop: 'createdName',
<<<<<<< HEAD
minWidth: '220px'
=======
width: '220px'
>>>>>>> 396e1482ded1b79e8dc9f700b1a584ff319bc981
},
{
label: '操作',
......
......@@ -27,7 +27,11 @@
</div>
</div>
</div>
<<<<<<< HEAD
<GLDialog @onOk="handleSure" @onCancel="handleCancel" title="提示" :visible.sync="dialogVisible" mode="small">
=======
<el-dialog title="提示" :visible.sync="dialogVisible" width="30%" :before-close="handleClose" top="30vh">
>>>>>>> 396e1482ded1b79e8dc9f700b1a584ff319bc981
<div class="dialog-body">
<div class="dialog-tips-icon"><i class="el-icon-warning"></i></div>
<div class="dialog-tips-text">点击继续将开始上传数据文件</div>
......@@ -36,13 +40,22 @@
,是否继续吗?
</div>
</div>
<<<<<<< HEAD
<!-- <div slot="footer" class="dialog-footer">
=======
<div slot="footer" class="dialog-footer">
>>>>>>> 396e1482ded1b79e8dc9f700b1a584ff319bc981
<el-button size="small" @click="handleCancel">
取 消
</el-button>
<el-button size="small" type="primary" @click="handleSure">确 定</el-button>
<<<<<<< HEAD
</div> -->
</GLDialog>
=======
</div>
</el-dialog>
>>>>>>> 396e1482ded1b79e8dc9f700b1a584ff319bc981
<div class="loading-containner" v-if="processLoading"></div>
</div>
</template>
......
......@@ -75,7 +75,11 @@
<div class="gl-form-page">
<el-form ref="configForm" label-width="154px" :model="addForm" :rules="addRules" class="code-body-form">
<el-form-item label="推送时间:">系统将在「开始营销时间」之后启动智系统将在「开始营销时间」之后启动短信营销,并在「截止营销时间」之后停止短信发送。由于相关管控限制,营销类短信无法实时触达用户,若短信时效要求很高,请谨慎使用。</el-form-item>
<<<<<<< HEAD
<el-form-item size="small" label="营销时间:" prop="time">
=======
<el-form-item size="small" label="营销时间" prop="time">
>>>>>>> 396e1482ded1b79e8dc9f700b1a584ff319bc981
<el-time-picker is-range :disabled="!editStatus" value-format="HH:mm" format="HH:mm" v-model="addForm.time" range-separator="至" start-placeholder="开始时间" end-placeholder="结束时间" placeholder="选择时间范围"></el-time-picker>
</el-form-item>
<el-form-item label="短信内容:" prop="content">
......@@ -89,8 +93,13 @@
<div class="form-tips">提示:当前短信已有{{ addForm.content.length }}字,按{{ content.length }}条短信发送且计费。</div>
</el-form-item>
<div class="drainage-form-item">
<<<<<<< HEAD
<label style="width: 140px;font-size:14px; text-align: right; color: #666">
自动打标签:
=======
<label style="width: 100px; text-align: left; color: #666">
自动打标签
>>>>>>> 396e1482ded1b79e8dc9f700b1a584ff319bc981
<el-popover placement="top" width="400" trigger="hover" content="提示:通过该营销活动添加员工企微的客户,将自动使用以下标签进行标记。">
<img src="@/assets/img/question.png" slot="reference" class="count-item-question" />
</el-popover>
......@@ -120,8 +129,13 @@
</div>
</div>
<div class="drainage-form-item" v-if="editStatus">
<<<<<<< HEAD
<label class="is-require" style="width: 140px;font-size:14px; text-align: right; color: #666">
跟进员工:
=======
<label class="is-require">
跟进员工
>>>>>>> 396e1482ded1b79e8dc9f700b1a584ff319bc981
<el-popover placement="top" width="400" trigger="hover" content="用户点击短信中的链接后,将自动分配以下某位员工的企微名片,客户添加好友将自动回复后台所配置的欢迎语。">
<img src="@/assets/img/question.png" slot="reference" class="count-item-question" />
</el-popover>
......@@ -142,8 +156,13 @@
</div>
</div>
<div class="drainage-form-item" v-else>
<<<<<<< HEAD
<label style="width: 140px;font-size:14px; text-align: right; color: #666;margin-left:20px;">
跟进员工:
=======
<label>
跟进员工
>>>>>>> 396e1482ded1b79e8dc9f700b1a584ff319bc981
<el-popover placement="top" width="400" trigger="hover" content="用户点击短信中的链接后,将自动分配以下某位员工的企微名片,客户添加好友将自动回复后台所配置的欢迎语。">
<img src="@/assets/img/question.png" slot="reference" class="count-item-question" />
</el-popover>
......@@ -443,6 +462,7 @@ export default {
this.saveStatus = true
}
if (this.saveStatus) {
<<<<<<< HEAD
this.dialogVisibleTips = true
} else {
this.$router.go(-1)
......@@ -450,6 +470,18 @@ export default {
},
handleSure() {
this.$router.go(-1)
=======
this.$confirm('当前有内容信息未保存,是否继续返回?', '提示', {
confirmButtonText: '确定',
cancelButtonText: '取消',
type: 'warning'
}).then(() => {
this.$router.go(-1)
})
} else {
this.$router.go(-1)
}
>>>>>>> 396e1482ded1b79e8dc9f700b1a584ff319bc981
},
//开关
handleSwitch() {
......
......@@ -417,8 +417,13 @@ export default {
}
.squre-safe-panel {
padding: 40px;
<<<<<<< HEAD
margin-top: 10px;
margin-bottom: 16px;
=======
margin-top: 20px;
// margin-bottom: 60px;
>>>>>>> 396e1482ded1b79e8dc9f700b1a584ff319bc981
/deep/ {
.el-carousel__indicators,
.el-carousel__arrow {
......
......@@ -244,12 +244,20 @@ export default {
}
},
{
<<<<<<< HEAD
label: '数据处理状态',
prop: 'state',
addHtml: 'state',
// formatter: cellValue => {
// return cellValue.state == 1 ? '已处理' : '处理中'
// }
=======
label: '事件处理状态',
prop: 'state',
formatter: cellValue => {
return cellValue.state == 1 ? '已处理' : '处理中'
}
>>>>>>> 396e1482ded1b79e8dc9f700b1a584ff319bc981
},
{
label: '导入人员',
......@@ -307,9 +315,15 @@ export default {
jumpDetail(status) {
let url
if (status) {
<<<<<<< HEAD
url = `/custom/clientManage/index?isJoin=${status}&addWay=数据魔方`
} else {
url = `/custom/clientManage/index?addWay=数据魔方`
=======
url = `/custom/clientManage/index?isJoin=${status}&addWay=企微魔方`
} else {
url = `/custom/clientManage/index?addWay=企微魔方`
>>>>>>> 396e1482ded1b79e8dc9f700b1a584ff319bc981
}
this.$history.push(url)
},
......@@ -358,10 +372,15 @@ export default {
}
}
this.$apis.square.queryCrowdTree(params).then(res => {
<<<<<<< HEAD
if (res && res.crowdUnitList) {
const crowdUnitList = res.crowdUnitList.find(item => item.crowdName == '已加企微,待匹配客户')
this.crowdId = crowdUnitList ? crowdUnitList.crowdId : ''
}
=======
const crowdUnitList = res.crowdUnitList.find(item => item.crowdName == '已加企微,待匹配客户')
this.crowdId = crowdUnitList.crowdId
>>>>>>> 396e1482ded1b79e8dc9f700b1a584ff319bc981
})
}
},
......@@ -522,7 +541,11 @@ export default {
}
}
.coustom-box-container {
<<<<<<< HEAD
margin-top: 16px;
=======
margin-top: 20px;
>>>>>>> 396e1482ded1b79e8dc9f700b1a584ff319bc981
background: #ffffff;
.square-title {
height: 55px;
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!