管道基础大数据平台系统开发-【前端】-新系統界面
Surpriseplus
2023-02-06 4e3d77dcbe421a4d6611ebcdd1ac3165cb36ad4b
src/views/AuthorizationManagement/roleMenuAuthorization.vue
@@ -2,26 +2,27 @@
  <div class="menuSettings_box">
    <!-- 角色,单位 -->
    <div class="menuSettings_tree">
      <div class="content_box">
        <My-bread
          :list="[
      <div class="content_box subpage_Div">
        <My-bread :list="[
            `${$t('operatManage.operatManage')}`,
            `${$t('operatManage.RoleMenuAuthorization')}`,
          ]"
        ></My-bread>
          ]"></My-bread>
        <el-divider />
        <el-form ref="form" :model="selFrom">
        <el-form
          ref="form"
          :model="selFrom"
        >
          <el-form-item label="单位">
            <el-select
              ref="multiSelect"
              style="width: 300px"
              style="width: 300px;"
              v-model="selFrom.name"
              placeholder="请选择单位名称..."
              @change="chooseCustom('multiSelect')"
            >
              <el-option
                :value="selectTree"
                style="overflow: auto; backgrond: transparent; height: 200px"
                style="  backgrond: transparent;    height: 100%;"
                disabled
              >
                <el-tree
@@ -44,16 +45,18 @@
          style="width: 100%"
          @row-click="singleElection"
          highlight-current-row
          height="78%"
        >
          <el-table-column align="center" width="55">
          <el-table-column
            align="center"
            width="55"
          >
            <template slot-scope="scope">
              <el-radio
                class="radio"
                v-model="templateSelection"
                :label="scope.row.id"
                >&nbsp;</el-radio
              >
              >&nbsp;</el-radio>
            </template>
          </el-table-column>
          <el-table-column
@@ -68,9 +71,8 @@
          </el-table-column>
        </el-table>
      </div>
      <div class="content_box">
        <div
          style="
      <div class="content_box subpage_Div">
        <div style="
            font-size: 14px;
            color: #216fe6;
            line-height: 1;
@@ -80,31 +82,28 @@
            margin-left: 10px;
            display: flex;
            align-items: center;
          "
        >
          ">
          <span>
            {{ $t('operatManage.UserRoleAuthorizationObj.menuTable') }}</span
          >
            {{ $t('operatManage.UserRoleAuthorizationObj.menuTable') }}</span>
        </div>
        <el-divider />
        <div  class="menuContent">
          <el-tree
            :data="menuList"
            :props="defaultMenuProps"
            :show-checkbox="false"
            :check-on-click-node="true"
            :check-strictly="true"
            node-key="id"
            @check="menuTreeCheck"
            ref="treeForm"
            :default-expanded-keys="[1]"
          >
          </el-tree>
        </div>
        <el-tree
          :data="menuList"
          :props="defaultMenuProps"
          :show-checkbox="false"
          :check-on-click-node="true"
          :check-strictly="true"
          node-key="id"
          @check="menuTreeCheck"
          ref="treeForm"
          :default-expanded-keys="[1]"
        >
        </el-tree>
      </div>
      <div class="content_box">
        <div
          style="
      <div class="content_box subpage_Div">
        <div style="
            font-size: 14px;
            color: #216fe6;
            line-height: 1;
@@ -114,14 +113,15 @@
            margin-left: 10px;
            display: flex;
            align-items: center;
          "
        >
          ">
          <span>
            {{
              $t('operatManage.UserRoleAuthorizationObj.PermissionTable')
            }}</span
            }}</span>
          <div
            class="btn"
            style="margin-left: auto"
          >
          <div class="btn" style="margin-left: auto">
            <el-button
              v-if="menuStatus.insert"
              type="primary"
@@ -129,11 +129,9 @@
              size="small"
              @click="adduser"
              :disabled="menuid == null ? true : false"
              style="background-color: #216fe6"
              >{{
            >{{
                $t('operatManage.UserRoleAuthorizationObj.Added')
              }}</el-button
            >
              }}</el-button>
            <el-button
              v-if="menuStatus.delete"
              type="danger"
