zl程序教程

您现在的位置是:首页 >  其它

当前栏目

树形回显已选,全选

树形 全选 回显
2023-09-14 09:06:32 时间

 

 

 

 


<template>
  <div>
    <p>{{ title }}</p>
    <p class="basicInfo">基本信息</p>
    <div style="width: 90%; margin-left: 100px">
      <el-form
        ref="roleForm"
        :model="roleForm"
        :rules="rule"
        label-width="100px"
      >
        <el-form-item label="角色名称:" prop="roleName">
          <el-input
            style="width: 300px"
            v-model="roleForm.roleName"
            size="mini"
            clearable
            placeholder="请输入"
          ></el-input>
        </el-form-item>
        <el-form-item label="区域权限:" prop="power">
          <el-cascader
            style="width: 300px"
            :options="options"
            :props="props"
            v-model="roleForm.power"
            clearable
            size="mini"
            placeholder="请输入"
          ></el-cascader>
        </el-form-item>
        <el-form-item label="角色说明:" prop="roleDesc">
          <el-input
            type="textarea"
            style="width: 300px"
            v-model="roleForm.roleDesc"
            maxlength="300"
            show-word-limit
            placeholder="请输入"
            clearable
          ></el-input>
        </el-form-item>
      </el-form>
    </div>
    <p class="basicInfo">权限添加</p>
    <div class="no-data" v-if="!roleContList.length > 0">暂无数据</div>
    <div class="box2-role" v-if="roleContList.length > 0">
      <div
        class="role-cont"
        v-for="(item, index) in roleContList"
        @click="getRole(item, index)"
      >
        <h4 :class="item.checked == 1 ? 'active' : ''">
          {{ item.checked == 1 ? "已选" : "未选" }}
        </h4>
        <div>
          <p class="tit">{{ item.name }}</p>
          <p>功能数据</p>
        </div>
      </div>
    </div>
    <div class="btn-box">
      <Button
        type="primary"
        :disabled="btnType"
        @click="handleSubmit('roleForm')"
        >提交</Button
      >
      <Button @click="goBack()" style="margin-left: 8px">返回</Button>
    </div>
    <!-- 功能权限弹框 -->
    <Modal title="请选择" v-model="modalReset">
      <div style="width: 80%">
        <!-- 树形 -->
        <el-checkbox
          v-model="checkedall"
          @change="getAllchecked"
          v-if="treeArry.length > 0"
          >全选</el-checkbox
        >
        <el-tree
          :data="treeArry"
          show-checkbox
          :expand-on-click-node="false"
          node-key="id"
          ref="treeForm"
          :props="defaultProps"
          @check="getCheckedNodes"
          :default-checked-keys="this.savedPermissionIds"
          :default-expanded-keys="this.savedPermissionIds"
        >
        </el-tree>
      </div>
      <div slot="footer" style="text-align: left; padding: 20px 40px">
        <Button @click="modalReset = false">取消</Button>
        <Button type="primary" @click="modalFun()">确定</Button>
      </div>
    </Modal>
  </div>
</template>

