From 8c09c30ca0a27352b00bcde4f2bf87dead95ab39 Mon Sep 17 00:00:00 2001 From: 疯狂的狮子li <15040126243@163.com> Date: 星期五, 13 八月 2021 14:32:24 +0800 Subject: [PATCH] remove 删除OSS配置页面无用按钮 --- ruoyi-ui/src/views/system/oss/config.vue | 32 ++++++++++++++------------------ 1 files changed, 14 insertions(+), 18 deletions(-) diff --git a/ruoyi-ui/src/views/system/oss/config.vue b/ruoyi-ui/src/views/system/oss/config.vue index 9cd528c..89580ec 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> @@ -345,6 +334,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 +397,9 @@ this.loading = false; this.getList(); this.msgSuccess("鍒犻櫎鎴愬姛"); - }).catch(() => {}); + }).finally(() => { + this.loading = false; + }); }, // 浜戝瓨鍌ㄩ厤缃姸鎬佷慨鏀� handleStatusChange(row) { @@ -412,16 +409,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