判读 导出SHP时加入筛选条件

dianlixunjian
zhufu 2025-03-04 14:28:53 +08:00
parent 8f13b7ed5d
commit 514abb775f
2 changed files with 8 additions and 4 deletions

View File

@ -94,7 +94,7 @@ const picihao = ref()
const openProgressModal = ref(false)
const modalLoading = ref(false)
const [registerTable, { reload, expandAll}] = useTable({
const [registerTable, { reload, expandAll, getForm}] = useTable({
title: '待审核',
api: (params) => LoadCaseInfoLists(type,params),
columns,
@ -289,7 +289,9 @@ const preview = () => {
})
}
const downloadSHP = () => {
ExportapprovalCaseInfoShapefile(type).then(res => {
const form = getForm();
const filterValues = form.getFieldsValue();
ExportapprovalCaseInfoShapefile(type,filterValues).then(res => {
const elink = document.createElement('a');
elink.download = '待审核矢量数据' + new Date().getTime() + '.zip';
elink.style.display = 'none';

View File

@ -78,7 +78,7 @@ const openImportModal = ref(false)
const openProgressModal = ref(false)
const modalLoading = ref(false)
const [registerTable, { reload, expandAll}] = useTable({
const [registerTable, { reload, expandAll, getForm}] = useTable({
title: '待审核',
api: MainLoadCaseInfoLists,
columns,
@ -275,7 +275,9 @@ const preview = () => {
})
}
const downloadSHP = () => {
MainExportapprovalCaseInfoShapefile().then(res => {
const form = getForm();
const filterValues = form.getFieldsValue();
MainExportapprovalCaseInfoShapefile(filterValues).then(res => {
const elink = document.createElement('a');
elink.download = '待审核矢量数据' + new Date().getTime() + '.zip';
elink.style.display = 'none';