Commit d97c5b72 by 王志慧

修复新增回显企业群

1 parent a69909bc
......@@ -149,7 +149,6 @@ export default {
},
mounted() {
this.getMerchantList()
this.getDepartmentTree()
if (this.id) this.getClueDetailById()
},
methods: {
......@@ -194,6 +193,7 @@ export default {
if (!this.id) {
this.config.groupMerchantId = res[0]?.merchantId
this.config.groupMerchantName = res[0]?.merchantName
this.getDepartmentTree()
}
})
},
......
......@@ -8,7 +8,7 @@
<div class="config-wrap gl-form-page">
<el-form ref="form" :model="form" label-width="154px">
<el-form-item label="所属企业:">
<el-select v-model="config.merchantId" placeholder="请选择" @change="handleMerchatChange" @visible-change="hideSelect">
<el-select v-model="config.merchantId" placeholder="请选择" @change="handleMerchatChange" @visible-change="hideSelect">
<el-option v-for="item in merchantList" :key="item.merchantId" :label="item.merchantName" :value="item.merchantId"></el-option>
</el-select>
</el-form-item>
......@@ -254,9 +254,11 @@ export default {
getMerchantList(sign) {
this.$apis.battle.getMerchantList({}).then(res => {
this.merchantList = res
if (!sign) {
this.config.merchantId = res[0]?.merchantId
this.config.merchantName = res[0]?.merchantName
this.getDepartmentTree()
}
})
},
......@@ -341,6 +343,7 @@ export default {
this.selectGroupName = res.data.result || []
})
this.getGroupList(this.wechat.staffId)
this.getDepartmentTree()
} else {
this.groupCofListInput = {
// xiReportValue: [{ name: '' }],
......@@ -352,7 +355,6 @@ export default {
zhanReportValue: [{ name: '' }]
}
}
this.getDepartmentTree()
},
getGroupList(id, isReset = false) {
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!