From 553c29ab8a46c9a07e3657fdd36a81a6bfde1afe Mon Sep 17 00:00:00 2001 From: 疯狂的狮子li <15040126243@163.com> Date: 星期四, 23 九月 2021 19:13:58 +0800 Subject: [PATCH] update 整合 satoken 权限、鉴权一体化框架 --- ruoyi-ui/src/views/system/oss/index.vue | 25 ++++++++----------------- 1 files changed, 8 insertions(+), 17 deletions(-) diff --git a/ruoyi-ui/src/views/system/oss/index.vue b/ruoyi-ui/src/views/system/oss/index.vue index 2bbbba0..5b67191 100644 --- a/ruoyi-ui/src/views/system/oss/index.vue +++ b/ruoyi-ui/src/views/system/oss/index.vue @@ -120,7 +120,7 @@ <el-table v-loading="loading" :data="ossList" @selection-change="handleSelectionChange"> <el-table-column type="selection" width="55" align="center" /> - <el-table-column label="浜戝瓨鍌ㄤ富閿�" align="center" prop="ossId" v-if="false"/> + <el-table-column label="瀵硅薄瀛樺偍涓婚敭" align="center" prop="ossId" v-if="false"/> <el-table-column label="鏂囦欢鍚�" align="center" prop="fileName" /> <el-table-column label="鍘熷悕" align="center" prop="originalName" /> <el-table-column label="鏂囦欢鍚庣紑" align="center" prop="fileSuffix" /> @@ -170,7 +170,7 @@ @pagination="getList" /> - <!-- 娣诲姞鎴栦慨鏀筄SS浜戝瓨鍌ㄥ璇濇 --> + <!-- 娣诲姞鎴栦慨鏀筄SS瀵硅薄瀛樺偍瀵硅瘽妗� --> <el-dialog :title="title" :visible.sync="open" width="500px" append-to-body> <el-form ref="form" :model="form" :rules="rules" label-width="80px"> <el-form-item label="鏂囦欢鍚�"> @@ -210,7 +210,7 @@ showSearch: true, // 鎬绘潯鏁� total: 0, - // OSS浜戝瓨鍌ㄨ〃鏍兼暟鎹� + // OSS瀵硅薄瀛樺偍琛ㄦ牸鏁版嵁 ossList: [], // 寮瑰嚭灞傛爣棰� title: "", @@ -248,7 +248,7 @@ this.getList(); }, methods: { - /** 鏌ヨOSS浜戝瓨鍌ㄥ垪琛� */ + /** 鏌ヨOSS瀵硅薄瀛樺偍鍒楄〃 */ getList() { this.loading = true; this.queryParams.params = {}; @@ -330,17 +330,13 @@ /** 鍒犻櫎鎸夐挳鎿嶄綔 */ 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 +344,11 @@ // 棰勮鍒楄〃鍥剧墖鐘舵�佷慨鏀� handlePreviewListResource(previewListResource) { let text = previewListResource ? "鍚敤" : "鍋滅敤"; - this.$confirm( - '纭瑕�"' + text + '""棰勮鍒楄〃鍥剧墖"閰嶇疆鍚�?', "璀﹀憡", { - confirmButtonText: "纭畾", - cancelButtonText: "鍙栨秷", - type: "warning", - }).then(() => { + this.$modal.confirm('纭瑕�"' + text + '""棰勮鍒楄〃鍥剧墖"閰嶇疆鍚�?').then(() => { return changePreviewListResource(previewListResource); }).then(() => { this.getList() - this.msgSuccess(text + "鎴愬姛"); + this.$modal.msgSuccess(text + "鎴愬姛"); }).catch(() => { this.previewListResource = previewListResource !== true; }) -- Gitblit v1.9.3