Commit d97c5b72 by 王志慧

修复新增回显企业群

1 parent a69909bc
...@@ -149,7 +149,6 @@ export default { ...@@ -149,7 +149,6 @@ export default {
}, },
mounted() { mounted() {
this.getMerchantList() this.getMerchantList()
this.getDepartmentTree()
if (this.id) this.getClueDetailById() if (this.id) this.getClueDetailById()
}, },
methods: { methods: {
...@@ -194,6 +193,7 @@ export default { ...@@ -194,6 +193,7 @@ export default {
if (!this.id) { if (!this.id) {
this.config.groupMerchantId = res[0]?.merchantId this.config.groupMerchantId = res[0]?.merchantId
this.config.groupMerchantName = res[0]?.merchantName this.config.groupMerchantName = res[0]?.merchantName
this.getDepartmentTree()
} }
}) })
}, },
......
...@@ -254,9 +254,11 @@ export default { ...@@ -254,9 +254,11 @@ export default {
getMerchantList(sign) { getMerchantList(sign) {
this.$apis.battle.getMerchantList({}).then(res => { this.$apis.battle.getMerchantList({}).then(res => {
this.merchantList = res this.merchantList = res
if (!sign) { if (!sign) {
this.config.merchantId = res[0]?.merchantId this.config.merchantId = res[0]?.merchantId
this.config.merchantName = res[0]?.merchantName this.config.merchantName = res[0]?.merchantName
this.getDepartmentTree()
} }
}) })
}, },
...@@ -341,6 +343,7 @@ export default { ...@@ -341,6 +343,7 @@ export default {
this.selectGroupName = res.data.result || [] this.selectGroupName = res.data.result || []
}) })
this.getGroupList(this.wechat.staffId) this.getGroupList(this.wechat.staffId)
this.getDepartmentTree()
} else { } else {
this.groupCofListInput = { this.groupCofListInput = {
// xiReportValue: [{ name: '' }], // xiReportValue: [{ name: '' }],
...@@ -352,7 +355,6 @@ export default { ...@@ -352,7 +355,6 @@ export default {
zhanReportValue: [{ name: '' }] zhanReportValue: [{ name: '' }]
} }
} }
this.getDepartmentTree()
}, },
getGroupList(id, isReset = false) { getGroupList(id, isReset = false) {
this.$apis.saasOrder.getGroupList({ msgStaffIdList: id }).then(res => { this.$apis.saasOrder.getGroupList({ msgStaffIdList: id }).then(res => {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!