疯狂的狮子li
2021-08-13 8c09c30ca0a27352b00bcde4f2bf87dead95ab39
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>