From bbd3fd4b0366fc13e73db6025908d57f5ee6be0b Mon Sep 17 00:00:00 2001 From: zhufu <17863654727@163.com> Date: Thu, 20 Mar 2025 14:19:41 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8E=86=E5=8F=B2=E4=B8=BE=E8=AF=81=20?= =?UTF-8?q?=E5=9B=BE=E7=89=87=E5=92=8C=E9=99=84=E4=BB=B6=E5=8F=AF=E9=80=89?= =?UTF-8?q?=E6=8B=A9=E5=85=B6=E4=BB=96=E4=B8=93=E9=A2=98=E6=88=96=E5=8E=86?= =?UTF-8?q?=E5=8F=B2=E5=9B=BE=E7=89=87?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/tiankongdi/index.ts | 30 ++++ .../Upload/src/components/FileUpload.vue | 97 +++++++++--- .../components/FileUploadSelectOtherModal.vue | 144 ++++++++++++++++++ .../Upload/src/components/ImageUpload.vue | 41 +++++ .../ImageUploadSelectOtherModal.vue | 130 ++++++++++++++++ src/utils/global.ts | 24 +++ .../demo/workflow/task/process/audit.vue | 3 + 7 files changed, 446 insertions(+), 23 deletions(-) create mode 100644 src/components/Upload/src/components/FileUploadSelectOtherModal.vue create mode 100644 src/components/Upload/src/components/ImageUploadSelectOtherModal.vue diff --git a/src/api/tiankongdi/index.ts b/src/api/tiankongdi/index.ts index 59799df4..ce630a0b 100644 --- a/src/api/tiankongdi/index.ts +++ b/src/api/tiankongdi/index.ts @@ -59,6 +59,12 @@ enum Api { GetIntersects = "/api/GeoTiffManager/GetIntersects", // 获取网络环境 GetNetWorkEev = "/api/DroneCloudQuery/IsPublic", + // 获取其他专题或历史图斑图片 + rebackzhuantipic = "/api/DroneCaseInfoSingle/rebackzhuantipic", + CopyImg = "/api/DroneCaseInfoSingle/CopyImg", + // 获取其他专题或历史图斑附件 + rebackzhuantifujian = "/api/DroneCaseInfoSingle/rebackzhuantifujian", + Copyfujian = "/api/DroneCaseInfoSingle/Copyfujian" } /** @@ -175,4 +181,28 @@ export function getIntersectTif(params){ export function getNetworkType(){ return defHttp.get({ url: Api.GetNetWorkEev }); +} +export function rebackzhuantipic(params:{ zhuanti, CaseId }){ + return defHttp.get({ + url: Api.rebackzhuantipic, + params + }); +} +export function CopyImg(params:string[]){ + return defHttp.post({ + url: Api.CopyImg, + data:params, + }); +} +export function rebackzhuantifujian(params:{ zhuanti, CaseId }){ + return defHttp.get({ + url: Api.rebackzhuantifujian, + params + }); +} +export function Copyfujian(params:string[]){ + return defHttp.post({ + url: Api.Copyfujian, + data:params, + }); } \ No newline at end of file diff --git a/src/components/Upload/src/components/FileUpload.vue b/src/components/Upload/src/components/FileUpload.vue index 1ab12a03..4c9e2d4f 100644 --- a/src/components/Upload/src/components/FileUpload.vue +++ b/src/components/Upload/src/components/FileUpload.vue @@ -1,27 +1,27 @@ + diff --git a/src/components/Upload/src/components/FileUploadSelectOtherModal.vue b/src/components/Upload/src/components/FileUploadSelectOtherModal.vue new file mode 100644 index 00000000..63cd5b8a --- /dev/null +++ b/src/components/Upload/src/components/FileUploadSelectOtherModal.vue @@ -0,0 +1,144 @@ + + + + + + \ No newline at end of file diff --git a/src/components/Upload/src/components/ImageUpload.vue b/src/components/Upload/src/components/ImageUpload.vue index 9214e4b1..c5094f6f 100644 --- a/src/components/Upload/src/components/ImageUpload.vue +++ b/src/components/Upload/src/components/ImageUpload.vue @@ -39,9 +39,16 @@
{{ t('component.upload.upload') }}
+
历史举证
+ + + @@ -63,6 +70,7 @@ import { fileUploadApi } from '@/api/sys/upload'; import ImagePreview from '@/components/Upload/src/components/image_preview.vue'; import { userFormFileStore } from '@/store/modules/formFileUrl'; + import ImageUploadSelectOtherModal from './ImageUploadSelectOtherModal.vue' const formFileStore = userFormFileStore(); @@ -83,6 +91,7 @@ const props = defineProps({ ...uploadContainerProps, }); + const openSelectOtherModal = ref(false) const { t } = useI18n(); @@ -327,6 +336,23 @@ }, 250); } } + const openSelectOther = () => { + openSelectOtherModal.value = true + } + const saveOtherImage = (list:string[]) => { + const { server } = props; + list.forEach(item => { + fileList.value?.push({ + uid: '-1', + name: item, + status: 'done', + url: server + '/' + item, + }); + }) + const value = getValue(); + emit('change', value); + openSelectOtherModal.value = false + } @@ -434,4 +460,19 @@ } } } + .copy-other{ + width: 100px; + height: 100px; + border: 1px dashed #d9d9d9; + background-color: rgba(0, 0, 0, 0.02); + cursor: pointer; + border-radius: 8px; + display: flex; + align-items: center; + justify-content: center; + margin-left: 10px; + } + .copy-other:hover{ + border-color: #0960bd; + } diff --git a/src/components/Upload/src/components/ImageUploadSelectOtherModal.vue b/src/components/Upload/src/components/ImageUploadSelectOtherModal.vue new file mode 100644 index 00000000..eb4fa45c --- /dev/null +++ b/src/components/Upload/src/components/ImageUploadSelectOtherModal.vue @@ -0,0 +1,130 @@ + + + + + diff --git a/src/utils/global.ts b/src/utils/global.ts index ff262423..910c07c0 100644 --- a/src/utils/global.ts +++ b/src/utils/global.ts @@ -230,3 +230,27 @@ export const keyIssusesIIPatchSourceOptions = await asyncGetOptions('zd2tbly'); export const inspectionAuditPatchSourceOptions = await asyncGetOptions('xcsjtbly'); export const degrainingPatchSourceOptions = await asyncGetOptions('gdflhbly'); export const redLinePatchSourceOptions = await asyncGetOptions('redlinetbly'); + +export const getZhuantiName = () => { + let code = sessionStorage.getItem('SelectOtherZhuantiCode') + switch(code){ + case "0000001": + return '违法用地' + case "0000002": + return '巡察审计' + case "0000003": + return '非法采矿卫片下发' + case "0000004": + return '耕地非粮化' + case "0000005": + return '重点问题Ⅰ类' + case "0000006": + return '重点问题Ⅱ类' + case "0000007": + return '生态保护红线监管' + case "0000008": + return '生态修复' + case "100001": + return '非法采矿' + } +} \ No newline at end of file diff --git a/src/views/demo/workflow/task/process/audit.vue b/src/views/demo/workflow/task/process/audit.vue index cdab6a44..e86206d2 100644 --- a/src/views/demo/workflow/task/process/audit.vue +++ b/src/views/demo/workflow/task/process/audit.vue @@ -1098,6 +1098,9 @@ onBeforeMount(() => { getTaskInfo(); + // 表单附件和图片组件 历史举证功能获取专题和ID 在进入审核时将数据放到session + sessionStorage.setItem('SelectOtherId',props.processId) + sessionStorage.setItem('SelectOtherZhuantiCode',props.auditData.processcode) }); function onFormContainerMouseOver(event) {}