删除网格类型和等级

This commit is contained in:
2022-05-04 21:53:21 +08:00
parent 73166c5893
commit 23d7d41515
3 changed files with 14 additions and 24 deletions

View File

@@ -55,11 +55,9 @@ export default {
} }
}, },
onLoad(option) { onLoad(option) {
this.$dict.load('girdType').then(() => {
this.id = option.id this.id = option.id
this.fromType = option.fromType this.fromType = option.fromType
this.getDetail() this.getDetail()
})
}, },
onShow() { onShow() {
if (this.fromType == 'add') { if (this.fromType == 'add') {
@@ -80,7 +78,6 @@ export default {
if (this.fromType == 'add') { if (this.fromType == 'add') {
this.form.parentGirdId = this.detailInfo.id this.form.parentGirdId = this.detailInfo.id
this.form.parentGirdName = this.detailInfo.girdName this.form.parentGirdName = this.detailInfo.girdName
this.form.girdType = Number(this.detailInfo.girdType) + 1
this.$forceUpdate() this.$forceUpdate()
} }
} }

View File

@@ -20,10 +20,6 @@
<div class="bg"></div> <div class="bg"></div>
<div class="title">{{ form.girdName }}</div> <div class="title">{{ form.girdName }}</div>
<scroll-view scroll-y="true" class="grid-info"> <scroll-view scroll-y="true" class="grid-info">
<div class="info-flex">
<span class="label">网格类型</span>
<span class="value">{{ $dict.getLabel('girdType', form.girdType) }}</span>
</div>
<div v-if="form.girdMemberManageList && form.girdMemberManageList.length"> <div v-if="form.girdMemberManageList && form.girdMemberManageList.length">
<div class="info-flex" v-for="(item, index) in form.girdMemberManageList" :key="index"> <div class="info-flex" v-for="(item, index) in form.girdMemberManageList" :key="index">
<span class="label">网格长</span> <span class="label">网格长</span>
@@ -74,7 +70,6 @@ export default {
}, },
computed: {...mapState(['user', 'config'])}, computed: {...mapState(['user', 'config'])},
created() { created() {
this.$dict.load('girdType')
this.areaId = this.user.areaId this.areaId = this.user.areaId
// this.getLeafNodes() // this.getLeafNodes()
uni.$on('goback', e => { uni.$on('goback', e => {

View File

@@ -35,18 +35,10 @@
<!-- <span class="boxesRight">{{ girdUser.appGirdInfo.girdName }}</span> --> <!-- <span class="boxesRight">{{ girdUser.appGirdInfo.girdName }}</span> -->
</div> </div>
<div class="boxes">
<span class="boxesLeft">网格类型</span>
<span class="boxesRight">
{{ $dict.getLabel('girdType', girdMsgList.girdType) || '' }}
</span>
</div>
<div class="boxes"> <div class="boxes">
<span class="boxesLeft">标绘状态</span> <span class="boxesLeft">标绘状态</span>
<span class="boxesRight">{{ girdMsgList.plottingStatus== 1 ? '已标绘' : '未标绘' }}</span> <span class="boxesRight">{{ girdMsgList.plottingStatus == 1 ? '已标绘' : '未标绘' }}</span>
</div> </div>
</div> </div>
</div> </div>
@@ -71,12 +63,9 @@ export default {
} }
}, },
created() { created() {
this.$dict.load('girdType').then(() => {
this.isGirdUser() this.isGirdUser()
this.girdMsgList = this.params this.girdMsgList = this.params
this.getList() this.getList()
})
uni.$on('goback', (res) => { uni.$on('goback', (res) => {
this.girdMsgList = res this.girdMsgList = res
this.getList() this.getList()
@@ -99,7 +88,7 @@ export default {
}) })
}, },
linkTo(url) { linkTo(url) {
uni.navigateTo({ url }) uni.navigateTo({url})
}, },
}, },
} }
@@ -115,25 +104,30 @@ export default {
border-radius: 16px; border-radius: 16px;
margin-top: 32px; margin-top: 32px;
padding: 32px 0 60px 0; padding: 32px 0 60px 0;
.girdPeople { .girdPeople {
padding: 0 0 56px 24px; padding: 0 0 56px 24px;
font-size: 32px; font-size: 32px;
font-family: PingFangSC-Regular, PingFang SC; font-family: PingFangSC-Regular, PingFang SC;
color: #333333; color: #333333;
} }
.card { .card {
display: flex; display: flex;
justify-content: space-around; justify-content: space-around;
.box { .box {
display: flex; display: flex;
flex-direction: column; flex-direction: column;
align-items: center; align-items: center;
.count { .count {
font-size: 64px; font-size: 64px;
font-family: DINAlternate-Bold, DINAlternate; font-family: DINAlternate-Bold, DINAlternate;
font-weight: bold; font-weight: bold;
color: #3b424a; color: #3b424a;
} }
.girdCount { .girdCount {
margin-top: 8px; margin-top: 8px;
font-size: 28px; font-size: 28px;
@@ -150,16 +144,19 @@ export default {
border-radius: 16px; border-radius: 16px;
margin-top: 32px; margin-top: 32px;
padding: 0 24px 64px 24px; padding: 0 24px 64px 24px;
.girdMsg { .girdMsg {
padding: 32px 0; padding: 32px 0;
font-size: 32px; font-size: 32px;
font-family: PingFangSC-Regular, PingFang SC; font-family: PingFangSC-Regular, PingFang SC;
color: #333333; color: #333333;
} }
.girdCont { .girdCont {
.boxes { .boxes {
padding: 24px 0 30px 0; padding: 24px 0 30px 0;
box-shadow: inset 0px -1px 0px 0px #d8dde6; box-shadow: inset 0px -1px 0px 0px #d8dde6;
.boxesLeft { .boxesLeft {
font-size: 30px; font-size: 30px;
font-family: PingFang-SC-Heavy, PingFang-SC; font-family: PingFang-SC-Heavy, PingFang-SC;
@@ -169,6 +166,7 @@ export default {
width: 140px; width: 140px;
vertical-align: top; vertical-align: top;
} }
.boxesRight { .boxesRight {
margin-left: 40px; margin-left: 40px;
font-size: 28px; font-size: 28px;