BUG 30090
This commit is contained in:
@@ -21,7 +21,6 @@
|
|||||||
<span class="tips">*</span>所属网格
|
<span class="tips">*</span>所属网格
|
||||||
</div>
|
</div>
|
||||||
<div class="value" @click="linkTo('./SelectGird?formType=2')">
|
<div class="value" @click="linkTo('./SelectGird?formType=2')">
|
||||||
|
|
||||||
<span v-if="selectGird.girdName">{{selectGird.girdName}}</span>
|
<span v-if="selectGird.girdName">{{selectGird.girdName}}</span>
|
||||||
<span style="color:#999;" v-else>请选择</span>
|
<span style="color:#999;" v-else>请选择</span>
|
||||||
<img src="./components/img/right-icon.png" alt="" /></div>
|
<img src="./components/img/right-icon.png" alt="" /></div>
|
||||||
|
|||||||
@@ -53,13 +53,15 @@ export default {
|
|||||||
},
|
},
|
||||||
isGridMember() {
|
isGridMember() {
|
||||||
return this.user.girdCheckType > 0
|
return this.user.girdCheckType > 0
|
||||||
}
|
},
|
||||||
|
//是否是网格员申报
|
||||||
|
isApply: v => v.$route.query.formType == 2
|
||||||
},
|
},
|
||||||
onLoad(option) {
|
onLoad(option) {
|
||||||
if (option.isFormMap) {
|
if (option.isFormMap) {
|
||||||
this.isFormMap = option.isFormMap
|
this.isFormMap = option.isFormMap
|
||||||
}
|
}
|
||||||
this.isGridMember ? this.getAllGrids() : this.$u.toast('当前人员不是网格员或网格长')
|
this.isGridMember || this.isApply ? this.getAllGrids() : this.$u.toast('当前人员不是网格员或网格长')
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
getAllGrids() {
|
getAllGrids() {
|
||||||
@@ -67,6 +69,10 @@ export default {
|
|||||||
let {girdMemberId} = this.user,
|
let {girdMemberId} = this.user,
|
||||||
url = `/app/appgirdinfo/queryAppGirdInfoByGirdLevel`,
|
url = `/app/appgirdinfo/queryAppGirdInfoByGirdLevel`,
|
||||||
params = {girdMemberId}
|
params = {girdMemberId}
|
||||||
|
if (this.isApply) {
|
||||||
|
url = `/app/appgirdinfo/listByInfo`
|
||||||
|
params = {}
|
||||||
|
}
|
||||||
if (this.isMyGirds) {
|
if (this.isMyGirds) {
|
||||||
url = `/app/appgirdmemberinfo/queryMyGirdListByLevel2AndUser`
|
url = `/app/appgirdmemberinfo/queryMyGirdListByLevel2AndUser`
|
||||||
params = {}
|
params = {}
|
||||||
@@ -81,7 +87,7 @@ export default {
|
|||||||
},
|
},
|
||||||
treeInit(isClick) {
|
treeInit(isClick) {
|
||||||
let last = uni.getStorageSync("lastSelectedGrid")
|
let last = uni.getStorageSync("lastSelectedGrid")
|
||||||
if (!isClick && last) {
|
if (!isClick && last && !this.isApply) {
|
||||||
this.$http.post("/app/appgirdinfo/listFatherGirdInfo", null, {
|
this.$http.post("/app/appgirdinfo/listFatherGirdInfo", null, {
|
||||||
params: {girdId: last}
|
params: {girdId: last}
|
||||||
}).then(res => {
|
}).then(res => {
|
||||||
|
|||||||
Reference in New Issue
Block a user