| @@ -1,12 +1,6 @@ | |||||
| <template> | <template> | ||||
| <div class="home_wrapper"> | <div class="home_wrapper"> | ||||
| <van-nav-bar | |||||
| title="土地列表管理" | |||||
| left-arrow | |||||
| placeholder | |||||
| safe-area-inset-top | |||||
| @click-left="onClickLeft" | |||||
| /> | |||||
| <van-nav-bar title="土地列表管理" left-arrow placeholder safe-area-inset-top @click-left="onClickLeft"/> | |||||
| <div class="search_box"> | <div class="search_box"> | ||||
| <div class="left"> | <div class="left"> | ||||
| @@ -17,23 +11,11 @@ | |||||
| </div> | </div> | ||||
| <van-popup v-model="showPicker" round position="bottom"> | <van-popup v-model="showPicker" round position="bottom"> | ||||
| <van-picker | |||||
| show-toolbar | |||||
| :columns="dict.type.survey_status" | |||||
| value-key="label" | |||||
| @cancel="showPicker = false" | |||||
| @confirm="onConfirm" | |||||
| /> | |||||
| <van-picker show-toolbar :columns="dict.type.survey_status" value-key="label" @cancel="showPicker = false" @confirm="onConfirm"/> | |||||
| </van-popup> | </van-popup> | ||||
| <div class="list_main"> | <div class="list_main"> | ||||
| <van-list | |||||
| v-model="loading" | |||||
| :finished="finished" | |||||
| finished-text="没有更多了" | |||||
| @load="getList" | |||||
| > | |||||
| <!--1--> | |||||
| <van-list v-model="loading" :finished="finished" finished-text="没有更多了" @load="getList"> | |||||
| <van-swipe-cell right-width="200" class="item" v-for="(item,index) in landList" :key="index"> | <van-swipe-cell right-width="200" class="item" v-for="(item,index) in landList" :key="index"> | ||||
| <div class="item_box" @click="$router.push({name:'appDetail',query:{dkbm:item.dkbm}})"> | <div class="item_box" @click="$router.push({name:'appDetail',query:{dkbm:item.dkbm}})"> | ||||
| <div class="head_block"> | <div class="head_block"> | ||||
| @@ -51,7 +33,6 @@ | |||||
| <div style="background-color: #ee0a24;height: 100%" @click="handleDelete(item)">删除</div> | <div style="background-color: #ee0a24;height: 100%" @click="handleDelete(item)">删除</div> | ||||
| </template> | </template> | ||||
| </van-swipe-cell> | </van-swipe-cell> | ||||
| </van-list> | </van-list> | ||||
| </div> | </div> | ||||
| @@ -59,7 +40,6 @@ | |||||
| </template> | </template> | ||||
| <script> | <script> | ||||
| // import { getMenuApp } from "@/api/app/index"; | |||||
| import { Dialog } from 'vant'; | import { Dialog } from 'vant'; | ||||
| import { listLand, delLand } from "@/api/resource/land" | import { listLand, delLand } from "@/api/resource/land" | ||||
| export default { | export default { | ||||
| @@ -96,7 +76,6 @@ | |||||
| }; | }; | ||||
| }, | }, | ||||
| created() { | created() { | ||||
| //console.log(this.dict.type.survey_status) | |||||
| this.queryParams.importCode = this.$store.getters.user.user.dept.importCode; | this.queryParams.importCode = this.$store.getters.user.user.dept.importCode; | ||||
| }, | }, | ||||
| methods: { | methods: { | ||||
| @@ -119,7 +98,6 @@ | |||||
| }) | }) | ||||
| }, | }, | ||||
| onConfirm(value) { | onConfirm(value) { | ||||
| console.log(value) | |||||
| this.surveyStatus = value.label; | this.surveyStatus = value.label; | ||||
| this.queryParams.surveyStatus = value.value; | this.queryParams.surveyStatus = value.value; | ||||
| this.showPicker = false; | this.showPicker = false; | ||||
| @@ -141,7 +119,6 @@ | |||||
| /** 删除按钮操作 */ | /** 删除按钮操作 */ | ||||
| handleDelete(row) { | handleDelete(row) { | ||||
| const fids = row.fid || this.ids | const fids = row.fid || this.ids | ||||
| Dialog.confirm({ | Dialog.confirm({ | ||||
| title: '提示', | title: '提示', | ||||
| message: '是否确认删除地块属性编号为"' + fids + '"的数据项?', | message: '是否确认删除地块属性编号为"' + fids + '"的数据项?', | ||||
| @@ -156,7 +133,6 @@ | |||||
| .catch(() => { | .catch(() => { | ||||
| // on cancel | // on cancel | ||||
| }); | }); | ||||
| } | } | ||||
| }, | }, | ||||
| }; | }; | ||||