判读 违法用地,非法采矿 待审核和已审核画面添加导出SHP功能
parent
808b628215
commit
3158f12eb0
|
|
@ -27,6 +27,8 @@ enum Api {
|
|||
LoadDroneCaseInfoTaskByUser = '/api/DroneCaseInfoTask/LoadDroneCaseInfoTaskByUser',
|
||||
// 判读-预览最后一次数据
|
||||
LoadCaseImportInfoLast = '/api/DroneCaseInfoTask/LoadCaseImportInfoLast',
|
||||
// 判读-导出shp文件
|
||||
ExportapprovalCaseInfoShapefile = 'ExportapprovalCaseInfoShapefile'
|
||||
}
|
||||
|
||||
const typeObj = {
|
||||
|
|
@ -135,4 +137,11 @@ export function LoadCaseImportInfoLast(params: { subjectname: string, page?: num
|
|||
url: Api.LoadCaseImportInfoLast,
|
||||
params
|
||||
})
|
||||
}
|
||||
export function ExportapprovalCaseInfoShapefile(type, params){
|
||||
return defHttp.post({
|
||||
url: typeObj[type] + Api.ExportapprovalCaseInfoShapefile,
|
||||
params,
|
||||
responseType: 'blob',
|
||||
})
|
||||
}
|
||||
|
|
@ -59,6 +59,8 @@ enum Api {
|
|||
MainCloseCaseInfo = '/api/DroneCaseInfoMinerals/CloseMineralCaseInfo',
|
||||
// 判读-导入数据
|
||||
MainUpdateCaseInfoShpData = '/api/DroneCaseInfoTask/ImportMineralShpData',
|
||||
// 判读-导出SHP
|
||||
MainExportapprovalCaseInfoShapefile = '/api/DroneCaseInfoMinerals/ExportApprovalCaseInfoShapefile'
|
||||
}
|
||||
|
||||
export function LoadCaiKuangTaskList(params) {
|
||||
|
|
@ -161,4 +163,11 @@ export function MainUpdateCaseInfoShpData(params: {zipFilePath: string, srid: st
|
|||
url: `${Api.MainUpdateCaseInfoShpData}?zipFilePath=${params.zipFilePath}&srid=${params.srid}&subjectname=${params.subjectname}`,
|
||||
data: params,
|
||||
})
|
||||
}
|
||||
}
|
||||
export function MainExportapprovalCaseInfoShapefile(params){
|
||||
return defHttp.post({
|
||||
url: Api.MainExportapprovalCaseInfoShapefile,
|
||||
params,
|
||||
responseType: 'blob',
|
||||
})
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,6 +1,9 @@
|
|||
<template>
|
||||
<PageWrapper dense contentFullHeight fixedHeight contentClass="flex">
|
||||
<BasicTable class="w-4/4 xl:w-5/5" @register="registerTable">
|
||||
<template #toolbar>
|
||||
<a-button type="primary" @click="downloadSHP" v-if="['违法用地','非法采矿'].includes(type)">SHP导出</a-button>
|
||||
</template>
|
||||
<template #bodyCell="{ column, record }">
|
||||
<template v-if="column.key === 'action'">
|
||||
<TableAction
|
||||
|
|
@ -27,7 +30,7 @@ import { BasicTable, useTable, TableAction } from '@/components/Table';
|
|||
import { PageWrapper } from '@/components/Page';
|
||||
import InfoModal from '@/components/Audit/InfoModal/index.vue'
|
||||
import { columns, searchFormSchemaFunction } from '@/views/demo/audit/util';
|
||||
import { LoadCaseInfoLists, GetCaseInfo } from '@/api/audit/index';
|
||||
import { LoadCaseInfoLists, GetCaseInfo, ExportapprovalCaseInfoShapefile } from '@/api/audit/index';
|
||||
import { useRouter } from 'vue-router';
|
||||
|
||||
const router = useRouter()
|
||||
|
|
@ -82,4 +85,19 @@ const handleOk = () => {
|
|||
const closeModal = () => {
|
||||
openModal.value = false
|
||||
}
|
||||
const downloadSHP = () => {
|
||||
let params = {
|
||||
nowStatus: '已审核'
|
||||
}
|
||||
ExportapprovalCaseInfoShapefile(type,params).then(res => {
|
||||
const elink = document.createElement('a');
|
||||
elink.download = '已审核矢量数据' + new Date().getTime() + '.zip';
|
||||
elink.style.display = 'none';
|
||||
elink.href = URL.createObjectURL(res);
|
||||
document.body.appendChild(elink);
|
||||
elink.click();
|
||||
URL.revokeObjectURL(elink.href);
|
||||
document.body.removeChild(elink);
|
||||
})
|
||||
}
|
||||
</script>
|
||||
|
|
|
|||
|
|
@ -12,6 +12,7 @@
|
|||
>
|
||||
<a-button type="primary">导入</a-button>
|
||||
</a-upload>
|
||||
<a-button type="primary" @click="downloadSHP" v-if="['违法用地','非法采矿'].includes(type)">SHP导出</a-button>
|
||||
</template>
|
||||
<template #bodyCell="{ column, record }">
|
||||
<template v-if="column.key === 'action'">
|
||||
|
|
@ -61,7 +62,15 @@ import { create, saveDraft, GetDraft } from '@/api/sys/WFProcess';
|
|||
import { message, Modal, Input } from 'ant-design-vue';
|
||||
import { SaveReSubmitInfo } from '@/api/demo/resubmit';
|
||||
import { uploadFile } from '@/api/formrender/index';
|
||||
import { LoadCaseInfoLists, GetCaseInfo, CloseCaseInfo, ImportCaseInfoShpData, UpdateCaseNoBySubject, LoadCaseImportInfoLast } from '@/api/audit/index';
|
||||
import {
|
||||
LoadCaseInfoLists,
|
||||
GetCaseInfo,
|
||||
CloseCaseInfo,
|
||||
ImportCaseInfoShpData,
|
||||
UpdateCaseNoBySubject,
|
||||
LoadCaseImportInfoLast,
|
||||
ExportapprovalCaseInfoShapefile,
|
||||
} from '@/api/audit/index';
|
||||
import { useRouter } from 'vue-router';
|
||||
|
||||
const router = useRouter()
|
||||
|
|
@ -259,6 +268,21 @@ const preview = () => {
|
|||
openImportModal.value = true
|
||||
})
|
||||
}
|
||||
const downloadSHP = () => {
|
||||
let params = {
|
||||
|
||||
}
|
||||
ExportapprovalCaseInfoShapefile(type,params).then(res => {
|
||||
const elink = document.createElement('a');
|
||||
elink.download = '待审核矢量数据' + new Date().getTime() + '.zip';
|
||||
elink.style.display = 'none';
|
||||
elink.href = URL.createObjectURL(res);
|
||||
document.body.appendChild(elink);
|
||||
elink.click();
|
||||
URL.revokeObjectURL(elink.href);
|
||||
document.body.removeChild(elink);
|
||||
})
|
||||
}
|
||||
|
||||
</script>
|
||||
<style lang="scss">
|
||||
|
|
|
|||
|
|
@ -1,6 +1,9 @@
|
|||
<template>
|
||||
<PageWrapper dense contentFullHeight fixedHeight contentClass="flex">
|
||||
<BasicTable class="w-4/4 xl:w-5/5" @register="registerTable">
|
||||
<template #toolbar>
|
||||
<a-button type="primary" @click="downloadSHP">SHP导出</a-button>
|
||||
</template>
|
||||
<template #bodyCell="{ column, record }">
|
||||
<template v-if="column.key === 'action'">
|
||||
<TableAction
|
||||
|
|
@ -27,7 +30,7 @@ import { BasicTable, useTable, TableAction } from '@/components/Table';
|
|||
import { PageWrapper } from '@/components/Page';
|
||||
import InfoModal from '../mainaudit/InfoModal/index.vue'
|
||||
import { columns, searchFormSchema } from './util';
|
||||
import { MainLoadCaseInfoLists, MainGetCaseInfo } from '@/api/illegalmining/index';
|
||||
import { MainLoadCaseInfoLists, MainGetCaseInfo, MainExportapprovalCaseInfoShapefile } from '@/api/illegalmining/index';
|
||||
|
||||
const infoData = ref({})
|
||||
const openModal = ref(false)
|
||||
|
|
@ -78,4 +81,19 @@ const handleOk = () => {
|
|||
const closeModal = () => {
|
||||
openModal.value = false
|
||||
}
|
||||
const downloadSHP = () => {
|
||||
let params = {
|
||||
nowStatus: '已审核'
|
||||
}
|
||||
MainExportapprovalCaseInfoShapefile(params).then(res => {
|
||||
const elink = document.createElement('a');
|
||||
elink.download = '已审核矢量数据' + new Date().getTime() + '.zip';
|
||||
elink.style.display = 'none';
|
||||
elink.href = URL.createObjectURL(res);
|
||||
document.body.appendChild(elink);
|
||||
elink.click();
|
||||
URL.revokeObjectURL(elink.href);
|
||||
document.body.removeChild(elink);
|
||||
})
|
||||
}
|
||||
</script>
|
||||
|
|
|
|||
|
|
@ -12,6 +12,7 @@
|
|||
>
|
||||
<a-button type="primary">导入</a-button>
|
||||
</a-upload>
|
||||
<a-button type="primary" @click="downloadSHP">SHP导出</a-button>
|
||||
</template>
|
||||
<template #bodyCell="{ column, record }">
|
||||
<template v-if="column.key === 'action'">
|
||||
|
|
@ -60,7 +61,7 @@ import { create, saveDraft, GetDraft } from '@/api/sys/WFProcess';
|
|||
import { message, Modal, Input } from 'ant-design-vue';
|
||||
import { SaveReSubmitInfo } from '@/api/demo/resubmit';
|
||||
import { uploadFile } from '@/api/formrender/index';
|
||||
import { MainLoadCaseInfoLists, MainGetCaseInfo, MainCloseCaseInfo, MainUpdateCaseInfoShpData } from '@/api/illegalmining/index';
|
||||
import { MainLoadCaseInfoLists, MainGetCaseInfo, MainCloseCaseInfo, MainUpdateCaseInfoShpData, MainExportapprovalCaseInfoShapefile } from '@/api/illegalmining/index';
|
||||
import ImportDataModal from '@/components/Audit/ImportDataModal/index.vue'
|
||||
import { UpdateCaseNoBySubject, LoadCaseImportInfoLast } from '@/api/audit/index';
|
||||
|
||||
|
|
@ -250,6 +251,21 @@ const preview = () => {
|
|||
openImportModal.value = true
|
||||
})
|
||||
}
|
||||
const downloadSHP = () => {
|
||||
let params = {
|
||||
|
||||
}
|
||||
MainExportapprovalCaseInfoShapefile(params).then(res => {
|
||||
const elink = document.createElement('a');
|
||||
elink.download = '待审核矢量数据' + new Date().getTime() + '.zip';
|
||||
elink.style.display = 'none';
|
||||
elink.href = URL.createObjectURL(res);
|
||||
document.body.appendChild(elink);
|
||||
elink.click();
|
||||
URL.revokeObjectURL(elink.href);
|
||||
document.body.removeChild(elink);
|
||||
})
|
||||
}
|
||||
|
||||
</script>
|
||||
<style lang="scss">
|
||||
|
|
|
|||
Loading…
Reference in New Issue