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] =?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