Commit 848137b2 by 李宁

1

1 parent f76422e3
......@@ -13,7 +13,7 @@ export function queryAllGridList(data) {
/**
* 获取该账号下可选的网格列表
* 获取该区域下可选的网格列表
*/
export function queryGridList(data) {
return request({
......
......@@ -420,19 +420,21 @@ export default {
// 重置关联支撑人员
this.updatePersonStore.relatedMarketingCode = ''
// 重置网格选择
if (value === '1') {
// 装维师傅 - 单选
this.updatePersonStore.grid = ''
} else {
// 支撑人员 - 多选
this.updatePersonStore.grid = []
}
if(!this.getData.grid){
// 重置网格选择
if (value === '1') {
// 装维师傅 - 单选
this.updatePersonStore.grid = ''
} else {
// 支撑人员 - 多选
this.updatePersonStore.grid = []
}
setTimeout(()=>{
// 设置网格选择模式
this.gridIsMultiple = value === '2'
},100)
setTimeout(()=>{
// 设置网格选择模式
this.gridIsMultiple = value === '2'
},100)
}
// 如果当前有选中的网格且是装维师傅,查询支撑人员
if (value === '1' && this.updatePersonStore.grid) {
......
......@@ -201,7 +201,7 @@ export default {
isCollapse: false,
menuItems: menuItems,
breadcrumbMap: breadcrumbMap,
acc: JSON.parse(localStorage.getItem('accountInfo'))
acc: {}
}
},
computed: {
......@@ -272,6 +272,9 @@ export default {
})
}
},
activated(){
this.acc = JSON.parse(localStorage.getItem('accountInfo'))
},
created() {
// 初始化认证状态
this.$store.dispatch('initializeAuth')
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!