管道基础大数据平台系统开发-【前端】-新系統界面
Surpriseplus
2023-02-11 d5efa1b1cdbab10b034357ae3e7b65c21754a123
src/views/userManage/roleManage.vue
@@ -21,7 +21,7 @@
          :label="$t('userManage.RM.ownedSystem')"
          prop="ownedSystem"
        >
        <el-select
          <el-select
            :popper-append-to-body="false"
            v-model="roleForm.depValue"
            placeholder="请选择"
@@ -221,6 +221,7 @@
          :label-width="formLabelWidth"
        >
          <el-input
            style="width:95%"
            v-model="insertform.name"
            autocomplete="off"
          ></el-input>
@@ -268,6 +269,7 @@
          :label-width="formLabelWidth"
        >
          <el-input
            style="width:95%"
            v-model="insertform.descr"
            autocomplete="off"
          ></el-input>
@@ -290,6 +292,7 @@
          :label-width="formLabelWidth"
        >
          <el-input
            style="width:95%"
            v-model="insertform.bak"
            autocomplete="off"
          ></el-input>
@@ -333,7 +336,7 @@
          :label-width="formLabelWidth"
          :prop="updateform.depValue"
        >
        <el-select
          <el-select
            :popper-append-to-body="false"
            v-model="updateform.depValue"
            placeholder="请选择"
@@ -353,7 +356,7 @@
              />
            </el-option>
          </el-select>
          <!-- <el-input
            v-model="updateform.depValue"
            :disabled="true"
@@ -542,8 +545,8 @@
      InsertFormdialog: false,
      UpdateFormdialog: false,
      roleForm: {
        depid:'',
        depValue:'',
        depid: '',
        depValue: '',
      },
      cataName: '',
      depValue: '',
@@ -574,8 +577,8 @@
    };
  },
  methods: {
    handleRouleDepList(data, node, nodeData){
    this.roleForm.depid = data.id
    handleRouleDepList(data, node, nodeData) {
      this.roleForm.depid = data.id
      this.roleForm.depValue = data.name;
    },
    handleDepList(data, node, nodeData) {
@@ -761,31 +764,31 @@
        std.push(this.multipleSelection[i].id);
      }
      this.$confirm('此操作将永久删除该角色, 是否继续?', '提示', {
          confirmButtonText: '确定',
          cancelButtonText: '取消',
          type: 'warning'
        }).then(async () => {
          const data = await deleteRoles({ ids: std.toString() });
        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',
            });
            this.getRoleTabelData();
          } else {
            this.$message({
              message: '删除失败!',
              type: 'warning',
            });
          }
        }).catch(() => {
        if (data.code == 200) {
          this.InsertFormdialog = false;
          this.$message({
            type: 'info',
            message: '已取消删除'
          });
            message: '删除成功!',
            type: 'success',
          });
          this.getRoleTabelData();
        } else {
          this.$message({
            message: '删除失败!',
            type: 'warning',
          });
        }
      }).catch(() => {
        this.$message({
          type: 'info',
          message: '已取消删除'
        });
      });
    },
    handleSizeChange(val) {
      this.listData.pageSize = val;
@@ -867,7 +870,7 @@
  }
  .inquire {
    height: auto;
    padding: 10px;
    margin-top: 10px;
    margin-top: 10px;