Commit f1621972 by 杨明

fixed

1 parent 32c9596d
...@@ -13,7 +13,7 @@ ...@@ -13,7 +13,7 @@
"core-js": "^3.4.4", "core-js": "^3.4.4",
"el-tree-transfer": "^2.2.6", "el-tree-transfer": "^2.2.6",
"glsx-common": "^1.4.6", "glsx-common": "^1.4.6",
"glsx-components": "^1.3.7", "glsx-components": "^1.5.3",
"glsx-table": "^1.0.9", "glsx-table": "^1.0.9",
"vue-draggable-resizable": "^2.3.0", "vue-draggable-resizable": "^2.3.0",
"vuedraggable": "^2.24.3", "vuedraggable": "^2.24.3",
...@@ -38,7 +38,7 @@ ...@@ -38,7 +38,7 @@
"prettier": "^1.19.1", "prettier": "^1.19.1",
"sass-loader": "^8.0.0", "sass-loader": "^8.0.0",
"vue-cli-plugin-element": "^1.0.1", "vue-cli-plugin-element": "^1.0.1",
"vue-template-compiler": "^2.6.10" "vue-template-compiler": "^2.7.14"
}, },
"browserslist": [ "browserslist": [
"> 1%", "> 1%",
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
* @Author: yangming yangming@didihu.com.cn * @Author: yangming yangming@didihu.com.cn
* @Date: 2022-10-12 09:30:11 * @Date: 2022-10-12 09:30:11
* @LastEditors: yangming yangming@didihu.com.cn * @LastEditors: yangming yangming@didihu.com.cn
* @LastEditTime: 2022-10-19 14:07:55 * @LastEditTime: 2022-11-25 10:43:38
* @FilePath: \scrm-micro-drainage\src\api\modules\businessCard.js * @FilePath: \scrm-micro-drainage\src\api\modules\businessCard.js
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
*/ */
...@@ -121,7 +121,39 @@ const pagerecord = params => { ...@@ -121,7 +121,39 @@ const pagerecord = params => {
sign: true sign: true
}) })
} }
// 导出活动申请记录
const activityExport = params => {
params.method = 'entmicro.api.business.card.activity.export'
params.sessionId = session
return http({
url: '/rop-scrm-entmicro/router',
method: 'POST',
data: params,
sign: true
})
}
// 导出智能名片分页列表
const cardExport = params => {
params.method = 'entmicro.api.business.card.export'
params.sessionId = session
return http({
url: '/rop-scrm-entmicro/router',
method: 'POST',
data: params,
sign: true
})
}
// 导出访客记录
const cardRecordExport = params => {
params.method = 'entmicro.api.business.cardRecord.export'
params.sessionId = session
return http({
url: '/rop-scrm-entmicro/router',
method: 'POST',
data: params,
sign: true
})
}
export default { export default {
getBussinessCardListApi, getBussinessCardListApi,
delBussinessCardApi, delBussinessCardApi,
...@@ -132,5 +164,8 @@ export default { ...@@ -132,5 +164,8 @@ export default {
activityFollow, activityFollow,
activityRecord, activityRecord,
activityApply, activityApply,
pagerecord pagerecord,
activityExport,
cardRecordExport,
cardExport
} }
...@@ -3,8 +3,8 @@ ...@@ -3,8 +3,8 @@
* @version: * @version:
* @Author: limin * @Author: limin
* @Date: 2021-06-07 14:12:32 * @Date: 2021-06-07 14:12:32
* @LastEditors: limin * @LastEditors: yangming yangming@didihu.com.cn
* @LastEditTime: 2021-09-07 14:38:52 * @LastEditTime: 2022-11-25 13:57:31
*/ */
// 根据环境引入不同配置 process.env.VUE_APP_ENV // 根据环境引入不同配置 process.env.VUE_APP_ENV
// let request = require('@/http/request.js') // let request = require('@/http/request.js')
......
/*
* @Author: yangming yangming@didihu.com.cn
* @Date: 2022-11-25 10:20:02
* @LastEditors: yangming yangming@didihu.com.cn
* @LastEditTime: 2022-11-25 13:37:55
* @FilePath: \scrm-micro-drainage\src\setup\qiankun.js
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
*/
import Vue from 'vue' import Vue from 'vue'
// import { message } from '@/plugins/element.js' // import { message } from '@/plugins/element.js'
import { fetchConfig } from '@/config' import { fetchConfig } from '@/config'
...@@ -23,7 +31,7 @@ export async function bootstrap({ name, id, history, common, messenger, globalSt ...@@ -23,7 +31,7 @@ export async function bootstrap({ name, id, history, common, messenger, globalSt
Vue.prototype.$messenger = messenger Vue.prototype.$messenger = messenger
Vue.prototype.$globalState = globalState Vue.prototype.$globalState = globalState
Vue.prototype.$common = common Vue.prototype.$common = common
Vue.prototype.$http = new common.Http({ response, request, sign, secret, alert: ElementUI.Message.error, headers: { token: globalState.session.token } }) Vue.prototype.$http = new common.Http({ response, request, sign, secret, alert: ElementUI.Message.error, headers: { token: 'scrm-base-fd30e9d8-aea4-4367-936d-3e7a9cdaa18d-rop' } })
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_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 } }) 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 } })
const routesData = common.utils.deepClone(globalState.routers) const routesData = common.utils.deepClone(globalState.routers)
......
...@@ -81,14 +81,15 @@ util.openUrl = function(url) { ...@@ -81,14 +81,15 @@ util.openUrl = function(url) {
} }
util.downloadUrl = function(url) { util.downloadUrl = function(url) {
const link = document.createElement('a') const link = document.createElement('a')
link.href = url link.href = url.replace(/(http|https):/, '')
document.body.appendChild(link) document.body.appendChild(link)
link.click() link.click()
document.body.removeChild(link) document.body.removeChild(link)
} }
util.getArrayIsSubset = (arr2, arr1) => { util.getArrayIsSubset = (arr2, arr1) => {
const filterArr = arr2.map(item => item.replace(/\s/g, ''))
return arr1.every(item => { return arr1.every(item => {
return arr2.includes(item) return filterArr.includes(item.replace(/\s/g, ''))
}) })
} }
util.downloadIamge = function(imgsrc, name = new Date().getTime()) { util.downloadIamge = function(imgsrc, name = new Date().getTime()) {
......
...@@ -2,6 +2,12 @@ ...@@ -2,6 +2,12 @@
<div> <div>
<div class="form-panel scrm-box-f"> <div class="form-panel scrm-box-f">
<GLCombiForm :rowNumber="1" ref="formSearch" :formObj="tableSearchForm" :formData="searchFormData" @handleOk="handleSearch" @handleRest="handleReset"></GLCombiForm> <GLCombiForm :rowNumber="1" ref="formSearch" :formObj="tableSearchForm" :formData="searchFormData" @handleOk="handleSearch" @handleRest="handleReset"></GLCombiForm>
<div class="tabel-header">
<div class="tabel-header-title">活动申请列表</div>
<el-button plain size="small" @click="handleExport">
导出
</el-button>
</div>
<GLTable v-loading="loading" ref="table" @refreshTable="handleSearch" :searchForm="tableSearchForm" :layout="layout" :tableData="tableData" :tableTotal="tableTotal" :pageConf="pageConf" :tableParams="tableParams"> <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"> <div class="table-btns" slot="optionBtns" slot-scope="scope">
<el-button type="text" @click="accessToRecords(scope.scope)">访问记录</el-button> <el-button type="text" @click="accessToRecords(scope.scope)">访问记录</el-button>
...@@ -70,7 +76,6 @@ ...@@ -70,7 +76,6 @@
<script> <script>
import util from '@/utils/util' import util from '@/utils/util'
export default { export default {
name: 'activityList', name: 'activityList',
data() { data() {
...@@ -204,6 +209,13 @@ export default { ...@@ -204,6 +209,13 @@ export default {
} }
}, },
methods: { methods: {
//导出
handleExport() {
let params = this.getParams(1)
this.$apis.businessCard.activityExport(params).then(res => {
util.downloadUrl(res)
})
},
productItem(row) { productItem(row) {
return (row && row.split(',')) || [] return (row && row.split(',')) || []
}, },
...@@ -259,20 +271,22 @@ export default { ...@@ -259,20 +271,22 @@ export default {
this.dialogVisibleDel = true this.dialogVisibleDel = true
this.selectItem = scope this.selectItem = scope
}, },
activityRecord() { getParams(status) {
if (this.tableSearchForm.createTime) { if (this.tableSearchForm.createTime) {
this.tableSearchForm.startApplyDate = new Date(this.tableSearchForm.createTime[0]).toLocaleDateString().replace(/\//g, '/') this.tableSearchForm.startApplyDate = new Date(this.tableSearchForm.createTime[0]).toLocaleDateString().replace(/\//g, '/')
this.tableSearchForm.endApplyDate = new Date(this.tableSearchForm.createTime[1]).toLocaleDateString().replace(/\//g, '/') this.tableSearchForm.endApplyDate = new Date(this.tableSearchForm.createTime[1]).toLocaleDateString().replace(/\//g, '/')
} }
const params = { const params = {
...JSON.parse(JSON.stringify(this.tableSearchForm)), ...JSON.parse(JSON.stringify(this.tableSearchForm)),
pageSize: this.$refs.table.page.pageSize, pageSize: status ? 100000 : this.$refs.table.page.pageSize,
pageNum: this.$refs.table.page.pageNum pageNum: this.$refs.table.page.pageNum
} }
delete params.createTime delete params.createTime
return params
},
activityRecord() {
const params = this.getParams()
this.loading = true this.loading = true
this.$apis.businessCard.activityRecord(params).then(res => { this.$apis.businessCard.activityRecord(params).then(res => {
this.loading = false this.loading = false
if (res) { if (res) {
...@@ -293,6 +307,16 @@ export default { ...@@ -293,6 +307,16 @@ export default {
} }
</style> </style>
<style lang="scss" scoped> <style lang="scss" scoped>
.tabel-header {
display: flex;
justify-content: space-between;
margin-bottom: 10px;
&-title {
color: #333333;
font-size: 18px;
font-weight: 600;
}
}
.product-item { .product-item {
line-height: 26px; line-height: 26px;
padding: 0 8px; padding: 0 8px;
......
...@@ -8,6 +8,12 @@ ...@@ -8,6 +8,12 @@
</div> </div>
<div class="form-panel scrm-box-f"> <div class="form-panel scrm-box-f">
<GLCombiForm :rowNumber="1" ref="formSearch" :formObj="tableSearchForm" :formData="searchFormData" @handleOk="handleSearch" @handleRest="handleReset"></GLCombiForm> <GLCombiForm :rowNumber="1" ref="formSearch" :formObj="tableSearchForm" :formData="searchFormData" @handleOk="handleSearch" @handleRest="handleReset"></GLCombiForm>
<div class="tabel-header">
<div class="tabel-header-title">智能名片列表</div>
<el-button plain size="small" @click="handleExport">
导出
</el-button>
</div>
<GLTable v-loading="loading" ref="table" @refreshTable="handleSearch" :searchForm="tableSearchForm" :layout="layout" :tableData="tableData" :tableTotal="tableTotal" :pageConf="pageConf" :tableParams="tableParams"> <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"> <div class="table-btns" slot="optionBtns" slot-scope="scope">
<GLTableButton :buttonList="tableButtonList" :buttonItem="scope.scope" :buttonNum="3"></GLTableButton> <GLTableButton :buttonList="tableButtonList" :buttonItem="scope.scope" :buttonNum="3"></GLTableButton>
...@@ -192,6 +198,12 @@ export default { ...@@ -192,6 +198,12 @@ export default {
} }
}, },
methods: { methods: {
handleExport() {
let params = this.getParams()
this.$apis.businessCard.cardExport(params).then(res => {
util.downloadUrl(res)
})
},
//员工详情 //员工详情
handleEmpDetail(scope, status) { handleEmpDetail(scope, status) {
this.$refs.empDetailForm.init(scope, status) this.$refs.empDetailForm.init(scope, status)
...@@ -248,12 +260,16 @@ export default { ...@@ -248,12 +260,16 @@ export default {
this.dialogVisibleDel = true this.dialogVisibleDel = true
this.selectItem = scope this.selectItem = scope
}, },
listBussinessCardByPage() { getParams(status) {
const params = { const params = {
...JSON.parse(JSON.stringify(this.tableSearchForm)), ...JSON.parse(JSON.stringify(this.tableSearchForm)),
pageSize: this.$refs.table.page.pageSize, pageSize: status ? 100000 : this.$refs.table.page.pageSize,
pageNum: this.$refs.table.page.pageNum pageNum: this.$refs.table.page.pageNum
} }
return params
},
listBussinessCardByPage() {
const params = this.getParams()
this.loading = true this.loading = true
this.$apis.businessCard.getBussinessCardListApi(params).then(res => { this.$apis.businessCard.getBussinessCardListApi(params).then(res => {
...@@ -276,6 +292,16 @@ export default { ...@@ -276,6 +292,16 @@ export default {
} }
</style> </style>
<style lang="scss" scoped> <style lang="scss" scoped>
.tabel-header {
display: flex;
justify-content: space-between;
margin-bottom: 10px;
&-title {
color: #333333;
font-size: 18px;
font-weight: 600;
}
}
.link-dialog { .link-dialog {
text-decoration: underline; text-decoration: underline;
cursor: pointer; cursor: pointer;
......
...@@ -20,12 +20,17 @@ ...@@ -20,12 +20,17 @@
</div> </div>
<div class="titleAndTime"> <div class="titleAndTime">
<div class="listTitle">访问列表</div> <div class="listTitle">访问列表</div>
<el-radio-group v-model="timeRadio" size="mini" @change="handleTab"> <div>
<el-radio-button label="1">今天</el-radio-button> <el-radio-group v-model="timeRadio" size="mini" @change="handleTab">
<el-radio-button label="2">本周</el-radio-button> <el-radio-button label="1">今天</el-radio-button>
<el-radio-button label="3">本月</el-radio-button> <el-radio-button label="2">本周</el-radio-button>
<el-radio-button label="4">今年</el-radio-button> <el-radio-button label="3">本月</el-radio-button>
</el-radio-group> <el-radio-button label="4">今年</el-radio-button>
</el-radio-group>
<el-button style="margin-left:20px" plain size="small" @click="handleExport">
导出
</el-button>
</div>
</div> </div>
<GLTable ref="table" :layout="layout" :tableData="tableData" :tableTotal="tableTotal" :pageConf="pageConf" :tableParams="tableParams" @refreshTable="handleSearch"> <GLTable ref="table" :layout="layout" :tableData="tableData" :tableTotal="tableTotal" :pageConf="pageConf" :tableParams="tableParams" @refreshTable="handleSearch">
<div class="table-btns" slot="optionBtns" slot-scope="scope"> <div class="table-btns" slot="optionBtns" slot-scope="scope">
...@@ -50,6 +55,7 @@ ...@@ -50,6 +55,7 @@
</template> </template>
<script> <script>
import util from '@/utils/util'
export default { export default {
name: 'recordList', name: 'recordList',
data() { data() {
...@@ -144,6 +150,12 @@ export default { ...@@ -144,6 +150,12 @@ export default {
} }
}, },
methods: { methods: {
handleExport() {
const params = this.getParams(1)
this.$apis.businessCard.cardRecordExport(params).then(res => {
util.downloadUrl(res)
})
},
// 查看访问记录弹框 // 查看访问记录弹框
accessToRecords(scope) { accessToRecords(scope) {
this.dialogTableVisible = true this.dialogTableVisible = true
...@@ -191,19 +203,22 @@ export default { ...@@ -191,19 +203,22 @@ export default {
handleSearch() { handleSearch() {
this.codeSearch() this.codeSearch()
}, },
codeSearch() { getParams(status) {
if (this.tableSearchForm.createTime) { if (this.tableSearchForm.createTime) {
this.tableSearchForm.startDate = new Date(this.tableSearchForm.createTime[0]).toLocaleDateString().replace(/\//g, '-') this.tableSearchForm.startDate = new Date(this.tableSearchForm.createTime[0]).toLocaleDateString().replace(/\//g, '-')
this.tableSearchForm.endDate = new Date(this.tableSearchForm.createTime[1]).toLocaleDateString().replace(/\//g, '-') this.tableSearchForm.endDate = new Date(this.tableSearchForm.createTime[1]).toLocaleDateString().replace(/\//g, '-')
} }
let params = { let params = {
...JSON.parse(JSON.stringify(this.tableSearchForm)), ...JSON.parse(JSON.stringify(this.tableSearchForm)),
pageSize: this.$refs.table.page.pageSize, pageSize: status ? 100000 : this.$refs.table.page.pageSize,
pageNum: this.$refs.table.page.pageNum, pageNum: this.$refs.table.page.pageNum,
dateInterval: this.dateInterval dateInterval: this.dateInterval
} }
delete params.createTime delete params.createTime
return params
},
codeSearch() {
const params = this.getParams()
this.sendPageListApi(params) this.sendPageListApi(params)
}, },
sendPageListApi(params) { sendPageListApi(params) {
......
...@@ -64,9 +64,9 @@ ...@@ -64,9 +64,9 @@
<script> <script>
import utils from '@/utils/util' import utils from '@/utils/util'
import linechart from './linechart' import linechart from '@/components/linechart'
import selectChannel from './selectChannel' import selectChannel from '@/components/selectChannel'
import empDetail from './empDetail.vue' import empDetail from '@/components/empDetail'
export default { export default {
name: 'channelStatistics', name: 'channelStatistics',
components: { components: {
......
...@@ -151,21 +151,20 @@ export default { ...@@ -151,21 +151,20 @@ export default {
label: '客户性别', label: '客户性别',
prop: 'customerSex', prop: 'customerSex',
formatter: cellValue => { formatter: cellValue => {
console.log(cellValue)
return cellValue.customerSex == 1 ? '男' : '女' return cellValue.customerSex == 1 ? '男' : '女'
}, },
width: '80px' minWidth: 100
}, },
{ {
label: '状态', label: '状态',
prop: 'status', prop: 'status',
addHtml: 'status', addHtml: 'status',
width: '80px' minWidth: 100
}, },
{ {
label: '跟进员工', label: '跟进员工',
prop: 'followStaff', prop: 'followStaff',
width: '80px' minWidth: 100
}, },
{ {
label: '添加时间', label: '添加时间',
...@@ -174,7 +173,7 @@ export default { ...@@ -174,7 +173,7 @@ export default {
{ {
label: '操作', label: '操作',
prop: 'optionBtns', prop: 'optionBtns',
width: '80px', minWidth: '80px',
addHtml: 'optionBtns' addHtml: 'optionBtns'
} }
] ]
...@@ -230,6 +229,7 @@ export default { ...@@ -230,6 +229,7 @@ export default {
}) })
}, },
init(item, value, day) { init(item, value, day) {
this.createTime = [] this.createTime = []
this.pStatus = null this.pStatus = null
this.staffIds = null this.staffIds = null
......
<template> <template>
<div class="square-main"> <div class="square-main">
<el-dialog title="选择渠道" :visible.sync="dialogVisible" width="70%" :before-close="handleCancel"> <GLDialog title="选择渠道" :visible.sync="dialogVisible" @onOk="handleSelect" @onCancel="handleCancel" mode="big">
<div class="square-tabel"> <div class="square-tabel">
<div class="square-tabel-select"> <div class="square-tabel-select">
<GLTable ref="table" :hasPage="false" :tableData="tableData" :tableTotal="tableTotal" :tableParams="tableParams" @refreshTable="handleSearch" @selectionTable="selectionTable"></GLTable> <GLTable ref="table" :hasPage="false" :tableData="tableData" :tableTotal="tableTotal" :tableParams="tableParams" @refreshTable="handleSearch" @selectionTable="selectionTable"></GLTable>
...@@ -10,7 +10,7 @@ ...@@ -10,7 +10,7 @@
<div class="selected-panel"> <div class="selected-panel">
<div class="selected-item" v-for="(item, index) in selectedList" :key="index"> <div class="selected-item" v-for="(item, index) in selectedList" :key="index">
<div :title="item.codeName"> <div :title="item.codeName">
<span :style="{ background: colorList[index]}"></span> <span :style="{ background: colorList[index] }"></span>
{{ item.codeName }} {{ item.codeName }}
</div> </div>
<img src="@/assets/img/channel/del.png" @click="delTag(item)" /> <img src="@/assets/img/channel/del.png" @click="delTag(item)" />
...@@ -22,7 +22,7 @@ ...@@ -22,7 +22,7 @@
<el-button size="small" @click="handleCancel">取 消</el-button> <el-button size="small" @click="handleCancel">取 消</el-button>
<el-button size="small" type="primary" @click="handleSelect">确 定</el-button> <el-button size="small" type="primary" @click="handleSelect">确 定</el-button>
</span> </span>
</el-dialog> </GLDialog>
</div> </div>
</template> </template>
...@@ -104,7 +104,7 @@ export default { ...@@ -104,7 +104,7 @@ export default {
this.dialogVisible = false this.dialogVisible = false
this.$refs.table.$refs.salelistMutiTable.clearSelection() this.$refs.table.$refs.salelistMutiTable.clearSelection()
}, },
handleSelect: utils.debounce(function () { handleSelect: utils.debounce(function() {
if (this.selectedList.length == 0) { if (this.selectedList.length == 0) {
this.$message.error('请选择渠道') this.$message.error('请选择渠道')
return return
...@@ -119,7 +119,7 @@ export default { ...@@ -119,7 +119,7 @@ export default {
}, 300) }, 300)
} }
} }
</script> </script>
<style lang="scss" scoped> <style lang="scss" scoped>
.square-main { .square-main {
...@@ -154,11 +154,11 @@ export default { ...@@ -154,11 +154,11 @@ export default {
white-space: nowrap; white-space: nowrap;
} }
span { span {
vertical-align: middle; vertical-align: middle;
display: inline-block; display: inline-block;
width: 12px; width: 12px;
height: 2px; height: 2px;
margin-right: 10px; margin-right: 10px;
} }
img { img {
width: 16px; width: 16px;
...@@ -182,4 +182,4 @@ export default { ...@@ -182,4 +182,4 @@ export default {
} }
} }
} }
</style>
\ No newline at end of file \ No newline at end of file
</style>
<!--
* @Author: yangming yangming@didihu.com.cn
* @Date: 2022-10-12 09:30:11
* @LastEditors: yangming yangming@didihu.com.cn
* @LastEditTime: 2022-11-23 09:50:08
* @FilePath: \scrm-micro-drainage\src\views\channel\index.vue
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
-->
<template> <template>
<div class="channel-main"> <div class="channel-main">
<el-tabs v-model="activeName" @tab-click="handleClick"> <GLTabs v-model="activeName" :tabPaneList="tabPaneList" class="tabs-panel"></GLTabs>
<el-tab-pane label="渠道码列表" name="first"></el-tab-pane>
<el-tab-pane label="数据统计" name="second"></el-tab-pane>
</el-tabs>
<channel-list v-if="activeName == 'first'"></channel-list> <channel-list v-if="activeName == 'first'"></channel-list>
<channel-statistics v-if="activeName == 'second'"></channel-statistics> <channel-statistics v-if="activeName == 'second'"></channel-statistics>
</div> </div>
...@@ -12,6 +17,7 @@ ...@@ -12,6 +17,7 @@
<script> <script>
import channelList from './components/channelList' import channelList from './components/channelList'
import channelStatistics from './components/channelStatistics' import channelStatistics from './components/channelStatistics'
import a from '@/api/modules/channel'
export default { export default {
name: 'channel', name: 'channel',
components: { components: {
...@@ -20,10 +26,31 @@ export default { ...@@ -20,10 +26,31 @@ export default {
}, },
data() { data() {
return { return {
activeName: 'first' activeName: 'first',
tabPaneList: [
{
label: '渠道码列表',
name: 'first'
},
{
label: '数据统计',
name: 'second'
}
]
} }
}, },
methods: { methods: {
render(createElement) {
createElement(
'div',
{
class: {
'channel-main': true
}
},
[createElement('el-tabs', {})]
)
},
jumpWx() { jumpWx() {
this.$history.push('/settings/enterpriseWechat/index') this.$history.push('/settings/enterpriseWechat/index')
}, },
...@@ -55,6 +82,7 @@ export default { ...@@ -55,6 +82,7 @@ export default {
this.$message.closeAll() this.$message.closeAll()
}, },
mounted() { mounted() {
console.log(a)
this.wxTips() this.wxTips()
} }
} }
...@@ -62,10 +90,8 @@ export default { ...@@ -62,10 +90,8 @@ export default {
<style lang="scss" scoped> <style lang="scss" scoped>
.channel-main { .channel-main {
/deep/ { .tabs-panel {
.el-tabs__nav-wrap::after { margin-bottom: 10px;
height: 0px;
}
} }
} }
</style> </style>
<template> <template>
<div class="channel-main scrm-box-f" v-loading="loading"> <div class="channel-main scrm-box-f" v-loading="loading">
<div class="channel-header">
<el-button type="primary" size="small" @click="goBack">返回</el-button>
</div>
<div class="poster-body"> <div class="poster-body">
<div class="poster-item" @click="setPoster(item)" @mouseenter="item.show = true" @mouseleave="item.show = false" v-for="(item, index) in posterList" :key="index"> <div class="poster-item" @click="setPoster(item)" @mouseenter="item.show = true" @mouseleave="item.show = false" v-for="(item, index) in posterList" :key="index">
<div class="poster-del" v-show="item.show" @click.stop="handleDelete(item.id)"> <div class="poster-del" v-show="item.show" @click.stop="handleDelete(item.id)">
...@@ -36,9 +33,9 @@ ...@@ -36,9 +33,9 @@
</div> </div>
</div> </div>
</div> </div>
<el-dialog v-loading="loadingDrag" title="创建活码海报" :visible.sync="dialogVisible" width="50%" :before-close="handleClose"> <el-dialog title="创建活码海报" :visible.sync="dialogVisible">
<div class="poster-draggable-title">拖动活码可调整活码位置</div> <div class="poster-draggable-title">拖动活码可调整活码位置</div>
<div class="poster-draggable"> <div class="poster-draggable" v-loading="loadingDrag">
<div <div
class="poster-image" class="poster-image"
v-if="dragHeight" v-if="dragHeight"
...@@ -58,7 +55,7 @@ ...@@ -58,7 +55,7 @@
:style="{ :style="{
'background-image': 'url(' + codeUrl + ')' 'background-image': 'url(' + codeUrl + ')'
}" }"
:parent="true" parent=".poster-image"
@dragging="onDrag" @dragging="onDrag"
@resizing="onResize" @resizing="onResize"
:customId="index" :customId="index"
...@@ -255,11 +252,10 @@ export default { ...@@ -255,11 +252,10 @@ export default {
getDraggable(img_url) { getDraggable(img_url) {
let img = new Image() let img = new Image()
img.src = img_url img.src = img_url
let self = this img.onload = () => {
img.onload = function() { this.dragHeight = (img.height * 375) / img.width
self.dragHeight = (img.height * 375) / img.width this.dialogVisible = true
self.dialogVisible = true this.loading = false
self.loading = false
} }
} }
}, },
...@@ -303,6 +299,8 @@ export default { ...@@ -303,6 +299,8 @@ export default {
.poster-draggable { .poster-draggable {
display: flex; display: flex;
justify-content: center; justify-content: center;
// height: 500px;
// overflow: auto;
.poster-image { .poster-image {
background-size: 100% 100%; background-size: 100% 100%;
width: 375px; width: 375px;
......
<template> <template>
<div class="channel-main scrm-box-f"> <div class="channel-main scrm-box-f">
<div><el-button type="primary" size="small" @click="goback">返回</el-button></div>
<div class="detail-form"> <div class="detail-form">
<el-form :model="detailCodeForm" label-width="120px"> <el-form :model="detailCodeForm" label-width="120px">
<el-row> <el-row>
...@@ -12,20 +11,43 @@ ...@@ -12,20 +11,43 @@
<el-row> <el-row>
<el-form-item size="small" label="使用员工:"> <el-form-item size="small" label="使用员工:">
<div class="form-row"> <div class="form-row">
<div class="emp-item" v-for="(item, index) in detailCodeForm.staffInfo" :key="index"> <template v-for="(item, index) in detailCodeForm.staffInfo">
<i class="el-icon-user-solid"></i> <div class="emp-item" :key="index" v-if="index < 10">
{{ item.staffName }} <i class="el-icon-user-solid"></i>
</div> {{ item.staffName }}
</div>
<template v-if="detailCodeForm.staffInfo.length > 10 && index == 10">
<el-popover placement="top" width="600" trigger="hover" :key="index">
<span slot="reference" class="emp-item">...({{ detailCodeForm.staffInfo.length }})</span>
<div class="form-row">
<div class="emp-item" :key="index1" v-for="(item, index1) in detailCodeForm.staffInfo">
<i class="el-icon-user-solid"></i>
{{ item.staffName }}
</div>
</div>
</el-popover>
</template>
</template>
</div> </div>
</el-form-item> </el-form-item>
</el-row> </el-row>
<el-row> <el-row>
<el-form-item size="small" label="标签:"> <el-form-item size="small" label="标签:">
<div class="form-row"> <div class="form-row">
<template v-for="item in tagging"> <template v-for="(tag, idx) in tagging">
<div class="tag-item" v-for="(tag, idx) in item.labelList" :key="idx"> <div class="tag-item" :key="idx" v-if="idx < 10">
{{ tag.name }} {{ tag }}
</div> </div>
<template v-if="tagging.length > 10 && idx == 10">
<el-popover placement="top" width="600" trigger="hover" :key="idx">
<span slot="reference" class="emp-item">...({{ tagging.length }})</span>
<div class="form-row">
<div class="tag-item" v-for="(tag, idx1) in tagging" :key="idx1">
{{ tag }}
</div>
</div>
</el-popover>
</template>
</template> </template>
</div> </div>
</el-form-item> </el-form-item>
...@@ -34,14 +56,14 @@ ...@@ -34,14 +56,14 @@
<div class="count-panel"> <div class="count-panel">
<div class="count-panel-item"> <div class="count-panel-item">
<div class="count-item-title">今日新增客户</div> <div class="count-item-title">今日新增客户</div>
<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>
<div class="count-item-num2" v-else>0人</div> <div class="count-item-num2" v-else>0人</div>
<img src="@/assets/img/channel/count3.png" class="count-item-icon" /> <img src="@/assets/img/channel/count3.png" class="count-item-icon" />
</div> </div>
<div class="count-panel-item"> <div class="count-panel-item">
<div class="count-item-title">总新增客户</div> <div class="count-item-title">总新增客户</div>
<div class="count-item-num" @click="handleEmpDetail(detailCodeForm)" v-if="detailCodeForm.newlyCount">{{ detailCodeForm.newlyCount }}人</div> <div class="count-item-num" @click="handleEmpDetail(detailCodeForm)" v-if="detailCodeForm.newlyCount">{{ detailCodeForm.newlyCount }}人</div>
<div class="count-item-num2" v-else>0人</div> <div class="count-item-num2" v-else>0人</div>
<img src="@/assets/img/channel/count2.png" class="count-item-icon" /> <img src="@/assets/img/channel/count2.png" class="count-item-icon" />
</div> </div>
<div class="count-panel-item"> <div class="count-panel-item">
...@@ -51,8 +73,8 @@ ...@@ -51,8 +73,8 @@
<img src="@/assets/img/question.png" slot="reference" class="count-item-question" /> <img src="@/assets/img/question.png" slot="reference" class="count-item-question" />
</el-popover> </el-popover>
</div> </div>
<div class="count-item-num" @click="handleEmpDetail(detailCodeForm,'status')" v-if="detailCodeForm.newlyKeepCount">{{ detailCodeForm.newlyKeepCount }}人</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> <div class="count-item-num2" v-else>0人</div>
<img src="@/assets/img/channel/count1.png" class="count-item-icon" /> <img src="@/assets/img/channel/count1.png" class="count-item-icon" />
</div> </div>
</div> </div>
...@@ -68,17 +90,17 @@ ...@@ -68,17 +90,17 @@
</div> </div>
<div slot="newlyKeepCount" slot-scope="scope"> <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> <div class="link-dialog" @click="handleEmpDetail(scope.scope, 'status', scope.scope.dayTime)" v-if="scope.scope.newlyKeepCount">{{ scope.scope.newlyKeepCount }}</div>
<div v-else>0</div> <div v-else>0</div>
</div> </div>
</GLTable> </GLTable>
<GLTable v-show="activeName == 2" @refreshTable="listStaff" :layout="layout" :tableTotal="tableTotal" ref="memberTabel" :tableData="getMemberApi" :tableParams="tableMemberParams" :pageConf="pageMemberConf" :hasNum="false"> <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"> <div slot="newlyCount" slot-scope="scope">
<div class="link-dialog" @click="handleEmpDetail(scope.scope,'staffIds')" v-if="scope.scope.newlyCount">{{ scope.scope.newlyCount }}</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 v-else>0</div>
</div> </div>
<div slot="newlyKeepCount" slot-scope="scope"> <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 class="link-dialog" @click="handleEmpDetail(scope.scope, 'statusAndStaffIds')" v-if="scope.scope.newlyKeepCount">{{ scope.scope.newlyKeepCount }}</div>
<div v-else>0</div> <div v-else>0</div>
</div> </div>
</GLTable> </GLTable>
<emp-detail ref="empDetailForm"></emp-detail> <emp-detail ref="empDetailForm"></emp-detail>
...@@ -155,8 +177,8 @@ export default { ...@@ -155,8 +177,8 @@ export default {
goback() { goback() {
this.$router.push('/channel/index') this.$router.push('/channel/index')
}, },
handleEmpDetail(scope,status,day) { handleEmpDetail(scope, status, day) {
this.$refs.empDetailForm.init(scope,status,day) this.$refs.empDetailForm.init(scope, status, day)
}, },
detailChannelCode(id, codeUuid) { detailChannelCode(id, codeUuid) {
let param = { let param = {
...@@ -181,7 +203,14 @@ export default { ...@@ -181,7 +203,14 @@ export default {
labelList labelList
} }
}) })
this.tagging = taggingList this.tagging = []
for (let i = 0; i < taggingList.length; i++) {
for (let j = 0; j < taggingList[i].labelList.length; j++) {
this.tagging.push(taggingList[i].labelList[j].name)
}
}
// this.tagging = taggingList
// console.log(this.tagging, '00000000000')
this.welcomeInfo = res.welcomeInfo.map(item => { this.welcomeInfo = res.welcomeInfo.map(item => {
let attContent let attContent
if (item.attType == 7) { if (item.attType == 7) {
...@@ -227,7 +256,7 @@ export default { ...@@ -227,7 +256,7 @@ export default {
this.listStaff() this.listStaff()
} }
} }
</script> </script>
<style lang="scss" scoped> <style lang="scss" scoped>
.link-dialog { .link-dialog {
...@@ -241,45 +270,6 @@ export default { ...@@ -241,45 +270,6 @@ export default {
} }
.detail-form { .detail-form {
margin-top: 10px; margin-top: 10px;
.form-row {
display: flex;
flex-wrap: wrap;
margin-top: 5px;
.tag-item {
display: inline-block;
text-align: center;
min-width: 76px;
background: #fafbfe;
border: 1px solid #e8e8ea;
line-height: 14px;
box-sizing: border-box;
padding: 6px 6px;
font-size: 14px;
border-radius: 4px;
line-height: 14px;
font-weight: 400;
color: #666;
margin-right: 5px;
margin-bottom: 5px;
}
.emp-item {
text-align: left;
position: relative;
font-size: 14px;
line-height: 14px;
padding-left: 15px;
-webkit-border-radius: 4px;
border-radius: 4px;
border: 1px solid #e8e8ea;
padding: 6px;
display: inline-block;
margin-bottom: 5px;
margin-right: 5px;
i {
color: #75acff;
}
}
}
.welcome-panel { .welcome-panel {
.welcome-title { .welcome-title {
font-size: 16px; font-size: 16px;
...@@ -370,35 +360,68 @@ export default { ...@@ -370,35 +360,68 @@ export default {
} }
} }
} }
.form-row {
display: flex;
flex-wrap: wrap;
margin-top: 5px;
.tag-item {
display: inline-block;
text-align: center;
min-width: 76px;
background: #fafbfe;
border: 1px solid #e8e8ea;
line-height: 14px;
box-sizing: border-box;
padding: 3px 6px;
font-size: 14px;
border-radius: 4px;
line-height: 20px;
font-weight: 400;
color: #666;
margin-right: 4px;
margin-bottom: 5px;
box-sizing: border-box;
}
.emp-item {
text-align: left;
position: relative;
font-size: 14px;
line-height: 14px;
padding-left: 15px;
-webkit-border-radius: 4px;
border-radius: 4px;
border: 1px solid #e8e8ea;
padding: 6px;
display: inline-block;
margin-bottom: 5px;
margin-right: 5px;
i {
color: #75acff;
}
}
}
.tab-panel { .tab-panel {
margin-top: 20px;
margin-bottom: 10px;
display: inline-block;
/deep/ { /deep/ {
.el-checkbox:last-of-type {
margin-right: 8px;
}
.el-tabs__nav { .el-tabs__nav {
border: 0; border: none;
} }
.el-tabs__header { .el-tabs__header {
border: 0;
background-color: #f4f6fc;
margin: 0px; margin: 0px;
} }
.el-tabs__item {
border: none;
width: 180px;
height: 32px;
line-height: 32px;
margin: 2px;
text-align: center;
}
.el-tabs__item.is-active { .el-tabs__item.is-active {
background-color: #fff; background: #fff;
border-radius: 4px; border-bottom: none !important;
font-weight: 600; }
.el-tabs__item {
border: 1px solid #e5e5e5 !important;
border-bottom: none;
border-radius: 4px 4px 0px 0px;
background: #fafafa;
&:first-child {
margin-right: 5px;
}
} }
} }
} }
</style>
\ No newline at end of file \ No newline at end of file
</style>
...@@ -4,29 +4,32 @@ ...@@ -4,29 +4,32 @@
<div class="drainage-title">营销配置</div> <div class="drainage-title">营销配置</div>
<div class="form-main"> <div class="form-main">
<div class="drainage-form"> <div class="drainage-form">
<div class="drainage-form-item"> <!-- <div class="drainage-form-item">
<label class="is-require" style="line-height: 32px">营销名称</label> <label class="is-require" style="line-height: 32px">营销名称</label>
<div style="position: relative"> <div style="position: relative">
<el-input @focus="imNameStatus = false" type="type" size="small" placeholder="请输入营销名称" v-model.trim="imName" :disabled="!editStatus" maxlength="30"></el-input> <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 class="el-form-item__error" v-if="imNameStatus">请输入营销名称</div>
</div> </div>
</div> </div> -->
<div class="drainage-form-item"> <div class="drainage-form-item">
<label>群发短信</label> <!-- <label>群发短信</label> -->
<div class="message-panel"> <div class="gl-form-page">
<el-form ref="configForm" label-position="left" label-width="100px" :model="addForm" :rules="addRules" class="code-body-form"> <el-form ref="configForm" label-width="154px" :model="addForm" :rules="addRules" class="code-body-form">
<el-form-item label="营销名称:" prop="imName">
<el-input @focus="imNameStatus = false" type="type" size="small" placeholder="请输入营销名称" v-model.trim="imName" :disabled="!editStatus" maxlength="30"></el-input>
</el-form-item>
<el-form-item label="推送规则:"><div class="configForm-desc">系统将在「开始营销时间」之后启动短信营销,并在「截止营销时间」之后停止短信下放。由于相关管控限制,营销类短信无法实时触达用户,若短信时效要求很高,请谨慎使用。</div></el-form-item> <el-form-item label="推送规则:"><div class="configForm-desc">系统将在「开始营销时间」之后启动短信营销,并在「截止营销时间」之后停止短信下放。由于相关管控限制,营销类短信无法实时触达用户,若短信时效要求很高,请谨慎使用。</div></el-form-item>
<el-form-item size="small" label="营销时间" prop="time"> <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-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>
<el-form-item label="短信内容" prop="content"> <el-form-item label="短信内容:" prop="content">
<el-input type="textarea" v-model="addForm.content" rows="5" :disabled="!editStatus" maxlength="280" show-word-limit></el-input> <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">70字內(含70字)计一条,超过70字,按70字/条计费。</div>
<div class="form-tips">提示:当前短信已有{{ addForm.content.length }}字,按{{ content.length }}条短信发送且计费。</div> <div class="form-tips">提示:当前短信已有{{ addForm.content.length }}字,按{{ content.length }}条短信发送且计费。</div>
</el-form-item> </el-form-item>
<div class="drainage-form-item"> <div class="drainage-form-item">
<label style="width: 100px; text-align: left; color: #666"> <label>
自动打标签 自动打标签:
<el-popover placement="top" width="400" trigger="hover" content="提示:通过该营销活动添加员工企微的客户,将自动使用以下标签进行标记。"> <el-popover placement="top" width="400" trigger="hover" content="提示:通过该营销活动添加员工企微的客户,将自动使用以下标签进行标记。">
<img src="@/assets/img/question.png" slot="reference" class="count-item-question" /> <img src="@/assets/img/question.png" slot="reference" class="count-item-question" />
</el-popover> </el-popover>
...@@ -43,8 +46,8 @@ ...@@ -43,8 +46,8 @@
</div> </div>
</div> </div>
<div class="drainage-form-item"> <div class="drainage-form-item">
<label> <label style="margin-left: 20px">
跟进员工 跟进员工:
<el-popover placement="top" width="400" trigger="hover" content="用户点击短信中的链接后,将自动分配以下某位员工的企微名片,客户添加好友将自动回复后台所配置的欢迎语。"> <el-popover placement="top" width="400" trigger="hover" content="用户点击短信中的链接后,将自动分配以下某位员工的企微名片,客户添加好友将自动回复后台所配置的欢迎语。">
<img src="@/assets/img/question.png" slot="reference" class="count-item-question" /> <img src="@/assets/img/question.png" slot="reference" class="count-item-question" />
</el-popover> </el-popover>
...@@ -71,7 +74,7 @@ ...@@ -71,7 +74,7 @@
<div class="chanel-form-title">欢迎语</div> <div class="chanel-form-title">欢迎语</div>
<div class="welcome-panel"> <div class="welcome-panel">
<div class="welcome-switch"> <div class="welcome-switch">
<label>自动发送欢迎语</label> <label>自动发送欢迎语:</label>
<el-switch v-model="autoWelcome" :disabled="!editStatus" active-color="#5850FF" inactive-color="#999999"></el-switch> <el-switch v-model="autoWelcome" :disabled="!editStatus" active-color="#5850FF" inactive-color="#999999"></el-switch>
</div> </div>
<div class="welcome-box" v-show="!editStatus && autoWelcome"> <div class="welcome-box" v-show="!editStatus && autoWelcome">
...@@ -96,6 +99,10 @@ ...@@ -96,6 +99,10 @@
<img src="@/assets/img/guestCustom/icon-applet.png" alt="" /> <img src="@/assets/img/guestCustom/icon-applet.png" alt="" />
<span>{{ item.attContent }}</span> <span>{{ item.attContent }}</span>
</div> </div>
<div v-else-if="item.attType == 6">
<img src="@/assets/img/guestCustom/icon-applet.png" alt="" />
<span>{{ JSON.parse(item.attContent).fileName }}</span>
</div>
<div v-else-if="item.attType == 7"> <div v-else-if="item.attType == 7">
<img src="@/assets/img/guestCustom/icon-applet.png" alt="" /> <img src="@/assets/img/guestCustom/icon-applet.png" alt="" />
<span>{{ item.attContent.marketingName }}</span> <span>{{ item.attContent.marketingName }}</span>
...@@ -149,7 +156,7 @@ export default { ...@@ -149,7 +156,7 @@ export default {
}, },
watch: { watch: {
'addForm.content': { 'addForm.content': {
handler: function () { handler: function() {
this.content = [] this.content = []
let str = this.addForm.content let str = this.addForm.content
let num = 70 let num = 70
...@@ -185,7 +192,7 @@ export default { ...@@ -185,7 +192,7 @@ export default {
deep: true deep: true
}, },
tagging: { tagging: {
handler: function () { handler: function() {
this.taggingLength = 0 this.taggingLength = 0
this.tagging.forEach(item => { this.tagging.forEach(item => {
this.taggingLength += item.labelList.length this.taggingLength += item.labelList.length
...@@ -215,29 +222,33 @@ export default { ...@@ -215,29 +222,33 @@ export default {
this.addForm.content = res.dracImMessageConResponse.content this.addForm.content = res.dracImMessageConResponse.content
this.imName = res.imName this.imName = res.imName
this.autoWelcome = res.autoWelcome ? true : false this.autoWelcome = res.autoWelcome ? true : false
const previewList = res.dracScrmWelcomeConfigDTOS.map(item => { const dracScrmWelcomeConfigDTOS = res.dracScrmWelcomeConfigDTOS ? res.dracScrmWelcomeConfigDTOS : []
const previewList = dracScrmWelcomeConfigDTOS.map(item => {
if (item.attType == 7) item.attContent = JSON.parse(item.attContent) if (item.attType == 7) item.attContent = JSON.parse(item.attContent)
if (item.attType == 1) item.attContent = item.attContent.replaceAll('[@昵称]', '<span style="color:#5850FF">@昵称</span>') if (item.attType == 1) item.attContent = item.attContent.replaceAll('[@昵称]', '<span style="color:#5850FF">@昵称</span>').replaceAll(/\n/g, '<br>')
return item return item
}) })
this.welcomeInfo = previewList this.welcomeInfo = previewList
const tagging = eval(res.tagging) const tagging = eval(res.tagging)
const taggingList = tagging.map(item => { if (tagging && tagging.length) {
let name = item.name.split(',') const taggingList = tagging.map(item => {
let ids = item.tagIds.split(',') let name = item.name.split(',')
console.log(ids) let ids = item.tagIds.split(',')
let labelList = name.map((tag, index) => { console.log(ids)
return { id: ids[index], name: tag } let labelList = name.map((tag, index) => {
return { id: ids[index], name: tag }
})
return {
labelGroup: {
id: item.groupId,
name: item.labelType
},
labelList
}
}) })
return { this.tagging = taggingList
labelGroup: { }
id: item.groupId,
name: item.labelType
},
labelList
}
})
this.tagging = taggingList
this.$nextTick(() => { this.$nextTick(() => {
this.saveStatus = false this.saveStatus = false
}) })
...@@ -250,11 +261,11 @@ export default { ...@@ -250,11 +261,11 @@ export default {
this.findById(id) this.findById(id)
} }
} }
</script> </script>
<style lang="scss" scoped> <style lang="scss" scoped>
.channel-main-welcome { .channel-main-welcome {
margin: 20px 0px 60px; margin: 20px 0px 16px;
.chanel-form-title { .chanel-form-title {
padding-left: 20px; padding-left: 20px;
font-size: 16px; font-size: 16px;
...@@ -277,7 +288,7 @@ export default { ...@@ -277,7 +288,7 @@ export default {
} }
} }
.welcome-box { .welcome-box {
margin-left: 48px; margin-left: 70px;
&-contaner { &-contaner {
margin: 20px; margin: 20px;
background: rgba(247, 247, 247, 0.52); background: rgba(247, 247, 247, 0.52);
...@@ -444,9 +455,11 @@ export default { ...@@ -444,9 +455,11 @@ export default {
} }
} }
label { label {
width: 120px; font-size: 14px;
text-align: right; text-align: right;
margin-right: 20px; color: #666;
width: 140px;
margin-right: 12px;
height: 36px; height: 36px;
line-height: 36px; line-height: 36px;
img { img {
...@@ -699,4 +712,4 @@ export default { ...@@ -699,4 +712,4 @@ export default {
} }
} }
} }
</style>
\ No newline at end of file \ No newline at end of file
</style>
...@@ -21,10 +21,18 @@ ...@@ -21,10 +21,18 @@
</el-row> </el-row>
</el-form> </el-form>
<GLTable v-loading="loading" ref="table" @refreshTable="handleSearch" :searchForm="tableSearchForm" :layout="layout" :tableData="tableData" :tableTotal="tableTotal" :pageConf="pageConf" :tableParams="tableParams"> <GLTable v-loading="loading" ref="table" @refreshTable="handleSearch" :searchForm="tableSearchForm" :layout="layout" :tableData="tableData" :tableTotal="tableTotal" :pageConf="pageConf" :tableParams="tableParams">
<div slot="status" slot-scope="scope">
<span :class="['task_icon',scope.scope.status==1?'green-icon':'yellow-icon']">{{ scope.scope.statusName }}</span>
</div>
<div class="table-btns" slot="optionBtns" slot-scope="scope"> <div class="table-btns" slot="optionBtns" slot-scope="scope">
<el-button type="text" @click="handleDetail(scope.scope)">短信内容</el-button> <el-button type="text" @click="handleDetail(scope.scope)">短信内容</el-button>
</div> </div>
</GLTable> </GLTable>
<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>
</div> </div>
</div> </div>
</template> </template>
...@@ -36,7 +44,9 @@ export default { ...@@ -36,7 +44,9 @@ export default {
data() { data() {
return { return {
loading: false, loading: false,
messageContent: '',
tableSearchForm: {}, tableSearchForm: {},
dialogVisible: false,
tableData: [], tableData: [],
optionstatus: [ optionstatus: [
{ {
...@@ -66,7 +76,8 @@ export default { ...@@ -66,7 +76,8 @@ export default {
}, },
{ {
label: '发送状态', label: '发送状态',
prop: 'statusName' prop: 'statusName',
addHtml: 'status'
}, },
{ {
label: '发送时间', label: '发送时间',
...@@ -88,7 +99,8 @@ export default { ...@@ -88,7 +99,8 @@ export default {
}, },
methods: { methods: {
handleDetail(scope) { handleDetail(scope) {
this.$alert(scope.content, { center: true }) this.dialogVisible = true
this.messageContent = scope.content
}, },
handleSearch() { handleSearch() {
this.listChannelCodeByPage() this.listChannelCodeByPage()
...@@ -131,7 +143,7 @@ export default { ...@@ -131,7 +143,7 @@ export default {
this.listChannelCodeByPage() this.listChannelCodeByPage()
} }
} }
</script> </script>
<style> <style>
.el-popover { .el-popover {
max-width: 800px; max-width: 800px;
...@@ -282,4 +294,4 @@ export default { ...@@ -282,4 +294,4 @@ export default {
// top: 7px; // top: 7px;
// } // }
} }
</style>
\ No newline at end of file \ No newline at end of file
</style>
...@@ -5,9 +5,9 @@ ...@@ -5,9 +5,9 @@
<el-tab-pane label="客户列表" name="second"></el-tab-pane> <el-tab-pane label="客户列表" name="second"></el-tab-pane>
</el-tabs> </el-tabs>
<component :is="activeName == 'first' ? configInfo : customList"></component> <component :is="activeName == 'first' ? configInfo : customList"></component>
<GLFooter> <!-- <GLFooter>
<el-button type="primary" @click="goback">返回</el-button> <el-button type="primary" @click="goback">返回</el-button>
</GLFooter> </GLFooter> -->
</div> </div>
</template> </template>
......
...@@ -14,8 +14,11 @@ ...@@ -14,8 +14,11 @@
</div> </div>
<div class="square-tabel scrm-box-f"> <div class="square-tabel scrm-box-f">
<div class="square-tabel-form"> <div class="square-tabel-form">
<GLCombiForm ref="formSearch" :formObj="tableSearchForm" :formData="searchFormData" @handleOk="handleSearch" @handleRest="handleReset"></GLCombiForm> <GLCombiForm :rowNumber="1" ref="formSearch" :formObj="tableSearchForm" :formData="searchFormData" @handleOk="handleSearch" @handleRest="handleReset"></GLCombiForm>
<GLTable ref="employeeRef" :getListApi="getListApi" :searchForm="tableSearchForm" :tableParams="tableParams" :pageConf="pageConf" :beforeSearchFn="beforeSearchFn"> <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>
</div>
<div class="table-btns" slot="optionBtns" slot-scope="scope"> <div class="table-btns" slot="optionBtns" slot-scope="scope">
<GLButton type="text" @click="handleDetail(scope.scope)" fn="智能营销配置">查看配置</GLButton> <GLButton type="text" @click="handleDetail(scope.scope)" fn="智能营销配置">查看配置</GLButton>
<!-- <GLButton :disabled="scope.scope.imStatus!=1" type="text" @click="handleStatistics(scope.scope)" fn="营销统计">营销统计</GLButton> --> <!-- <GLButton :disabled="scope.scope.imStatus!=1" type="text" @click="handleStatistics(scope.scope)" fn="营销统计">营销统计</GLButton> -->
...@@ -92,26 +95,28 @@ export default { ...@@ -92,26 +95,28 @@ export default {
tableColumns: [ tableColumns: [
{ {
label: '营销名称', label: '营销名称',
prop: 'imName' prop: 'imName',
minWidth: '150px'
}, },
{ {
label: '营销客户数', label: '营销客户数',
prop: 'customerCount', prop: 'customerCount',
width: '120px' minWidth: '120px'
}, },
{ {
label: '状态', label: '状态',
prop: 'imStatusName' prop: 'imStatusName',
addHtml:'imStatus'
}, },
{ {
label: '创建时间', label: '创建时间',
prop: 'createdTime', prop: 'createdTime',
width: '180px' minWidth: '180px'
}, },
{ {
label: '创建人', label: '创建人',
prop: 'createdName', prop: 'createdName',
width: '220px' minWidth: '220px'
}, },
{ {
label: '操作', label: '操作',
......
...@@ -27,7 +27,7 @@ ...@@ -27,7 +27,7 @@
</div> </div>
</div> </div>
</div> </div>
<el-dialog title="提示" :visible.sync="dialogVisible" width="30%" :before-close="handleClose" top="30vh"> <GLDialog @onOk="handleSure" @onCancel="handleCancel" title="提示" :visible.sync="dialogVisible" mode="small">
<div class="dialog-body"> <div class="dialog-body">
<div class="dialog-tips-icon"><i class="el-icon-warning"></i></div> <div class="dialog-tips-icon"><i class="el-icon-warning"></i></div>
<div class="dialog-tips-text">点击继续将开始上传数据文件</div> <div class="dialog-tips-text">点击继续将开始上传数据文件</div>
...@@ -36,13 +36,13 @@ ...@@ -36,13 +36,13 @@
,是否继续吗? ,是否继续吗?
</div> </div>
</div> </div>
<div slot="footer" class="dialog-footer"> <!-- <div slot="footer" class="dialog-footer">
<el-button size="small" @click="handleCancel"> <el-button size="small" @click="handleCancel">
取 消 取 消
</el-button> </el-button>
<el-button size="small" type="primary" @click="handleSure">确 定</el-button> <el-button size="small" type="primary" @click="handleSure">确 定</el-button>
</div> </div> -->
</el-dialog> </GLDialog>
<div class="loading-containner" v-if="processLoading"></div> <div class="loading-containner" v-if="processLoading"></div>
</div> </div>
</template> </template>
......
...@@ -71,14 +71,14 @@ ...@@ -71,14 +71,14 @@
<div class="form-main"> <div class="form-main">
<div class="drainage-form"> <div class="drainage-form">
<div class="drainage-form-item"> <div class="drainage-form-item">
<label>群发短信</label> <!-- <label>群发短信</label> -->
<div class="message-panel"> <div class="gl-form-page">
<el-form ref="configForm" label-position="left" label-width="100px" :model="addForm" :rules="addRules" class="code-body-form"> <el-form ref="configForm" label-width="154px" :model="addForm" :rules="addRules" class="code-body-form">
<el-form-item label="推送时间:">系统将在「开始营销时间」之后启动智系统将在「开始营销时间」之后启动短信营销,并在「截止营销时间」之后停止短信发送。由于相关管控限制,营销类短信无法实时触达用户,若短信时效要求很高,请谨慎使用。</el-form-item> <el-form-item label="推送时间:">系统将在「开始营销时间」之后启动智系统将在「开始营销时间」之后启动短信营销,并在「截止营销时间」之后停止短信发送。由于相关管控限制,营销类短信无法实时触达用户,若短信时效要求很高,请谨慎使用。</el-form-item>
<el-form-item size="small" label="营销时间" prop="time"> <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-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>
<el-form-item label="短信内容" prop="content"> <el-form-item label="短信内容:" prop="content">
<el-input :disabled="!editStatus" type="textarea" v-model="addForm.content" rows="5" maxlength="280" show-word-limit></el-input> <el-input :disabled="!editStatus" type="textarea" v-model="addForm.content" rows="5" maxlength="280" show-word-limit></el-input>
<div class="select-panel" v-if="editStatus"> <div class="select-panel" v-if="editStatus">
<div @click="handleSelectMessage"> <div @click="handleSelectMessage">
...@@ -89,8 +89,8 @@ ...@@ -89,8 +89,8 @@
<div class="form-tips">提示:当前短信已有{{ addForm.content.length }}字,按{{ content.length }}条短信发送且计费。</div> <div class="form-tips">提示:当前短信已有{{ addForm.content.length }}字,按{{ content.length }}条短信发送且计费。</div>
</el-form-item> </el-form-item>
<div class="drainage-form-item"> <div class="drainage-form-item">
<label style="width: 100px; text-align: left; color: #666"> <label style="width: 140px;font-size:14px; text-align: right; color: #666">
自动打标签 自动打标签:
<el-popover placement="top" width="400" trigger="hover" content="提示:通过该营销活动添加员工企微的客户,将自动使用以下标签进行标记。"> <el-popover placement="top" width="400" trigger="hover" content="提示:通过该营销活动添加员工企微的客户,将自动使用以下标签进行标记。">
<img src="@/assets/img/question.png" slot="reference" class="count-item-question" /> <img src="@/assets/img/question.png" slot="reference" class="count-item-question" />
</el-popover> </el-popover>
...@@ -120,8 +120,8 @@ ...@@ -120,8 +120,8 @@
</div> </div>
</div> </div>
<div class="drainage-form-item" v-if="editStatus"> <div class="drainage-form-item" v-if="editStatus">
<label class="is-require"> <label class="is-require" style="width: 140px;font-size:14px; text-align: right; color: #666">
跟进员工 跟进员工:
<el-popover placement="top" width="400" trigger="hover" content="用户点击短信中的链接后,将自动分配以下某位员工的企微名片,客户添加好友将自动回复后台所配置的欢迎语。"> <el-popover placement="top" width="400" trigger="hover" content="用户点击短信中的链接后,将自动分配以下某位员工的企微名片,客户添加好友将自动回复后台所配置的欢迎语。">
<img src="@/assets/img/question.png" slot="reference" class="count-item-question" /> <img src="@/assets/img/question.png" slot="reference" class="count-item-question" />
</el-popover> </el-popover>
...@@ -142,8 +142,8 @@ ...@@ -142,8 +142,8 @@
</div> </div>
</div> </div>
<div class="drainage-form-item" v-else> <div class="drainage-form-item" v-else>
<label> <label style="width: 140px;font-size:14px; text-align: right; color: #666;margin-left:20px;">
跟进员工 跟进员工:
<el-popover placement="top" width="400" trigger="hover" content="用户点击短信中的链接后,将自动分配以下某位员工的企微名片,客户添加好友将自动回复后台所配置的欢迎语。"> <el-popover placement="top" width="400" trigger="hover" content="用户点击短信中的链接后,将自动分配以下某位员工的企微名片,客户添加好友将自动回复后台所配置的欢迎语。">
<img src="@/assets/img/question.png" slot="reference" class="count-item-question" /> <img src="@/assets/img/question.png" slot="reference" class="count-item-question" />
</el-popover> </el-popover>
...@@ -170,11 +170,11 @@ ...@@ -170,11 +170,11 @@
<div class="chanel-form-title">欢迎语</div> <div class="chanel-form-title">欢迎语</div>
<div class="welcome-panel"> <div class="welcome-panel">
<div class="welcome-switch"> <div class="welcome-switch">
<label>自动发送欢迎语</label> <label>自动发送欢迎语:</label>
<el-switch :disabled="!editStatus" v-model="autoWelcome" active-color="#5850FF" inactive-color="#999999"></el-switch> <el-switch :disabled="!editStatus" v-model="autoWelcome" active-color="#5850FF" inactive-color="#999999"></el-switch>
</div> </div>
<div class="welcome-box" v-show="editStatus && autoWelcome"> <div class="welcome-box" v-show="editStatus && autoWelcome">
<welcome-words :eventBus="eventBus" ref="welcome"></welcome-words> <GLEditor ref="welcome" :form="'customer'" :btnList="btnList" @previewWord="previewForm"></GLEditor>
</div> </div>
<div class="welcome-box" v-show="!editStatus && autoWelcome"> <div class="welcome-box" v-show="!editStatus && autoWelcome">
<div class="welcome-box-contaner"> <div class="welcome-box-contaner">
...@@ -275,13 +275,14 @@ ...@@ -275,13 +275,14 @@
</div> </div>
</div> </div>
</div> </div>
<GLDialog title="提示" @onOk="handleSure" @onCancel="dialogVisibleTips = false" type="warning" content="当前有内容信息未保存,是否继续返回?" :visible.sync="dialogVisibleTips" mode="small"></GLDialog>
</div> </div>
</template> </template>
<script> <script>
import Vue from 'vue' import Vue from 'vue'
import word from '@/mixins/word'
import { utils } from 'glsx-common' import { utils } from 'glsx-common'
import welcomeWords from '@/components/welcome/welcomeWords.vue'
import selectEmp from '@/components/selectEmp' import selectEmp from '@/components/selectEmp'
import selectTag from '@/components/selectTag' import selectTag from '@/components/selectTag'
import messageModel from '../market/components/messageModel' import messageModel from '../market/components/messageModel'
...@@ -293,16 +294,17 @@ const validateTime = (rule, value, callback) => { ...@@ -293,16 +294,17 @@ const validateTime = (rule, value, callback) => {
} }
} }
export default { export default {
mixins: [word],
name: 'drainage', name: 'drainage',
components: { components: {
selectEmp, selectEmp,
selectTag, selectTag,
messageModel, messageModel
welcomeWords
}, },
data() { data() {
return { return {
welcomeInfo: [], welcomeInfo: [],
dialogVisibleTips: false,
eventBus: new Vue(), eventBus: new Vue(),
autoWelcome: true, autoWelcome: true,
editStatus: false, editStatus: false,
...@@ -441,17 +443,14 @@ export default { ...@@ -441,17 +443,14 @@ export default {
this.saveStatus = true this.saveStatus = true
} }
if (this.saveStatus) { if (this.saveStatus) {
this.$confirm('当前有内容信息未保存,是否继续返回?', '提示', { this.dialogVisibleTips = true
confirmButtonText: '确定',
cancelButtonText: '取消',
type: 'warning'
}).then(() => {
this.$router.go(-1)
})
} else { } else {
this.$router.go(-1) this.$router.go(-1)
} }
}, },
handleSure() {
this.$router.go(-1)
},
//开关 //开关
handleSwitch() { handleSwitch() {
let params = { let params = {
...@@ -598,7 +597,7 @@ export default { ...@@ -598,7 +597,7 @@ export default {
<style lang="scss" scoped> <style lang="scss" scoped>
.channel-main-welcome { .channel-main-welcome {
margin: 20px 0px 60px; margin: 20px 0px 16px;
.chanel-form-title { .chanel-form-title {
padding-left: 20px; padding-left: 20px;
font-size: 16px; font-size: 16px;
...@@ -621,7 +620,7 @@ export default { ...@@ -621,7 +620,7 @@ export default {
} }
} }
.welcome-box { .welcome-box {
margin-left: 48px; margin-left: 60px;
&-contaner { &-contaner {
margin: 20px; margin: 20px;
background: rgba(247, 247, 247, 0.52); background: rgba(247, 247, 247, 0.52);
...@@ -818,9 +817,9 @@ export default { ...@@ -818,9 +817,9 @@ export default {
display: flex; display: flex;
margin-top: 20px; margin-top: 20px;
label { label {
width: 120px; width: 140px;
text-align: right; text-align: right;
margin-right: 20px; margin-right: 12px;
height: 36px; height: 36px;
line-height: 36px; line-height: 36px;
img { img {
...@@ -829,6 +828,7 @@ export default { ...@@ -829,6 +828,7 @@ export default {
vertical-align: middle; vertical-align: middle;
} }
&.is-require { &.is-require {
padding-left: 20px;
&::before { &::before {
content: '*'; content: '*';
color: #f56c6c; color: #f56c6c;
...@@ -856,6 +856,8 @@ export default { ...@@ -856,6 +856,8 @@ export default {
line-height: 30px; line-height: 30px;
border: 1px solid #dcdfe6; border: 1px solid #dcdfe6;
border-top: 0px; border-top: 0px;
width: 580px!important;
box-sizing: border-box;
> div { > div {
cursor: pointer; cursor: pointer;
margin-right: 10px; margin-right: 10px;
...@@ -899,8 +901,8 @@ export default { ...@@ -899,8 +901,8 @@ export default {
} }
} }
.message-panel { .message-panel {
background: #f7f7f7; // background: #f7f7f7;
border: 1px solid #dcdfe6; // border: 1px solid #dcdfe6;
padding: 20px; padding: 20px;
flex: 1; flex: 1;
box-sizing: border-box; box-sizing: border-box;
......
...@@ -417,8 +417,8 @@ export default { ...@@ -417,8 +417,8 @@ export default {
} }
.squre-safe-panel { .squre-safe-panel {
padding: 40px; padding: 40px;
margin-top: 20px; margin-top: 10px;
// margin-bottom: 60px; margin-bottom: 16px;
/deep/ { /deep/ {
.el-carousel__indicators, .el-carousel__indicators,
.el-carousel__arrow { .el-carousel__arrow {
...@@ -509,7 +509,6 @@ export default { ...@@ -509,7 +509,6 @@ export default {
margin: 40px 0px; margin: 40px 0px;
height: 328px; height: 328px;
background: #ffffff; background: #ffffff;
box-shadow: 0px 0px 20px 0px rgba(88, 80, 255, 0.1);
border-radius: 2px; border-radius: 2px;
display: flex; display: flex;
justify-content: space-between; justify-content: space-between;
......
...@@ -110,6 +110,9 @@ ...@@ -110,6 +110,9 @@
</GLButton> </GLButton>
</div> </div>
<GLTable ref="employeeRef" :getListApi="getListApi" :searchForm="tableSearchForm" :tableParams="tableParams" :pageConf="pageConf" :beforeSearchFn="beforeSearchFn"> <GLTable ref="employeeRef" :getListApi="getListApi" :searchForm="tableSearchForm" :tableParams="tableParams" :pageConf="pageConf" :beforeSearchFn="beforeSearchFn">
<div slot="state" slot-scope="scope">
<span :class="['task_icon', scope.scope.state == 1 ? 'green-icon' : 'yellow-icon']">{{ scope.scope.state == 1 ? '已处理' : '处理中' }}</span>
</div>
<div slot="importNumber" slot-scope="scope"> <div slot="importNumber" slot-scope="scope">
<div class="number-form"> <div class="number-form">
<span>{{ scope.scope.entmicroNumber }}</span> <span>{{ scope.scope.entmicroNumber }}</span>
...@@ -241,11 +244,12 @@ export default { ...@@ -241,11 +244,12 @@ export default {
} }
}, },
{ {
label: '事件处理状态', label: '数据处理状态',
prop: 'state', prop: 'state',
formatter: cellValue => { addHtml: 'state'
return cellValue.state == 1 ? '已处理' : '处理中' // formatter: cellValue => {
} // return cellValue.state == 1 ? '已处理' : '处理中'
// }
}, },
{ {
label: '导入人员', label: '导入人员',
...@@ -275,8 +279,9 @@ export default { ...@@ -275,8 +279,9 @@ export default {
methods: { methods: {
importsCount() { importsCount() {
this.$apis.square.importsCount({}).then(res => { this.$apis.square.importsCount({}).then(res => {
console.log(res) if (res) {
this.countAll = res this.countAll = res
}
}) })
}, },
handleReset() { handleReset() {
...@@ -302,9 +307,9 @@ export default { ...@@ -302,9 +307,9 @@ export default {
jumpDetail(status) { jumpDetail(status) {
let url let url
if (status) { if (status) {
url = `/custom/clientManage/index?isJoin=${status}&addWay=企微魔方` url = `/custom/clientManage/index?isJoin=${status}&addWay=数据魔方`
} else { } else {
url = `/custom/clientManage/index?addWay=企微魔方` url = `/custom/clientManage/index?addWay=数据魔方`
} }
this.$history.push(url) this.$history.push(url)
}, },
...@@ -353,8 +358,10 @@ export default { ...@@ -353,8 +358,10 @@ export default {
} }
} }
this.$apis.square.queryCrowdTree(params).then(res => { this.$apis.square.queryCrowdTree(params).then(res => {
const crowdUnitList = res.crowdUnitList.find(item => item.crowdName == '已加企微,待匹配客户') if (res && res.crowdUnitList) {
this.crowdId = crowdUnitList.crowdId const crowdUnitList = res.crowdUnitList.find(item => item.crowdName == '已加企微,待匹配客户')
this.crowdId = crowdUnitList ? crowdUnitList.crowdId : ''
}
}) })
} }
}, },
...@@ -482,7 +489,6 @@ export default { ...@@ -482,7 +489,6 @@ export default {
height: 102px; height: 102px;
margin: 20px 0px; margin: 20px 0px;
background: #ffffff; background: #ffffff;
box-shadow: 0px 10px 20px 0px rgba(88, 80, 255, 0.1);
display: flex; display: flex;
.square-num-item { .square-num-item {
width: 50%; width: 50%;
...@@ -516,7 +522,7 @@ export default { ...@@ -516,7 +522,7 @@ export default {
} }
} }
.coustom-box-container { .coustom-box-container {
margin-top: 20px; margin-top: 16px;
background: #ffffff; background: #ffffff;
.square-title { .square-title {
height: 55px; height: 55px;
...@@ -633,7 +639,7 @@ export default { ...@@ -633,7 +639,7 @@ export default {
} }
.square-tabel { .square-tabel {
padding: 20px; padding: 20px;
margin-top: 20px; margin-top: 16px;
} }
.table-btns a { .table-btns a {
color: #5850ff; color: #5850ff;
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!