27341
This commit is contained in:
@@ -52,6 +52,7 @@ export default {
|
|||||||
userList: [],
|
userList: [],
|
||||||
girdLevel: 0,
|
girdLevel: 0,
|
||||||
parentGirdId: '',
|
parentGirdId: '',
|
||||||
|
isMyGird: false, //是否只查询当前户对应的网格员管理的三级网格
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
computed: {
|
computed: {
|
||||||
@@ -60,9 +61,13 @@ export default {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
onLoad(params) {
|
onLoad(params) {
|
||||||
|
console.log(params)
|
||||||
if (params.girdLevel) {
|
if (params.girdLevel) {
|
||||||
this.girdLevel = params.girdLevel
|
this.girdLevel = params.girdLevel
|
||||||
}
|
}
|
||||||
|
if(params.isMyGird) {
|
||||||
|
this.isMyGird = params.isMyGird
|
||||||
|
}
|
||||||
this.isGirdUser()
|
this.isGirdUser()
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
@@ -71,13 +76,27 @@ export default {
|
|||||||
if (res?.data) {
|
if (res?.data) {
|
||||||
if (res.data.checkType) {
|
if (res.data.checkType) {
|
||||||
this.userGird = res.data
|
this.userGird = res.data
|
||||||
this.getTree()
|
if(this.isMyGird) {
|
||||||
|
this.getMyGird()
|
||||||
|
}else {
|
||||||
|
this.getTree()
|
||||||
|
}
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
this.$u.toast('当前人员不是网格员或网格管理员')
|
this.$u.toast('当前人员不是网格员或网格管理员')
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
|
getMyGird() {
|
||||||
|
this.selectList = []
|
||||||
|
this.$http.post('/app/appgirdmemberinfo/queryMyGirdListByLevel2AndUser').then((res) => {
|
||||||
|
if (res.code == 0) {
|
||||||
|
this.allData = res.data
|
||||||
|
this.treeInit()
|
||||||
|
}
|
||||||
|
})
|
||||||
|
},
|
||||||
getTree() {
|
getTree() {
|
||||||
this.selectList = []
|
this.selectList = []
|
||||||
this.$http.post(`/app/appgirdinfo/queryAppGirdInfoByGirdLevel?girdLevel=${this.girdLevel}&girdMemberId=${this.userGird.girdMemberId}&parentGirdId=${this.parentGirdId}`).then((res) => {
|
this.$http.post(`/app/appgirdinfo/queryAppGirdInfoByGirdLevel?girdLevel=${this.girdLevel}&girdMemberId=${this.userGird.girdMemberId}&parentGirdId=${this.parentGirdId}`).then((res) => {
|
||||||
|
|||||||
@@ -3,7 +3,7 @@
|
|||||||
<AiTopFixed v-if="isAdmin">
|
<AiTopFixed v-if="isAdmin">
|
||||||
<div class="pad-t32"></div>
|
<div class="pad-t32"></div>
|
||||||
<div class="select-gird">
|
<div class="select-gird">
|
||||||
<AiPagePicker type="gird" girdLevel="2" class="gird-name-div" @select="confirmSelect">
|
<AiPagePicker type="gird" girdLevel="2" class="gird-name-div" @select="confirmSelect" :isMyGird="true">
|
||||||
<img src="./components/img/gird-icon.png" alt="" class="gird-icon">
|
<img src="./components/img/gird-icon.png" alt="" class="gird-icon">
|
||||||
<div class="gird-name">{{ girdName }}</div>
|
<div class="gird-name">{{ girdName }}</div>
|
||||||
<img src="./components/img/down-icon.png" alt="" class="down-icon">
|
<img src="./components/img/down-icon.png" alt="" class="down-icon">
|
||||||
|
|||||||
Reference in New Issue
Block a user