Commit cc760693 by 杨北旺

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

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