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