BUG 29525
This commit is contained in:
@@ -3,8 +3,7 @@
|
|||||||
<AiTopFixed v-if="isGridMember">
|
<AiTopFixed v-if="isGridMember">
|
||||||
<div class="pad-t32"></div>
|
<div class="pad-t32"></div>
|
||||||
<div class="select-gird">
|
<div class="select-gird">
|
||||||
<AiPagePicker type="custom" @select="confirmSelect" v-model="girdId" self
|
<AiPagePicker type="custom" @select="confirmSelect" self :ops="{url:'../AppGridManagement/SelectGird',label: 'girdName'}">
|
||||||
:ops="{url:'../AppGridManagement/SelectGird',label: 'girdName'}">
|
|
||||||
<div flex class="center">
|
<div flex class="center">
|
||||||
<img src="./components/img/gird-icon.png" alt="" class="gird-icon">
|
<img src="./components/img/gird-icon.png" alt="" class="gird-icon">
|
||||||
<AiMore v-model="girdName" icon="arrow-down"/>
|
<AiMore v-model="girdName" icon="arrow-down"/>
|
||||||
@@ -126,6 +125,7 @@ export default {
|
|||||||
methods: {
|
methods: {
|
||||||
...mapActions(['injectJWeixin', 'wxInvoke']),
|
...mapActions(['injectJWeixin', 'wxInvoke']),
|
||||||
confirmSelect(v) {
|
confirmSelect(v) {
|
||||||
|
this.girdId = v?.id
|
||||||
this.girdName = v?.girdName
|
this.girdName = v?.girdName
|
||||||
this.getListInit()
|
this.getListInit()
|
||||||
this.getTotal()
|
this.getTotal()
|
||||||
|
|||||||
@@ -21,7 +21,7 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<AiEmpty description="暂无数据" class="emptyWrap" v-else/>
|
<AiEmpty :description="isGridMember?`暂无数据`:`当前人员不是网格员或网格管理员`" class="emptyWrap" v-else/>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<!-- <div style="padding-bottom: 70px;"></div> -->
|
<!-- <div style="padding-bottom: 70px;"></div> -->
|
||||||
@@ -32,6 +32,8 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
|
import {mapState} from "vuex";
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: 'SelectGird',
|
name: 'SelectGird',
|
||||||
data() {
|
data() {
|
||||||
@@ -40,36 +42,30 @@ export default {
|
|||||||
allData: null,
|
allData: null,
|
||||||
treeList: [],
|
treeList: [],
|
||||||
slectList: [],
|
slectList: [],
|
||||||
userGird: {},
|
|
||||||
userList: [],
|
userList: [],
|
||||||
parentGirdId: '',
|
parentGirdId: '',
|
||||||
isFormMap: 0, //1为网格地图 一级不允许选中
|
isFormMap: 0, //1为网格地图 一级不允许选中
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
computed: {
|
computed: {
|
||||||
|
...mapState(['user']),
|
||||||
isMyGirds() {
|
isMyGirds() {
|
||||||
return !!this.$route.query.self
|
return !!this.$route.query.self
|
||||||
|
},
|
||||||
|
userGird() {
|
||||||
|
return this.user?.gridInfo || {}
|
||||||
|
},
|
||||||
|
isGridMember() {
|
||||||
|
return this.user.girdCheckType > 0
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
onLoad(option) {
|
onLoad(option) {
|
||||||
if (option.isFormMap) {
|
if (option.isFormMap) {
|
||||||
this.isFormMap = option.isFormMap
|
this.isFormMap = option.isFormMap
|
||||||
}
|
}
|
||||||
this.isGirdUser()
|
this.isGridMember ? this.getAllGrids() : this.$u.toast('当前人员不是网格员或网格管理员')
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
isGirdUser() {
|
|
||||||
this.$http.post('/app/appgirdmemberinfo/checkLogOnUser').then((res) => {
|
|
||||||
if (res.code == 0) {
|
|
||||||
if (res.data.checkType) {
|
|
||||||
this.userGird = res.data
|
|
||||||
this.getAllGrids()
|
|
||||||
} else {
|
|
||||||
this.$u.toast('当前人员不是网格员或网格管理员')
|
|
||||||
}
|
|
||||||
}
|
|
||||||
})
|
|
||||||
},
|
|
||||||
getAllGrids() {
|
getAllGrids() {
|
||||||
this.slectList = []
|
this.slectList = []
|
||||||
let {girdMemberId} = this.userGird,
|
let {girdMemberId} = this.userGird,
|
||||||
|
|||||||
Reference in New Issue
Block a user