From bdfd2f0787b0a39fb65793a7f57c95f5de09edf4 Mon Sep 17 00:00:00 2001 From: 疯狂的狮子li <15040126243@163.com> Date: 星期一, 30 八月 2021 12:49:19 +0800 Subject: [PATCH] Merge branch 'master' of https://gitee.com/y_project/RuoYi-Vue into dev --- ruoyi-ui/src/views/system/oss/config.vue | 43 +++++++++++++++---------------------------- 1 files changed, 15 insertions(+), 28 deletions(-) diff --git a/ruoyi-ui/src/views/system/oss/config.vue b/ruoyi-ui/src/views/system/oss/config.vue index 9cd528c..28bdbe5 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> @@ -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="璇疯緭鍏ュ唴瀹�" /> @@ -345,6 +325,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 +388,9 @@ this.loading = false; this.getList(); this.msgSuccess("鍒犻櫎鎴愬姛"); - }).catch(() => {}); + }).finally(() => { + this.loading = false; + }); }, // 浜戝瓨鍌ㄩ厤缃姸鎬佷慨鏀� handleStatusChange(row) { @@ -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