Commit e034fd3d by 前端

修复编辑任务机器人显示不全问题

1 parent 159cd230
......@@ -195,16 +195,19 @@ export default {
},
mounted() {
console.log(this.type, this.errorType, this.robotNo, this.selectRobot)
if (this.type && this.robotNo) this.getlistDepartmentTree(this.robotNo)
if (this.type && this.robotNo && this.selectRobot)
this.getlistDepartmentTree(this.robotNo)
if (this.errorType && this.robotNo) this.getlistDepartmentTree(this.robotNo)
},
methods: {
getlistDepartmentTree(merchantId) {
console.log(222)
let params = { addChildrensFlag: true, queryMerchantId: merchantId }
taskApi.getlistDepartmentTree(params).then(async (res) => {
if (res) {
this.robotListTree = res.data.data
await this.initData(this.robotListTree)
console.log(this.robotListTree)
if (this.selectRobot && this.selectRobot.length) {
if (this.errorType) {
this.$refs[this.memberRef].setCheckedKeys([this.selectRobot])
......@@ -351,10 +354,10 @@ export default {
return data.label.indexOf(value) !== -1
},
// 显示隐藏
// switchBrand() {
// this.brandTree = !this.brandTree
// this.$emit('clickBrand', this.brandTree)
// },
switchBrand() {
this.brandTree = !this.brandTree
this.$emit('clickBrand', this.brandTree)
},
},
}
</script>
......
......@@ -314,11 +314,12 @@
v-model="itm.robotMerchantNo"
@change="robotMerchantChange(itm)"
>
<template v-for="(item, index) in entmicroList">
<el-radio :key="index" :label="item.merchantNo">{{
item.entmicroName
}}</el-radio>
</template>
<el-radio
v-for="item in entmicroList"
:key="item.merchantNo"
:label="item.merchantNo"
>{{ item.entmicroName }}</el-radio
>
</el-radio-group>
</el-form-item>
<el-form-item
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!