From cded6a1f17223dc0b92f6f85e59781534e4cdfae Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E6=BB=95=E5=B5=A9?= <17854119262@163.com>
Date: Thu, 5 Jun 2025 16:46:35 +0800
Subject: [PATCH] =?UTF-8?q?=E8=BF=9D=E6=B3=95=E7=94=A8=E5=9C=B0-=E6=8C=81?=
=?UTF-8?q?=E7=BB=AD=E7=9B=91=E7=AE=A1-=E6=8F=92=E5=85=A5=E5=9B=BE?=
=?UTF-8?q?=E7=89=87=E6=97=B6=EF=BC=8C=E4=B8=8D=E5=AD=98=E5=9C=A8=E6=8C=81?=
=?UTF-8?q?=E7=BB=AD=E7=9B=91=E7=AE=A1=E4=B8=AD=E7=9A=84=E5=9B=BE=E6=96=91?=
=?UTF-8?q?=E6=8A=A5=E9=94=99=E6=94=B9=E4=B8=BA=E3=80=90=E6=AD=A4=E5=9B=BE?=
=?UTF-8?q?=E6=96=91=E4=B8=8D=E5=AD=98=E5=9C=A8=E3=80=91?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/views/demo/tiankongdi/keepSupervision/index.vue | 11 ++++++++++-
.../keepSupervision/keepSupervision.data.ts | 2 +-
.../demo/tiankongdi/keepSupervision/uploadModal.vue | 7 ++++++-
3 files changed, 17 insertions(+), 3 deletions(-)
diff --git a/src/views/demo/tiankongdi/keepSupervision/index.vue b/src/views/demo/tiankongdi/keepSupervision/index.vue
index 1ae54d44..0e03a812 100644
--- a/src/views/demo/tiankongdi/keepSupervision/index.vue
+++ b/src/views/demo/tiankongdi/keepSupervision/index.vue
@@ -95,7 +95,7 @@
:footer="null"
@cancel="uploadOpen = false"
>
-
+
@@ -145,6 +145,7 @@
nowStatus: undefined,
});
const tableData = ref([]);
+ const allTableData = ref([]);
const tablePaginationRight = ref({
current: 1,
pageSize: 10,
@@ -293,8 +294,16 @@
tablePaginationRight.value.current = 1;
getTableData(searchParams.value);
}
+
+ async function getAllTableData() {
+ await LoadCaseInfoCxjgTuBanList({}).then((res) => {
+ allTableData.value = res.items;
+ });
+ }
+
onMounted(() => {
getTableData(searchParams.value);
+ getAllTableData();
});
watch(
() => showInfoId.value,
diff --git a/src/views/demo/tiankongdi/keepSupervision/keepSupervision.data.ts b/src/views/demo/tiankongdi/keepSupervision/keepSupervision.data.ts
index 469cad03..8a34654c 100644
--- a/src/views/demo/tiankongdi/keepSupervision/keepSupervision.data.ts
+++ b/src/views/demo/tiankongdi/keepSupervision/keepSupervision.data.ts
@@ -310,7 +310,7 @@ export const uploadColumns: BasicColumn[] = [
align: 'center',
},
{
- title: '路径/失败原因',
+ title: '路径/上传图片失败原因',
dataIndex: 'url',
width: 280,
},
diff --git a/src/views/demo/tiankongdi/keepSupervision/uploadModal.vue b/src/views/demo/tiankongdi/keepSupervision/uploadModal.vue
index b14098c0..f05e540c 100644
--- a/src/views/demo/tiankongdi/keepSupervision/uploadModal.vue
+++ b/src/views/demo/tiankongdi/keepSupervision/uploadModal.vue
@@ -97,6 +97,7 @@
import { message } from 'ant-design-vue';
const { VITE_GLOB_INFO_IMAGE_URL } = getAppEnvConfig();
+ const props = defineProps(['allTableData']);
// 上传列表
const fileList: any = ref();
@@ -214,7 +215,11 @@
status: 'updateError',
};
});
- message.error(`当前图斑【${value.caseid}】有未审核的图片,不允许继续上传,请先审核!`);
+ if (props.allTableData.findIndex((item) => item.caseno == value.caseid)) {
+ message.error(`图斑【${value.caseid}】不存在!`);
+ } else {
+ message.error(`图斑【${value.caseid}】有未审核的图片,不允许继续上传,请先审核!`);
+ }
}
});
} catch (error) {