Commit e034fd3d by 前端

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

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