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; }) } // 切换表名