From 9995abd6adad6b842a13d3b662b78daa1937bb57 Mon Sep 17 00:00:00 2001
From: luobisheng <727299681@qq.com>
Date: 星期三, 09 十一月 2022 09:29:48 +0800
Subject: [PATCH] 样式修改,以及上传部分修改
---
src/views/systemSetting/platform/cockpitManage/index.vue | 34 +++++-----------------------------
1 files changed, 5 insertions(+), 29 deletions(-)
diff --git a/src/views/systemSetting/platform/cockpitManage/index.vue b/src/views/systemSetting/platform/cockpitManage/index.vue
index 1777883..9ed5f84 100644
--- a/src/views/systemSetting/platform/cockpitManage/index.vue
+++ b/src/views/systemSetting/platform/cockpitManage/index.vue
@@ -25,8 +25,8 @@
<div class="mainContent">
<div class="type-nav">
<el-upload
- class="upload-demo"
action=""
+ ref="uploadFile"
:http-request="importTable"
:show-file-list="false"
:auto-upload="true"
@@ -34,7 +34,7 @@
:limit="1">
<el-button type="primary">瀵煎叆</el-button>
</el-upload>
- <el-button type="primary" @click="exportTable">瀵煎嚭</el-button>
+ <el-button style="margin-left: 10px" type="primary" @click="exportTable">瀵煎嚭</el-button>
<el-button type="primary" @click="showAddDialog">娣诲姞</el-button>
</div>
<!-- 鏁版嵁灞曠ず -->
@@ -144,7 +144,6 @@
updateDepartmentData: null,
searchDepartment: '',
searchStatus: '',
- tableFile: null,
dialogUpdate: false,
dialogcheck: false,
tableData: [],
@@ -255,11 +254,12 @@
// 瀵煎叆
importTable(file) {
- importTeamInfo({'multipartFile': file.file})
+ importTeamInfo({ 'multipartFile': file.file })
.then(({ code, message }) => {
if (code === SUCCESS_CODE) {
this.$message({ type: 'success', message });
this.getUserList();
+ this.$refs.uploadFile.clearFiles();
} else {
this.$message({ type: 'error', message });
}
@@ -494,13 +494,6 @@
border-radius: 20px;
}
}
-
- .addBtn {
- background-color: #eb5d01;
- border: none;
- border-radius: 20px;
- padding: 12px 30px;
- }
}
}
@@ -521,24 +514,7 @@
.type-nav {
display: flex;
line-height: 40px;
- margin-left: 30px;
- padding-top: 10px;
- margin-bottom: 10px;
-
- .type-item {
- width: 80px;
- text-align: center;
-
- &:hover {
- cursor: pointer;
- }
- }
-
- .is-active {
- background-color: #070f22;
- border-radius: 4px;
- color: #fff;
- }
+ align-items: center;
}
.tools {
--
Gitblit v1.8.0