改造上架版网格
This commit is contained in:
@@ -1,18 +1,5 @@
|
||||
<template>
|
||||
<div class="AddGird">
|
||||
<div class="item-flex">
|
||||
<div class="label">
|
||||
<span class="tips"></span>网格类型
|
||||
</div>
|
||||
<div class="value">{{ $dict.getLabel('girdType', form.girdType) }}</div>
|
||||
</div>
|
||||
<div class="item-flex">
|
||||
<div class="label">
|
||||
<span class="tips"></span>网格层级
|
||||
</div>
|
||||
<div class="value">{{ $dict.getLabel('girdLevel', form.girdLevel) }}</div>
|
||||
</div>
|
||||
|
||||
<div class="item-flex">
|
||||
<div class="label">
|
||||
<span class="tips">*</span>网格名称
|
||||
@@ -35,7 +22,7 @@
|
||||
<span style="color:#999;" v-else>请选择</span>
|
||||
<img src="./components/img/right-icon.png" alt=""/></div>
|
||||
</div>
|
||||
<div class="item-flex" v-if="form.girdLevel == 2">
|
||||
<div class="item-flex">
|
||||
<div class="label">
|
||||
<span class="tips"></span>网格员
|
||||
</div>
|
||||
@@ -68,7 +55,7 @@ export default {
|
||||
}
|
||||
},
|
||||
onLoad(option) {
|
||||
this.$dict.load('girdType', 'girdLevel').then(() => {
|
||||
this.$dict.load('girdType').then(() => {
|
||||
this.id = option.id
|
||||
this.fromType = option.fromType
|
||||
this.getDetail()
|
||||
@@ -93,9 +80,7 @@ export default {
|
||||
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.$forceUpdate()
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user