From c2a96321037f99a30c0db34324befb7a804472da Mon Sep 17 00:00:00 2001
From: wbc <942429426@qq.com>
Date: Thu, 26 Jun 2025 09:56:24 +0800
Subject: [PATCH] =?UTF-8?q?=E9=94=99=E8=AF=AF=E4=BF=A1=E6=81=AF=E7=94=A8?=
=?UTF-8?q?=E5=BC=B9=E7=AA=97=E6=98=BE=E7=A4=BA?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/views/property/point/index.vue | 17 +++++++++++++++--
1 file changed, 15 insertions(+), 2 deletions(-)
diff --git a/src/views/property/point/index.vue b/src/views/property/point/index.vue
index 13142c6..e7dfec1 100644
--- a/src/views/property/point/index.vue
+++ b/src/views/property/point/index.vue
@@ -62,6 +62,11 @@
+
+
+ {{ item }}
+
+
@@ -76,6 +81,7 @@
import pointModal from './pointModal.vue';
import { downloadExcel } from '@/utils/file/download';
import { message } from 'ant-design-vue';
+
defineOptions({ name: 'Point' });
const [registerTable, { getForm, reload }] = useTable({
@@ -159,23 +165,30 @@
// message.success('导入成功');
reload();
};
+ //批量上报点位
const batchLoading = ref(false);
+ const reportOpen = ref(false);
+ const errorList = ref([]);
const reportUpload = (file: any) => {
console.log(file);
const params = {
file: file,
};
batchLoading.value = true;
+ errorList.value = [];
uploadWorkOrderInfo(params).then((res) => {
batchLoading.value = false;
console.log(res);
- res.forEach((i:any) => {
+ res.forEach((i: any) => {
if (i.includes('失败')) {
- message.error(i);
+ errorList.value.push(i);
} else {
message.success(i);
}
});
+ if (errorList.value.length > 0) {
+ reportOpen.value = true;
+ }
});
return false;