From 652a39b11cca6ad85aea399b2f12e6694d2a2b39 Mon Sep 17 00:00:00 2001
From: 疯狂的狮子li <15040126243@163.com>
Date: 星期五, 13 八月 2021 14:04:57 +0800
Subject: [PATCH] update 修正 PR 相关问题

---
 ruoyi-ui/src/views/system/oss/config.vue |   21 ++++++++++++++-------
 1 files changed, 14 insertions(+), 7 deletions(-)

diff --git a/ruoyi-ui/src/views/system/oss/config.vue b/ruoyi-ui/src/views/system/oss/config.vue
index 9cd528c..446085c 100644
--- a/ruoyi-ui/src/views/system/oss/config.vue
+++ b/ruoyi-ui/src/views/system/oss/config.vue
@@ -345,6 +345,12 @@
       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();
@@ -402,7 +408,9 @@
         this.loading = false;
         this.getList();
         this.msgSuccess("鍒犻櫎鎴愬姛");
-      }).catch(() => {});
+      }).finally(() => {
+        this.loading = false;
+      });
     },
     // 浜戝瓨鍌ㄩ厤缃姸鎬佷慨鏀�
     handleStatusChange(row) {
@@ -412,16 +420,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