This commit is contained in:
yanran200730
2022-06-08 10:53:44 +08:00
7 changed files with 26 additions and 19 deletions

View File

@@ -40,6 +40,7 @@
import { mapState } from 'vuex'
export default {
name: "AppEquipment",
appName: '设备管理',
data() {
return {
areaId: '',

View File

@@ -29,7 +29,7 @@
</div>
<div v-if="form.girdMemberList && form.girdMemberList.length">
<div class="info-flex" v-for="(item, index) in form.girdMemberList" :key="index">
<span class="label">网格管理员</span>
<span class="label">网格</span>
<span class="value">{{ item.name }}&nbsp;&nbsp;{{ item.phone }}
<img :src="$cdn + 'common/phone.png'" alt="" @click="callPhone(item.phone)" class="phone-icon"
v-if="item.phone">

View File

@@ -2,7 +2,6 @@
<div class="SelectGird">
<div class="header-middle">
<div class="hint">
<AiGap/>
<span v-for="(item, index) in slectList" :key="index">
<span v-if="index" style="margin:0 4px;" v-text="`/`"/>
<span style="color:#3F8DF5" @click="girdNameClick(item, index)" v-text="item.girdName"/>
@@ -22,7 +21,7 @@
</div>
</div>
</div>
<AiEmpty :description="isGridMember?`暂无数据`:`当前人员不是网格员或网格管理员`" class="emptyWrap" v-else/>
<AiEmpty :description="isGridMember?`暂无数据`:`当前人员不是网格员或网格`" class="emptyWrap" v-else/>
</div>
</div>
<!-- <div style="padding-bottom: 70px;"></div> -->
@@ -43,7 +42,6 @@ export default {
allData: null,
treeList: [],
slectList: [],
userList: [],
parentGirdId: '',
isFormMap: 0, //1为网格地图 一级不允许选中
}
@@ -61,7 +59,7 @@ export default {
if (option.isFormMap) {
this.isFormMap = option.isFormMap
}
this.isGridMember ? this.getAllGrids() : this.$u.toast('当前人员不是网格员或网格管理员')
this.isGridMember ? this.getAllGrids() : this.$u.toast('当前人员不是网格员或网格')
},
methods: {
getAllGrids() {
@@ -81,9 +79,9 @@ export default {
}
})
},
treeInit() {
treeInit(isClick) {
let last = uni.getStorageSync("lastSelectedGrid")
if (last) {
if (!isClick && last) {
this.$http.post("/app/appgirdinfo/listFatherGirdInfo", null, {
params: {girdId: last}
}).then(res => {
@@ -114,18 +112,11 @@ export default {
this.treeList = this.allData.filter(e => e.parentGirdId == parentGirdId)
},
girdNameClick(row, index) {
this.userList = []
if (!index) { //第一级别
this.slectList = []
this.treeInit()
this.treeInit(true)
} else {
var list = []
this.slectList.map((item, i) => {
if (i <= index) {
list.push(item)
}
})
this.slectList = list
this.slectList.splice(index, 8)
this.getGridsByGridMemberAndParent(row)
}
},

View File

@@ -39,6 +39,7 @@
export default {
name: "AppResourcesManage",
appName: '媒资管理',
data() {
return {
tab: [{name: '音频素材'}, {name: '文本素材'}],