|
@@ -15,7 +15,7 @@
|
|
|
</div>
|
|
|
<div>
|
|
|
<el-button type="primary" class="btn-default">查询</el-button>
|
|
|
- <el-button class="btn-default">导出清单和shape</el-button>
|
|
|
+ <el-button class="btn-default" @click="exportList(scope.row.id)">导出清单和shape</el-button>
|
|
|
</div>
|
|
|
</div>
|
|
|
</header>
|
|
@@ -34,7 +34,7 @@
|
|
|
<el-table-column fixed="right" label="操作" min-width="130">
|
|
|
<template #default="scope">
|
|
|
<el-button link type="primary" @click="toDetail()">预览</el-button>
|
|
|
- <el-popconfirm title="确认删除此条?" @confirm="toDelete()">
|
|
|
+ <el-popconfirm title="确认删除此条?" @confirm="toDelete(scope.row)">
|
|
|
<template #reference>
|
|
|
<el-button link type="danger">删除</el-button>
|
|
|
</template>
|
|
@@ -44,14 +44,17 @@
|
|
|
</el-table>
|
|
|
<Pagination :total="tableTotal" :page-size="pageSize" :current-page="currentPage" @pageChange="pagi_changePage" />
|
|
|
</main>
|
|
|
+ <DrawMap v-model="drawPosShow" :showOnly="true" @drawComplete="resData => handleDrawComplete(resData)" />
|
|
|
</div>
|
|
|
</template>
|
|
|
|
|
|
<script setup>
|
|
|
-import { reactive, ref } from 'vue'
|
|
|
+import { reactive, ref, onMounted } from 'vue'
|
|
|
import Pagination from '../../../components/Pagination.vue';
|
|
|
import { select_test, auditStateArr } from '../../../utils/data/select-data'
|
|
|
import { useRouter } from "vue-router";
|
|
|
+import { GetGbntList,DeleteGbnt,GetGbntGeo,GetGbntExp } from '../../../api/projectAudit'
|
|
|
+// import DrawMap from "./DrawMap.vue";
|
|
|
|
|
|
const pageSize = ref(10)
|
|
|
const tableTotal = ref(0)
|
|
@@ -71,27 +74,34 @@ const formInline = reactive({
|
|
|
|
|
|
const tableData = reactive({
|
|
|
value: [
|
|
|
- { projectName: '高标准农田2023年备选地块1', villages: 'xxx镇', protectionOfCultivatedLand: '12312', permanentArea: '12312', numberOfEntities: '2', numberOfPlots: '4', remarks: 'XX', holdTime: '2023-04-18' },
|
|
|
- { projectName: '高标准农田2023年备选地块2', villages: 'xxx镇', protectionOfCultivatedLand: '12312', permanentArea: '12312', numberOfEntities: '2', numberOfPlots: '4', remarks: 'XX', holdTime: '2023-04-18' },
|
|
|
- { projectName: '高标准农田2023年备选地块3', villages: 'xxx镇', protectionOfCultivatedLand: '12312', permanentArea: '12312', numberOfEntities: '2', numberOfPlots: '4', remarks: 'XX', holdTime: '2023-04-18' },
|
|
|
- { projectName: '高标准农田2023年备选地块4', villages: 'xxx镇', protectionOfCultivatedLand: '12312', permanentArea: '12312', numberOfEntities: '2', numberOfPlots: '4', remarks: 'XX', holdTime: '2023-04-18' },
|
|
|
- { projectName: '高标准农田2023年备选地块5', villages: 'xxx镇', protectionOfCultivatedLand: '12312', permanentArea: '12312', numberOfEntities: '2', numberOfPlots: '4', remarks: 'XX', holdTime: '2023-04-18' },
|
|
|
- { projectName: '高标准农田2023年备选地块6', villages: 'xxx镇', protectionOfCultivatedLand: '12312', permanentArea: '12312', numberOfEntities: '2', numberOfPlots: '4', remarks: 'XX', holdTime: '2023-04-18' },
|
|
|
]
|
|
|
})
|
|
|
const router = useRouter()
|
|
|
|
|
|
|
|
|
function toDetail(row) {
|
|
|
- router.push({
|
|
|
-
|
|
|
- })
|
|
|
+ // router.push({
|
|
|
+ // })
|
|
|
+ drawPosShow.value = true
|
|
|
}
|
|
|
|
|
|
+const drawPosShow = ref(false)
|
|
|
|
|
|
+onMounted(() => {
|
|
|
+ GetGbntList(formInline,currentPage.value,pageSize.value).then(res => {
|
|
|
+ console.log(res);
|
|
|
+ tableData.value = res.data.list
|
|
|
+ tableTotal.value = res.data.total
|
|
|
+ })
|
|
|
+})
|
|
|
|
|
|
function toDelete() {
|
|
|
-
|
|
|
+ DeleteGbnt(row.id).then(res => {
|
|
|
+ if(res.code==200&&res.msg==='删除成功') {
|
|
|
+ ElMessage({type: 'success', message: '删除成功'})
|
|
|
+ toList()
|
|
|
+ }
|
|
|
+ })
|
|
|
}
|
|
|
|
|
|
function toSave() {
|
|
@@ -102,4 +112,4 @@ function toSave() {
|
|
|
|
|
|
<style lang="scss" scoped>
|
|
|
|
|
|
-</style>
|
|
|
+</style>
|