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