@@ -141,10 +139,9 @@
              size="small"
              @click="deletesUser"
              :disabled="menuid == null ? true : false"
              >{{
            >{{
                $t('operatManage.UserRoleAuthorizationObj.delete')
              }}</el-button
            >
              }}</el-button>
          </div>
        </div>
        <el-divider class="divider" />
@@ -155,7 +152,10 @@
          height="78%"
          @selection-change="handleSelectionChange"
        >
          <el-table-column type="selection" width="55"> </el-table-column>
          <el-table-column
            type="selection"
            width="55"
          > </el-table-column>
          <el-table-column
            align="center"
            type="index"
@@ -184,7 +184,7 @@
          </el-pagination>
        </div>
      </div>
    </div>
    <el-dialog
@@ -196,7 +196,10 @@
        height="40vh"
        @selection-change="addhandleSelectionChange"
      >
        <el-table-column type="selection" width="55"> </el-table-column>
        <el-table-column
          type="selection"
          width="55"
        > </el-table-column>
        <el-table-column
          align="center"
          type="index"
@@ -208,7 +211,10 @@
        >
        </el-table-column>
      </el-table>
      <div style="margin-top: 20px; text-align: center" class="pagination_box">
      <div
        style="margin-top: 20px; text-align: center"
        class="pagination_box"
      >
        <el-pagination
          @size-change="addhandleSizeChange"
          @current-change="addhandleCurrentChange"
