From c1c6c1cf3076d0e6dae9f15cc77ece4f42add618 Mon Sep 17 00:00:00 2001
From: 疯狂的狮子li <15040126243@163.com>
Date: 星期五, 10 九月 2021 10:51:40 +0800
Subject: [PATCH] update 将所有 云存储字样 改为 对象存储 避免误解

---
 ruoyi-ui/src/views/system/oss/config.vue |   57 ++++++++++++++++++++++-----------------------------------
 1 files changed, 22 insertions(+), 35 deletions(-)

diff --git a/ruoyi-ui/src/views/system/oss/config.vue b/ruoyi-ui/src/views/system/oss/config.vue
index 9cd528c..f3e3340 100644
--- a/ruoyi-ui/src/views/system/oss/config.vue
+++ b/ruoyi-ui/src/views/system/oss/config.vue
@@ -69,17 +69,6 @@
           v-hasPermi="['system:oss:remove']"
         >鍒犻櫎</el-button>
       </el-col>
-      <el-col :span="1.5">
-        <el-button
-          type="warning"
-          plain
-          icon="el-icon-download"
-          size="mini"
-          :loading="exportLoading"
-          @click="handleExport"
-          v-hasPermi="['system:ossConfig:export']"
-        >瀵煎嚭</el-button>
-      </el-col>
       <right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar>
     </el-row>
 
@@ -129,7 +118,7 @@
       @pagination="getList"
     />
 
-    <!-- 娣诲姞鎴栦慨鏀逛簯瀛樺偍閰嶇疆瀵硅瘽妗� -->
+    <!-- 娣诲姞鎴栦慨鏀瑰璞″瓨鍌ㄩ厤缃璇濇 -->
     <el-dialog :title="title" :visible.sync="open" width="800px" append-to-body>
       <el-form ref="form" :model="form" :rules="rules" label-width="120px">
         <el-form-item label="閰嶇疆key" prop="configKey">
@@ -149,7 +138,7 @@
           <el-input v-model="form.accessKey" placeholder="璇疯緭鍏ccessKey" />
         </el-form-item>
         <el-form-item label="secretKey" prop="secretKey">
-          <el-input v-model="form.secretKey" placeholder="璇疯緭鍏ョ閽�" />
+          <el-input v-model="form.secretKey" placeholder="璇疯緭鍏ョ閽�" show-password />
         </el-form-item>
         <el-form-item label="妗跺悕绉�" prop="bucketName">
           <el-input v-model="form.bucketName" placeholder="璇疯緭鍏ユ《鍚嶇О" />
@@ -168,15 +157,6 @@
         </el-form-item>
         <el-form-item label="鍩�" prop="region">
           <el-input v-model="form.region" placeholder="璇疯緭鍏ュ煙" />
-        </el-form-item>
-        <el-form-item label="鐘舵��">
-          <el-radio-group v-model="form.status">
-            <el-radio
-              v-for="dict in statusOptions"
-              :key="dict.dictValue"
-              :label="dict.dictValue"
-            >{{dict.dictLabel}}</el-radio>
-          </el-radio-group>
         </el-form-item>
         <el-form-item label="澶囨敞" prop="remark">
           <el-input v-model="form.remark" type="textarea" placeholder="璇疯緭鍏ュ唴瀹�" />
@@ -221,7 +201,7 @@
       showSearch: true,
       // 鎬绘潯鏁�
       total: 0,
-      // 浜戝瓨鍌ㄩ厤缃〃鏍兼暟鎹�
+      // 瀵硅薄瀛樺偍閰嶇疆琛ㄦ牸鏁版嵁
       ossConfigList: [],
       // configKeyOptions
       configKeyOptions: [],
@@ -304,7 +284,7 @@
     this.configKeyOptions = this.configKeyDatas;
   },
   methods: {
-    /** 鏌ヨ浜戝瓨鍌ㄩ厤缃垪琛� */
+    /** 鏌ヨ瀵硅薄瀛樺偍閰嶇疆鍒楄〃 */
     getList() {
       this.loading = true;
       listOssConfig(this.queryParams).then((response) => {
@@ -345,11 +325,17 @@
       this.resetForm("queryForm");
       this.handleQuery();
     },
+    // 澶氶�夋閫変腑鏁版嵁
+    handleSelectionChange(selection) {
+      this.ids = selection.map(item => item.ossConfigId)
+      this.single = selection.length!==1
+      this.multiple = !selection.length
+    },
     /** 鏂板鎸夐挳鎿嶄綔 */
     handleAdd() {
       this.reset();
       this.open = true;
-      this.title = "娣诲姞浜戝瓨鍌ㄩ厤缃�";
+      this.title = "娣诲姞瀵硅薄瀛樺偍閰嶇疆";
     },
     /** 淇敼鎸夐挳鎿嶄綔 */
     handleUpdate(row) {
@@ -360,7 +346,7 @@
         this.loading = false;
         this.form = response.data;
         this.open = true;
-        this.title = "淇敼浜戝瓨鍌ㄩ厤缃�";
+        this.title = "淇敼瀵硅薄瀛樺偍閰嶇疆";
       });
     },
     /** 鎻愪氦鎸夐挳 */
@@ -391,7 +377,7 @@
     /** 鍒犻櫎鎸夐挳鎿嶄綔 */
     handleDelete(row) {
       const ossConfigIds = row.ossConfigId || this.ids;
-      this.$confirm('鏄惁纭鍒犻櫎浜戝瓨鍌ㄩ厤缃紪鍙蜂负"' + ossConfigIds + '"鐨勬暟鎹」?', "璀﹀憡", {
+      this.$confirm('鏄惁纭鍒犻櫎瀵硅薄瀛樺偍閰嶇疆缂栧彿涓�"' + ossConfigIds + '"鐨勬暟鎹」?', "璀﹀憡", {
         confirmButtonText: "纭畾",
         cancelButtonText: "鍙栨秷",
         type: "warning"
@@ -402,9 +388,11 @@
         this.loading = false;
         this.getList();
         this.msgSuccess("鍒犻櫎鎴愬姛");
-      }).catch(() => {});
+      }).finally(() => {
+        this.loading = false;
+      });
     },
-    // 浜戝瓨鍌ㄩ厤缃姸鎬佷慨鏀�
+    // 瀵硅薄瀛樺偍閰嶇疆鐘舵�佷慨鏀�
     handleStatusChange(row) {
       let text = row.status === "0" ? "鍚敤" : "鍋滅敤";
       this.$confirm(
@@ -412,16 +400,15 @@
           confirmButtonText: "纭畾",
           cancelButtonText: "鍙栨秷",
           type: "warning",
-      }).then(function () {
+      }).then(() => {
         return changeOssConfigStatus(row.ossConfigId, row.status, row.configKey);
       }).then(() => {
         this.getList()
         this.msgSuccess(text + "鎴愬姛");
-      }).catch(function () {
+      }).catch(() => {
         row.status = row.status === "0" ? "1" : "0";
-      }).finally(() => {
-      });
-    },
-  },
+      })
+    }
+  }
 };
 </script>

--
Gitblit v1.9.3