From f33dc4fa39c6c5795ec038b15b7f357b9ce48b86 Mon Sep 17 00:00:00 2001 From: fengsen <2548667232@qq.com> Date: Wed, 13 Aug 2025 22:38:23 +0800 Subject: [PATCH] =?UTF-8?q?=E5=B7=A5=E7=A8=8B=E6=B8=85=E5=8D=95=E5=AE=A1?= =?UTF-8?q?=E6=89=B9\loading=E6=95=88=E6=9E=9C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../design/billofQuantities/index copy.vue | 91 ------------------- src/views/design/billofQuantities/index.vue | 9 +- 2 files changed, 7 insertions(+), 93 deletions(-) delete mode 100644 src/views/design/billofQuantities/index copy.vue diff --git a/src/views/design/billofQuantities/index copy.vue b/src/views/design/billofQuantities/index copy.vue deleted file mode 100644 index 491dd3c..0000000 --- a/src/views/design/billofQuantities/index copy.vue +++ /dev/null @@ -1,91 +0,0 @@ - - - - \ No newline at end of file diff --git a/src/views/design/billofQuantities/index.vue b/src/views/design/billofQuantities/index.vue index 6bbc7ba..3222109 100644 --- a/src/views/design/billofQuantities/index.vue +++ b/src/views/design/billofQuantities/index.vue @@ -53,7 +53,8 @@ - @@ -113,7 +114,7 @@ const state = reactive({ // 物质设备清单 // tableData_sdsqd: [], // 展开收起 - isOpen: false, + isOpen: true, // 版本号 versionsData:{} }) @@ -239,6 +240,7 @@ function importExcel(options) { console.log(options); let formData = new FormData(); formData.append("file", options.file); + state.loading.list = true; importExcelFile({ workOrderType: state.work_order_type, projectId: currentProject.value?.id }, formData).then(res => { const { code } = res; if (code == 200) { @@ -246,8 +248,11 @@ function importExcel(options) { // 更新列表 getVersionNums(false) } else { + getVersionNums() proxy.$modal.msgError(res.msg || '导入失败'); } + }).finally(() => { + state.loading.list = false; }) } // 切换表名