1
13693261870
2022-10-14 977f591fbc02883bfc9bab3fea793f278d309531
1
已修改1个文件
158 ■■■■■ 文件已修改
src/views/AuthorizationManagement/userRoleAuthorization.vue 158 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/AuthorizationManagement/userRoleAuthorization.vue
@@ -1,34 +1,27 @@
<template>
  <div class="menuSettings_box">
    <div class="menuSettings_tree">
      <My-bread
        :list="[
      <My-bread :list="[
          `${$t('operatManage.operatManage')}`,
          `${$t('operatManage.UserRoleAuthorization')}`,
        ]"
      ></My-bread>
        ]"></My-bread>
      <el-divider />
      <div class="menuTreeBox">
        <el-tree
          :data="depList"
        <el-tree :data="depList"
          :props="defaultProps"
          :show-checkbox="true"
          :check-on-click-node="true"
          :check-strictly="true"
          node-key="id"
          @check="treeCheck"
          ref="treeForm"
        >
                 ref="treeForm">
        </el-tree>
      </div>
    </div>
    <div
      class="menuSettings_tree"
      style="margin-left: 10px; width: calc(50% - 172px)"
    >
      <div
        style="
    <div class="menuSettings_tree"
         style="margin-left: 10px; width: calc(50% - 172px)">
      <div style="
          font-size: 14px;
          color: #606266;
          line-height: 1;
@@ -36,53 +29,42 @@
          position: relative;
          top: 10px;
          margin-left: 10px;
        "
      >
        ">
        {{ $t("operatManage.UserRoleAuthorizationObj.RoleTable") }}
      </div>
      <el-divider />
      <el-table
        :data="tableData"
      <el-table :data="tableData"
        style="width: 100%"
        @row-click="singleElection"
        highlight-current-row
        height="85%"
        :header-cell-style="{
          background: 'transparent',
        }"
      >
        <el-table-column align="center" width="55">
        }">
        <el-table-column align="center"
                         width="55">
          <template slot-scope="scope">
            <!-- 可以手动的修改label的值,从而控制选择哪一项 -->
            <el-radio
              class="radio"
            <el-radio class="radio"
              v-model="templateSelection"
              :label="scope.row.id"
              >&nbsp;</el-radio
            >
                      :label="scope.row.id">&nbsp;</el-radio>
          </template>
        </el-table-column>
        <el-table-column
          prop="id"
          :label="$t('operatManage.UserRoleAuthorizationObj.serialNumber')"
        >
        <el-table-column prop="id"
                         :label="$t('operatManage.UserRoleAuthorizationObj.serialNumber')">
        </el-table-column>
        <el-table-column
          prop="name"
          :label="$t('operatManage.UserRoleAuthorizationObj.name')"
        >
        <el-table-column prop="name"
                         :label="$t('operatManage.UserRoleAuthorizationObj.name')">
        </el-table-column>
      </el-table>
      <div style="text-align: center; margin-top: 20px">
        <el-pagination
          @size-change="handleSizeChange"
        <el-pagination @size-change="handleSizeChange"
          @current-change="handleCurrentChange"
          :current-page="listData.pageIndex"
          :page-sizes="[10, 20, 30, 40]"
          :page-size="userlistData.pageSize"
          layout="total, sizes, prev, pager, next, jumper"
          :total="count"
        >
                       :total="count">
        </el-pagination>
      </div>
    </div>
@@ -90,8 +72,7 @@
      <!-- <div class="title_box">
        <h4>详细信息</h4>
      </div> -->
      <div
        style="
      <div style="
          font-size: 14px;
          color: #606266;
          line-height: 1;
