黎星凯
2024-04-15 62b6a7fac3f2acde70b578431147c4a01f19c182
admin-web/src/views/systemSetting/role/index.vue
@@ -297,7 +297,7 @@
  methods: {
    fifterForm(params) {
      this.queryParams = Object.assign(this.queryParams, params)
      this.queryParams.status = 0
      // this.queryParams.status = 0
      this.search(1)
    },
    // 查询table列表
@@ -380,7 +380,7 @@
      let text = row.status == 0 ? "禁用" : "启用";
      this.$modal.confirm('确认要' + text + '"' + row.role_name + '"角色吗?').then(function () {
        row.status = row.status == 0 ? 1 : 0;
        return changeRoleStatus(row.role_id, row.status);
        return changeRoleStatus(row);
      }).then(() => {
        this.$modal.msgSuccess(text + "成功");
        this.search();