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()
} }
}) })
}, },
......
...@@ -8,7 +8,7 @@ ...@@ -8,7 +8,7 @@
<div class="config-wrap gl-form-page"> <div class="config-wrap gl-form-page">
<el-form ref="form" :model="form" label-width="154px"> <el-form ref="form" :model="form" label-width="154px">
<el-form-item label="所属企业:"> <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-option v-for="item in merchantList" :key="item.merchantId" :label="item.merchantName" :value="item.merchantId"></el-option>
</el-select> </el-select>
</el-form-item> </el-form-item>
...@@ -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!