|
|
@@ -1,12 +1,6 @@ |
|
|
|
<template> |
|
|
|
<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="left"> |
|
|
@@ -17,23 +11,11 @@ |
|
|
|
</div> |
|
|
|
|
|
|
|
<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> |
|
|
|
|
|
|
|
<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"> |
|
|
|
<div class="item_box" @click="$router.push({name:'appDetail',query:{dkbm:item.dkbm}})"> |
|
|
|
<div class="head_block"> |
|
|
@@ -51,7 +33,6 @@ |
|
|
|
<div style="background-color: #ee0a24;height: 100%" @click="handleDelete(item)">删除</div> |
|
|
|
</template> |
|
|
|
</van-swipe-cell> |
|
|
|
|
|
|
|
</van-list> |
|
|
|
</div> |
|
|
|
|
|
|
@@ -59,7 +40,6 @@ |
|
|
|
</template> |
|
|
|
|
|
|
|
<script> |
|
|
|
// import { getMenuApp } from "@/api/app/index"; |
|
|
|
import { Dialog } from 'vant'; |
|
|
|
import { listLand, delLand } from "@/api/resource/land" |
|
|
|
export default { |
|
|
@@ -96,7 +76,6 @@ |
|
|
|
}; |
|
|
|
}, |
|
|
|
created() { |
|
|
|
//console.log(this.dict.type.survey_status) |
|
|
|
this.queryParams.importCode = this.$store.getters.user.user.dept.importCode; |
|
|
|
}, |
|
|
|
methods: { |
|
|
@@ -119,7 +98,6 @@ |
|
|
|
}) |
|
|
|
}, |
|
|
|
onConfirm(value) { |
|
|
|
console.log(value) |
|
|
|
this.surveyStatus = value.label; |
|
|
|
this.queryParams.surveyStatus = value.value; |
|
|
|
this.showPicker = false; |
|
|
@@ -141,7 +119,6 @@ |
|
|
|
/** 删除按钮操作 */ |
|
|
|
handleDelete(row) { |
|
|
|
const fids = row.fid || this.ids |
|
|
|
|
|
|
|
Dialog.confirm({ |
|
|
|
title: '提示', |
|
|
|
message: '是否确认删除地块属性编号为"' + fids + '"的数据项?', |
|
|
@@ -156,7 +133,6 @@ |
|
|
|
.catch(() => { |
|
|
|
// on cancel |
|
|
|
}); |
|
|
|
|
|
|
|
} |
|
|
|
}, |
|
|
|
}; |
|
|
|