保安监管系统-验收版本
+
liuyg
2021-11-26 9da3b51159a7cab036e01907b6fc27779cf31b95
+
4 files modified
112 ■■■■ changed files
src/views/management/registerOLD.vue 12 ●●●● patch | view | raw | blame | history
src/views/securityGuardManagement/register.vue 12 ●●●● patch | view | raw | blame | history
src/views/securityGuardManagement/registerOnce.vue 76 ●●●● patch | view | raw | blame | history
src/views/system/user.vue 12 ●●●● patch | view | raw | blame | history
src/views/management/registerOLD.vue
@@ -671,15 +671,21 @@
    },
    initData(tenantId) {
      getRoleTree(tenantId).then((res) => {
        const column = this.findObject(this.option.group, "roleId");
        try {
          const column = this.findObject(this.option.group, "roleId");
        } catch (error) {}
        column.dicData = res.data.data;
      });
      getDeptTree(tenantId).then((res) => {
        const column = this.findObject(this.option.group, "deptId");
        try {
          const column = this.findObject(this.option.group, "deptId");
        } catch (error) {}
        column.dicData = res.data.data;
      });
      getPostList(tenantId).then((res) => {
        const column = this.findObject(this.option.group, "postId");
        try {
          const column = this.findObject(this.option.group, "postId");
        } catch (error) {}
        column.dicData = res.data.data;
      });
    },
src/views/securityGuardManagement/register.vue
@@ -1047,19 +1047,25 @@
    initData(tenantId) {
      getRoleTree(tenantId).then((res) => {
        try {
          const column = this.findObject(this.option.group, "roleId");
          try {
            const column = this.findObject(this.option.group, "roleId");
          } catch (error) {}
          column.dicData = res.data.data;
        } catch {}
      });
      getDeptTree(tenantId).then((res) => {
        try {
          const column = this.findObject(this.option.group, "deptId");
          try {
            const column = this.findObject(this.option.group, "deptId");
          } catch (error) {}
          column.dicData = res.data.data;
        } catch {}
      });
      getPostList(tenantId).then((res) => {
        try {
          const column = this.findObject(this.option.group, "postId");
          try {
            const column = this.findObject(this.option.group, "postId");
          } catch (error) {}
          column.dicData = res.data.data;
        } catch {}
      });
src/views/securityGuardManagement/registerOnce.vue
@@ -1,8 +1,8 @@
/*
 * @Author: Morpheus
 * @Date: 2021-07-05 16:31:54
 * @Last Modified by: Morpheus
 * @Last Modified time: 2021-07-10 15:41:13
 * @Last Modified by: liu
 * @Last Modified time: 2021-11-26 09:16:21
 * menu-name 保安员注册查询
 */
<template>
@@ -12,11 +12,11 @@
        <div class="box">
          <el-scrollbar>
            <basic-container>
              <avue-tree
              <!-- <avue-tree
                :option="treeOption"
                :data="treeData"
                @node-click="nodeClick"
              />
              /> -->
            </basic-container>
          </el-scrollbar>
        </div>
@@ -307,16 +307,42 @@
        lazy: true,
        treeLoad: function (node, resolve) {
          const parentId = node.level === 0 ? 0 : node.data.id;
          getDeptLazyTree(parentId).then((res) => {
            resolve(
              res.data.data.map((item) => {
                return {
                  ...item,
                  leaf: !item.hasChildren,
                };
              })
            );
          });
          if (parentId == 0) {
            getDeptLazyTree(parentId).then((res) => {
              resolve(
                res.data.data.map((item) => {
                  return {
                    ...item,
                    leaf: !item.hasChildren,
                  };
                })
              );
            });
          } else if (parentId == "1372091709474910209") {
            getDeptLazyTree(parentId).then((res) => {
              resolve(
                res.data.data[0].children.map((item) => {
                  return {
                    ...item,
                    leaf: !item.hasChildren,
                  };
                })
              );
            });
          } else {
            getDeptLazyTree(parentId).then((res) => {
              res.data.data = [];
              resolve(
                res.data.data.map((item) => {
                  return {
                    ...item,
                    leaf: !item.hasChildren,
                  };
                })
              );
            });
          }
        },
        addBtn: false,
        menu: false,
@@ -777,16 +803,22 @@
    },
    initData(tenantId) {
      getRoleTree(tenantId).then((res) => {
        const column = this.findObject(this.option.group, "roleId");
        column.dicData = res.data.data;
        try {
          const column = this.findObject(this.option.group, "roleId");
          column.dicData = res.data.data;
        } catch (error) {}
      });
      getDeptTree(tenantId).then((res) => {
        const column = this.findObject(this.option.group, "deptId");
        column.dicData = res.data.data;
        try {
          const column = this.findObject(this.option.group, "deptId");
          column.dicData = res.data.data;
        } catch (error) {}
      });
      getPostList(tenantId).then((res) => {
        const column = this.findObject(this.option.group, "postId");
        column.dicData = res.data.data;
        try {
          const column = this.findObject(this.option.group, "postId");
          column.dicData = res.data.data;
        } catch (error) {}
      });
    },
@@ -879,11 +911,11 @@
      if (this.departmentid) {
        deptId = this.departmentid;
      }
      params["deptId"] = deptId;
      getListSecurity(
        page.currentPage,
        page.pageSize,
        Object.assign(params, this.query),
        deptId
        Object.assign(params, this.query)
      ).then((res) => {
        const data = res.data.data;
        this.page.total = data.total;
src/views/system/user.vue
@@ -747,15 +747,21 @@
    },
    initData(tenantId) {
      getRoleTree(tenantId).then((res) => {
        const column = this.findObject(this.option.group, "roleId");
        try {
          const column = this.findObject(this.option.group, "roleId");
        } catch (error) {}
        column.dicData = res.data.data;
      });
      getDeptTree(tenantId).then((res) => {
        const column = this.findObject(this.option.group, "deptId");
        try {
          const column = this.findObject(this.option.group, "deptId");
        } catch (error) {}
        column.dicData = res.data.data;
      });
      getPostList(tenantId).then((res) => {
        const column = this.findObject(this.option.group, "postId");
        try {
          const column = this.findObject(this.option.group, "postId");
        } catch (error) {}
        column.dicData = res.data.data;
      });
    },