Commit cc760693 by 杨北旺

处理信息显示模块判断/返回上一页

1 parent 2a7577c7
......@@ -17,8 +17,8 @@
<div v-if="accountLevel==4" class="min_text">企微员工:{{ blocInfo.entMicroEmployeeCount }}人</div>
</div>
</div>
<blocModule :bloc="blocInfo" :list.sync="storesList" v-if="platform == 1"></blocModule>
<shopModule v-if="platform == 2"></shopModule>
<blocModule :bloc="blocInfo" :list.sync="storesList" v-if="accountLevel != 4"></blocModule>
<shopModule v-if="accountLevel == 4"></shopModule>
<!-- </div> -->
</div>
</template>
......
......@@ -75,14 +75,14 @@ export default {
label: 'label',
children: 'children',
checkStrictly: true,
disabled: 'entmicroName'
disabled: 'disabled'
},
mypropsParam: {
label: 'departmentName',
value: 'id',
children: 'children',
checkStrictly: true,
disabled: 'relevanceMerchant'
disabled: 'disabled'
},
dataList: [],
customWidth: 113,
......@@ -127,11 +127,27 @@ export default {
},
getDepartmentList() {
getDepartment({ id: 1 }).then(res => {
res.map(item=>{
if(item.relevanceMerchant){
item.disabled = true
}else{
item.disabled = false
}
return item
})
this.departmentList = res
})
},
getMerchantList() {
getMerchantTree().then(res => {
res.map(item=>{
if(item.entmicroName){
item.disabled = true
}else{
item.disabled = false
}
return item
})
this.shopList = res
})
},
......@@ -172,7 +188,7 @@ export default {
this.setBtnWidth()
},
closeCurRouter() {
history.back()
this.$router.push({path:'/account/index'})
},
// 批量关联
handleMutiGL() {
......@@ -223,7 +239,7 @@ export default {
message: '操作成功',
type: 'success'
})
history.back()
this.$router.push({path:'/account/index'})
}
})
},
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!