Commit 5800ccba by 杨北旺

修改企微关联页面

1 parent cc760693
...@@ -75,14 +75,14 @@ export default { ...@@ -75,14 +75,14 @@ export default {
label: 'label', label: 'label',
children: 'children', children: 'children',
checkStrictly: true, checkStrictly: true,
disabled: 'disabled' disabled: 'entmicroName'
}, },
mypropsParam: { mypropsParam: {
label: 'departmentName', label: 'departmentName',
value: 'id', value: 'id',
children: 'children', children: 'children',
checkStrictly: true, checkStrictly: true,
disabled: 'disabled' disabled: 'relevanceMerchant'
}, },
dataList: [], dataList: [],
customWidth: 113, customWidth: 113,
...@@ -127,27 +127,27 @@ export default { ...@@ -127,27 +127,27 @@ export default {
}, },
getDepartmentList() { getDepartmentList() {
getDepartment({ id: 1 }).then(res => { getDepartment({ id: 1 }).then(res => {
res.map(item=>{ // res.map(item=>{
if(item.relevanceMerchant){ // if(item.relevanceMerchant){
item.disabled = true // item.disabled = true
}else{ // }else{
item.disabled = false // item.disabled = false
} // }
return item // return item
}) // })
this.departmentList = res this.departmentList = res
}) })
}, },
getMerchantList() { getMerchantList() {
getMerchantTree().then(res => { getMerchantTree().then(res => {
res.map(item=>{ // res.map(item=>{
if(item.entmicroName){ // if(item.entmicroName){
item.disabled = true // item.disabled = true
}else{ // }else{
item.disabled = false // item.disabled = false
} // }
return item // return item
}) // })
this.shopList = res this.shopList = res
}) })
}, },
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!