管道基础大数据平台系统开发-【前端】-新系統界面
liupengpeng
2023-02-09 8a71079e5e31828e6820419bea0779a0e788e686
src/views/userManage/roleManage.vue
@@ -235,7 +235,7 @@
            :popper-append-to-body="false"
            v-model="insertform.depValue"
            placeholder="请选择"
            style="width:93%"
            style="width:95%"
          >
            <el-option
              :value="insertform.depid"
@@ -313,7 +313,7 @@
    <el-dialog
      :title="$t('userManage.RM.updateRole')"
      top="15vh"
      width="80vh"
      width="50vh"
      style="overflow: hidden"
      :visible.sync="UpdateFormdialog"
    >
@@ -333,7 +333,28 @@
          :label-width="formLabelWidth"
          :prop="updateform.depValue"
        >
          <el-input
        <el-select
            :popper-append-to-body="false"
            v-model="updateform.depValue"
            placeholder="请选择"
            style="width:95%"
          >
            <el-option
              :value="updateform.depid"
              :label="updateform.depValue"
              style=" height:auto"
            >
              <el-tree
                ref="tree"
                :data="depList"
                node-key="id"
                :props="props"
                @node-click="handleUpdataDepList"
              />
            </el-option>
          </el-select>
          <!-- <el-input
            v-model="updateform.depValue"
            :disabled="true"
            :placeholder="$t('common.pleaseInput')"
@@ -343,7 +364,7 @@
            type="primary"
            style="margin-left:10px"
            @click="showDepTree(3)"
          >{{ $t('common.choose') }}</el-button>
          >{{ $t('common.choose') }}</el-button> -->
        </el-form-item>
        <el-form-item
          :label="$t('userManage.RM.isAdmin')"
@@ -562,6 +583,10 @@
      this.insertform.depid = data.id
      this.insertform.depValue = data.name;
    },
    handleUpdataDepList(data, node, nodeData) {
      this.updateform.depid = data.id
      this.updateform.depValue = data.name;
    },
    setInsertFormdialog() {
      this.InsertFormdialog = true;
    },
@@ -730,26 +755,37 @@
        });
      }
    },
    async handleDelete() {
    handleDelete() {
      var std = [];
      for (var i in this.multipleSelection) {
        std.push(this.multipleSelection[i].id);
      }
      const data = await deleteRoles({ ids: std.toString() });
      this.$confirm('此操作将永久删除该角色, 是否继续?', '提示', {
          confirmButtonText: '确定',
          cancelButtonText: '取消',
          type: 'warning'
        }).then(async () => {
          const data = await deleteRoles({ ids: std.toString() });
      if (data.code == 200) {
        this.InsertFormdialog = false;
        this.$message({
          message: '删除成功!',
          type: 'success',
          if (data.code == 200) {
            this.InsertFormdialog = false;
            this.$message({
              message: '删除成功!',
              type: 'success',
            });
            this.getRoleTabelData();
          } else {
            this.$message({
              message: '删除失败!',
              type: 'warning',
            });
          }
        }).catch(() => {
          this.$message({
            type: 'info',
            message: '已取消删除'
          });
        });
        this.getRoleTabelData();
      } else {
        this.$message({
          message: '删除失败!',
          type: 'warning',
        });
      }
    },
    handleSizeChange(val) {
      this.listData.pageSize = val;