From 9bc2d2981b540aa291cfecde5d33615df56a078b Mon Sep 17 00:00:00 2001 From: 疯狂的狮子li <15040126243@163.com> Date: 星期五, 22 七月 2022 09:59:19 +0800 Subject: [PATCH] update springboot 2.7.1 => 2.7.2 update hutool 5.8.3 => 5.8.4 update okhttp 4.9.1 => 4.10.0 update lock4j 2.2.1 => 2.2.2 update aws-java-sdk-s3 1.12.248 => 1.12.264 修复依赖安全漏洞 update aliyun.sms 2.0.9 => 2.0.16 update tencent.sms 3.1.537 => 3.1.555 update guava 30.0-jre => 31.1-jre --- ruoyi-ui/src/views/system/oss/index.vue | 24 +++++++----------------- 1 files changed, 7 insertions(+), 17 deletions(-) diff --git a/ruoyi-ui/src/views/system/oss/index.vue b/ruoyi-ui/src/views/system/oss/index.vue index b4c5a46..ac8b029 100644 --- a/ruoyi-ui/src/views/system/oss/index.vue +++ b/ruoyi-ui/src/views/system/oss/index.vue @@ -187,8 +187,7 @@ </template> <script> -import { listOss, delOss, changePreviewListResource } from "@/api/system/oss"; -import { downLoadOss } from "@/utils/download"; +import { listOss, delOss } from "@/api/system/oss"; export default { name: "Oss", @@ -325,22 +324,18 @@ }, /** 涓嬭浇鎸夐挳鎿嶄綔 */ handleDownload(row) { - downLoadOss(row.ossId) + this.$download.oss(row.ossId) }, /** 鍒犻櫎鎸夐挳鎿嶄綔 */ handleDelete(row) { const ossIds = row.ossId || this.ids; - this.$confirm('鏄惁纭鍒犻櫎OSS瀵硅薄瀛樺偍缂栧彿涓�"' + ossIds + '"鐨勬暟鎹」?', "璀﹀憡", { - confirmButtonText: "纭畾", - cancelButtonText: "鍙栨秷", - type: "warning" - }).then(() => { + this.$modal.confirm('鏄惁纭鍒犻櫎OSS瀵硅薄瀛樺偍缂栧彿涓�"' + ossIds + '"鐨勬暟鎹」?').then(() => { this.loading = true; return delOss(ossIds); }).then(() => { this.loading = false; this.getList(); - this.msgSuccess("鍒犻櫎鎴愬姛"); + this.$modal.msgSuccess("鍒犻櫎鎴愬姛"); }).finally(() => { this.loading = false; }); @@ -348,16 +343,11 @@ // 棰勮鍒楄〃鍥剧墖鐘舵�佷慨鏀� handlePreviewListResource(previewListResource) { let text = previewListResource ? "鍚敤" : "鍋滅敤"; - this.$confirm( - '纭瑕�"' + text + '""棰勮鍒楄〃鍥剧墖"閰嶇疆鍚�?', "璀﹀憡", { - confirmButtonText: "纭畾", - cancelButtonText: "鍙栨秷", - type: "warning", - }).then(() => { - return changePreviewListResource(previewListResource); + this.$modal.confirm('纭瑕�"' + text + '""棰勮鍒楄〃鍥剧墖"閰嶇疆鍚�?').then(() => { + return this.updateConfigByKey("sys.oss.previewListResource", previewListResource); }).then(() => { this.getList() - this.msgSuccess(text + "鎴愬姛"); + this.$modal.msgSuccess(text + "鎴愬姛"); }).catch(() => { this.previewListResource = previewListResource !== true; }) -- Gitblit v1.9.3