Commit f5d3cf68 by 前端

Merge branch 'wangzh_dev_2.0.0' into 'v2.0.0'

commit

See merge request !9
2 parents 49c500a3 15474c16
......@@ -189,7 +189,11 @@
<div v-show="currentIndex == 2" class="clientTagsWrap">
<div style="height: 20px"></div>
<!-- //提示面板组件 -->
<tip-panel class="mg2" panelWidth="666px" panelMinHeight="45px" :panelContent="panelContent"></tip-panel>
<tip-panel class="mg2" panelMinHeight="45px" :panelContent="panelContent"></tip-panel>
<!-- v-if="userType == 2" -->
<el-button type="primary" class="addTagBtn" size="small" @click="btnClick('create')" v-if="userType == 2">设置标签</el-button>
<GLTable class="table" ref="clientTagsListRef" :hasNum="false" :noDataImg="url" noDataText="客户暂无已添加的标签" :tableData="clientTagsList" :hasPage="false" :tableParams="tagsParams" :headerStyle="{ height: '54px' }">
......@@ -416,7 +420,8 @@ export default {
{
label: '跟进员工',
prop: 'staffName',
align: 'left'
align: 'left',
minWidth: 100
},
{
label: '所属部门',
......@@ -556,7 +561,6 @@ export default {
created() {
if (window.__POWERED_BY_QIANKUN__) {
//运行在qiankun容器中
console.log('欠款', this.$globalState.session)
this.merchantId = this.$globalState.session.merchantId
this.merchantModel = this.$globalState.session.merchantModel
this.accountLevel = this.$globalState.session.accountLevel
......@@ -649,7 +653,6 @@ export default {
getSingleClientTag(param)
.then(res => {
if (res.code == 0) {
console.log(res, 'kkk')
if (!res.userLabelUnitList) {
return
}
......@@ -684,10 +687,20 @@ export default {
this.employTableList = res.staffFollows || []
this.clientGroupTableList = res.customerBases || []
this.tagsList = res.labels || []
this.labelIdList = (res.labels || []).map(item => item.labelId)
this.labelIdList = this.handleLabelId(res.labelInfos)
this.clientTagsList = res.labelInfos || []
this.nickNameList = res.nickNameList || []
},
handleLabelId(data) {
let array = []
data &&
data.forEach(label => {
label.labelInfoList.forEach(info => {
array.push(info.labelId)
})
})
return array
},
goNewTag() {
this.$router.push({ path: '/tagsManage/index' })
},
......@@ -781,7 +794,6 @@ export default {
}
addSingleClientTag(param)
.then(res => {
console.log(param)
if (res.data.code == 0) {
this.sloading = false
this.$message.success('设置成功')
......@@ -808,6 +820,7 @@ export default {
// }
// console.log('进来')
this.tagsVisible = !this.tagsVisible
this.allTagsList = []
},
checkNewTag(checked, j, arr, original = false) {
//打开弹窗就是选中的,不许去选中,不是一开始就选中的,可以去选中
......@@ -837,8 +850,6 @@ export default {
}
})
console.log('选中', _arr)
this.submitTagsList = _arr
},
choose(index1, index2, index3) {
......@@ -1034,6 +1045,7 @@ export default {
}
.addTagBtn {
margin-bottom: 10px;
margin-left: 20px;
}
// 处理客户标签的样式
.clientTagsWrap {
......@@ -1143,6 +1155,7 @@ export default {
width: 100%;
background: #ffffff;
box-shadow: 0px -1px 1px 0px rgba(88, 80, 255, 0.1);
z-index: 999;
div {
display: inline-block;
position: relative;
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!