<script>
import powerTree from "@/views/systemManage/role/components/powerTree";
import {
  getDetail,
  addRole,
  detail,
  modify,
  adddetail,
  detail2,
  roleAdd,
  modifydetail2,
} from "@/api/roleApi";
import area from "../../../../libs/area.json";
export default {
  components: {
    powerTree,
  },
  data() {
    return {
      area,
      props: {
        // checkStrictly: true,
      },
      options: [],
      activeName: "0",
      roleForm: {
        roleName: "",
        roleDesc: "",
        power: [], //区域权限
        // status: true,
      },
      rule: {
        roleName: [
          { required: true, message: "请输入唯一角色名称", trigger: "blur" },
          {
            type: "string",
            pattern: /^[\d\u4e00-\u9fa5a-zA-Z~!@#$%^&*]{1,32}$/,
            message: "最大长度为32个字符,允许英文字母、数字或特殊符号",
            trigger: "blur",
          },
        ],
        power: [
          {
            required: true,
            type: "array",
            message: "区域权限不能为空",
            trigger: "change",
          },
        ],
        roleDesc: [
          { required: true, message: "请输入角色说明", trigger: "blur" },
        ],
      },
      id: this.$route.params.id,
      tabsList: [],
      children: [],
      title: "添加角色",
      accountTag: "",
      accountType: "",
      btnType: false,
      sessionStorageType: false,
      roleContList: [],
      modalReset: false,
      treeList: [],
      treeArry: [],
      defaultProps: {
        children: "children",
        label: "name",
      },
      menuIds: [], //选中的树形id - 传参
      checkedall: false,
      applicationId: "",
      savedPermissionIds: [], // 接口获取已选树形id
      listRoleBoList: [],
      getRoleIndex: "",
    };
  },
  created() {
    this.title = this.$route.params.id ? "编辑角色" : "添加角色";
  },
  mounted() {
    this.accountTag = localStorage.getItem("ACCOUNTTAG_INDEX-V3");
    this.accountType = localStorage.getItem("ACCOUNTTAG_INDEX-V3-TYPE");
    setTimeout(() => {
      this.options = area;
    }, 100);
    if (this.id) {
      this.getProductInfo(); //编辑时的版本详情
    } else {
      this._adddetail(); //添加时的详情
    }
  },
  methods: {
    //权限列表
    _adddetail() {
      adddetail().then((res) => {
        if (res.data.code == 200) {
          this.roleContList = res.data.data || [];
        }
      });
    },
    //获取功能权限-树形菜单
    getRole(item, index) {
      this.modalReset = true;
      this.applicationId = item.applicationId;
      this.getRoleIndex = index;
      // this.listRoleBoList[this.getRoleIndex] = {
      //   applicationId: this.applicationId,
      //   menuIds: [],
      // };
      detail2({ id: item.applicationId }).then((res) => {
        if (res.data.code == 200) {
          this.treeList = res.data.data || [];
          if (this.treeList.length > 0) {
            this.treeArry = this.initTree(0);
            //获取已经选择的树形id
            if (this.id) {
              this.savedPermissionIds = [];
              this._modifydetail2();
            }
          } else {
            this.treeList = [];
            this.treeArry = [];
          }
        }
      });
    },
    modalFun() {
      this.modalReset = false;
      this.checkedall = false;
      this.listRoleBoList[this.getRoleIndex] = {
        applicationId: this.applicationId,
        menuIds: this.listRoleBoList[this.getRoleIndex].menuIds,
      };
      if (this.listRoleBoList[this.getRoleIndex].menuIds.length > 0) {
        this.roleContList[this.getRoleIndex].checked = 1;
      } else {
        this.roleContList[this.getRoleIndex].checked = 0;
      }
    },
    handleSubmit(name) {
      this.btnType = true;
      setTimeout(() => {
        this.btnType = false;
      }, 2000);
      this.$refs[name].validate((valid) => {
        if (valid) {
          let data = {
            roleName: this.roleForm.roleName,
            areaLimit: this.roleForm.power.join(","), //区域权限
            roleDesc: this.roleForm.roleDesc,
            listRoleBo: this.listRoleBoList,
          };
          if (!this.id) {
            roleAdd(data).then((res) => {
              if (res.data.code == 200) {
                this.$Message.success("添加成功");
                this.$router.go(-1);
              } else {
                this.$Modal.error({
                  title: "提示",
                  content: res.data.msg,
                });
              }
            });
          } else {
            data.id = this.id;
            modify(data).then((res) => {
              if (res.data.success) {
                this.$Message.success(res.data.msg);
                this.$router.go(-1);
                this.sessionStorageType = true;
                this.$store.commit("app/setSessionStorageType", true);
              } else {
                this.$Message.error(res.data.msg);
              }
            });
          }
        }
      });
    },

    //树形处理
    initTree(parent_id) {
      const child = this.treeList.filter((item) => item.parentId == parent_id);
      return child.map((item) => ({
        ...item,
        // 当前存在id(id与parent_id应该是必须有的)调用initTree() 查找所有parent_id为本id的数据
        // childs字段写入
        children: this.initTree(item.id),
      }));
    },
    lookForAllId(data = [], arr = []) {
      for (let item of data) {
        arr.push(item.id);
        if (item.children && item.children.length)
          this.lookForAllId(item.children, arr);
      }
      return arr;
    },
    //获取树形已选
    getCheckedNodes() {
      let parentArr = this.$refs.treeForm.getHalfCheckedKeys();
      let childeArr = this.$refs.treeForm.getCheckedKeys();
      let arr = childeArr.concat(parentArr);
      // this.menuIds = arr;
      this.listRoleBoList[this.getRoleIndex] = {
        applicationId: this.applicationId,
        menuIds: arr,
      };
      //获取所有id和长度
      let treeArryLenth = this.lookForAllId(this.treeArry).length;
      if (arr.length == treeArryLenth) {
        this.checkedall = true;
      } else {
        this.checkedall = false;
      }
    },
    //全选
    getAllchecked(v) {
      this.checkedall = v;
      if (v) {
        this.$refs.treeForm.setCheckedNodes(this.treeArry);
        // this.menuIds = this.$refs.treeForm.getCheckedKeys();
        let dmenuIds = this.$refs.treeForm.getCheckedKeys();
        this.listRoleBoList[this.getRoleIndex] = {
          applicationId: this.applicationId,
          menuIds: dmenuIds,
        };
      } else {
        this.$refs.treeForm.setCheckedNodes([]);
        // this.menuIds = [];
        this.listRoleBoList[this.getRoleIndex] = {
          applicationId: "",
          menuIds: [],
        };
      }
    },

    //获取已选树形id-接口返回
    _modifydetail2() {
      modifydetail2({
        applicationId: this.applicationId,
        roleId: this.id,
      }).then((res) => {
        if (res.data.code == 200) {
          if (this.listRoleBoList[this.getRoleIndex] == undefined) {
            this.savedPermissionIds = res.data.data;
          } else if (
            this.listRoleBoList[this.getRoleIndex].menuIds &&
            this.listRoleBoList[this.getRoleIndex].menuIds.length >= 0
          ) {
            this.savedPermissionIds =
              this.listRoleBoList[this.getRoleIndex].menuIds;
          } else {
            this.savedPermissionIds = res.data.data;
          }
          //获取所有id和长度
          let treeArryLenth = this.lookForAllId(this.treeArry).length;
          if (this.savedPermissionIds.length == treeArryLenth) {
            this.checkedall = true;
          } else {
            this.checkedall = false;
          }
          //解决 选择所有id
          let newArr = [];
          let item = "";
          if (this.savedPermissionIds && this.savedPermissionIds.length !== 0) {
            this.savedPermissionIds.forEach((item) => {
              this.checked(item, this.treeArry, newArr);
            });
            this.savedPermissionIds = newArr;
            this.listRoleBoList[this.getRoleIndex] = {
              applicationId: this.applicationId,
              menuIds: newArr,
            };
          }
        }
      });
    },
    checked(id, data, newArr) {
      data.forEach((item) => {
        if (item.id == id) {
          if (item.children && item.children.length == 0) {
            newArr.push(item.id);
          }
        } else {
          if (item.children != null && item.children.length != 0) {
            this.checked(id, item.children, newArr);
          }
        }
      });
    },
    // 编辑时查询版本信息-详情
    getProductInfo() {
      detail(this.id).then((res) => {
        if ((res.data.success = true)) {
          let data = res.data.data;
          this.roleForm.roleName = data.roleName;
          this.roleForm.roleDesc = data.roleDesc;
          this.roleForm.power = res.data.data.areaLimit
            ? res.data.data.areaLimit.split(",")
            : [];
          this.roleContList = data.listRoleBo || [];
        }
      });
    },

    goBack() {
      this.sessionStorageType = true;
      this.$store.commit("app/setSessionStorageType", true);
      this.$router.go(-1);
    },
  },

  beforeDestroy() {
    if (this.sessionStorageType == false) {
      sessionStorage.removeItem("searchData");
    }
  },
};
</script>
<style lang="less" scoped>
p {
  height: 30px;
  line-height: 30px;
  border: 1px solid #eaeaea;
  padding-left: 10px;
  margin-bottom: 10px;
}

.childBox {
  display: flex;
  flex-flow: column nowrap;
  margin-left: 2em;
}
.basicInfo {
  height: 30px;
  line-height: 30px;
  background-color: #ececec;
  padding-left: 10px;
  margin-bottom: 10px;
}
.box2-role {
  display: flex;
  width: 100%;
  flex-wrap: wrap;
  .role-cont {
    border: 1px solid #ccc;
    flex: 0 0 23%;
    margin: 10px;
    height: 140px;
    cursor: pointer;
    h4 {
      margin-left: 10px;
      font-weight: normal;
      height: 24px;
      margin-top: 10px;
      &.active {
        margin-left: 10px;
        color: #2d8cf0;
      }
    }
    div {
      text-align: center;
      p {
        border: none;
      }
      p.tit {
        color: #2d8cf0;
      }
    }
  }
}
.btn-box {
  margin-left: 20px;
  margin-top: 10px;
}
</style>
 
{"code":200,"success":true,"data":[{"id":302,"name":"首页","permissionCode":"views/main/main.vue","url":"/main","route":"main-home","parentId":0,"applicationId":153,"remark":"","status":"0","orderby":100,"menuType":"1","permissionCodeBtn":"","checked":null,"iconFirst":null,"iconSecond":null,"openWay":null,"labelCode":null},{"id":303,"name":"首页","permissionCode":"views/home/home.vue","url":"/home","route":"home","parentId":302,"applicationId":153,"remark":"","status":"0","orderby":0,"menuType":"1","permissionCodeBtn":"","checked":null,"iconFirst":null,"iconSecond":null,"openWay":null,"labelCode":null},{"id":306,"name":"项目管理","permissionCode":"views/main/main.vue","url":"/parkItem","route":"parkItem","parentId":0,"applicationId":153,"remark":"","status":"1","orderby":98,"menuType":"1","permissionCodeBtn":"","checked":null,"iconFirst":null,"iconSecond":null,"openWay":null,"labelCode":null},{"id":307,"name":"项目管理","permissionCode":"views/parkItem/index.vue","url":"parkItem-manage","route":"parkItem-manage","parentId":306,"applicationId":153,"remark":"","status":"0","orderby":0,"menuType":"1","permissionCodeBtn":"","checked":null,"iconFirst":null,"iconSecond":null,"openWay":null,"labelCode":null},{"id":308,"name":"开户管理","permissionCode":"views/main/main.vue","url":"/openaBank","route":"openaBank","parentId":0,"applicationId":153,"remark":"","status":"1","orderby":97,"menuType":"1","permissionCodeBtn":"","checked":null,"iconFirst":null,"iconSecond":null,"openWay":null,"labelCode":null},{"id":309,"name":"开户管理","permissionCode":"views/openaBank/index.vue","url":"/openaBank-manage","route":"openaBank-manage","parentId":308,"applicationId":153,"remark":"","status":"0","orderby":0,"menuType":"1","permissionCodeBtn":"","checked":null,"iconFirst":null,"iconSecond":null,"openWay":null,"labelCode":null},{"id":310,"name":"账号管理","permissionCode":"views/main/main.vue","url":"/accountManage","route":"accountManage","parentId":0,"applicationId":153,"remark":"","status":"1","orderby":96,"menuType":"1","permissionCodeBtn":"","checked":null,"iconFirst":null,"iconSecond":null,"openWay":null,"labelCode":null},{"id":311,"name":"账号管理","permissionCode":"views/systemManage/account/account-list.vue","url":"account-list","route":"account-list","parentId":310,"applicationId":153,"remark":"","status":"0","orderby":0,"menuType":"1","permissionCodeBtn":"","checked":null,"iconFirst":null,"iconSecond":null,"openWay":null,"labelCode":null},{"id":312,"name":"添加账号","permissionCode":"views/systemManage/account/components/add.vue","url":"accountAdd","route":"accountAdd","parentId":311,"applicationId":153,"remark":"","status":"0","orderby":0,"menuType":"3","permissionCodeBtn":"account-list/add","checked":null,"iconFirst":null,"iconSecond":null,"openWay":null,"labelCode":null},{"id":313,"name":"编辑","permissionCode":"views/systemManage/account/components/add.vue","url":"accountEdit/:id","route":"accountEdit","parentId":311,"applicationId":153,"remark":"","status":"0","orderby":0,"menuType":"3","permissionCodeBtn":"account-list/edit","checked":null,"iconFirst":null,"iconSecond":null,"openWay":null,"labelCode":null},{"id":314,"name":"查看","permissionCode":"views/systemManage/account/components/manage.vue","url":"checkaccount/:id","route":"checkaccount","parentId":311,"applicationId":153,"remark":"","status":"0","orderby":0,"menuType":"3","permissionCodeBtn":"account-list/check","checked":null,"iconFirst":null,"iconSecond":null,"openWay":null,"labelCode":null},{"id":316,"name":"审核","permissionCode":"views/openaBank/components/manage.vue","url":"openaBankManage/:id","route":"openaBankManage","parentId":309,"applicationId":153,"remark":"","status":"0","orderby":0,"menuType":"3","permissionCodeBtn":"openaBank-manage/manage","checked":null,"iconFirst":null,"iconSecond":null,"openWay":null,"labelCode":null},{"id":317,"name":"查看","permissionCode":"views/openaBank/components/manage.vue","url":"checkopenaBank/:id","route":"checkopenaBank","parentId":309,"applicationId":153,"remark":"","status":"0","orderby":0,"menuType":"3","permissionCodeBtn":"openaBank-manage/check","checked":null,"iconFirst":null,"iconSecond":null,"openWay":null,"labelCode":null},{"id":319,"name":"数据字典管理","permissionCode":"views/main/main.vue","url":"/dictionary","route":"dictionary","parentId":0,"applicationId":153,"remark":"","status":"1","orderby":94,"menuType":"1","permissionCodeBtn":"","checked":null,"iconFirst":null,"iconSecond":null,"openWay":null,"labelCode":null},{"id":320,"name":"添加项目","permissionCode":"views/parkItem/components/add.vue","url":"parkItemAdd","route":"parkItemAdd","parentId":307,"applicationId":153,"remark":"","status":"0","orderby":0,"menuType":"3","permissionCodeBtn":"parkItem-manage/add","checked":null,"iconFirst":null,"iconSecond":null,"openWay":null,"labelCode":null},{"id":321,"name":"编辑项目","permissionCode":"views/parkItem/components/add.vue","url":"parkItemEdit/:id","route":"parkItemEdit","parentId":307,"applicationId":153,"remark":"","status":"0","orderby":0,"menuType":"3","permissionCodeBtn":"parkItem-manage/edit","checked":null,"iconFirst":null,"iconSecond":null,"openWay":null,"labelCode":null},{"id":322,"name":"管理项目","permissionCode":"views/parkItem/components/manage.vue","url":"parkItemManage/:id","route":"parkItemManage","parentId":307,"applicationId":153,"remark":"","status":"0","orderby":0,"menuType":"3","permissionCodeBtn":"parkItem-manage/manage","checked":null,"iconFirst":null,"iconSecond":null,"openWay":null,"labelCode":null},{"id":323,"name":"查看项目","permissionCode":"views/parkItem/components/manage.vue","url":"checkparkItem/:id","route":"checkparkItem","parentId":307,"applicationId":153,"remark":"","status":"0","orderby":0,"menuType":"3","permissionCodeBtn":"parkItem-manage/check","checked":null,"iconFirst":null,"iconSecond":null,"openWay":null,"labelCode":null},{"id":324,"name":"数据字典管理","permissionCode":"views/dictionary/dictionary-list.vue","url":"dictionary-list","route":"dictionary-list","parentId":319,"applicationId":153,"remark":"","status":"0","orderby":0,"menuType":"1","permissionCodeBtn":"","checked":null,"iconFirst":null,"iconSecond":null,"openWay":null,"labelCode":null},{"id":325,"name":"添加数据字典","permissionCode":"views/dictionary/components/add.vue","url":"dictionaryAdd","route":"dictionaryAdd","parentId":324,"applicationId":153,"remark":"","status":"0","orderby":0,"menuType":"3","permissionCodeBtn":"dictionary-list/add","checked":null,"iconFirst":"","iconSecond":"","openWay":null,"labelCode":null},{"id":326,"name":"编辑数据字典","permissionCode":"views/dictionary/components/add.vue","url":"dictionaryEdit/:id","route":"dictionaryEdit","parentId":324,"applicationId":153,"remark":"","status":"0","orderby":0,"menuType":"3","permissionCodeBtn":"dictionary-list/edit","checked":null,"iconFirst":"","iconSecond":"","openWay":null,"labelCode":null},{"id":327,"name":"查看","permissionCode":"views/dictionary/components/manage.vue","url":"checkdictionary/:id","route":"checkdictionary","parentId":324,"applicationId":153,"remark":"","status":"0","orderby":0,"menuType":"3","permissionCodeBtn":"dictionary-list/check","checked":null,"iconFirst":"","iconSecond":"","openWay":null,"labelCode":null},{"id":328,"name":"批量添加","permissionCode":"views/dictionary/components/addMore.vue","url":"addMore","route":"addMore","parentId":324,"applicationId":153,"remark":"","status":"0","orderby":0,"menuType":"3","permissionCodeBtn":"dictionary-list/addMore","checked":null,"iconFirst":"","iconSecond":"","openWay":null,"labelCode":null},{"id":329,"name":"企业管理","permissionCode":"views/main/main.vue","url":"/enterprise-manage","route":"enterprise-manage","parentId":0,"applicationId":153,"remark":"","status":"1","orderby":95,"menuType":"1","permissionCodeBtn":"","checked":null,"iconFirst":"","iconSecond":"","openWay":null,"labelCode":null},{"id":330,"name":"企业管理","permissionCode":"views/enterpriseManage/enterprise-list.vue","url":"enterprise-list","route":"enterprise-list","parentId":329,"applicationId":153,"remark":"","status":"0","orderby":0,"menuType":"1","permissionCodeBtn":"","checked":null,"iconFirst":"","iconSecond":"","openWay":null,"labelCode":null},{"id":331,"name":"添加企业","permissionCode":"views/enterpriseManage/components/add.vue","url":"enterpriseAdd","route":"enterpriseAdd","parentId":330,"applicationId":153,"remark":"","status":"0","orderby":0,"menuType":"3","permissionCodeBtn":"enterprise-list/add","checked":null,"iconFirst":"","iconSecond":"","openWay":null,"labelCode":null},{"id":332,"name":"编辑企业","permissionCode":"views/enterpriseManage/components/add.vue","url":"enterpriseEdit/:id","route":"enterpriseEdit","parentId":330,"applicationId":153,"remark":"","status":"0","orderby":0,"menuType":"3","permissionCodeBtn":"enterprise-list/edit","checked":null,"iconFirst":"","iconSecond":"","openWay":null,"labelCode":null},{"id":333,"name":"查看","permissionCode":"views/enterpriseManage/components/manage.vue","url":"checkenterprise/:id","route":"checkenterprise","parentId":330,"applicationId":153,"remark":"","status":"0","orderby":0,"menuType":"3","permissionCodeBtn":"enterprise-list/check","checked":null,"iconFirst":"","iconSecond":"","openWay":null,"labelCode":null},{"id":358,"name":"系统管理","permissionCode":"views/main/main.vue","url":"/systemManage","route":"systemManage","parentId":0,"applicationId":153,"remark":"","status":"1","orderby":92,"menuType":"1","permissionCodeBtn":"","checked":null,"iconFirst":"","iconSecond":"","openWay":null,"labelCode":null},{"id":359,"name":"角色管理","permissionCode":"views/systemManage/role/role-list.vue","url":"role-list","route":"role-list","parentId":358,"applicationId":153,"remark":"","status":"0","orderby":0,"menuType":"1","permissionCodeBtn":"","checked":null,"iconFirst":"","iconSecond":"","openWay":null,"labelCode":null},{"id":360,"name":"添加角色","permissionCode":"views/systemManage/role/components/add.vue","url":"roleAdd","route":"roleAdd","parentId":359,"applicationId":153,"remark":"","status":"0","orderby":0,"menuType":"3","permissionCodeBtn":"role-list/add","checked":null,"iconFirst":"","iconSecond":"","openWay":null,"labelCode":null},{"id":361,"name":"查看角色","permissionCode":"views/systemManage/role/components/check.vue","url":"roleCheck/:id","route":"roleCheck","parentId":359,"applicationId":153,"remark":"","status":"0","orderby":0,"menuType":"3","permissionCodeBtn":"role-list/check","checked":null,"iconFirst":"","iconSecond":"","openWay":null,"labelCode":null},{"id":362,"name":"角色成员","permissionCode":"views/systemManage/role/components/member.vue","url":"roleMember/:id","route":"roleMember","parentId":359,"applicationId":153,"remark":"","status":"0","orderby":0,"menuType":"3","permissionCodeBtn":"role-list/manage","checked":null,"iconFirst":"","iconSecond":"","openWay":null,"labelCode":null},{"id":363,"name":"编辑","permissionCode":"views/systemManage/role/components/add.vue","url":"roleEdit/:id","route":"roleEdit","parentId":359,"applicationId":153,"remark":"","status":"0","orderby":0,"menuType":"3","permissionCodeBtn":"role-list/edit","checked":null,"iconFirst":"","iconSecond":"","openWay":null,"labelCode":null},{"id":364,"name":"删除","permissionCode":"remove","url":"","route":"","parentId":359,"applicationId":153,"remark":"","status":"0","orderby":0,"menuType":"3","permissionCodeBtn":"role-list/remove","checked":null,"iconFirst":"","iconSecond":"","openWay":null,"labelCode":null},{"id":365,"name":"部门管理","permissionCode":"views/systemManage/department/department-list.vue","url":"department-list","route":"department-list","parentId":358,"applicationId":153,"remark":"","status":"0","orderby":0,"menuType":"1","permissionCodeBtn":"","checked":null,"iconFirst":"","iconSecond":"","openWay":null,"labelCode":null},{"id":366,"name":"添加子节点","permissionCode":"views/systemManage/department/components/add.vue","url":"departmentAdd","route":"departmentAdd","parentId":365,"applicationId":153,"remark":"","status":"0","orderby":0,"menuType":"3","permissionCodeBtn":"department-list/add","checked":null,"iconFirst":"","iconSecond":"","openWay":null,"labelCode":null},{"id":367,"name":"编辑子节点","permissionCode":"views/systemManage/department/components/add.vue","url":"departmentEdit/:id","route":"departmentEdit","parentId":365,"applicationId":153,"remark":"","status":"0","orderby":0,"menuType":"3","permissionCodeBtn":"department-list/edit","checked":null,"iconFirst":"","iconSecond":"","openWay":null,"labelCode":null},{"id":368,"name":"删除","permissionCode":"remove","url":"","route":"","parentId":365,"applicationId":153,"remark":"","status":"0","orderby":0,"menuType":"3","permissionCodeBtn":"department-list/remove","checked":null,"iconFirst":"","iconSecond":"","openWay":null,"labelCode":null},{"id":369,"name":"添加人员","permissionCode":"addPersonnel","url":"","route":"","parentId":365,"applicationId":153,"remark":"","status":"0","orderby":0,"menuType":"3","permissionCodeBtn":"department-list/addPersonnel","checked":null,"iconFirst":"","iconSecond":"","openWay":null,"labelCode":null},{"id":370,"name":"删除人员","permissionCode":"removePersonnel","url":"","route":"","parentId":365,"applicationId":153,"remark":"","status":"0","orderby":0,"menuType":"3","permissionCodeBtn":"department-list/removePersonnel","checked":null,"iconFirst":"","iconSecond":"","openWay":null,"labelCode":null},{"id":371,"name":"日志管理","permissionCode":"views/main/main.vue","url":"/journal-manage","route":"journal-manage","parentId":0,"applicationId":153,"remark":"","status":"1","orderby":0,"menuType":"1","permissionCodeBtn":"","checked":null,"iconFirst":"","iconSecond":"","openWay":null,"labelCode":null},{"id":372,"name":"操作日志管理","permissionCode":"views/journal-manage/operation-journal/operation-journal.vue","url":"operation-journal","route":"operation-journal","parentId":371,"applicationId":153,"remark":"","status":"0","orderby":0,"menuType":"1","permissionCodeBtn":"","checked":null,"iconFirst":"","iconSecond":"","openWay":null,"labelCode":null},{"id":373,"name":"详情","permissionCode":"views/journal-manage/operation-journal/details-pagee/details-pagee.vue","url":"details-pagee/:id","route":"details-pagee","parentId":372,"applicationId":153,"remark":"","status":"0","orderby":0,"menuType":"3","permissionCodeBtn":"operation-journal/check","checked":null,"iconFirst":"","iconSecond":"","openWay":null,"labelCode":null},{"id":374,"name":"异常日志管理","permissionCode":"views/journal-manage/abnormal-journal/abnormal-journal.vue","url":"abnormal-journal","route":"abnormal-journal","parentId":371,"applicationId":153,"remark":"","status":"0","orderby":0,"menuType":"1","permissionCodeBtn":"","checked":null,"iconFirst":"","iconSecond":"","openWay":null,"labelCode":null},{"id":375,"name":"详情","permissionCode":"views/journal-manage/abnormal-journal/details-pageo/details-pageo.vue","url":"details-pageo/:id","route":"details-pageo","parentId":374,"applicationId":153,"remark":"","status":"0","orderby":0,"menuType":"3","permissionCodeBtn":"abnormal-journal/check","checked":null,"iconFirst":"","iconSecond":"","openWay":null,"labelCode":null},{"id":376,"name":"开放对象管理","permissionCode":"views/main/main.vue","url":"/openObject-manage","route":"openObject-manage","parentId":0,"applicationId":153,"remark":"","status":"1","orderby":91,"menuType":"1","permissionCodeBtn":"","checked":null,"iconFirst":"","iconSecond":"","openWay":null,"labelCode":null},{"id":377,"name":"开放对象审核","permissionCode":"views/openObject/openObjectsh/openObjectsh-list.vue","url":"openObject-list","route":"openObject-list","parentId":376,"applicationId":153,"remark":"","status":"0","orderby":0,"menuType":"1","permissionCodeBtn":"","checked":null,"iconFirst":"","iconSecond":"","openWay":null,"labelCode":null},{"id":378,"name":"审核","permissionCode":"views/openObject/openObjectsh/components/manage.vue","url":"openObjectEdit/:id","route":"openObjectEdit","parentId":377,"applicationId":153,"remark":"","status":"0","orderby":0,"menuType":"3","permissionCodeBtn":"openObject-list/manage","checked":null,"iconFirst":"","iconSecond":"","openWay":null,"labelCode":null},{"id":379,"name":"查看","permissionCode":"views/openObject/openObjectsh/components/manage.vue","url":"openObjectCheck/:id","route":"openObjectCheck","parentId":377,"applicationId":153,"remark":"","status":"0","orderby":0,"menuType":"3","permissionCodeBtn":"openObject-list/check","checked":null,"iconFirst":"","iconSecond":"","openWay":null,"labelCode":null},{"id":380,"name":"开放对象信息","permissionCode":"views/openObject/openObjectxx/openObjectxx-list.vue","url":"openObjectxx-list","route":"openObjectxx-list","parentId":376,"applicationId":153,"remark":"","status":"0","orderby":0,"menuType":"1","permissionCodeBtn":"","checked":null,"iconFirst":"","iconSecond":"","openWay":null,"labelCode":null},{"id":381,"name":"查看","permissionCode":"views/openObject/openObjectxx/components/manage.vue","url":"openObjectCheckxx/:id","route":"openObjectCheckxx","parentId":380,"applicationId":153,"remark":"","status":"0","orderby":0,"menuType":"3","permissionCodeBtn":"openObjectxx-list/check","checked":null,"iconFirst":"","iconSecond":"","openWay":null,"labelCode":null},{"id":384,"name":"批量添加","permissionCode":"views/enterpriseManage/components/addMore.vue","url":"addMore1","route":"addMore1","parentId":330,"applicationId":153,"remark":"","status":"0","orderby":0,"menuType":"3","permissionCodeBtn":"enterprise-list/addMore1","checked":null,"iconFirst":"","iconSecond":"","openWay":null,"labelCode":null}],"msg":"操作成功"}