Commit baa0d26c by 杨明

fixed

1 parent 21db5203
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
* @Author: yangming yangming@didihu.com.cn * @Author: yangming yangming@didihu.com.cn
* @Date: 2023-01-04 14:00:10 * @Date: 2023-01-04 14:00:10
* @LastEditors: yangming yangming@didihu.com.cn * @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 * @FilePath: \scrm-micro-mapping\src\views\mapping\addMapping.vue
* @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
--> -->
...@@ -198,6 +198,7 @@ export default { ...@@ -198,6 +198,7 @@ export default {
} }
}, },
queryGroupListByMerchantId() { queryGroupListByMerchantId() {
this.groupList = [{ ...tagJson }]
const params = { const params = {
req: { req: {
merchantId: this.merchantId, merchantId: this.merchantId,
...@@ -223,11 +224,13 @@ export default { ...@@ -223,11 +224,13 @@ export default {
groupName groupName
if (type == 1) { if (type == 1) {
groupName = item.groupValue_l groupName = item.groupValue_l
item.sysLabelName = ''
item.tagList_l = [] item.tagList_l = []
item.sysGroupId = '' item.sysGroupId = ''
} else { } else {
groupName = item.groupValue_r groupName = item.groupValue_r
item.tagList_r = [] item.tagList_r = []
item.envLabelName = ''
item.envGroupId = '' item.envGroupId = ''
} }
const params = { const params = {
...@@ -263,25 +266,28 @@ export default { ...@@ -263,25 +266,28 @@ export default {
this.merchantId = +merchantId this.merchantId = +merchantId
this.queryGroupListByMerchantId() this.queryGroupListByMerchantId()
this.$apis.mapping.queryLabelRelation({ req: { merchantId } }).then(res => { this.$apis.mapping.queryLabelRelation({ req: { merchantId } }).then(res => {
this.groupList = res.relationUnitList.map(item => { if (res.relationUnitList && res.relationUnitList.length) {
return { this.groupList = res.relationUnitList.map(item => {
groupValue_l: item.sysGroupName, return {
groupValue_r: item.envGroupName, groupValue_l: item.sysGroupName,
envLabelName: item.envLabelName, groupValue_r: item.envGroupName,
sysLabelName: item.sysLabelName, envLabelName: item.envLabelName,
tagList_l: [], sysLabelName: item.sysLabelName,
tagList_r: [], tagList_l: [],
envLabelId: item.envLabelId, tagList_r: [],
sysLabelId: item.sysLabelId, envLabelId: item.envLabelId,
sysGroupId: item.sysGroupId, sysLabelId: item.sysLabelId,
envGroupId: item.envGroupId sysGroupId: item.sysGroupId,
} envGroupId: item.envGroupId
}) }
console.log(this.groupList) })
this.groupList.forEach(item => { this.groupList.forEach(item => {
this.changeGroup_l(item) this.changeGroup_l(item)
this.changeGroup_r(item) this.changeGroup_r(item)
}) })
} else {
this.groupList = [{ ...tagJson }]
}
}) })
} }
} }
......
...@@ -36,17 +36,16 @@ ...@@ -36,17 +36,16 @@
<div class="dialog-tips-2">删除后,将无法支持朋友圈目标客户筛选</div> <div class="dialog-tips-2">删除后,将无法支持朋友圈目标客户筛选</div>
<div class="dialog-tips-3"> <div class="dialog-tips-3">
<span>系统标签</span> <span>系统标签</span>
<span class="tag">客户类型-基盘客户</span> <span class="tag">{{ selectItem.sysGroupName }}-{{ selectItem.sysLabelName }}</span>
<img src="@/assets/mapping.png" alt="" /> <img src="@/assets/mapping.png" alt="" />
<span>企业标签</span> <span>企业标签</span>
<span class="tag">客户类型-基盘客户</span> <span class="tag">{{ selectItem.envGroupName }}-{{ selectItem.envLabelName }}</span>
</div> </div>
</div> </div>
</GLDialog> </GLDialog>
</div> </div>
</template> </template>
<script> <script>
import { getTableList, syncCustomerBase, clientGroupExportApi } from '@/api/modules/tag'
// import url from '@/assets/clientDataOverview/nodata.png' // import url from '@/assets/clientDataOverview/nodata.png'
export default { export default {
name: 'grouping', name: 'grouping',
...@@ -148,11 +147,6 @@ export default { ...@@ -148,11 +147,6 @@ export default {
flushTime: false flushTime: false
} }
}, },
filters: {
filterTable(list) {
return [{ couponName: 9 }]
}
},
methods: { methods: {
handleAdd(row) { handleAdd(row) {
let query = '' let query = ''
...@@ -161,6 +155,7 @@ export default { ...@@ -161,6 +155,7 @@ export default {
}, },
//删除 //删除
delTag(scope) { delTag(scope) {
console.log(scope)
this.selectItem = scope this.selectItem = scope
this.dialogVisibleDel = true this.dialogVisibleDel = true
}, },
...@@ -173,7 +168,10 @@ export default { ...@@ -173,7 +168,10 @@ export default {
} }
} }
this.$apis.mapping.deleteLabelRelation(params).then(res => { this.$apis.mapping.deleteLabelRelation(params).then(res => {
res.code == '0' && this.message.success('操作成功') if (res.code == '0') {
this.searchTable()
this.$message.success('操作成功')
}
}) })
}, },
setTableHeightEvent() { setTableHeightEvent() {
...@@ -189,7 +187,7 @@ export default { ...@@ -189,7 +187,7 @@ export default {
// this.$refs.clientGroupManage.setTableHeightFun() // this.$refs.clientGroupManage.setTableHeightFun()
// } // }
if (this.firstSearch) { 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.firstSearch = false
} }
this.$refs.clientGroupManage.data.length ? (this.$refs.clientGroupManage.tableHeightValues = '') : this.$refs.clientGroupManage.setTableHeightFun() 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!