网格管理
This commit is contained in:
@@ -20,7 +20,7 @@
|
||||
<span style="color:#999;" v-else>请选择</span>
|
||||
<img src="./components/img/right-icon.png" alt="" /></div>
|
||||
</div>
|
||||
<div class="item-flex">
|
||||
<div class="item-flex" v-if="form.girdLevel == 2">
|
||||
<div class="label">
|
||||
<span class="tips"></span>网格员
|
||||
</div>
|
||||
@@ -75,6 +75,13 @@ export default {
|
||||
if(this.fromType == 'edit') {
|
||||
this.form = res.data
|
||||
}
|
||||
if(this.fromType == 'add') {
|
||||
this.form.parentGirdId = this.detailInfo.id
|
||||
this.form.parentGirdName = this.detailInfo.girdName
|
||||
this.form.girdLevel = Number(this.detailInfo.girdLevel)+1
|
||||
this.form.girdType = Number(this.detailInfo.girdType)+1
|
||||
this.form.isLastLevel = this.form.girdLevel == 2 ? '1' : '0'
|
||||
}
|
||||
}
|
||||
})
|
||||
},
|
||||
@@ -93,14 +100,8 @@ export default {
|
||||
if(!this.form.girdName){
|
||||
return this.$u.toast('请输入网格名称')
|
||||
}
|
||||
if(this.fromType == 'add') {
|
||||
this.form.parentGirdId = this.detailInfo.id
|
||||
this.form.parentGirdName = this.detailInfo.girdName
|
||||
this.form.girdLevel = Number(this.detailInfo.girdLevel)+1
|
||||
this.form.girdType = Number(this.detailInfo.girdType)+1
|
||||
this.form.isLastLevel = this.form.girdLevel == 2 ? '1' : '0'
|
||||
}
|
||||
this.$http.post(`/app/appgirdinfo/addOrUpdate`, this.form).then((res) => {
|
||||
|
||||
this.$http.post(`/app/appgirdinfo/addOrUpdateByEw`, this.form).then((res) => {
|
||||
if (res.code == 0) {
|
||||
this.$u.toast('提交成功')
|
||||
uni.$emit('update')
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
{{userGird.girdName}}
|
||||
<img src="./components/img/down-icon.png" alt="" class="down-icon">
|
||||
</div>
|
||||
<span @click="linkTo('./SetGird')">网格配置</span>
|
||||
<span @click="linkTo('./SetGird')" v-if="checkType == 2">网格配置</span>
|
||||
</div>
|
||||
<div class="title">网格人员</div>
|
||||
<div class="user-content" v-for="(item, index) in dataInfo.parentGirdMembers" :key="index">
|
||||
|
||||
Reference in New Issue
Block a user