按钮级别的新版本,多级别的组织架构
loulijun2021
2023-08-25 d11cd8d5c595660912723d49f7a02881332e6e27
src/views/basicSettings/roleDivider.vue
@@ -154,6 +154,7 @@
          <el-table-column
            prop="rolename"
            label="角色"
            show-overflow-tooltip
            sortable="custom"
          >
            <template slot-scope="{row}">
@@ -164,6 +165,7 @@
            prop="postname"
            label="岗位"
            sortable="custom"
            show-overflow-tooltip
          >
            <template slot-scope="{row}">
              {{ row.postname ? row.postname : '/' }}
@@ -172,6 +174,7 @@
          <el-table-column
            prop="group_name"
            label="班组"
            show-overflow-tooltip
            sortable="custom"
          >
            <template slot-scope="{row}">
@@ -214,7 +217,7 @@
      v-el-drag-dialog
      title="新增"
      :visible.sync="dialogVisible"
      width="800px"
      width="1200px"
      :close-on-click-modal="false"
      top="15vh"
      @closed="handleClose"
@@ -225,6 +228,8 @@
          ref="tableDataDialogRef"
          class="tableFixed"
          :data="tableDataDialog"
          row-class-name="custom-row"
          height="400"
          border
          :style="{width: 100+'%',height:'400px',}"
@@ -260,6 +265,7 @@
          />
          <el-table-column
            prop="rolename"
            show-overflow-tooltip
            label="角色"
          >
            <template slot-scope="{row}">
@@ -269,6 +275,7 @@
          <el-table-column
            prop="postname"
            label="岗位"
            show-overflow-tooltip
          >
            <template slot-scope="{row}">
              {{ row.postname?row.postname:'/' }}
@@ -276,6 +283,7 @@
          </el-table-column>
          <el-table-column
            prop="group_name"
            show-overflow-tooltip
            label="班组"
          >
            <template slot-scope="{row}">
@@ -393,6 +401,10 @@
  methods: {
    // 组织架构大列表查询
    async getRoleAssignedUserData() {
      if (window.location.hash.indexOf('?') !== -1) {
        this.form.role_code = window.location.hash.split('?')[1].split('=')[1]
      }
      if (!this.form.role_code) {
        this.form.role_code = this.roleArr[0].rolecode
      }
@@ -455,6 +467,10 @@
    },
    async cancel(code) {
      // if (!this.form.role_code) {
      //   return this.$message.error('')
      // }
      const res = await RoleAssignedUserBatchCancel([code], this.form.role_code)
      if (res.code === '200') {
        this.$notify.success('取消授权成功!')