From 8f13b7ed5d2e00f536ad8c3df4b9b8078d7eb7bd Mon Sep 17 00:00:00 2001 From: zhufu <17863654727@163.com> Date: Tue, 4 Mar 2025 14:16:25 +0800 Subject: [PATCH 1/2] =?UTF-8?q?=E5=88=A4=E8=AF=BB=E5=AE=A1=E6=A0=B8=20?= =?UTF-8?q?=E8=BF=9D=E6=B3=95=E7=94=A8=E5=9C=B0=20=20=E5=9B=BE=E6=96=91?= =?UTF-8?q?=E8=AF=A6=E6=83=85=E5=AF=B9=E6=8E=A5=E5=9B=BE=E6=96=91=E6=A0=87?= =?UTF-8?q?=E7=AD=BE=E5=8A=9F=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/Audit/InfoModal/index.vue | 27 +++++++++++++++++++++++- src/components/Audit/InfoModal/util.ts | 3 +++ 2 files changed, 29 insertions(+), 1 deletion(-) create mode 100644 src/components/Audit/InfoModal/util.ts diff --git a/src/components/Audit/InfoModal/index.vue b/src/components/Audit/InfoModal/index.vue index f104679a..fa1b5c06 100644 --- a/src/components/Audit/InfoModal/index.vue +++ b/src/components/Audit/InfoModal/index.vue @@ -22,7 +22,21 @@
图斑详情:
- + +
@@ -247,6 +261,7 @@ import MapboxMap from '@/components/MapboxMaps/MapComponent.vue'; import { getGeom } from '@/api/sys/layerManagement'; import { typenameKey } from '@/views/demo/audit/util' import axios from "axios"; +import { tubanbiaoqian1Options, tubanbiaoqian2Options } from './util' const props = defineProps(['infoData','control','type','modalLoading']) const emits = defineEmits(['handleOk','closeModal','closeCase','reSubmit','changeLoading']) @@ -265,8 +280,15 @@ const yesOrNoOptions = ref([ { label: '是', value: 1 }, { label: '否', value: 0 }, ]) +const caseDescription = ref(["",""]) onMounted(() => { + if(props.type == '违法用地'){ + if(props.infoData.case_description){ + caseDescription.value = props.infoData.case_description.split('-') + console.log('caseDescription1.value',caseDescription.value) + } + } getLoad({code: typenameKey[props.type]}).then(res => { typenameOptions.value = res.map(item => { return { @@ -363,6 +385,9 @@ const submitApi = () => { okText: '确认', cancelText: '取消', onOk: () => { + if(props.type == '违法用地'){ + props.infoData.case_description = caseDescription.value.join('-') + } let params = { ...props.infoData, subject: props.type, diff --git a/src/components/Audit/InfoModal/util.ts b/src/components/Audit/InfoModal/util.ts new file mode 100644 index 00000000..4a0d1c5f --- /dev/null +++ b/src/components/Audit/InfoModal/util.ts @@ -0,0 +1,3 @@ +import { asyncGetOptions } from '@/utils/global' +export const tubanbiaoqian1Options = await asyncGetOptions('tubanbiaoqian1'); +export const tubanbiaoqian2Options = await asyncGetOptions('tubanbiaoqian2'); \ No newline at end of file From 514abb775f0c21b47bfd44885efba7d89e811a67 Mon Sep 17 00:00:00 2001 From: zhufu <17863654727@163.com> Date: Tue, 4 Mar 2025 14:28:53 +0800 Subject: [PATCH 2/2] =?UTF-8?q?=E5=88=A4=E8=AF=BB=20=E5=AF=BC=E5=87=BASHP?= =?UTF-8?q?=E6=97=B6=E5=8A=A0=E5=85=A5=E7=AD=9B=E9=80=89=E6=9D=A1=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/demo/audit/audit/index.vue | 6 ++++-- src/views/demo/illegalmining/mainaudit/index.vue | 6 ++++-- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/src/views/demo/audit/audit/index.vue b/src/views/demo/audit/audit/index.vue index 084bfcbf..5a505389 100644 --- a/src/views/demo/audit/audit/index.vue +++ b/src/views/demo/audit/audit/index.vue @@ -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'; diff --git a/src/views/demo/illegalmining/mainaudit/index.vue b/src/views/demo/illegalmining/mainaudit/index.vue index d81c6f16..0120c89e 100644 --- a/src/views/demo/illegalmining/mainaudit/index.vue +++ b/src/views/demo/illegalmining/mainaudit/index.vue @@ -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';