From 9ff7d57765b1eb3704b9425819cdb9c5708e0ab1 Mon Sep 17 00:00:00 2001
From: yangys <y_ys79@sina.com>
Date: 星期四, 14 八月 2025 22:53:32 +0800
Subject: [PATCH] 错误捕获
---
src/views/flowmgr/backImport.vue | 15 ++++++++-------
1 files changed, 8 insertions(+), 7 deletions(-)
diff --git a/src/views/flowmgr/backImport.vue b/src/views/flowmgr/backImport.vue
index 1e4b182..542641b 100644
--- a/src/views/flowmgr/backImport.vue
+++ b/src/views/flowmgr/backImport.vue
@@ -10,7 +10,7 @@
</div>
</template>
</avue-crud>
- <el-dialog title="DNC鏂囦欢瀵煎叆" append-to-body v-model="excelBox" width="555px">
+ <el-dialog title="宸ユ帶缃戞枃浠跺鍏�" append-to-body v-model="excelBox" width="555px">
<avue-form :option="excelOption" v-model="excelForm" :upload-after="uploadAfter" :upload-error="uploadError">
<!-- <template #excelTemplate>
<el-button type="primary" @click="handleTemplate">
@@ -126,13 +126,12 @@
},
handleWarehouse() {
- if (this.selection.length == 0) {
- return this.$message.error("璇烽�夋嫨鏁版嵁")
- }
+ // if (this.selection.length == 0) {
+ // return this.$message.error("璇烽�夋嫨鏁版嵁")
+ // }
let selection = [];
this.selection.forEach(item => {
- //selection.push(item.id);
- selection.push(item.fullPath);
+ selection.push(item.id);
})
this.loading = true;
var obj = {
@@ -155,7 +154,9 @@
}
}
- );
+ ).finally(() => {
+ this.loading = false;
+ });
}
},
};
--
Gitblit v1.9.3