Commit baa0d26c by 杨明

fixed

1 parent 21db5203
......@@ -2,7 +2,7 @@
* @Author: yangming yangming@didihu.com.cn
* @Date: 2023-01-04 14:00:10
* @LastEditors: yangming yangming@didihu.com.cn
* @LastEditTime: 2023-01-06 14:18:09
* @LastEditTime: 2023-01-10 13:37:49
* @FilePath: \scrm-micro-mapping\src\views\mapping\addMapping.vue
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
-->
......@@ -198,6 +198,7 @@ export default {
}
},
queryGroupListByMerchantId() {
this.groupList = [{ ...tagJson }]
const params = {
req: {
merchantId: this.merchantId,
......@@ -223,11 +224,13 @@ export default {
groupName
if (type == 1) {
groupName = item.groupValue_l
item.sysLabelName = ''
item.tagList_l = []
item.sysGroupId = ''
} else {
groupName = item.groupValue_r
item.tagList_r = []
item.envLabelName = ''
item.envGroupId = ''
}
const params = {
......@@ -263,25 +266,28 @@ export default {
this.merchantId = +merchantId
this.queryGroupListByMerchantId()
this.$apis.mapping.queryLabelRelation({ req: { merchantId } }).then(res => {
this.groupList = res.relationUnitList.map(item => {
return {
groupValue_l: item.sysGroupName,
groupValue_r: item.envGroupName,
envLabelName: item.envLabelName,
sysLabelName: item.sysLabelName,
tagList_l: [],
tagList_r: [],
envLabelId: item.envLabelId,
sysLabelId: item.sysLabelId,
sysGroupId: item.sysGroupId,
envGroupId: item.envGroupId
}
})
console.log(this.groupList)
this.groupList.forEach(item => {
this.changeGroup_l(item)
this.changeGroup_r(item)
})
if (res.relationUnitList && res.relationUnitList.length) {
this.groupList = res.relationUnitList.map(item => {
return {
groupValue_l: item.sysGroupName,
groupValue_r: item.envGroupName,
envLabelName: item.envLabelName,
sysLabelName: item.sysLabelName,
tagList_l: [],
tagList_r: [],
envLabelId: item.envLabelId,
sysLabelId: item.sysLabelId,
sysGroupId: item.sysGroupId,
envGroupId: item.envGroupId
}
})
this.groupList.forEach(item => {
this.changeGroup_l(item)
this.changeGroup_r(item)
})
} else {
this.groupList = [{ ...tagJson }]
}
})
}
}
......
......@@ -36,17 +36,16 @@
<div class="dialog-tips-2">删除后,将无法支持朋友圈目标客户筛选</div>
<div class="dialog-tips-3">
<span>系统标签</span>
<span class="tag">客户类型-基盘客户</span>
<span class="tag">{{ selectItem.sysGroupName }}-{{ selectItem.sysLabelName }}</span>
<img src="@/assets/mapping.png" alt="" />
<span>企业标签</span>
<span class="tag">客户类型-基盘客户</span>
<span class="tag">{{ selectItem.envGroupName }}-{{ selectItem.envLabelName }}</span>
</div>
</div>
</GLDialog>
</div>
</template>
<script>
import { getTableList, syncCustomerBase, clientGroupExportApi } from '@/api/modules/tag'
// import url from '@/assets/clientDataOverview/nodata.png'
export default {
name: 'grouping',
......@@ -148,11 +147,6 @@ export default {
flushTime: false
}
},
filters: {
filterTable(list) {
return [{ couponName: 9 }]
}
},
methods: {
handleAdd(row) {
let query = ''
......@@ -161,6 +155,7 @@ export default {
},
//删除
delTag(scope) {
console.log(scope)
this.selectItem = scope
this.dialogVisibleDel = true
},
......@@ -173,7 +168,10 @@ export default {
}
}
this.$apis.mapping.deleteLabelRelation(params).then(res => {
res.code == '0' && this.message.success('操作成功')
if (res.code == '0') {
this.searchTable()
this.$message.success('操作成功')
}
})
},
setTableHeightEvent() {
......@@ -189,7 +187,7 @@ export default {
// this.$refs.clientGroupManage.setTableHeightFun()
// }
if (this.firstSearch) {
this.expandArr = this.$refs.clientGroupManage.data.length ? [this.$refs.clientGroupManage.data[0].crowdGroupId + ''] : []
this.expandArr = this.$refs.clientGroupManage.data.length ? [this.$refs.clientGroupManage.data[0].merchantId + ''] : []
this.firstSearch = false
}
this.$refs.clientGroupManage.data.length ? (this.$refs.clientGroupManage.tableHeightValues = '') : this.$refs.clientGroupManage.setTableHeightFun()
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!