@@ -101,104 +82,85 @@
          margin-left: 10px;
          display: flex;
          align-items: center;
        "
      >
        ">
        <span>
          {{ $t("operatManage.UserRoleAuthorizationObj.userTable") }}</span
        >
        <div class="btn" style="margin-left: auto">
          <el-button
            type="primary"
          {{ $t("operatManage.UserRoleAuthorizationObj.userTable") }}</span>
        <div class="btn"
             style="margin-left: auto">
          <el-button type="primary"
            icon="el-icon-circle-plus-outline"
            size="small"
            :disabled="roleid == null ? true : false"
            @click="adduser"
            >{{ $t("operatManage.UserRoleAuthorizationObj.Added") }}</el-button
          >
          <el-button
            type="danger"
                     @click="adduser">{{ $t("operatManage.UserRoleAuthorizationObj.Added") }}</el-button>
          <el-button type="danger"
            icon="el-icon-delete"
            size="small"
            @click="deletesUser"
            :disabled="roleid == null ? true : false"
            >{{ $t("operatManage.UserRoleAuthorizationObj.delete") }}</el-button
          >
                     :disabled="roleid == null ? true : false">{{ $t("operatManage.UserRoleAuthorizationObj.delete") }}</el-button>
        </div>
      </div>
      <el-divider class="divider" />
      <el-table
        :data="usertableData"
      <el-table :data="usertableData"
        stripe
        style="width: 100%"
        height="85%"
        @selection-change="handleSelectionChange"
        :header-cell-style="{
          background: 'transparent',
        }"
      >
        <el-table-column type="selection" width="55"> </el-table-column>
        <el-table-column
          prop="id"
          :label="$t('operatManage.UserRoleAuthorizationObj.serialNumber')"
        >
        }">
        <el-table-column type="selection"
                         width="55"> </el-table-column>
        <el-table-column prop="id"
                         :label="$t('operatManage.UserRoleAuthorizationObj.serialNumber')">
        </el-table-column>
        <el-table-column
          prop="uname"
          :label="$t('operatManage.UserRoleAuthorizationObj.name')"
        >
        <el-table-column prop="uname"
                         :label="$t('operatManage.UserRoleAuthorizationObj.name')">
        </el-table-column>
      </el-table>
      <div style="margin-top: 20px; text-align: center" class="pagination_box">
        <el-pagination
          @size-change="userhandleSizeChange"
      <div style="margin-top: 20px; text-align: center"
           class="pagination_box">
        <el-pagination @size-change="userhandleSizeChange"
          @current-change="userhandleCurrentChange"
          :current-page="userlistData.pageIndex"
          :page-sizes="[10, 20, 30, 40]"
          :page-size="userlistData.pageSize"
          layout="total, sizes, prev, pager, next, jumper"
          :total="usercount"
        >
                       :total="usercount">
        </el-pagination>
      </div>
    </div>
    <el-dialog
      :title="$t('operatManage.UserRoleAuthorizationObj.Added')"
      :visible.sync="dialogTableVisible"
    >
      <el-table
        :data="gridData"
    <el-dialog :title="$t('operatManage.UserRoleAuthorizationObj.Added')"
               :visible.sync="dialogTableVisible">
      <el-table :data="gridData"
        height="40vh"
        @selection-change="addhandleSelectionChange"
      >
        <el-table-column type="selection" width="55"> </el-table-column>
        <el-table-column
          prop="id"
          :label="$t('operatManage.UserRoleAuthorizationObj.serialNumber')"
        >
                @selection-change="addhandleSelectionChange">
        <el-table-column type="selection"
                         width="55"> </el-table-column>
        <el-table-column prop="id"
                         :label="$t('operatManage.UserRoleAuthorizationObj.serialNumber')">
        </el-table-column>
        <el-table-column
          prop="uname"
          :label="$t('operatManage.UserRoleAuthorizationObj.name')"
        >
        <el-table-column prop="uname"
                         :label="$t('operatManage.UserRoleAuthorizationObj.name')">
        </el-table-column>
      </el-table>
      <div style="margin-top: 20px; text-align: center" class="pagination_box">
        <el-pagination
          @size-change="addhandleSizeChange"
      <div style="margin-top: 20px; text-align: center"
           class="pagination_box">
        <el-pagination @size-change="addhandleSizeChange"
          @current-change="addhandleCurrentChange"
          :current-page="addlistData.pageIndex"
          :page-sizes="[10, 20, 30, 40]"
          :page-size="addlistData.pageSize"
          layout="total, sizes, prev, pager, next, jumper"
          :total="addcount"
        >
                       :total="addcount">
        </el-pagination>
      </div>
      <div slot="footer" class="dialog-footer">
      <div slot="footer"
           class="dialog-footer">
        <el-button @click="dialogTableVisible = false">{{ $t("dataManage.dictionaryManageObj.cancel") }}</el-button>
        <el-button type="primary" @click="addConfirm">{{ $t("dataManage.dictionaryManageObj.confirm") }}</el-button>
        <el-button type="primary"
                   @click="addConfirm">{{ $t("dataManage.dictionaryManageObj.confirm") }}</el-button>
      </div>
    </el-dialog>
  </div>
@@ -280,6 +242,8 @@
            type: "success",
            message: "新增成功!",
          });
          this.dialogTableVisible = false;
          this.getuserList();
        })
        .catch(() => {});
    },