@@ -220,15 +226,21 @@
        >
        </el-pagination>
      </div>
      <div slot="footer" class="dialog-footer">
        <el-button @click="dialogTableVisible = false">{{
      <div
        slot="footer"
        class="dialog-footer"
      >
        <el-button
          size="small"
          @click="dialogTableVisible = false"
        >{{
          $t('dataManage.dictionaryManageObj.cancel')
        }}</el-button>
        <el-button
          style="background: #409eff; border: 1px solid #409eff; color: white"
          size="small"
          type="primary"
          @click="addConfirm"
          >{{ $t('dataManage.dictionaryManageObj.confirm') }}</el-button
        >
        >{{ $t('dataManage.dictionaryManageObj.confirm') }}</el-button>
      </div>
    </el-dialog>
  </div>
@@ -476,7 +488,7 @@
          this.dialogTableVisible = false;
          this.getRoleMenu();
        })
        .catch(() => {});
        .catch(() => { });
    },
    showPermsMenu(res) {
      switch (res.tag) {
@@ -511,7 +523,7 @@
  height: 98%;
  width: 98%;
  padding: 1%;
  position: absolute;
  .menuSettings_tree {
    display: flex;
    justify-content: space-around;
@@ -519,234 +531,17 @@
    height: 100%;
    .content_box {
      padding: 10px;
      width: 31%;
      width: 30%;
      height: 94%;
      border: 1px solid rgb(202, 201, 204);
 overflow-y: auto;
 overflow-x: hidden;
      border-radius: 5px;
      /deep/ .el-input__inner {
        background-color: transparent !important;
        border: 1px solid;
        color: white;
      }
      /deep/.el-form-item__label {
        color: white;
      }
      /*修改table 表体的背景颜色和文字颜色*/
      /deep/ .el-table {
        background-color: transparent;
        th,
        td {
          background-color: transparent;
        }
        .el-table__expanded-cell {
          background-color: transparent !important;
        }
        // 表头背景色
        th.el-table__cell {
          background-color: #303030;
          color: #fff;
        }
        tr > td {
          background-color: #303030;
          color: #fff;
        }
        // hover效果
        tr:hover > td {
          background-color: rgba(255, 255, 255, 0.1) !important;
        }
        tbody tr:hover {
          background-color: rgba(255, 255, 255, 0.1) !important;
          // text-align: center;
        }
        // 滚动条宽高
        .el-table__body-wrapper::-webkit-scrollbar {
          width: 5px;
          height: 5px;
        }
        .el-table__body-wrapper::-webkit-scrollbar {
          width: 5px;
          /*滚动条宽度*/
          height: 10px;
          /*滚动条高度*/
        }
        /*定义滚动条轨道 内阴影+圆角*/
        .el-table__body-wrapper::-webkit-scrollbar-track {
          box-shadow: 0px 1px 3px #216fe6 inset;
          /*滚动条的背景区域的内阴影*/
          border-radius: 10px;
        }
        /*定义滑块 内阴影+圆角*/
        .el-table__body-wrapper::-webkit-scrollbar-thumb {
          box-shadow: 0px 1px 3px #216fe6 inset;
          border-radius: 6px;
          background-color: #216fe6;
        }
      }
    }
    .menuContent{
      height: 90%;
      overflow: auto;
    }
  }
  /deep/ .el-table {
    background-color: transparent;
    th,
    td {
      background-color: transparent;
    }
    .el-table__expanded-cell {
      background-color: transparent !important;
    }
    // 表头背景色
    th.el-table__cell {
      background-color: #303030;
      color: #fff;
    }
    tr > td {
      background-color: #303030;
      color: #fff;
    }
    // hover效果
    tr:hover > td {
      background-color: rgba(255, 255, 255, 0.1) !important;
    }
    tbody tr:hover {
      background-color: rgba(255, 255, 255, 0.1) !important;
      // text-align: center;
    }
    // 滚动条宽高
    .el-table__body-wrapper::-webkit-scrollbar {
      width: 5px;
      height: 5px;
    }
    .el-table__body-wrapper::-webkit-scrollbar {
      width: 5px;
      /*滚动条宽度*/
      height: 10px;
      /*滚动条高度*/
    }
    /*定义滚动条轨道 内阴影+圆角*/
    .el-table__body-wrapper::-webkit-scrollbar-track {
      box-shadow: 0px 1px 3px #216fe6 inset;
      /*滚动条的背景区域的内阴影*/
      border-radius: 10px;
    }
    /*定义滑块 内阴影+圆角*/
    .el-table__body-wrapper::-webkit-scrollbar-thumb {
      box-shadow: 0px 1px 3px #216fe6 inset;
      border-radius: 6px;
      background-color: #216fe6;
    }
  }
  .pagination_box {
    /deep/.el-input__inner {
      background-color: transparent !important;
      border: 1px solid;
      color: white;
    }
    /deep/.el-pagination__total {
      color: white;
    }
    /deep/.el-pagination__jump {
      color: white;
    }
    /deep/.el-pager li.active {
      color: #1890ff;
    }
    /deep/.el-pager li {
      color: white;
      background: transparent;
    }
    /deep/.el-pager li {
      color: white;
    }
    /deep/.btn-prev {
      background: transparent;
    }
    /deep/.btn-next {
      background: transparent;
    }
  }
  /deep/ .el-dialog {
    background: #303030;
  }
  /deep/.el-range-editor.is-active,
  .el-range-editor.is-active:hover,
  .el-select .el-input.is-focus .el-input__inner {
    border: 1px solid;
  }
  /deep/.el-dialog__title {
    color: white;
  }
  .divider {
    margin-top: 8px;
  }
}
</style>
<style>
.el-tree .el-icon-caret-right:before {
  color: white !important; /** 这里是要修改图标的颜色 **/
}
.el-tree {
  color: white !important; /** 这里是要修改图标的颜色 **/
  background: transparent !important;
}
.el-tree-node__content {
  background: transparent !important;
}
.el-tree-node.is-current > .el-tree-node__content {
  background-color: rgba(255, 255, 255, 0.1) !important;
  color: #409eff;
}
/*里面的代码可以根据自己需求去进行更改*/
/* 设置滚动条的样式 */
::-webkit-scrollbar {
  width: 4px;
}
/* 滚动槽 */
::-webkit-scrollbar-track {
  -webkit-box-shadow: inset006pxrgba(0, 0, 0, 0.3);
  border-radius: 10px;
}
/* 滚动条滑块 */
::-webkit-scrollbar-thumb {
  border-radius: 10px;
  background: #8b8b8b;
  -webkit-box-shadow: inset006pxrgba(0, 0, 0, 0.5);
}
::-webkit-scrollbar-thumb:window-inactive {
  background: #8b8b8b;
  height: 289px;
}
.el-select-dropdown {
  background: #303030;
  border-color: white;
}
/* //右侧和下方的白边 */
.el-scrollbar__wrap {
  margin-bottom: -20px !important;
  margin-right: -20px !important;
}
.el-select-dropdown__item.hover,
.el-select-dropdown__item:hover {
  background: rgba(0, 0, 0, 0.1) !important;
}
.el-select-dropdown__item {
  color: white;
}
</style>