管道基础大数据平台系统开发-【前端】-新系統界面
liupengpeng
2023-02-15 449e7237c6a575fdfd8393187f2ffcaffb000801
src/views/AuthorizationManagement/menuRoleAuthorization.vue
@@ -1,15 +1,41 @@
<template>
  <div class="menuSettings_box">
    <My-bread
    <!-- <My-bread
      :list="[
        `${$t('operatManage.operatManage')}`,
        `${$t('operatManage.MenuRoleAuthorization')}`,
      ]"
    ></My-bread>
    <el-divider />
    <el-divider /> -->
    <div class="menuSettings_tree subpage_Div">
      <My-bread :list="[
          `${$t('operatManage.operatManage')}`,
          `${$t('operatManage.UserRoleAuthorization')}`,
        ]"></My-bread>
      <el-divider />
      <div class="menuTreeBox">
        <div class="card_tree">
          <el-tree
            :data="depList"
            :props="defaultProps"
            :show-checkbox="false"
            :check-on-click-node="true"
            :check-strictly="true"
            node-key="id"
            @check="treeCheck"
            :default-expanded-keys="[1]"
            ref="treeForm"
          >
          </el-tree>
        </div>
      </div>
    </div>
    <div class="menuTreeBox ">
      <div class="left_tree subpage_Div">
      <!-- <div class="left_tree subpage_Div">
        <el-tree
          :data="depList"
          :props="defaultProps"
@@ -22,7 +48,7 @@
          :default-expanded-keys="[1]"
        >
        </el-tree>
      </div>
      </div> -->
      <div class="right_menu subpage_Div">
        <div
          style="
@@ -45,7 +71,7 @@
          <div class="btn" style="margin-left: auto">
            <el-button
              v-if="menuStatus.insert"
              type="primary"
              type="success"
              icon="el-icon-circle-plus-outline"
              size="small"
              :disabled="roleid == null ? true : false"
@@ -90,14 +116,13 @@
        </el-table>
        <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-sizes="[10, 20, 50, 100]"
            :page-size="userlistData.pageSize"
            layout="total, sizes, prev, pager, next, jumper"
            :total="usercount"
@@ -179,7 +204,7 @@
          @size-change="addhandleSizeChange"
          @current-change="addhandleCurrentChange"
          :current-page="addlistData.pageIndex"
          :page-sizes="[10, 20, 30, 40]"
          :page-sizes="[10, 20, 50, 100]"
          :page-size="addlistData.pageSize"
          layout="total, sizes, prev, pager, next, jumper"
          :total="addcount"
@@ -341,15 +366,40 @@
      this.usermultipleSelection.forEach((e) => {
        arr.push(e.id);
      });
      const data = await menuAuthDeletes({ ids: arr.toString() });
      if (data.code !== 200) {
        return this.$message.error('删除失败');
      }
      this.$message({
        message: '删除成功',
        type: 'success',
      this.$confirm('此操作将永久删除该权限, 是否继续?', '提示', {
        confirmButtonText: '确定',
        cancelButtonText: '取消',
        type: 'warning'
      }).then(async () => {
        const data = await menuAuthDeletes({ ids: arr.toString() });
        if (data.code == 200) {
          this.InsertFormdialog = false;
          this.$message({
            message: '删除成功!',
            type: 'success',
          });
          this.getRole();
        } else {
          this.$message({
            message: '删除失败!',
            type: 'warning',
          });
        }
      }).catch(() => {
        this.$message({
          type: 'info',
          message: '已取消删除'
        });
      });
      this.getRole();
      // const data = await menuAuthDeletes({ ids: arr.toString() });
      // if (data.code !== 200) {
      //   return this.$message.error('删除失败');
      // }
      // this.$message({
      //   message: '删除成功',
      //   type: 'success',
      // });
      // this.getRole();
    },
    async getadduserList() {
@@ -429,9 +479,13 @@
<style lang="less" scoped>
//@import url(); 引入公共css类
.menuSettings_box {
  height: 98%;
  height: 96%;
  width: 98%;
  padding: 1%;
  border-radius: 10px;
  display: flex;
  justify-content: space-between;
 
  .menuTreeBox {
    width: 100%;
@@ -444,11 +498,13 @@
      border-radius: 5px;
      float: left;
      overflow-y: auto;
      border-radius: 10px;
    
    }
    .right_menu {
      width: 67%;
      height: 92%;
      border-radius: 10px;
      width: 97%;
      height: 100%;
      padding: 10px;
     
      border-radius: 5px;
@@ -462,5 +518,8 @@
    margin-top: 8px;
  }
}
.subpage_Div{
  border-radius: 10px;
}
</style>