From e2ffe9683ef007a45afbcdd897985d64cdcc7391 Mon Sep 17 00:00:00 2001
From: wl <173@qq.com>
Date: 星期四, 24 十一月 2022 11:26:31 +0800
Subject: [PATCH] 修改
---
src/views/systemSetting/platform/cockpitManage/index.vue | 11 +++++++----
1 files changed, 7 insertions(+), 4 deletions(-)
diff --git a/src/views/systemSetting/platform/cockpitManage/index.vue b/src/views/systemSetting/platform/cockpitManage/index.vue
index 0a1d317..7217eb3 100644
--- a/src/views/systemSetting/platform/cockpitManage/index.vue
+++ b/src/views/systemSetting/platform/cockpitManage/index.vue
@@ -30,7 +30,6 @@
:http-request="importTable"
:show-file-list="false"
:auto-upload="true"
- multiple
:limit="1">
<el-button type="primary">瀵煎叆</el-button>
</el-upload>
@@ -144,8 +143,8 @@
data() {
return {
updateDepartmentData: null,
- searchDepartment: '',
- searchStatus: '',
+ searchDepartment: null,
+ searchStatus: null,
dialogUpdate: false,
dialogcheck: false,
tableData: [],
@@ -162,6 +161,7 @@
unsame: false,
myIdx: 0,
preMyIdx: 0,
+ file: null,
options: [
{
value: 0,
@@ -246,7 +246,9 @@
// 瀵煎叆
importTable(file) {
- importTeamInfo(file.file)
+ const formData = new FormData();
+ formData.append('file', file.file);
+ importTeamInfo(formData)
.then(() => {
this.$message({ type: 'success', message: '鎿嶄綔鎴愬姛' });
this.getDepartmentList();
@@ -254,6 +256,7 @@
})
.catch(err => {
this.$message({ type: 'error', message: err });
+ this.$refs.uploadFile.clearFiles();
});
},
--
Gitblit v1.8.0