Преглед изворни кода

修改授权主体文件目录名称

林倩 пре 4 година
родитељ
комит
f3d3830aec
23 измењених фајлова са 1625 додато и 1619 уклоњено
  1. 0 0
      src/pages/data-auth-module/auth-object-manage/appfun-resource-manage/add-func-form.vue
  2. 3 3
      src/pages/data-auth-module/auth-object-manage/appfun-resource-manage/app-list.vue
  3. 1 1
      src/pages/data-auth-module/auth-object-manage/object-prop-manage/add-dialog.vue
  4. 1 1
      src/pages/data-auth-module/auth-object-manage/object-prop-manage/application-list.vue
  5. 1 1
      src/pages/data-auth-module/auth-object-manage/object-prop-manage/function-list.vue
  6. 3 3
      src/pages/data-auth-module/auth-object-manage/object-prop-manage/index.vue
  7. 1 1
      src/pages/data-auth-module/auth-object-manage/object-prop-manage/service-list.vue
  8. 3 3
      src/pages/data-auth-module/auth-object-manage/service-resource-manage/index.vue
  9. 220 220
      src/pages/data-auth-module/auth-subject-manage/DataConfig.js
  10. 71 71
      src/pages/data-auth-module/auth-subject-manage/app-prop-manage/detail.vue
  11. 176 167
      src/pages/data-auth-module/auth-subject-manage/app-prop-manage/index.vue
  12. 54 54
      src/pages/data-auth-module/auth-subject-manage/index.scss
  13. 143 143
      src/pages/data-auth-module/auth-subject-manage/org-prop-manage/index.vue
  14. 118 118
      src/pages/data-auth-module/auth-subject-manage/subject-prop-manage/add-dialog.vue
  15. 157 157
      src/pages/data-auth-module/auth-subject-manage/subject-prop-manage/agency-list.vue
  16. 115 115
      src/pages/data-auth-module/auth-subject-manage/subject-prop-manage/application-list.vue
  17. 103 103
      src/pages/data-auth-module/auth-subject-manage/subject-prop-manage/index.vue
  18. 162 162
      src/pages/data-auth-module/auth-subject-manage/subject-prop-manage/personnel-list.vue
  19. 0 0
      src/pages/data-auth-module/auth-subject-manage/subject-prop-manage/prop-detail.vue
  20. 0 0
      src/pages/data-auth-module/auth-subject-manage/subject-prop-manage/prop-tree.vue
  21. 90 90
      src/pages/data-auth-module/auth-subject-manage/user-prop-manage/detail.vue
  22. 189 189
      src/pages/data-auth-module/auth-subject-manage/user-prop-manage/index.vue
  23. 14 17
      src/router/modules/data-auth-module.js

+ 0 - 0
src/pages/data-auth-module/auth-object-manage/appfun-resource-manage/add-func-form2.vue → src/pages/data-auth-module/auth-object-manage/appfun-resource-manage/add-func-form.vue


+ 3 - 3
src/pages/data-auth-module/auth-object-manage/appfun-resource-manage/app-list.vue

@@ -9,10 +9,10 @@
         <!-- 搜索项 -->
         <el-form :inline="true" class="search-form">
             <el-form-item label="应用系统名称">
-                <el-input v-model="form.applyName.value" clearable></el-input>
+                <el-input v-model="form.applyName.value" placeholder="请输入应用名称" clearable></el-input>
             </el-form-item>
             <el-form-item label="应用在用标识">
-                <dg-select code="DM_APPLY_STATUS" v-model="form.applyStatus.value" clearable></dg-select>
+                <dg-select code="DM_APPLY_STATUS" v-model="form.applyStatus.value"  placeholder="请选择应用在用标识"  clearable></dg-select>
             </el-form-item>
             <el-form-item>
                 <dg-button type="primary" @click="handleSearch" icon="el-icon-search">查询</dg-button>
@@ -67,7 +67,7 @@
 import importFile from "@/pages/common/import";
 import addAppForm from "./add-app-form";
 import { appRestApi, appSync } from "@/api/application";
-import addFuncForm2 from "./add-func-form2";
+import addFuncForm2 from "./add-func-form";
 
 export default {
     components: {},

+ 1 - 1
src/pages/data-auth-module/auth-object-manage/object-prop-manage/add-dialog.vue

@@ -64,7 +64,7 @@
 
 <script>
 import { appRestApi } from "@/api/application";
-import { cardAgencylist, cardFunctionList } from "../../property-management/DataConfig";
+import { cardAgencylist, cardFunctionList } from "../../auth-subject-manage/DataConfig";
 import orgTree from "@/pages/common/tree";
 import { addRelateApp, getRelateIds } from "@/api/data-auth";
 import _ from "lodash";

+ 1 - 1
src/pages/data-auth-module/auth-object-manage/object-prop-manage/application-list.vue

@@ -58,7 +58,7 @@
 <script>
 import Table from "@/pages/common/table";
 import { ObjAppTableUrl } from "@/api/data-auth";
-import { cardAgencylist } from "../../property-management/DataConfig";
+import { cardAgencylist } from "../../auth-subject-manage/DataConfig";
 import addDialog from "./add-dialog";
 const editorArea = ["1000px", "760px"];
 export default {

+ 1 - 1
src/pages/data-auth-module/auth-object-manage/object-prop-manage/function-list.vue

@@ -46,7 +46,7 @@
 <script>
 import Table from "@/pages/common/table";
 import * as dynamicManageApi from "@/api/dynamic-manage";
-import { cardFunctionList } from "../../property-management/DataConfig";
+import { cardFunctionList } from "../../auth-subject-manage/DataConfig";
 import addDialog from "./add-dialog";
 const editorArea = ["1200px", "660px"];
 export default {

+ 3 - 3
src/pages/data-auth-module/auth-object-manage/object-prop-manage/index.vue

@@ -37,8 +37,8 @@
 </template>
 
 <script>
-import Tree from "../../property-management/subject-management/prop-tree";
-import propDetail from "../../property-management/subject-management/prop-detail";
+import Tree from "../../auth-subject-manage/subject-prop-manage/prop-tree";
+import propDetail from "../../auth-subject-manage/subject-prop-manage/prop-detail";
 import functionList from "./function-list";
 import serviceList from "./service-list";
 import applicationList from "./application-list";
@@ -94,5 +94,5 @@ export default {
 };
 </script>
 <style lang="scss" scoped>
-@import "../../property-management/index.scss";
+@import "../../auth-subject-manage/index.scss";
 </style>

+ 1 - 1
src/pages/data-auth-module/auth-object-manage/object-prop-manage/service-list.vue

@@ -44,7 +44,7 @@
 import Table from "@/pages/common/table";
 import * as dynamicManageApi from "@/api/dynamic-manage";
 import addDialog from "./add-dialog";
-import { cardServiceList } from "../../property-management/DataConfig";
+import { cardServiceList } from "../../auth-subject-manage/DataConfig";
 const editorArea = ["1200px", "660px"];
 export default {
     name: "personnelList", // 组件名称

+ 3 - 3
src/pages/data-auth-module/auth-object-manage/service-resource-manage/index.vue

@@ -8,13 +8,13 @@
         <!-- 搜索项 -->
         <el-form :inline="true" class="search-form">
             <el-form-item label="数据资源名称">
-                <el-input v-model="form.serviceName.value" clearable></el-input>
+                <el-input v-model="form.serviceName.value" placeholder="请输入数据资源名称" clearable></el-input>
             </el-form-item>
             <el-form-item label="数据提供方式">
-                <dg-select v-model="form.serviceProvideWay.value" enum="ServiceProvideWayEnum" clearable></dg-select>
+                <dg-select v-model="form.serviceProvideWay.value" enum="ServiceProvideWayEnum" placeholder="请选择数据提供方式" clearable></dg-select>
             </el-form-item>
             <el-form-item label="数据提供应用系统名称">
-                <el-input v-model="form.appName.value" clearable></el-input>
+                <el-input v-model="form.appName.value" placeholder="请输入数据提供应用系统名称"  clearable></el-input>
             </el-form-item>
             <el-form-item>
                 <dg-button type="primary" @click="handleSearch" icon="el-icon-search">查询</dg-button>

+ 220 - 220
src/pages/data-auth-module/property-management/DataConfig.js → src/pages/data-auth-module/auth-subject-manage/DataConfig.js

@@ -1,220 +1,220 @@
-/*
- * @Author: Liugh
- * @Date: 2021-05-17 15:38:23
- * @LastEditTime: 2021-05-20 10:41:50
- * @LastEditors: Do not edit
- * @Description:
- */
-
-const UserTableData = [
-    {
-        label: "用户类型",
-        prop: "userType",
-        enum: "UserTypeEnum"
-    },
-    {
-        label: "姓名",
-        prop: "userName"
-    },
-    {
-        label: "身份证号码",
-        prop: "idcard"
-    },
-    {
-        label: "编号",
-        prop: "policeNumber"
-    },
-    {
-        label: "所属机构",
-        // custom: true, // 如果需要自定义请加上这个属性,插槽名称为prop
-        prop: "orgName"
-    },
-    {
-        label: "人员类型",
-        prop: "manType",
-        code: "DM_MAN_TYPE"
-    },
-    {
-        label: "警种",
-        prop: "policeCategory",
-        code: "T_MD_POLICE_TYPE"
-    }
-];
-const ApplicationTableData = [
-    {
-        label: "应用系统名称",
-        prop: "applyName"
-    },
-    {
-        label: "应用系统编号",
-        prop: "applyCode"
-    },
-    {
-        label: "应用英文名称",
-        prop: "appEnglishName"
-    },
-    {
-        label: "应用在用标识",
-        prop: "applyStatus",
-        code: "DM_APPLY_STATUS"
-    },
-    {
-        label: "上线日期",
-        prop: "lineTime",
-        timestamp: "YYYY-MM-DD"
-    },
-    {
-        label: "应用系统运维单位名称",
-        width: "180px",
-        prop: "appOpsDepName"
-    }
-];
-const cardPersonnelList = [
-    {
-        label: "姓名",
-        prop: ""
-    },
-    {
-        label: "身份证号码",
-        prop: ""
-    },
-    {
-        label: "所属单位",
-        prop: ""
-    }
-];
-const cardAddPersonnelList = [
-    {
-        label: "姓名",
-        prop: ""
-    },
-    {
-        label: "身份证号码",
-        prop: ""
-    }
-];
-const cardApplicationList = [
-    {
-        label: "机构名称",
-        prop: ""
-    },
-    {
-        label: "机构代码",
-        prop: ""
-    },
-    {
-        label: "行政区划",
-        prop: ""
-    }
-];
-
-const cardAgencylist = [
-    {
-        label: "应用系统名称",
-        prop: "applyName"
-    },
-    {
-        label: "应用系统代码",
-        prop: "applyCode"
-    },
-    {
-        label: "系统在用标识",
-        prop: "applyStatus",
-        code: "DM_APPLY_STATUS"
-    }
-];
-
-const cardFunctionList = [
-    {
-        label: "功能名称",
-        prop: ""
-    },
-    {
-        label: "功能编号",
-        prop: ""
-    },
-    {
-        label: "所属系统",
-        prop: ""
-    }
-];
-const cardServiceList = [
-    {
-        label: "服务资源名称",
-        prop: ""
-    },
-    {
-        label: "所属系统",
-        prop: ""
-    }
-];
-
-const typeData = {
-    10: [
-        { label: "姓名", value: "userName" },
-        { label: "性别", value: "sex", code: "DM_SEX" },
-        { label: "身份证号码", value: "idcard" },
-        { label: "省份", value: "area", code: "DM_AREA_CODE" },
-        { label: "编号", value: "policeNumber" },
-        { label: "人员类型", value: "manType", code: "DM_MAN_TYPE" },
-        { label: "职级", value: "title", code: "DM_CERT_DUTY_LEVEL" },
-        { label: "用户类别", value: "userType", enum: "UserTypeEnum" },
-        { label: "业务域", value: "policeBusiness" },
-        { label: "警种", value: "policeCategory", code: "T_MD_POLICE_TYPE" }
-    ],
-    20: [
-        { label: "姓名", value: "userName" },
-        { label: "性别", value: "sex", code: "DM_SEX" },
-        { label: "身份证号码", value: "idcard" },
-        { label: "编号", value: "policeNumber" },
-        { label: "所属", value: "orgName" },
-        { label: "人员类型", value: "manType", code: "DM_MAN_TYPE" },
-        { label: "用户类别", value: "userType", enum: "UserTypeEnum" },
-        { label: "业务域", value: "policeBusiness" },
-        { label: "警种", value: "policeCategory", code: "T_MD_POLICE_TYPE" }
-    ],
-    30: [
-        { label: "姓名", value: "userName" },
-        { label: "性别", value: "sex", code: "DM_SEX" },
-        { label: "身份证号码", value: "idcard" },
-        { label: "编号", value: "policeNumber" },
-        { label: "人员类型", value: "manType", code: "DM_MAN_TYPE" },
-        { label: "用户类别", value: "userType", enum: "UserTypeEnum" }
-    ]
-};
-const institutionField = [
-    { label: "上级行政机构", value: "upGovName" },
-    { label: "机构类型", value: "orgType", enum: "OrgKindEnum" },
-    { label: "机构名称", value: "fullName" },
-    { label: "行政区划", value: "areaCode" },
-    { label: "机构代码", value: "orgCode" },
-    { label: "机构类别", value: "unitClass", code: "T_MD_ORGTYPE" },
-    { label: "单位层级", value: "orgLevel", code: "T_MD_ORG_LEVEL" },
-    { label: "单位级别", value: "orgRank", code: "T_MD_ORG_RANK" },
-    { label: "单位类别", value: "orgKind", code: "T_MD_UNIT_CLASS" }
-];
-const applicationField = [
-    { label: "应用系统名称", value: "applyName" },
-    { label: "应用系统编号", value: "applyCode" },
-    { label: "应用英文名称", value: "appEnglishName" },
-    { label: "应用在用标识", value: "applyStatus", code: "DM_APPLY_STATUS" },
-    { label: "上线日期", value: "lineTime" },
-    { label: "应用系统事权单位代码", value: "managerOrgCode" },
-    { label: "应用负责人", value: "fzr" },
-    { label: "应用系统运维单位名称", value: "appOpsDepName" },
-    { label: "应用系统管理单位名称", value: "managerOrgName" },
-    { label: "应用系统说明", value: "managerDescribe" }
-];
-export {
-    UserTableData,
-    typeData,
-    institutionField,
-    ApplicationTableData,
-    applicationField,
-    cardPersonnelList,
-    cardApplicationList,
-    cardAgencylist,
-    cardAddPersonnelList,
-    cardFunctionList,
-    cardServiceList
-};
+/*
+ * @Author: Liugh
+ * @Date: 2021-05-17 15:38:23
+ * @LastEditTime: 2021-05-20 10:41:50
+ * @LastEditors: Do not edit
+ * @Description:
+ */
+
+const UserTableData = [
+    {
+        label: "用户类型",
+        prop: "userType",
+        enum: "UserTypeEnum"
+    },
+    {
+        label: "姓名",
+        prop: "userName"
+    },
+    {
+        label: "身份证号码",
+        prop: "idcard"
+    },
+    {
+        label: "编号",
+        prop: "policeNumber"
+    },
+    {
+        label: "所属机构",
+        // custom: true, // 如果需要自定义请加上这个属性,插槽名称为prop
+        prop: "orgName"
+    },
+    {
+        label: "人员类型",
+        prop: "manType",
+        code: "DM_MAN_TYPE"
+    },
+    {
+        label: "警种",
+        prop: "policeCategory",
+        code: "T_MD_POLICE_TYPE"
+    }
+];
+const ApplicationTableData = [
+    {
+        label: "应用系统名称",
+        prop: "applyName"
+    },
+    {
+        label: "应用系统编号",
+        prop: "applyCode"
+    },
+    {
+        label: "应用英文名称",
+        prop: "appEnglishName"
+    },
+    {
+        label: "应用在用标识",
+        prop: "applyStatus",
+        code: "DM_APPLY_STATUS"
+    },
+    {
+        label: "上线日期",
+        prop: "lineTime",
+        timestamp: "YYYY-MM-DD"
+    },
+    {
+        label: "应用系统运维单位名称",
+        width: "180px",
+        prop: "appOpsDepName"
+    }
+];
+const cardPersonnelList = [
+    {
+        label: "姓名",
+        prop: ""
+    },
+    {
+        label: "身份证号码",
+        prop: ""
+    },
+    {
+        label: "所属单位",
+        prop: ""
+    }
+];
+const cardAddPersonnelList = [
+    {
+        label: "姓名",
+        prop: ""
+    },
+    {
+        label: "身份证号码",
+        prop: ""
+    }
+];
+const cardApplicationList = [
+    {
+        label: "机构名称",
+        prop: ""
+    },
+    {
+        label: "机构代码",
+        prop: ""
+    },
+    {
+        label: "行政区划",
+        prop: ""
+    }
+];
+
+const cardAgencylist = [
+    {
+        label: "应用系统名称",
+        prop: "applyName"
+    },
+    {
+        label: "应用系统代码",
+        prop: "applyCode"
+    },
+    {
+        label: "系统在用标识",
+        prop: "applyStatus",
+        code: "DM_APPLY_STATUS"
+    }
+];
+
+const cardFunctionList = [
+    {
+        label: "功能名称",
+        prop: ""
+    },
+    {
+        label: "功能编号",
+        prop: ""
+    },
+    {
+        label: "所属系统",
+        prop: ""
+    }
+];
+const cardServiceList = [
+    {
+        label: "服务资源名称",
+        prop: ""
+    },
+    {
+        label: "所属系统",
+        prop: ""
+    }
+];
+
+const typeData = {
+    10: [
+        { label: "姓名", value: "userName" },
+        { label: "性别", value: "sex", code: "DM_SEX" },
+        { label: "身份证号码", value: "idcard" },
+        { label: "省份", value: "area", code: "DM_AREA_CODE" },
+        { label: "编号", value: "policeNumber" },
+        { label: "人员类型", value: "manType", code: "DM_MAN_TYPE" },
+        { label: "职级", value: "title", code: "DM_CERT_DUTY_LEVEL" },
+        { label: "用户类别", value: "userType", enum: "UserTypeEnum" },
+        { label: "业务域", value: "policeBusiness" },
+        { label: "警种", value: "policeCategory", code: "T_MD_POLICE_TYPE" }
+    ],
+    20: [
+        { label: "姓名", value: "userName" },
+        { label: "性别", value: "sex", code: "DM_SEX" },
+        { label: "身份证号码", value: "idcard" },
+        { label: "编号", value: "policeNumber" },
+        { label: "所属", value: "orgName" },
+        { label: "人员类型", value: "manType", code: "DM_MAN_TYPE" },
+        { label: "用户类别", value: "userType", enum: "UserTypeEnum" },
+        { label: "业务域", value: "policeBusiness" },
+        { label: "警种", value: "policeCategory", code: "T_MD_POLICE_TYPE" }
+    ],
+    30: [
+        { label: "姓名", value: "userName" },
+        { label: "性别", value: "sex", code: "DM_SEX" },
+        { label: "身份证号码", value: "idcard" },
+        { label: "编号", value: "policeNumber" },
+        { label: "人员类型", value: "manType", code: "DM_MAN_TYPE" },
+        { label: "用户类别", value: "userType", enum: "UserTypeEnum" }
+    ]
+};
+const institutionField = [
+    { label: "上级行政机构", value: "upGovName" },
+    { label: "机构类型", value: "orgType", enum: "OrgKindEnum" },
+    { label: "机构名称", value: "fullName" },
+    { label: "行政区划", value: "areaCode" },
+    { label: "机构代码", value: "orgCode" },
+    { label: "机构类别", value: "unitClass", code: "T_MD_ORGTYPE" },
+    { label: "单位层级", value: "orgLevel", code: "T_MD_ORG_LEVEL" },
+    { label: "单位级别", value: "orgRank", code: "T_MD_ORG_RANK" },
+    { label: "单位类别", value: "orgKind", code: "T_MD_UNIT_CLASS" }
+];
+const applicationField = [
+    { label: "应用系统名称", value: "applyName" },
+    { label: "应用系统编号", value: "applyCode" },
+    { label: "应用英文名称", value: "appEnglishName" },
+    { label: "应用在用标识", value: "applyStatus", code: "DM_APPLY_STATUS" },
+    { label: "上线日期", value: "lineTime" },
+    { label: "应用系统事权单位代码", value: "managerOrgCode" },
+    { label: "应用负责人", value: "fzr" },
+    { label: "应用系统运维单位名称", value: "appOpsDepName" },
+    { label: "应用系统管理单位名称", value: "managerOrgName" },
+    { label: "应用系统说明", value: "managerDescribe" }
+];
+export {
+    UserTableData,
+    typeData,
+    institutionField,
+    ApplicationTableData,
+    applicationField,
+    cardPersonnelList,
+    cardApplicationList,
+    cardAgencylist,
+    cardAddPersonnelList,
+    cardFunctionList,
+    cardServiceList
+};

+ 71 - 71
src/pages/data-auth-module/property-management/application-management/detail.vue → src/pages/data-auth-module/auth-subject-manage/app-prop-manage/detail.vue

@@ -1,71 +1,71 @@
-<!--
- * @Author: Liugh
- * @Date: 2021-05-17 16:22:06
- * @LastEditTime: 2021-05-18 14:47:03
- * @LastEditors: Do not edit
- * @Description: 
--->
-<template>
-    <main class="user-attributes-detail">
-        <el-form ref="ruleForm" :model="data" label-width="160px">
-            <el-row>
-                <!-- TODO 如果需要多个占一行,请使用计算属性,或者方法 -->
-                <el-col
-                    :span="item.value == 'managerDescribe' ? 24 : 12"
-                    v-for="(item, index) in applicationField"
-                    :key="index"
-                >
-                    <el-form-item :label="item.label">
-                        <span>{{ data[item.value] }}</span>
-                    </el-form-item>
-                </el-col>
-            </el-row>
-        </el-form>
-    </main>
-</template>
-
-<script>
-import { applicationField } from "../DataConfig";
-export default {
-    name: "user-attributes-detail", // 组件名称
-    props: {
-        data: {
-            type: Object,
-            default() {
-                return {
-                    applyName: "测试数据中",
-                    applyCode: "测试数据中",
-                    appEnglishName: "测试数据中",
-                    applyStatus: "测试数据中",
-                    lineTime: "测试数据中",
-                    managerOrgCode: "测试数据中",
-                    fzr: "测试数据中",
-                    appOpsDepName: "测试数据中",
-                    managerOrgName: "测试数据中",
-                    managerDescribe: "测试数据中"
-                };
-            }
-        }
-    },
-    data() {
-        // 组件内部参数
-        return {
-            // 参数名称及默认值
-            applicationField
-        };
-    },
-    computed: {}, // 计算属性
-    watch: {}, // 侦听器(扩展的计算属性)
-    components: {}, // 注册局部组件
-    methods: {}, // 内部方法
-    beforeCreate() {}, // 组件创建前
-    created() {}, // 组件创建完成后
-    beforeMount() {}, // 组件挂载前
-    mounted() {}, // 组件挂载完成后
-    beforeUpdate() {}, // 组件更新前
-    updated() {}, // 组件挂载完成后
-    beforeDestroy() {}, // 组件销毁前
-    destroyed() {} // 组件销毁完成后
-};
-</script>
-<style lang="scss" scoped></style>
+<!--
+ * @Author: Liugh
+ * @Date: 2021-05-17 16:22:06
+ * @LastEditTime: 2021-05-18 14:47:03
+ * @LastEditors: Do not edit
+ * @Description: 
+-->
+<template>
+    <main class="user-attributes-detail">
+        <el-form ref="ruleForm" :model="data" label-width="160px">
+            <el-row>
+                <!-- TODO 如果需要多个占一行,请使用计算属性,或者方法 -->
+                <el-col
+                    :span="item.value == 'managerDescribe' ? 24 : 12"
+                    v-for="(item, index) in applicationField"
+                    :key="index"
+                >
+                    <el-form-item :label="item.label">
+                        <span>{{ data[item.value] }}</span>
+                    </el-form-item>
+                </el-col>
+            </el-row>
+        </el-form>
+    </main>
+</template>
+
+<script>
+import { applicationField } from "../DataConfig";
+export default {
+    name: "user-attributes-detail", // 组件名称
+    props: {
+        data: {
+            type: Object,
+            default() {
+                return {
+                    applyName: "测试数据中",
+                    applyCode: "测试数据中",
+                    appEnglishName: "测试数据中",
+                    applyStatus: "测试数据中",
+                    lineTime: "测试数据中",
+                    managerOrgCode: "测试数据中",
+                    fzr: "测试数据中",
+                    appOpsDepName: "测试数据中",
+                    managerOrgName: "测试数据中",
+                    managerDescribe: "测试数据中"
+                };
+            }
+        }
+    },
+    data() {
+        // 组件内部参数
+        return {
+            // 参数名称及默认值
+            applicationField
+        };
+    },
+    computed: {}, // 计算属性
+    watch: {}, // 侦听器(扩展的计算属性)
+    components: {}, // 注册局部组件
+    methods: {}, // 内部方法
+    beforeCreate() {}, // 组件创建前
+    created() {}, // 组件创建完成后
+    beforeMount() {}, // 组件挂载前
+    mounted() {}, // 组件挂载完成后
+    beforeUpdate() {}, // 组件更新前
+    updated() {}, // 组件挂载完成后
+    beforeDestroy() {}, // 组件销毁前
+    destroyed() {} // 组件销毁完成后
+};
+</script>
+<style lang="scss" scoped></style>

+ 176 - 167
src/pages/data-auth-module/property-management/application-management/application-properties.vue → src/pages/data-auth-module/auth-subject-manage/app-prop-manage/index.vue

@@ -1,167 +1,176 @@
-<!--
- * @Author: Liugh
- * @Date: 2021-05-18 11:34:15
- * @LastEditTime: 2021-05-18 14:24:33
- * @LastEditors: Do not edit
- * @FilePath: \auth-web\src\pages\data-auth-module\property-management\application-management\application-properties.vue
- * @Description: 
--->
-<template>
-    <main class="application-properties">
-        <el-form ref="ruleForm" inline :model="form">
-            <el-form-item label="应用系统名称">
-                <el-input v-model="form.applyName.value" placeholder="请输入应用系统名称" clearable></el-input>
-            </el-form-item>
-            <el-form-item label="应用在用标识">
-                <dg-select
-                    v-model="form.applyStatus.value"
-                    placeholder="请选择应用在用标识"
-                    code="DM_APPLY_STATUS"
-                    style="width: 13rem"
-                    clearable
-                >
-                </dg-select>
-            </el-form-item>
-            <el-form-item label="应用系统事权单位代码">
-                <el-input
-                    v-model="form.managerOrgCode.value"
-                    placeholder="请输入应用系统事权单位代码"
-                    clearable
-                ></el-input>
-            </el-form-item>
-            <el-form-item>
-                <dg-button type="primary" @click="handleSearch" icon="el-icon-search">查询</dg-button>
-            </el-form-item>
-            <!-- <el-form-item label="最近同步时间:" style="float: right">
-                <span>2021-04-08 12:00:00</span>
-            </el-form-item> -->
-        </el-form>
-        <div class="buttonGroup">
-            <dg-button type="primary" @click="handleImport" icon="el-icon-upload2">导入</dg-button>
-            <dg-button type="primary" @click="handleSynchro" icon="el-icon-refresh">同步</dg-button>
-        </div>
-
-        <Table ref="myTable" :url="tableUrl" :headerData="ApplicationTableData" :condition="form">
-            <dg-table-column fixed="right" label="操作" align="center">
-                <template slot-scope="scope">
-                    <div class="u-table__operation">
-                        <el-tooltip content="详情" effect="dark" placement="top-end">
-                            <i class="el-icon-document" @click="handleViewDetail(scope.row)"></i>
-                        </el-tooltip>
-                    </div>
-                </template>
-            </dg-table-column>
-        </Table>
-    </main>
-</template>
-
-<script>
-import Table from "@/pages/common/table";
-import { ApplicationTableData } from "../DataConfig";
-// import detail from "./detail";
-import detail from "../../auth-object-manage/appfun-resource-manage/add-app-form";
-import importFile from "@/pages/common/import";
-import { appRestApi, appSync } from "@/api/application";
-export default {
-    name: "application-properties", // 组件名称
-    props: {
-        // 接收父组件的数据
-    },
-    data() {
-        // 组件内部参数
-        return {
-            // 参数名称及默认值
-            form: {
-                applyName: {
-                    value: "",
-                    op: "like"
-                },
-                applyStatus: {
-                    value: "",
-                    op: "="
-                },
-                managerOrgCode: {
-                    value: "",
-                    op: "like"
-                }
-            },
-            ApplicationTableData,
-            tableUrl: appRestApi.table
-        };
-    },
-    computed: {}, // 计算属性
-    watch: {}, // 侦听器(扩展的计算属性)
-    components: { Table }, // 注册局部组件
-    methods: {
-        /**
-         * @description:表单查询方法
-         */
-        handleSearch() {
-            this.$refs.myTable.handleSearchClick();
-        },
-        /**
-         * @description:导入方法
-         */
-        handleImport() {
-            const vm = this;
-            const layer = this.$dgLayer({
-                title: "导入",
-                content: importFile,
-                props: {
-                    temp: "apply",
-                    action: "/appsvr/v2/app/import"
-                },
-                on: {
-                    success(params) {
-                        layer.close(layer.dialogIndex);
-                    },
-                    close() {
-                        vm.handleSearch();
-                        layer.close(layer.dialogIndex);
-                    }
-                },
-                cancel: function (index, layero) {
-                    // 关闭对应弹窗的ID
-                    layer.close(index);
-                    return false;
-                },
-                area: ["550px", "500px"]
-            });
-        },
-       /**
-         * @description:同步方法,假同步
-         */
-        handleSynchro() {
-            appSync().then(res => {
-                this.$message.success("同步成功");
-                // this.handleSearch();
-            })
-        },
-        /**
-         * @description:详情
-         */
-        handleViewDetail(row) {
-            const layer = this.$dgLayer({
-                title: "详情",
-                shade: [0.4, "#FFF"],
-                content: detail,
-                props: {
-                    id: row.id,
-                    isDetail: true
-                },
-                on: {
-                    success() {
-                        layer.close(layer.dialogIndex);
-                    }
-                },
-                area: ["800px", "450px"]
-            });
-        }
-    },
-    created() {}, // 组件创建完成后
-    mounted() {} // 组件挂载完成后
-};
-</script>
-<style lang="scss" scoped>
-@import "../index.scss";
-</style>
+<!--
+ * @Author: Liugh
+ * @Date: 2021-05-18 11:34:15
+ * @LastEditTime: 2021-05-18 14:24:33
+ * @LastEditors: Do not edit
+ * @FilePath: \auth-web\src\pages\data-auth-module\auth-subject-manage\application-management\application-properties.vue
+ * @Description: 
+-->
+<template>
+    <main class="application-properties">
+        <el-form ref="ruleForm" inline :model="form">
+            <el-form-item label="应用系统名称">
+                <el-input v-model="form.applyName.value" placeholder="请输入应用系统名称" clearable></el-input>
+            </el-form-item>
+            <el-form-item label="应用在用标识">
+                <dg-select
+                    v-model="form.applyStatus.value"
+                    placeholder="请选择应用在用标识"
+                    code="DM_APPLY_STATUS"
+                    style="width: 13rem"
+                    clearable
+                >
+                </dg-select>
+            </el-form-item>
+            <el-form-item label="应用系统事权单位代码">
+                <el-input
+                    v-model="form.managerOrgCode.value"
+                    placeholder="请输入应用系统事权单位代码"
+                    clearable
+                ></el-input>
+            </el-form-item>
+            <el-form-item>
+                <dg-button type="primary" @click="handleSearch" icon="el-icon-search">查询</dg-button>
+                  <dg-button type="primary" @click="handleReset" icon="el-icon-refresh-right">重置</dg-button>
+            </el-form-item>
+            <!-- <el-form-item label="最近同步时间:" style="float: right">
+                <span>2021-04-08 12:00:00</span>
+            </el-form-item> -->
+        </el-form>
+        <div class="buttonGroup">
+            <dg-button type="primary" @click="handleImport" icon="el-icon-upload2">导入</dg-button>
+            <dg-button type="primary" @click="handleSynchro" icon="el-icon-refresh">同步</dg-button>
+        </div>
+
+        <Table ref="myTable" :url="tableUrl" :headerData="ApplicationTableData" :condition="form">
+            <dg-table-column fixed="right" label="操作" align="center">
+                <template slot-scope="scope">
+                    <div class="u-table__operation">
+                        <el-tooltip content="详情" effect="dark" placement="top-end">
+                            <i class="el-icon-document" @click="handleViewDetail(scope.row)"></i>
+                        </el-tooltip>
+                    </div>
+                </template>
+            </dg-table-column>
+        </Table>
+    </main>
+</template>
+
+<script>
+import Table from "@/pages/common/table";
+import { ApplicationTableData } from "../DataConfig";
+// import detail from "./detail";
+import detail from "../../auth-object-manage/appfun-resource-manage/add-app-form";
+import importFile from "@/pages/common/import";
+import { appRestApi, appSync } from "@/api/application";
+export default {
+    name: "application-properties", // 组件名称
+    props: {
+        // 接收父组件的数据
+    },
+    data() {
+        // 组件内部参数
+        return {
+            // 参数名称及默认值
+            form: {
+                applyName: {
+                    value: "",
+                    op: "like"
+                },
+                applyStatus: {
+                    value: "",
+                    op: "="
+                },
+                managerOrgCode: {
+                    value: "",
+                    op: "like"
+                }
+            },
+            ApplicationTableData,
+            tableUrl: appRestApi.table
+        };
+    },
+    computed: {}, // 计算属性
+    watch: {}, // 侦听器(扩展的计算属性)
+    components: { Table }, // 注册局部组件
+    methods: {
+        /**
+         * @description:表单查询方法
+         */
+        handleSearch() {
+            this.$refs.myTable.handleSearchClick();
+        },
+        /**
+         * 重置
+         */
+        handleReset() {
+            for (const key in this.form) {
+              this.form[key].value = "";
+            }
+        },
+        /**
+         * @description:导入方法
+         */
+        handleImport() {
+            const vm = this;
+            const layer = this.$dgLayer({
+                title: "导入",
+                content: importFile,
+                props: {
+                    temp: "apply",
+                    action: "/appsvr/v2/app/import"
+                },
+                on: {
+                    success(params) {
+                        layer.close(layer.dialogIndex);
+                    },
+                    close() {
+                        vm.handleSearch();
+                        layer.close(layer.dialogIndex);
+                    }
+                },
+                cancel: function (index, layero) {
+                    // 关闭对应弹窗的ID
+                    layer.close(index);
+                    return false;
+                },
+                area: ["550px", "500px"]
+            });
+        },
+       /**
+         * @description:同步方法,假同步
+         */
+        handleSynchro() {
+            appSync().then(res => {
+                this.$message.success("同步成功");
+                // this.handleSearch();
+            })
+        },
+        /**
+         * @description:详情
+         */
+        handleViewDetail(row) {
+            const layer = this.$dgLayer({
+                title: "详情",
+                shade: [0.4, "#FFF"],
+                content: detail,
+                props: {
+                    id: row.id,
+                    isDetail: true
+                },
+                on: {
+                    success() {
+                        layer.close(layer.dialogIndex);
+                    }
+                },
+                area: ["800px", "450px"]
+            });
+        }
+    },
+    created() {}, // 组件创建完成后
+    mounted() {} // 组件挂载完成后
+};
+</script>
+<style lang="scss" scoped>
+@import "../index.scss";
+</style>

+ 54 - 54
src/pages/data-auth-module/property-management/index.scss → src/pages/data-auth-module/auth-subject-manage/index.scss

@@ -1,54 +1,54 @@
-/*
- * @Author: Liugh
- * @Date: 2021-05-17 15:18:43
- * @LastEditTime: 2021-05-19 15:50:33
- * @LastEditors: Do not edit
- * @Description: 
- */
-.user-attributes,
-.institutional-attributes,
-.application-properties,
-.subject-property /deep/ {
-    .buttonGroup {
-        margin-bottom: 20px;
-    }
-}
-.institutional-attributes {
-    h4 {
-        font-size: 14px;
-        height: 48px;
-        line-height: 48px;
-        padding: 0 15px;
-        border: 0 none;
-        background-color: #eef2fa;
-        text-align: left;
-    }
-    .institutional-info {
-        margin-top: 2.5rem;
-    }
-}
-.subject-property /deep/ {
-    .box-card {
-        .el-card__header {
-            display: block;
-        }
-        height: calc(100vh - 12rem);
-    }
-    .subject-property__form-item {
-        display: flex;
-        align-items: center;
-        // margin-bottom: 10px;
-        .icon {
-            margin-left: 10px;
-            cursor: pointer;
-            color: rgba(0, 0, 0, 0.65);
-        }
-    }
-    .subject-property__form-item:last-child {
-        margin-bottom: 0;
-    }
-    .prop-value-item {
-        // margin-bottom: 10px;
-    } 
-   
-}
+/*
+ * @Author: Liugh
+ * @Date: 2021-05-17 15:18:43
+ * @LastEditTime: 2021-05-19 15:50:33
+ * @LastEditors: Do not edit
+ * @Description: 
+ */
+.user-attributes,
+.institutional-attributes,
+.application-properties,
+.subject-property /deep/ {
+    .buttonGroup {
+        margin-bottom: 20px;
+    }
+}
+.institutional-attributes {
+    h4 {
+        font-size: 14px;
+        height: 48px;
+        line-height: 48px;
+        padding: 0 15px;
+        border: 0 none;
+        background-color: #eef2fa;
+        text-align: left;
+    }
+    .institutional-info {
+        margin-top: 2.5rem;
+    }
+}
+.subject-property /deep/ {
+    .box-card {
+        .el-card__header {
+            display: block;
+        }
+        height: calc(100vh - 12rem);
+    }
+    .subject-property__form-item {
+        display: flex;
+        align-items: center;
+        // margin-bottom: 10px;
+        .icon {
+            margin-left: 10px;
+            cursor: pointer;
+            color: rgba(0, 0, 0, 0.65);
+        }
+    }
+    .subject-property__form-item:last-child {
+        margin-bottom: 0;
+    }
+    .prop-value-item {
+        // margin-bottom: 10px;
+    } 
+   
+}

+ 143 - 143
src/pages/data-auth-module/property-management/institutional-attributes.vue → src/pages/data-auth-module/auth-subject-manage/org-prop-manage/index.vue

@@ -1,143 +1,143 @@
-<!--
- * @Author: Liugh
- * @Date: 2021-05-17 14:53:19
- * @LastEditTime: 2021-05-18 11:24:49
- * @LastEditors: Do not edit
- * @FilePath: \auth-web\src\pages\data-auth-module\property-management\institutional-attributes.vue
- * @Description: 
--->
-<template>
-    <main class="institutional-attributes">
-        <!-- <el-form ref="ruleForm" inline>
-            <el-form-item label="最近同步时间:" style="float: right">
-                <span>2021-04-08 12:00:00</span>
-            </el-form-item>
-        </el-form> -->
-
-        <div class="buttonGroup">
-            <dg-button type="primary" @click="handleImport" icon="el-icon-upload2">导入</dg-button>
-            <dg-button type="primary" @click="handleSynchro" icon="el-icon-refresh">同步</dg-button>
-        </div>
-
-        <dg-row :gutter="20">
-            <dg-col :span="5">
-                <tree
-                    :key="key"
-                    ref="tree"
-                    class="u-pm__left"
-                    title="机构列表"
-                    :search="true"
-                    @handleGetNode="handleGetNode"
-                    @submitRootNode="submitRootNode"
-                />
-            </dg-col>
-            <dg-col :span="19">
-                <h4 class="dg-words-title-second">机构管理</h4>
-                <el-form class="institutional-info" ref="form" :model="formInfo" label-suffix=":" label-width="120px">
-                    <el-row v-if="formInfo.id">
-                        <el-col :span="12" v-for="(item, index) in institutionField" :key="index">
-                            <el-form-item :label="item.label">
-                                <div v-if="item.code" v-translate="{ code: item.code }">{{ formInfo[item.value] }}</div>
-                                <div v-else-if="item.enum" v-translate="{ enum: item.enum }">
-                                    {{ formInfo[item.value] }}
-                                </div>
-                                <span v-else>{{ formInfo[item.value] }}</span>
-                            </el-form-item>
-                        </el-col>
-                    </el-row>
-                </el-form>
-            </dg-col>
-        </dg-row>
-    </main>
-</template>
-
-<script>
-import Tree from "@/pages/common/tree";
-import { institutionField } from "./DataConfig";
-import { orgInfoDetail, authOrgSync } from "@/api/data-auth";
-import importFile from "@/pages/common/import";
-export default {
-    name: "institutional-attributes", // 组件名称
-    props: {},
-    data() {
-        return {
-            // 参数名称及默认值
-            institutionField,
-            formInfo: {},
-            keyword: "",
-            currentId: "",
-            key: 0
-        };
-    },
-    computed: {}, // 计算属性
-    watch: {}, // 侦听器(扩展的计算属性)
-    components: { Tree }, // 注册局部组件
-    methods: {
-        /**
-         * @description:导入方法
-         */
-        handleImport() {
-            const vm = this;
-            const layer = this.$dgLayer({
-                title: "导入",
-                content: importFile,
-                props: {
-                    temp: "org",
-                    action: "/authsvr/v2/authorginfo/import"
-                },
-                on: {
-                    success(params) {
-                        vm.key++;
-                        layer.close(layer.dialogIndex);
-                    },
-                },
-                cancel: function (index, layero) {
-                    // 关闭对应弹窗的ID
-                    layer.close(index);
-                    return false;
-                },
-                area: ["550px", "500px"]
-            });
-        },
-        /**
-         * @description:同步方法,假同步
-         */
-        handleSynchro() {
-            authOrgSync().then(res => {
-                this.$message.success("同步成功");
-                // this.handleSearch();
-            })
-        },
-        /**
-         * @description:树方法
-         */
-        handleGetNode({ id }) {
-            if (this.currentId != id) {
-                this.currentId = id;
-                this.getDetail();
-            }
-        },
-        /**
-         * 获取机构详情
-         */
-        getDetail() {
-            orgInfoDetail(this.currentId).then((res) => {
-                this.formInfo = res.data;
-            });
-        },
-        /**
-         * @description: 默认查询跟节点
-         */
-        submitRootNode({ id, name }) {
-            this.$nextTick(() => {
-                this.handleGetNode({ id, name });
-            });
-        }
-    },
-    created() {}, // 组件创建完成后
-    mounted() {} // 组件挂载完成后
-};
-</script>
-<style lang="scss" scoped>
-@import "./index.scss";
-</style>
+<!--
+ * @Author: Liugh
+ * @Date: 2021-05-17 14:53:19
+ * @LastEditTime: 2021-05-18 11:24:49
+ * @LastEditors: Do not edit
+ * @FilePath: \auth-web\src\pages\data-auth-module\auth-subject-manage\institutional-attributes.vue
+ * @Description: 
+-->
+<template>
+    <main class="institutional-attributes">
+        <!-- <el-form ref="ruleForm" inline>
+            <el-form-item label="最近同步时间:" style="float: right">
+                <span>2021-04-08 12:00:00</span>
+            </el-form-item>
+        </el-form> -->
+
+        <div class="buttonGroup">
+            <dg-button type="primary" @click="handleImport" icon="el-icon-upload2">导入</dg-button>
+            <dg-button type="primary" @click="handleSynchro" icon="el-icon-refresh">同步</dg-button>
+        </div>
+
+        <dg-row :gutter="20">
+            <dg-col :span="5">
+                <tree
+                    :key="key"
+                    ref="tree"
+                    class="u-pm__left"
+                    title="机构列表"
+                    :search="true"
+                    @handleGetNode="handleGetNode"
+                    @submitRootNode="submitRootNode"
+                />
+            </dg-col>
+            <dg-col :span="19">
+                <h4 class="dg-words-title-second">机构管理</h4>
+                <el-form class="institutional-info" ref="form" :model="formInfo" label-suffix=":" label-width="120px">
+                    <el-row v-if="formInfo.id">
+                        <el-col :span="12" v-for="(item, index) in institutionField" :key="index">
+                            <el-form-item :label="item.label">
+                                <div v-if="item.code" v-translate="{ code: item.code }">{{ formInfo[item.value] }}</div>
+                                <div v-else-if="item.enum" v-translate="{ enum: item.enum }">
+                                    {{ formInfo[item.value] }}
+                                </div>
+                                <span v-else>{{ formInfo[item.value] }}</span>
+                            </el-form-item>
+                        </el-col>
+                    </el-row>
+                </el-form>
+            </dg-col>
+        </dg-row>
+    </main>
+</template>
+
+<script>
+import Tree from "@/pages/common/tree";
+import { institutionField } from "../DataConfig";
+import { orgInfoDetail, authOrgSync } from "@/api/data-auth";
+import importFile from "@/pages/common/import";
+export default {
+    name: "institutional-attributes", // 组件名称
+    props: {},
+    data() {
+        return {
+            // 参数名称及默认值
+            institutionField,
+            formInfo: {},
+            keyword: "",
+            currentId: "",
+            key: 0
+        };
+    },
+    computed: {}, // 计算属性
+    watch: {}, // 侦听器(扩展的计算属性)
+    components: { Tree }, // 注册局部组件
+    methods: {
+        /**
+         * @description:导入方法
+         */
+        handleImport() {
+            const vm = this;
+            const layer = this.$dgLayer({
+                title: "导入",
+                content: importFile,
+                props: {
+                    temp: "org",
+                    action: "/authsvr/v2/authorginfo/import"
+                },
+                on: {
+                    success(params) {
+                        vm.key++;
+                        layer.close(layer.dialogIndex);
+                    },
+                },
+                cancel: function (index, layero) {
+                    // 关闭对应弹窗的ID
+                    layer.close(index);
+                    return false;
+                },
+                area: ["550px", "500px"]
+            });
+        },
+        /**
+         * @description:同步方法,假同步
+         */
+        handleSynchro() {
+            authOrgSync().then(res => {
+                this.$message.success("同步成功");
+                // this.handleSearch();
+            })
+        },
+        /**
+         * @description:树方法
+         */
+        handleGetNode({ id }) {
+            if (this.currentId != id) {
+                this.currentId = id;
+                this.getDetail();
+            }
+        },
+        /**
+         * 获取机构详情
+         */
+        getDetail() {
+            orgInfoDetail(this.currentId).then((res) => {
+                this.formInfo = res.data;
+            });
+        },
+        /**
+         * @description: 默认查询跟节点
+         */
+        submitRootNode({ id, name }) {
+            this.$nextTick(() => {
+                this.handleGetNode({ id, name });
+            });
+        }
+    },
+    created() {}, // 组件创建完成后
+    mounted() {} // 组件挂载完成后
+};
+</script>
+<style lang="scss" scoped>
+@import "../index.scss";
+</style>

+ 118 - 118
src/pages/data-auth-module/property-management/subject-management/add-dialog.vue → src/pages/data-auth-module/auth-subject-manage/subject-prop-manage/add-dialog.vue

@@ -1,118 +1,118 @@
-<!--
- * @Author: Liugh
- * @Date: 2021-05-19 16:09:07
- * @LastEditTime: 2021-05-20 10:12:36
- * @LastEditors: Do not edit
- * @FilePath: \auth-web\src\pages\data-auth-module\property-management\subject-management\add-dialog.vue
- * @Description: 
--->
-
-<template>
-    <main class="add-dialog">
-        <dg-row class="property-wapper" :gutter="10">
-            <!-- 机构列表 -->
-            <dg-col :span="8" class="property-wapper__left">
-                <dg-card class="box-card">
-                    <org-tree
-                        ref="tree"
-                        class="u-pm__left"
-                        treeHeight="470px"
-                        :search="true"
-                        paddingRight="15px"
-                        @handleGetNode="handleGetNode"
-                        @submitRootNode="handleGetNode"
-                    ></org-tree>
-                </dg-card>
-            </dg-col>
-            <!-- 权限设置 -->
-            <dg-col :span="16">
-                <el-form ref="form" :model="addForm" label-suffix=":" inline>
-                    <div v-if="type == 'personnel'">
-                        <el-form-item label="姓名">
-                            <el-input clearable placeholder="请输入姓名" v-model="addForm.name"></el-input>
-                        </el-form-item>
-                        <el-form-item label="身份证号码">
-                            <el-input clearable placeholder="请输入身份证号码" v-model="addForm.name"></el-input>
-                        </el-form-item>
-                    </div>
-                    <div v-if="type == 'application'">
-                        <el-form-item label="应用系统名称">
-                            <el-input clearable placeholder="请输入应用系统名称" v-model="addForm.name"></el-input>
-                        </el-form-item>
-                    </div>
-
-                    <el-form-item>
-                        <dg-button type="primary" icon="el-icon-search" @click="doSearchPersion">查询</dg-button>
-                    </el-form-item>
-                </el-form>
-                <Table
-                    v-if="type !== 'agency'"
-                    ref="table"
-                    :url="tableUrl"
-                    :headerData="type == 'personnel' ? cardAddPersonnelList : cardAgencylist"
-                    :condition="reportForm"
-                    :lazyLoad="true"
-                >
-                </Table>
-            </dg-col>
-        </dg-row>
-    </main>
-</template>
-
-<script>
-import * as dynamicManageApi from "@/api/dynamic-manage";
-import { cardAddPersonnelList, cardAgencylist } from "../DataConfig";
-import orgTree from "@/pages/common/tree";
-import Table from "@/pages/common/table";
-export default {
-    name: "add-dialog", // 组件名称
-    props: {
-        // 接收父组件的数据
-        type: {
-            type: String,
-            default: "personnel"
-        }
-    },
-    data() {
-        // 组件内部参数
-        return {
-            // 参数名称及默认值
-            cardAddPersonnelList,
-            cardAgencylist,
-            addForm: {},
-            tableUrl: dynamicManageApi.tableUrl,
-            reportForm: {}
-        };
-    },
-    computed: {}, // 计算属性
-    watch: {}, // 侦听器(扩展的计算属性)
-    components: { orgTree, Table }, // 注册局部组件
-    methods: {
-        /**
-         * @description: 获取机构节点
-         * @param {*} node
-         */
-        handleGetNode(node) {
-            this.subId = node.code;
-            this.key++;
-        },
-        /**
-         * @description:查询
-         */
-        doSearchPersion() {
-            this.$emit("success");
-        }
-    }, // 内部方法
-    beforeCreate() {}, // 组件创建前
-    created() {}, // 组件创建完成后
-    beforeMount() {}, // 组件挂载前
-    mounted() {
-        console.log(this.type);
-    }, // 组件挂载完成后
-    beforeUpdate() {}, // 组件更新前
-    updated() {}, // 组件挂载完成后
-    beforeDestroy() {}, // 组件销毁前
-    destroyed() {} // 组件销毁完成后
-};
-</script>
-<style lang="scss" scoped></style>
+<!--
+ * @Author: Liugh
+ * @Date: 2021-05-19 16:09:07
+ * @LastEditTime: 2021-05-20 10:12:36
+ * @LastEditors: Do not edit
+ * @FilePath: \auth-web\src\pages\data-auth-module\auth-subject-manage\subject-prop-manage\add-dialog.vue
+ * @Description: 
+-->
+
+<template>
+    <main class="add-dialog">
+        <dg-row class="property-wapper" :gutter="10">
+            <!-- 机构列表 -->
+            <dg-col :span="8" class="property-wapper__left">
+                <dg-card class="box-card">
+                    <org-tree
+                        ref="tree"
+                        class="u-pm__left"
+                        treeHeight="470px"
+                        :search="true"
+                        paddingRight="15px"
+                        @handleGetNode="handleGetNode"
+                        @submitRootNode="handleGetNode"
+                    ></org-tree>
+                </dg-card>
+            </dg-col>
+            <!-- 权限设置 -->
+            <dg-col :span="16">
+                <el-form ref="form" :model="addForm" label-suffix=":" inline>
+                    <div v-if="type == 'personnel'">
+                        <el-form-item label="姓名">
+                            <el-input clearable placeholder="请输入姓名" v-model="addForm.name"></el-input>
+                        </el-form-item>
+                        <el-form-item label="身份证号码">
+                            <el-input clearable placeholder="请输入身份证号码" v-model="addForm.name"></el-input>
+                        </el-form-item>
+                    </div>
+                    <div v-if="type == 'application'">
+                        <el-form-item label="应用系统名称">
+                            <el-input clearable placeholder="请输入应用系统名称" v-model="addForm.name"></el-input>
+                        </el-form-item>
+                    </div>
+
+                    <el-form-item>
+                        <dg-button type="primary" icon="el-icon-search" @click="doSearchPersion">查询</dg-button>
+                    </el-form-item>
+                </el-form>
+                <Table
+                    v-if="type !== 'agency'"
+                    ref="table"
+                    :url="tableUrl"
+                    :headerData="type == 'personnel' ? cardAddPersonnelList : cardAgencylist"
+                    :condition="reportForm"
+                    :lazyLoad="true"
+                >
+                </Table>
+            </dg-col>
+        </dg-row>
+    </main>
+</template>
+
+<script>
+import * as dynamicManageApi from "@/api/dynamic-manage";
+import { cardAddPersonnelList, cardAgencylist } from "../DataConfig";
+import orgTree from "@/pages/common/tree";
+import Table from "@/pages/common/table";
+export default {
+    name: "add-dialog", // 组件名称
+    props: {
+        // 接收父组件的数据
+        type: {
+            type: String,
+            default: "personnel"
+        }
+    },
+    data() {
+        // 组件内部参数
+        return {
+            // 参数名称及默认值
+            cardAddPersonnelList,
+            cardAgencylist,
+            addForm: {},
+            tableUrl: dynamicManageApi.tableUrl,
+            reportForm: {}
+        };
+    },
+    computed: {}, // 计算属性
+    watch: {}, // 侦听器(扩展的计算属性)
+    components: { orgTree, Table }, // 注册局部组件
+    methods: {
+        /**
+         * @description: 获取机构节点
+         * @param {*} node
+         */
+        handleGetNode(node) {
+            this.subId = node.code;
+            this.key++;
+        },
+        /**
+         * @description:查询
+         */
+        doSearchPersion() {
+            this.$emit("success");
+        }
+    }, // 内部方法
+    beforeCreate() {}, // 组件创建前
+    created() {}, // 组件创建完成后
+    beforeMount() {}, // 组件挂载前
+    mounted() {
+        console.log(this.type);
+    }, // 组件挂载完成后
+    beforeUpdate() {}, // 组件更新前
+    updated() {}, // 组件挂载完成后
+    beforeDestroy() {}, // 组件销毁前
+    destroyed() {} // 组件销毁完成后
+};
+</script>
+<style lang="scss" scoped></style>

+ 157 - 157
src/pages/data-auth-module/property-management/subject-management/agency-list.vue → src/pages/data-auth-module/auth-subject-manage/subject-prop-manage/agency-list.vue

@@ -1,157 +1,157 @@
-<!--
- * @Author: Liugh
- * @Date: 2021-05-19 15:48:26
- * @LastEditTime: 2021-05-20 09:32:23
- * @LastEditors: Do not edit
- * @FilePath: \auth-web\src\pages\data-auth-module\property-management\subject-management\agency-list.vue
- * @Description: 
--->
-<template>
-    <dg-card class="box-card" header="机构列表">
-        <el-form ref="form" :model="cardForm" label-suffix=":" inline>
-            <el-form-item label="机构名称">
-                <el-input clearable placeholder="请输入机构名称" v-model="cardForm.name"></el-input>
-            </el-form-item>
-            <el-form-item label="机构代码">
-                <dg-tree-select
-                    v-model="cardForm.institution"
-                    placeholder="请选择机构代码"
-                    :data="options"
-                    clearable
-                    filterable
-                    multiple
-                ></dg-tree-select>
-            </el-form-item>
-            <el-form-item>
-                <dg-button type="primary" icon="el-icon-search" @click="doSearchPersion">查询</dg-button>
-                <dg-button type="primary" icon="el-icon-plus">添加</dg-button>
-            </el-form-item>
-        </el-form>
-        <Table
-            ref="table"
-            :url="tableUrl"
-            :headerData="cardAgencylist"
-            :condition="reportForm"
-            :lazyLoad="true"
-            @handleRowClick="handleRowClick"
-        >
-        </Table>
-    </dg-card>
-</template>
-
-<script>
-import Table from "@/pages/common/table";
-import * as dynamicManageApi from "@/api/dynamic-manage";
-import addDialog from "./add-dialog";
-import { cardAgencylist } from "../DataConfig";
-const editorArea = ["1200px", "660px"];
-export default {
-    name: "personnelList", // 组件名称
-    props: {
-        // 接收父组件的数据
-    },
-    data() {
-        // 组件内部参数
-        return {
-            // 参数名称及默认值
-            cardAgencylist,
-            tableUrl: dynamicManageApi.tableUrl,
-            reportForm: {},
-            cardForm: {},
-            options: [
-                {
-                    id: "fruits",
-                    label: "Fruits",
-                    children: [
-                        {
-                            id: "apple",
-                            label: "Apple",
-                            isNew: true
-                        },
-                        {
-                            id: "grapes",
-                            label: "Grapes",
-                            disabled: true
-                        },
-                        {
-                            id: "pear",
-                            label: "Pear"
-                        },
-                        {
-                            id: "strawberry",
-                            label: "Strawberry 🍓"
-                        },
-                        {
-                            id: "watermelon",
-                            label: "Watermelon 🍉"
-                        }
-                    ]
-                },
-                {
-                    id: "vegetables",
-                    label: "Vegetables",
-                    children: [
-                        {
-                            id: "corn",
-                            label: "Corn 🌽"
-                        },
-                        {
-                            id: "carrot",
-                            label: "Carrot 🥕"
-                        },
-                        {
-                            id: "eggplant",
-                            label: "Eggplant 🍆"
-                        },
-                        {
-                            id: "tomato",
-                            label: "Tomato 🍅"
-                        }
-                    ]
-                }
-            ]
-        };
-    },
-    computed: {}, // 计算属性
-    watch: {}, // 侦听器(扩展的计算属性)
-    components: { Table }, // 注册局部组件
-    methods: {
-        /**
-         * @description: 查询
-         */
-        doSearchPersion() {},
-        /**
-         * @description: 单击表格行
-         */
-        handleRowClick() {},
-        /**
-         * @description: 添加
-         */
-        add() {
-            const layer = this.$dgLayer({
-                title: "添加机构",
-                shade: [0.4, "#FFF"],
-                content: addDialog,
-                props: {
-                    type: "agency"
-                },
-                on: {
-                    success() {
-                        layer.close(layer.dialogIndex);
-                    }
-                },
-                area: editorArea
-            });
-        }
-    }, // 内部方法
-    beforeCreate() {}, // 组件创建前
-    created() {}, // 组件创建完成后
-    beforeMount() {}, // 组件挂载前
-    mounted() {}, // 组件挂载完成后
-    beforeUpdate() {}, // 组件更新前
-    updated() {}, // 组件挂载完成后
-    beforeDestroy() {}, // 组件销毁前
-    destroyed() {} // 组件销毁完成后
-};
-</script>
-<style lang="scss" scoped></style>
+<!--
+ * @Author: Liugh
+ * @Date: 2021-05-19 15:48:26
+ * @LastEditTime: 2021-05-20 09:32:23
+ * @LastEditors: Do not edit
+ * @FilePath: \auth-web\src\pages\data-auth-module\auth-subject-manage\subject-prop-manage\agency-list.vue
+ * @Description: 
+-->
+<template>
+    <dg-card class="box-card" header="机构列表">
+        <el-form ref="form" :model="cardForm" label-suffix=":" inline>
+            <el-form-item label="机构名称">
+                <el-input clearable placeholder="请输入机构名称" v-model="cardForm.name"></el-input>
+            </el-form-item>
+            <el-form-item label="机构代码">
+                <dg-tree-select
+                    v-model="cardForm.institution"
+                    placeholder="请选择机构代码"
+                    :data="options"
+                    clearable
+                    filterable
+                    multiple
+                ></dg-tree-select>
+            </el-form-item>
+            <el-form-item>
+                <dg-button type="primary" icon="el-icon-search" @click="doSearchPersion">查询</dg-button>
+                <dg-button type="primary" icon="el-icon-plus">添加</dg-button>
+            </el-form-item>
+        </el-form>
+        <Table
+            ref="table"
+            :url="tableUrl"
+            :headerData="cardAgencylist"
+            :condition="reportForm"
+            :lazyLoad="true"
+            @handleRowClick="handleRowClick"
+        >
+        </Table>
+    </dg-card>
+</template>
+
+<script>
+import Table from "@/pages/common/table";
+import * as dynamicManageApi from "@/api/dynamic-manage";
+import addDialog from "./add-dialog";
+import { cardAgencylist } from "../DataConfig";
+const editorArea = ["1200px", "660px"];
+export default {
+    name: "personnelList", // 组件名称
+    props: {
+        // 接收父组件的数据
+    },
+    data() {
+        // 组件内部参数
+        return {
+            // 参数名称及默认值
+            cardAgencylist,
+            tableUrl: dynamicManageApi.tableUrl,
+            reportForm: {},
+            cardForm: {},
+            options: [
+                {
+                    id: "fruits",
+                    label: "Fruits",
+                    children: [
+                        {
+                            id: "apple",
+                            label: "Apple",
+                            isNew: true
+                        },
+                        {
+                            id: "grapes",
+                            label: "Grapes",
+                            disabled: true
+                        },
+                        {
+                            id: "pear",
+                            label: "Pear"
+                        },
+                        {
+                            id: "strawberry",
+                            label: "Strawberry 🍓"
+                        },
+                        {
+                            id: "watermelon",
+                            label: "Watermelon 🍉"
+                        }
+                    ]
+                },
+                {
+                    id: "vegetables",
+                    label: "Vegetables",
+                    children: [
+                        {
+                            id: "corn",
+                            label: "Corn 🌽"
+                        },
+                        {
+                            id: "carrot",
+                            label: "Carrot 🥕"
+                        },
+                        {
+                            id: "eggplant",
+                            label: "Eggplant 🍆"
+                        },
+                        {
+                            id: "tomato",
+                            label: "Tomato 🍅"
+                        }
+                    ]
+                }
+            ]
+        };
+    },
+    computed: {}, // 计算属性
+    watch: {}, // 侦听器(扩展的计算属性)
+    components: { Table }, // 注册局部组件
+    methods: {
+        /**
+         * @description: 查询
+         */
+        doSearchPersion() {},
+        /**
+         * @description: 单击表格行
+         */
+        handleRowClick() {},
+        /**
+         * @description: 添加
+         */
+        add() {
+            const layer = this.$dgLayer({
+                title: "添加机构",
+                shade: [0.4, "#FFF"],
+                content: addDialog,
+                props: {
+                    type: "agency"
+                },
+                on: {
+                    success() {
+                        layer.close(layer.dialogIndex);
+                    }
+                },
+                area: editorArea
+            });
+        }
+    }, // 内部方法
+    beforeCreate() {}, // 组件创建前
+    created() {}, // 组件创建完成后
+    beforeMount() {}, // 组件挂载前
+    mounted() {}, // 组件挂载完成后
+    beforeUpdate() {}, // 组件更新前
+    updated() {}, // 组件挂载完成后
+    beforeDestroy() {}, // 组件销毁前
+    destroyed() {} // 组件销毁完成后
+};
+</script>
+<style lang="scss" scoped></style>

+ 115 - 115
src/pages/data-auth-module/property-management/subject-management/application-list.vue → src/pages/data-auth-module/auth-subject-manage/subject-prop-manage/application-list.vue

@@ -1,115 +1,115 @@
-<!--
- * @Author: Liugh
- * @Date: 2021-05-19 15:48:57
- * @LastEditTime: 2021-05-20 09:32:34
- * @LastEditors: Do not edit
- * @FilePath: \auth-web\src\pages\data-auth-module\property-management\subject-management\application-list.vue
- * @Description: 
--->
-<template>
-    <dg-card class="box-card" header="应用列表">
-        <el-form ref="form" label-suffix=":" inline>
-            <el-form-item label="应用系统名称">
-                <el-input clearable placeholder="请输入应用系统名称" v-model="form.applyName.value"></el-input>
-            </el-form-item>
-            <el-form-item label="系统在用标识">
-                <dg-select
-                    code="DM_APPLY_STATUS"
-                    v-model="form.applyStatus.value"
-                    placeholder="请选择应用在用标识"
-                    style="width: 13rem"
-                    clearable
-                >
-                </dg-select>
-            </el-form-item>
-            <el-form-item>
-                <dg-button type="primary" icon="el-icon-search" @click="handleSearch">查询</dg-button>
-                <dg-button type="primary" icon="el-icon-plus" @click="handleAdd">添加</dg-button>
-            </el-form-item>
-        </el-form>
-        <Table
-            ref="table"
-            :url="tableUrl"
-            :headerData="cardApplicationList"
-            :condition="form"
-            :lazyLoad="true"
-            @handleRowClick="handleRowClick"
-        >
-        </Table>
-    </dg-card>
-</template>
-
-<script>
-import Table from "@/pages/common/table";
-import * as dynamicManageApi from "@/api/dynamic-manage";
-import { cardApplicationList } from "../DataConfig";
-import addDialog from "./add-dialog";
-const editorArea = ["1200px", "660px"];
-export default {
-    name: "personnelList", // 组件名称
-    props: {
-        // 接收父组件的数据
-    },
-    data() {
-        // 组件内部参数
-        return {
-            // 参数名称及默认值
-            cardApplicationList,
-            tableUrl: dynamicManageApi.tableUrl,
-            form: {
-                applyName: {
-                    value: "",
-                    op: "like"
-                },
-                applyStatus: {
-                    value: "",
-                    op: "="
-                }
-            }
-        };
-    },
-    computed: {}, // 计算属性
-    watch: {}, // 侦听器(扩展的计算属性)
-    components: { Table }, // 注册局部组件
-    methods: {
-        /**
-         * @description: 查询
-         */
-        handleSearch() {
-            this.$refs.table.handleSearchClick();
-        },
-        /**
-         * @description: 单击表格行
-         */
-        handleRowClick() {},
-        /**
-         * @description: 添加
-         */
-        handleAdd() {
-            const layer = this.$dgLayer({
-                title: "添加应用",
-                shade: [0.4, "#FFF"],
-                content: addDialog,
-                props: {
-                    type: "application"
-                },
-                on: {
-                    success() {
-                        layer.close(layer.dialogIndex);
-                    }
-                },
-                area: editorArea
-            });
-        }
-    }, // 内部方法
-    beforeCreate() {}, // 组件创建前
-    created() {}, // 组件创建完成后
-    beforeMount() {}, // 组件挂载前
-    mounted() {}, // 组件挂载完成后
-    beforeUpdate() {}, // 组件更新前
-    updated() {}, // 组件挂载完成后
-    beforeDestroy() {}, // 组件销毁前
-    destroyed() {} // 组件销毁完成后
-};
-</script>
-<style lang="scss" scoped></style>
+<!--
+ * @Author: Liugh
+ * @Date: 2021-05-19 15:48:57
+ * @LastEditTime: 2021-05-20 09:32:34
+ * @LastEditors: Do not edit
+ * @FilePath: \auth-web\src\pages\data-auth-module\auth-subject-manage\subject-prop-manage\application-list.vue
+ * @Description: 
+-->
+<template>
+    <dg-card class="box-card" header="应用列表">
+        <el-form ref="form" label-suffix=":" inline>
+            <el-form-item label="应用系统名称">
+                <el-input clearable placeholder="请输入应用系统名称" v-model="form.applyName.value"></el-input>
+            </el-form-item>
+            <el-form-item label="系统在用标识">
+                <dg-select
+                    code="DM_APPLY_STATUS"
+                    v-model="form.applyStatus.value"
+                    placeholder="请选择应用在用标识"
+                    style="width: 13rem"
+                    clearable
+                >
+                </dg-select>
+            </el-form-item>
+            <el-form-item>
+                <dg-button type="primary" icon="el-icon-search" @click="handleSearch">查询</dg-button>
+                <dg-button type="primary" icon="el-icon-plus" @click="handleAdd">添加</dg-button>
+            </el-form-item>
+        </el-form>
+        <Table
+            ref="table"
+            :url="tableUrl"
+            :headerData="cardApplicationList"
+            :condition="form"
+            :lazyLoad="true"
+            @handleRowClick="handleRowClick"
+        >
+        </Table>
+    </dg-card>
+</template>
+
+<script>
+import Table from "@/pages/common/table";
+import * as dynamicManageApi from "@/api/dynamic-manage";
+import { cardApplicationList } from "../DataConfig";
+import addDialog from "./add-dialog";
+const editorArea = ["1200px", "660px"];
+export default {
+    name: "personnelList", // 组件名称
+    props: {
+        // 接收父组件的数据
+    },
+    data() {
+        // 组件内部参数
+        return {
+            // 参数名称及默认值
+            cardApplicationList,
+            tableUrl: dynamicManageApi.tableUrl,
+            form: {
+                applyName: {
+                    value: "",
+                    op: "like"
+                },
+                applyStatus: {
+                    value: "",
+                    op: "="
+                }
+            }
+        };
+    },
+    computed: {}, // 计算属性
+    watch: {}, // 侦听器(扩展的计算属性)
+    components: { Table }, // 注册局部组件
+    methods: {
+        /**
+         * @description: 查询
+         */
+        handleSearch() {
+            this.$refs.table.handleSearchClick();
+        },
+        /**
+         * @description: 单击表格行
+         */
+        handleRowClick() {},
+        /**
+         * @description: 添加
+         */
+        handleAdd() {
+            const layer = this.$dgLayer({
+                title: "添加应用",
+                shade: [0.4, "#FFF"],
+                content: addDialog,
+                props: {
+                    type: "application"
+                },
+                on: {
+                    success() {
+                        layer.close(layer.dialogIndex);
+                    }
+                },
+                area: editorArea
+            });
+        }
+    }, // 内部方法
+    beforeCreate() {}, // 组件创建前
+    created() {}, // 组件创建完成后
+    beforeMount() {}, // 组件挂载前
+    mounted() {}, // 组件挂载完成后
+    beforeUpdate() {}, // 组件更新前
+    updated() {}, // 组件挂载完成后
+    beforeDestroy() {}, // 组件销毁前
+    destroyed() {} // 组件销毁完成后
+};
+</script>
+<style lang="scss" scoped></style>

+ 103 - 103
src/pages/data-auth-module/property-management/subject-management/subject-property.vue → src/pages/data-auth-module/auth-subject-manage/subject-prop-manage/index.vue

@@ -1,103 +1,103 @@
-<!--
- * @Author: Liugh
- * @Date: 2021-05-17 14:54:08
- * @LastEditTime: 2021-05-20 09:31:08
- * @LastEditors: Do not edit
- * @FilePath: \auth-web\src\pages\data-auth-module\property-management\subject-management\subject-property.vue
- * @Description: 
--->
-
-<template>
-    <main class="subject-property">
-        <dg-row :gutter="20">
-            <dg-col :span="5">
-                <tree
-                    ref="tree"
-                    title="主体属性类"
-                    type="SUB"
-                    @submitNodeOperate="getNodeOperate"
-                />
-            </dg-col>
-            <!-- 属性详情 -->
-            <dg-col :span="19">
-                <prop-detail
-                    :parentNode="parentNode"
-                    type="SUB"
-                    :key="key"
-                    :operateType="operateType"
-                    @savePropSuccess="refreshTree"
-                ></prop-detail>
-            </dg-col>
-            <!-- <dg-col :span="13"> -->
-            <!-- TODO 根据点击属性类型判断显示什么表格 -->
-            <!-- <component :is="compoentValue"></component> -->
-            <!-- </dg-col> -->
-        </dg-row>
-    </main>
-</template>
-
-<script>
-import Tree from "./prop-tree";
-import propDetail from "./prop-detail";
-import personnelList from "./personnel-list";
-import agencyList from "./agency-list";
-import applicationList from "./application-list";
-export default {
-    name: "subject-property", // 组件名称
-    props: {
-        // 接收父组件的数据
-    },
-    data() {
-        // 组件内部参数
-        return {
-            // 参数名称及默认值
-            compoentType: [
-                {
-                    label: "personnel",
-                    value: "personnel-list"
-                },
-                {
-                    label: "agency",
-                    value: "agency-list"
-                },
-                {
-                    label: "application",
-                    value: "application-list"
-                }
-            ],
-            compoentValue: "application-list",
-            parentNode: {},
-            key: 0,
-            // 操作类型,新增属性还是编辑
-            operateType: ""
-        };
-    },
-    computed: {}, // 计算属性
-    watch: {}, // 侦听器(扩展的计算属性)
-    components: { Tree, personnelList, agencyList, applicationList, propDetail }, // 注册局部组件
-    methods: {
-        /**
-         * 获取树操作
-         */
-        getNodeOperate(data) {
-            (this.operateType = data.operateType), (this.parentNode = data);
-            this.key++;
-        },
-        /**
-         * 刷新属性树
-         */
-        refreshTree() {
-            this.$refs.tree.init();
-        },
-        /**
-         * @description: 表单查询
-         */
-        handleSearch() {}
-    },
-    created() {}, // 组件创建完成后
-    mounted() {} // 组件挂载完成后
-};
-</script>
-<style lang="scss" scoped>
-@import "../index.scss";
-</style>
+<!--
+ * @Author: Liugh
+ * @Date: 2021-05-17 14:54:08
+ * @LastEditTime: 2021-05-20 09:31:08
+ * @LastEditors: Do not edit
+ * @FilePath: \auth-web\src\pages\data-auth-module\auth-subject-manage\subject-prop-manage\subject-property.vue
+ * @Description: 
+-->
+
+<template>
+    <main class="subject-property">
+        <dg-row :gutter="20">
+            <dg-col :span="5">
+                <tree
+                    ref="tree"
+                    title="主体属性类"
+                    type="SUB"
+                    @submitNodeOperate="getNodeOperate"
+                />
+            </dg-col>
+            <!-- 属性详情 -->
+            <dg-col :span="19">
+                <prop-detail
+                    :parentNode="parentNode"
+                    type="SUB"
+                    :key="key"
+                    :operateType="operateType"
+                    @savePropSuccess="refreshTree"
+                ></prop-detail>
+            </dg-col>
+            <!-- <dg-col :span="13"> -->
+            <!-- TODO 根据点击属性类型判断显示什么表格 -->
+            <!-- <component :is="compoentValue"></component> -->
+            <!-- </dg-col> -->
+        </dg-row>
+    </main>
+</template>
+
+<script>
+import Tree from "./prop-tree";
+import propDetail from "./prop-detail";
+import personnelList from "./personnel-list";
+import agencyList from "./agency-list";
+import applicationList from "./application-list";
+export default {
+    name: "subject-property", // 组件名称
+    props: {
+        // 接收父组件的数据
+    },
+    data() {
+        // 组件内部参数
+        return {
+            // 参数名称及默认值
+            compoentType: [
+                {
+                    label: "personnel",
+                    value: "personnel-list"
+                },
+                {
+                    label: "agency",
+                    value: "agency-list"
+                },
+                {
+                    label: "application",
+                    value: "application-list"
+                }
+            ],
+            compoentValue: "application-list",
+            parentNode: {},
+            key: 0,
+            // 操作类型,新增属性还是编辑
+            operateType: ""
+        };
+    },
+    computed: {}, // 计算属性
+    watch: {}, // 侦听器(扩展的计算属性)
+    components: { Tree, personnelList, agencyList, applicationList, propDetail }, // 注册局部组件
+    methods: {
+        /**
+         * 获取树操作
+         */
+        getNodeOperate(data) {
+            (this.operateType = data.operateType), (this.parentNode = data);
+            this.key++;
+        },
+        /**
+         * 刷新属性树
+         */
+        refreshTree() {
+            this.$refs.tree.init();
+        },
+        /**
+         * @description: 表单查询
+         */
+        handleSearch() {}
+    },
+    created() {}, // 组件创建完成后
+    mounted() {} // 组件挂载完成后
+};
+</script>
+<style lang="scss" scoped>
+@import "../index.scss";
+</style>

+ 162 - 162
src/pages/data-auth-module/property-management/subject-management/personnel-list.vue → src/pages/data-auth-module/auth-subject-manage/subject-prop-manage/personnel-list.vue

@@ -1,162 +1,162 @@
-<!--
- * @Author: Liugh
- * @Date: 2021-05-19 15:43:35
- * @LastEditTime: 2021-05-20 10:09:39
- * @LastEditors: Do not edit
- * @FilePath: \auth-web\src\pages\data-auth-module\property-management\subject-management\personnel-list.vue
- * @Description: 
--->
-<template>
-    <dg-card class="box-card" header="人员列表">
-        <el-form ref="form" :model="cardForm" label-suffix=":" inline>
-            <el-form-item label="姓名">
-                <el-input clearable placeholder="请输入姓名" v-model="cardForm.name"></el-input>
-            </el-form-item>
-            <el-form-item label="身份证号码">
-                <el-input clearable placeholder="请输入身份证号码" v-model="cardForm.name"></el-input>
-            </el-form-item>
-            <el-form-item label="所属单位">
-                <dg-tree-select
-                    v-model="cardForm.institution"
-                    placeholder="请选择所属单位"
-                    :data="options"
-                    clearable
-                    filterable
-                    multiple
-                ></dg-tree-select>
-            </el-form-item>
-            <el-form-item>
-                <dg-button type="primary" icon="el-icon-search" @click="doSearchPersion">查询</dg-button>
-                <dg-button type="primary" icon="el-icon-plus" @click="add">添加</dg-button>
-            </el-form-item>
-        </el-form>
-        <Table
-            ref="table"
-            :url="tableUrl"
-            :headerData="cardPersonnelList"
-            :condition="reportForm"
-            :lazyLoad="true"
-            @handleRowClick="handleRowClick"
-        >
-        </Table>
-    </dg-card>
-</template>
-
-<script>
-import Table from "@/pages/common/table";
-import * as dynamicManageApi from "@/api/dynamic-manage";
-import { cardPersonnelList } from "../DataConfig";
-import addDialog from "./add-dialog";
-const editorArea = ["1200px", "660px"];
-export default {
-    name: "personnelList", // 组件名称
-    props: {
-        // 接收父组件的数据
-    },
-    data() {
-        // 组件内部参数
-        return {
-            // 参数名称及默认值
-            cardPersonnelList,
-            tableUrl: dynamicManageApi.tableUrl,
-            reportForm: {},
-            cardForm: {},
-            options: [
-                {
-                    id: "fruits",
-                    label: "Fruits",
-                    children: [
-                        {
-                            id: "apple",
-                            label: "Apple",
-                            isNew: true
-                        },
-                        {
-                            id: "grapes",
-                            label: "Grapes",
-                            disabled: true
-                        },
-                        {
-                            id: "pear",
-                            label: "Pear"
-                        },
-                        {
-                            id: "strawberry",
-                            label: "Strawberry 🍓"
-                        },
-                        {
-                            id: "watermelon",
-                            label: "Watermelon 🍉"
-                        }
-                    ]
-                },
-                {
-                    id: "vegetables",
-                    label: "Vegetables",
-                    children: [
-                        {
-                            id: "corn",
-                            label: "Corn 🌽"
-                        },
-                        {
-                            id: "carrot",
-                            label: "Carrot 🥕"
-                        },
-                        {
-                            id: "eggplant",
-                            label: "Eggplant 🍆"
-                        },
-                        {
-                            id: "tomato",
-                            label: "Tomato 🍅"
-                        }
-                    ]
-                }
-            ]
-        };
-    },
-    computed: {}, // 计算属性
-    watch: {}, // 侦听器(扩展的计算属性)
-    components: { Table }, // 注册局部组件
-    methods: {
-        /**
-         * @description: 查询
-         */
-        doSearchPersion() {},
-        /**
-         * @description: 单击表格行
-         */
-        handleRowClick() {},
-        /**
-         * @description: 添加
-         */
-        add() {
-            const layer = this.$dgLayer({
-                title: "添加人员",
-                shade: [0.4, "#FFF"],
-                content: addDialog,
-                props: {
-                    type: "personnel"
-                },
-                btn: ["保存", "关闭"],
-                yes: () => {
-                    console.log("我点击了保存");
-                },
-                btn2: () => {
-                    layer.close(layer.dialogIndex);
-                },
-                area: editorArea
-            });
-        }
-    }, // 内部方法
-    beforeCreate() {}, // 组件创建前
-    created() {}, // 组件创建完成后
-    beforeMount() {}, // 组件挂载前
-    mounted() {}, // 组件挂载完成后
-    beforeUpdate() {}, // 组件更新前
-    updated() {}, // 组件挂载完成后
-    beforeDestroy() {}, // 组件销毁前
-    destroyed() {} // 组件销毁完成后
-};
-</script>
-<style lang="scss" scoped></style>
+<!--
+ * @Author: Liugh
+ * @Date: 2021-05-19 15:43:35
+ * @LastEditTime: 2021-05-20 10:09:39
+ * @LastEditors: Do not edit
+ * @FilePath: \auth-web\src\pages\data-auth-module\auth-subject-manage\subject-prop-manage\personnel-list.vue
+ * @Description: 
+-->
+<template>
+    <dg-card class="box-card" header="人员列表">
+        <el-form ref="form" :model="cardForm" label-suffix=":" inline>
+            <el-form-item label="姓名">
+                <el-input clearable placeholder="请输入姓名" v-model="cardForm.name"></el-input>
+            </el-form-item>
+            <el-form-item label="身份证号码">
+                <el-input clearable placeholder="请输入身份证号码" v-model="cardForm.name"></el-input>
+            </el-form-item>
+            <el-form-item label="所属单位">
+                <dg-tree-select
+                    v-model="cardForm.institution"
+                    placeholder="请选择所属单位"
+                    :data="options"
+                    clearable
+                    filterable
+                    multiple
+                ></dg-tree-select>
+            </el-form-item>
+            <el-form-item>
+                <dg-button type="primary" icon="el-icon-search" @click="doSearchPersion">查询</dg-button>
+                <dg-button type="primary" icon="el-icon-plus" @click="add">添加</dg-button>
+            </el-form-item>
+        </el-form>
+        <Table
+            ref="table"
+            :url="tableUrl"
+            :headerData="cardPersonnelList"
+            :condition="reportForm"
+            :lazyLoad="true"
+            @handleRowClick="handleRowClick"
+        >
+        </Table>
+    </dg-card>
+</template>
+
+<script>
+import Table from "@/pages/common/table";
+import * as dynamicManageApi from "@/api/dynamic-manage";
+import { cardPersonnelList } from "../DataConfig";
+import addDialog from "./add-dialog";
+const editorArea = ["1200px", "660px"];
+export default {
+    name: "personnelList", // 组件名称
+    props: {
+        // 接收父组件的数据
+    },
+    data() {
+        // 组件内部参数
+        return {
+            // 参数名称及默认值
+            cardPersonnelList,
+            tableUrl: dynamicManageApi.tableUrl,
+            reportForm: {},
+            cardForm: {},
+            options: [
+                {
+                    id: "fruits",
+                    label: "Fruits",
+                    children: [
+                        {
+                            id: "apple",
+                            label: "Apple",
+                            isNew: true
+                        },
+                        {
+                            id: "grapes",
+                            label: "Grapes",
+                            disabled: true
+                        },
+                        {
+                            id: "pear",
+                            label: "Pear"
+                        },
+                        {
+                            id: "strawberry",
+                            label: "Strawberry 🍓"
+                        },
+                        {
+                            id: "watermelon",
+                            label: "Watermelon 🍉"
+                        }
+                    ]
+                },
+                {
+                    id: "vegetables",
+                    label: "Vegetables",
+                    children: [
+                        {
+                            id: "corn",
+                            label: "Corn 🌽"
+                        },
+                        {
+                            id: "carrot",
+                            label: "Carrot 🥕"
+                        },
+                        {
+                            id: "eggplant",
+                            label: "Eggplant 🍆"
+                        },
+                        {
+                            id: "tomato",
+                            label: "Tomato 🍅"
+                        }
+                    ]
+                }
+            ]
+        };
+    },
+    computed: {}, // 计算属性
+    watch: {}, // 侦听器(扩展的计算属性)
+    components: { Table }, // 注册局部组件
+    methods: {
+        /**
+         * @description: 查询
+         */
+        doSearchPersion() {},
+        /**
+         * @description: 单击表格行
+         */
+        handleRowClick() {},
+        /**
+         * @description: 添加
+         */
+        add() {
+            const layer = this.$dgLayer({
+                title: "添加人员",
+                shade: [0.4, "#FFF"],
+                content: addDialog,
+                props: {
+                    type: "personnel"
+                },
+                btn: ["保存", "关闭"],
+                yes: () => {
+                    console.log("我点击了保存");
+                },
+                btn2: () => {
+                    layer.close(layer.dialogIndex);
+                },
+                area: editorArea
+            });
+        }
+    }, // 内部方法
+    beforeCreate() {}, // 组件创建前
+    created() {}, // 组件创建完成后
+    beforeMount() {}, // 组件挂载前
+    mounted() {}, // 组件挂载完成后
+    beforeUpdate() {}, // 组件更新前
+    updated() {}, // 组件挂载完成后
+    beforeDestroy() {}, // 组件销毁前
+    destroyed() {} // 组件销毁完成后
+};
+</script>
+<style lang="scss" scoped></style>

+ 0 - 0
src/pages/data-auth-module/property-management/subject-management/prop-detail.vue → src/pages/data-auth-module/auth-subject-manage/subject-prop-manage/prop-detail.vue


+ 0 - 0
src/pages/data-auth-module/property-management/subject-management/prop-tree.vue → src/pages/data-auth-module/auth-subject-manage/subject-prop-manage/prop-tree.vue


+ 90 - 90
src/pages/data-auth-module/property-management/user-management/detail.vue → src/pages/data-auth-module/auth-subject-manage/user-prop-manage/detail.vue

@@ -1,90 +1,90 @@
-<!--
- * @Author: Liugh
- * @Date: 2021-05-17 16:22:06
- * @LastEditTime: 2021-05-18 09:47:22
- * @LastEditors: Do not edit
- * @Description: 
--->
-<template>
-    <main class="user-attributes-detail">
-        <el-form ref="ruleForm" :model="detailInfo" label-width="120px" v-if="detailInfo.id" label-suffix=":">
-            <el-row>
-                <el-col :span="12" v-for="(item, index) in typeData[userInfo.userType]" :key="index">
-                    <el-form-item :label="item.label">
-                        <!-- 业务域翻译 -->
-                        <template v-if="item.value == 'policeBusiness' && showTagTree">
-                            {{ transferBusinessTag(detailInfo[item.value]) }}
-                        </template>
-                        <template v-else>
-                            <!-- 表码翻译 -->
-                            <template v-if="item.code">
-                                <div class="u-detail__text" v-translate="{ code: item.code }">
-                                    {{ detailInfo[item.value] }}
-                                </div>
-                            </template>
-                            <!-- 枚举翻译 -->
-                            <template v-else-if="item.enum">
-                                <div class="u-detail__text" v-translate="{ enum: item.enum }">
-                                    {{ detailInfo[item.value] }}
-                                </div>
-                            </template>
-                            <!-- 普通文本 -->
-                            <div v-else>{{ detailInfo[item.value] }}</div>
-                        </template>
-                    </el-form-item>
-                </el-col>
-            </el-row>
-        </el-form>
-        <!-- <Table
-            ref="myTable"
-            :url="tableUrl"
-            :headerData="UserTableData"
-            :condition="reportForm"
-            v-if="userInfo.userType == '10'"
-        /> -->
-    </main>
-</template>
-
-<script>
-import Table from "@/pages/common/table";
-import { UserTableData, typeData } from "../DataConfig";
-import { getAuthUserDetail } from "@/api/data-auth";
-import transferBusinessTagMixin from "@/mixins/transfer-business-tag";
-
-export default {
-    name: "user-attributes-detail", // 组件名称
-    props: {
-        // 接收父组件的数据
-        userInfo: Object
-    },
-    mixins: [transferBusinessTagMixin],
-    data() {
-        // 组件内部参数
-        return {
-            UserTableData,
-            typeData,
-            detailInfo: {}
-        };
-    },
-    components: { Table }, // 注册局部组件
-    computed: {
-        showTagTree() {
-           return this.tagTree.length > 0
-        }
-    },
-    methods: {
-        getDetail() {
-            return new Promise((resolve) => {
-                getAuthUserDetail(this.userInfo.id).then((res) => {
-                    this.detailInfo = res.data;
-                    resolve(res.data);
-                });
-            });
-        }
-    }, // 内部方法
-    async created() {
-        await this.getDetail();
-    }
-};
-</script>
-<style lang="scss" scoped></style>
+<!--
+ * @Author: Liugh
+ * @Date: 2021-05-17 16:22:06
+ * @LastEditTime: 2021-05-18 09:47:22
+ * @LastEditors: Do not edit
+ * @Description: 
+-->
+<template>
+    <main class="user-attributes-detail">
+        <el-form ref="ruleForm" :model="detailInfo" label-width="120px" v-if="detailInfo.id" label-suffix=":">
+            <el-row>
+                <el-col :span="12" v-for="(item, index) in typeData[userInfo.userType]" :key="index">
+                    <el-form-item :label="item.label">
+                        <!-- 业务域翻译 -->
+                        <template v-if="item.value == 'policeBusiness' && showTagTree">
+                            {{ transferBusinessTag(detailInfo[item.value]) }}
+                        </template>
+                        <template v-else>
+                            <!-- 表码翻译 -->
+                            <template v-if="item.code">
+                                <div class="u-detail__text" v-translate="{ code: item.code }">
+                                    {{ detailInfo[item.value] }}
+                                </div>
+                            </template>
+                            <!-- 枚举翻译 -->
+                            <template v-else-if="item.enum">
+                                <div class="u-detail__text" v-translate="{ enum: item.enum }">
+                                    {{ detailInfo[item.value] }}
+                                </div>
+                            </template>
+                            <!-- 普通文本 -->
+                            <div v-else>{{ detailInfo[item.value] }}</div>
+                        </template>
+                    </el-form-item>
+                </el-col>
+            </el-row>
+        </el-form>
+        <!-- <Table
+            ref="myTable"
+            :url="tableUrl"
+            :headerData="UserTableData"
+            :condition="reportForm"
+            v-if="userInfo.userType == '10'"
+        /> -->
+    </main>
+</template>
+
+<script>
+import Table from "@/pages/common/table";
+import { UserTableData, typeData } from "../DataConfig";
+import { getAuthUserDetail } from "@/api/data-auth";
+import transferBusinessTagMixin from "@/mixins/transfer-business-tag";
+
+export default {
+    name: "user-attributes-detail", // 组件名称
+    props: {
+        // 接收父组件的数据
+        userInfo: Object
+    },
+    mixins: [transferBusinessTagMixin],
+    data() {
+        // 组件内部参数
+        return {
+            UserTableData,
+            typeData,
+            detailInfo: {}
+        };
+    },
+    components: { Table }, // 注册局部组件
+    computed: {
+        showTagTree() {
+           return this.tagTree.length > 0
+        }
+    },
+    methods: {
+        getDetail() {
+            return new Promise((resolve) => {
+                getAuthUserDetail(this.userInfo.id).then((res) => {
+                    this.detailInfo = res.data;
+                    resolve(res.data);
+                });
+            });
+        }
+    }, // 内部方法
+    async created() {
+        await this.getDetail();
+    }
+};
+</script>
+<style lang="scss" scoped></style>

+ 189 - 189
src/pages/data-auth-module/property-management/user-management/user-attributes.vue → src/pages/data-auth-module/auth-subject-manage/user-prop-manage/index.vue

@@ -1,189 +1,189 @@
-<!--
- * @Author: Liugh
- * @Date: 2021-05-17 14:52:53
- * @LastEditTime: 2021-05-18 14:41:23
- * @LastEditors: Do not edit
- * @Description: 
--->
-<template>
-    <main class="user-attributes">
-        <el-form ref="ruleForm" inline :rules="rules" :model="form">
-            <el-form-item label="用户类别">
-                <dg-select v-model="form.userType.value" placeholder="请选择用户类别" enum="UserTypeEnum" clearable>
-                </dg-select>
-            </el-form-item>
-            <el-form-item label="姓名">
-                <el-input v-model="form.userName.value" placeholder="请输入姓名" clearable></el-input>
-            </el-form-item>
-            <el-form-item label="身份证号">
-                <el-input v-model="form.idcard.value" placeholder="请输入身份证号" clearable></el-input>
-            </el-form-item>
-
-            <el-form-item label="所属机构">
-                <select-tree ref="selectTree" @submitTreeValue="getTreeValue" :key="key"></select-tree>
-            </el-form-item>
-
-            <el-form-item>
-                <dg-button type="primary" @click="handleSearch" icon="el-icon-search">查询</dg-button>
-                <dg-button type="primary" @click="handleReset" icon="el-icon-refresh-right">重置</dg-button>
-            </el-form-item>
-
-            <!-- <el-form-item label="最近同步时间:" style="float: right">
-                <span>{{ LatestSyncTime }}</span>
-            </el-form-item> -->
-        </el-form>
-        <div class="buttonGroup">
-            <dg-button type="primary" @click="handleImport" icon="el-icon-upload2">导入</dg-button>
-            <dg-button type="primary" @click="handleSynchro" icon="el-icon-refresh">同步</dg-button>
-        </div>
-        <Table ref="myTable" :url="tableUrl" :headerData="UserTableData" :condition="form">
-            <dg-table-column fixed="right" label="操作" align="center">
-                <template slot-scope="scope">
-                    <div class="u-table__operation">
-                        <el-tooltip content="详情" effect="dark" placement="top-end">
-                            <i class="el-icon-document" @click="handleViewDetail(scope.row)"></i>
-                        </el-tooltip>
-                    </div>
-                </template>
-            </dg-table-column>
-        </Table>
-    </main>
-</template>
-
-<script>
-import Table from "@/pages/common/table";
-import { UserTableData } from "../DataConfig";
-import { authUserTableUrl, authUserSync } from "@/api/data-auth";
-import baseApi from "@/api/jz-base";
-import detail from "./detail";
-import importFile from "@/pages/common/import";
-import selectTree from "@/pages/common/select-tree";
-export default {
-    name: "user-attributes", // 组件名称
-    props: {
-        // 接收父组件的数据
-    },
-    data() {
-        // 组件内部参数
-        return {
-            // 参数名称及默认值
-            form: {
-                userName: {
-                    value: "",
-                    op: "like"
-                },
-                idcard: {
-                    value: "",
-                    op: "like"
-                },
-                userType: {
-                    value: "",
-                    op: "="
-                },
-                orgCode: {
-                    value: "",
-                    op: "="
-                }
-            },
-            rules: {},
-            options: [],
-            UserTableData,
-            tableUrl: authUserTableUrl,
-            LatestSyncTime: "",
-            key: 0
-        };
-    },
-    computed: {}, // 计算属性
-    watch: {}, // 侦听器(扩展的计算属性)
-    components: { Table, selectTree }, // 注册局部组件
-    methods: {
-        /**
-         * @description:表单查询方法
-         */
-        handleSearch() {
-            this.$refs.myTable.handleSearchClick();
-        },
-        /**
-         * 重置
-         */
-        handleReset() {
-            for (const key in this.form) {
-                this.form[key].value = "";
-            }
-            if (this.form.orgCode.value) {
-                this.key++;
-            }
-        },
-        /**
-         * @description:导入方法
-         */
-        handleImport() {
-            const vm = this;
-            const layer = this.$dgLayer({
-                title: "导入",
-                content: importFile,
-                props: {
-                    temp: "user",
-                    action: "/authsvr/v2/authuserinfo/import"
-                },
-                on: {
-                    success(params) {
-                        vm.handleSearch();
-                        layer.close(layer.dialogIndex);
-                    }
-                },
-                cancel: function (index, layero) {
-                    // 关闭对应弹窗的ID
-                    layer.close(index);
-                    return false;
-                },
-                area: ["550px", "500px"]
-            });
-        },
-        /**
-         * @description:同步方法,假同步
-         */
-        handleSynchro() {
-            authUserSync().then(res => {
-                this.$message.success("同步成功");
-                // this.handleSearch();
-            })
-        },
-        /**
-         * @description:详情
-         */
-        handleViewDetail(row) {
-            const userTypeName = this.userType.find((item) => item.value == row.userType).label;
-            const layer = this.$dgLayer({
-                title: `${userTypeName}详情`,
-                shade: [0.4, "#FFF"],
-                content: detail,
-                props: {
-                    userInfo: row
-                },
-                on: {
-                    success() {
-                        layer.close(layer.dialogIndex);
-                    }
-                },
-                area: ["900px", "500px"]
-            });
-        },
-        /**
-         * 接收机构树值
-         */
-
-        getTreeValue(val) {
-            this.form.orgCode.value = val;
-        }
-    },
-    created() {
-        baseApi.fetchEnum("UserTypeEnum").then((res) => {
-            this.userType = res.data;
-        });
-    } // 组件创建完成后
-};
-</script>
-<style lang="scss" scoped>
-@import "../index.scss";
-</style>
+<!--
+ * @Author: Liugh
+ * @Date: 2021-05-17 14:52:53
+ * @LastEditTime: 2021-05-18 14:41:23
+ * @LastEditors: Do not edit
+ * @Description: 
+-->
+<template>
+    <main class="user-attributes">
+        <el-form ref="ruleForm" inline :rules="rules" :model="form">
+            <el-form-item label="用户类别">
+                <dg-select v-model="form.userType.value" placeholder="请选择用户类别" enum="UserTypeEnum" clearable>
+                </dg-select>
+            </el-form-item>
+            <el-form-item label="姓名">
+                <el-input v-model="form.userName.value" placeholder="请输入姓名" clearable></el-input>
+            </el-form-item>
+            <el-form-item label="身份证号">
+                <el-input v-model="form.idcard.value" placeholder="请输入身份证号" clearable></el-input>
+            </el-form-item>
+
+            <el-form-item label="所属机构">
+                <select-tree ref="selectTree" @submitTreeValue="getTreeValue" :key="key"></select-tree>
+            </el-form-item>
+
+            <el-form-item>
+                <dg-button type="primary" @click="handleSearch" icon="el-icon-search">查询</dg-button>
+                <dg-button type="primary" @click="handleReset" icon="el-icon-refresh-right">重置</dg-button>
+            </el-form-item>
+
+            <!-- <el-form-item label="最近同步时间:" style="float: right">
+                <span>{{ LatestSyncTime }}</span>
+            </el-form-item> -->
+        </el-form>
+        <div class="buttonGroup">
+            <dg-button type="primary" @click="handleImport" icon="el-icon-upload2">导入</dg-button>
+            <dg-button type="primary" @click="handleSynchro" icon="el-icon-refresh">同步</dg-button>
+        </div>
+        <Table ref="myTable" :url="tableUrl" :headerData="UserTableData" :condition="form">
+            <dg-table-column fixed="right" label="操作" align="center">
+                <template slot-scope="scope">
+                    <div class="u-table__operation">
+                        <el-tooltip content="详情" effect="dark" placement="top-end">
+                            <i class="el-icon-document" @click="handleViewDetail(scope.row)"></i>
+                        </el-tooltip>
+                    </div>
+                </template>
+            </dg-table-column>
+        </Table>
+    </main>
+</template>
+
+<script>
+import Table from "@/pages/common/table";
+import { UserTableData } from "../DataConfig";
+import { authUserTableUrl, authUserSync } from "@/api/data-auth";
+import baseApi from "@/api/jz-base";
+import detail from "./detail";
+import importFile from "@/pages/common/import";
+import selectTree from "@/pages/common/select-tree";
+export default {
+    name: "user-attributes", // 组件名称
+    props: {
+        // 接收父组件的数据
+    },
+    data() {
+        // 组件内部参数
+        return {
+            // 参数名称及默认值
+            form: {
+                userName: {
+                    value: "",
+                    op: "like"
+                },
+                idcard: {
+                    value: "",
+                    op: "like"
+                },
+                userType: {
+                    value: "",
+                    op: "="
+                },
+                orgCode: {
+                    value: "",
+                    op: "="
+                }
+            },
+            rules: {},
+            options: [],
+            UserTableData,
+            tableUrl: authUserTableUrl,
+            LatestSyncTime: "",
+            key: 0
+        };
+    },
+    computed: {}, // 计算属性
+    watch: {}, // 侦听器(扩展的计算属性)
+    components: { Table, selectTree }, // 注册局部组件
+    methods: {
+        /**
+         * @description:表单查询方法
+         */
+        handleSearch() {
+            this.$refs.myTable.handleSearchClick();
+        },
+        /**
+         * 重置
+         */
+        handleReset() {
+            for (const key in this.form) {
+                this.form[key].value = "";
+            }
+            if (this.form.orgCode.value) {
+                this.key++;
+            }
+        },
+        /**
+         * @description:导入方法
+         */
+        handleImport() {
+            const vm = this;
+            const layer = this.$dgLayer({
+                title: "导入",
+                content: importFile,
+                props: {
+                    temp: "user",
+                    action: "/authsvr/v2/authuserinfo/import"
+                },
+                on: {
+                    success(params) {
+                        vm.handleSearch();
+                        layer.close(layer.dialogIndex);
+                    }
+                },
+                cancel: function (index, layero) {
+                    // 关闭对应弹窗的ID
+                    layer.close(index);
+                    return false;
+                },
+                area: ["550px", "500px"]
+            });
+        },
+        /**
+         * @description:同步方法,假同步
+         */
+        handleSynchro() {
+            authUserSync().then(res => {
+                this.$message.success("同步成功");
+                // this.handleSearch();
+            })
+        },
+        /**
+         * @description:详情
+         */
+        handleViewDetail(row) {
+            const userTypeName = this.userType.find((item) => item.value == row.userType).label;
+            const layer = this.$dgLayer({
+                title: `${userTypeName}详情`,
+                shade: [0.4, "#FFF"],
+                content: detail,
+                props: {
+                    userInfo: row
+                },
+                on: {
+                    success() {
+                        layer.close(layer.dialogIndex);
+                    }
+                },
+                area: ["900px", "500px"]
+            });
+        },
+        /**
+         * 接收机构树值
+         */
+
+        getTreeValue(val) {
+            this.form.orgCode.value = val;
+        }
+    },
+    created() {
+        baseApi.fetchEnum("UserTypeEnum").then((res) => {
+            this.userType = res.data;
+        });
+    } // 组件创建完成后
+};
+</script>
+<style lang="scss" scoped>
+@import "../index.scss";
+</style>

+ 14 - 17
src/router/modules/data-auth-module.js

@@ -15,30 +15,27 @@ const componentsRouter = [
         meta: { title: "授权主体管理", icon: "el-icon-goods", noCache: true, permission: ["QXGL_SQKTGL"] },
         children: [
             {
-                path: "user-attributes",
-                component: () => import("@/pages/data-auth-module/property-management/user-management/user-attributes"),
-                name: "user-attributes",
+                path: "user-prop-manage",
+                component: () => import("@/pages/data-auth-module/auth-subject-manage/user-prop-manage"),
+                name: "user-prop-manage",
                 meta: { title: "用户属性管理", noCache: false, permission: ["QXGL_SQKTGL_SJFJFLBM"] }
             },
             {
-                path: "institutional-attributes",
-                component: () => import("@/pages/data-auth-module/property-management/institutional-attributes"),
-                name: "institutional-attributes",
+                path: "org-prop-manage",
+                component: () => import("@/pages/data-auth-module/auth-subject-manage/org-prop-manage"),
+                name: "org-prop-manage",
                 meta: { title: "机构属性管理", noCache: false, permission: ["QXGL_SQKTGL_SJFJFLBM"] }
             },
             {
-                path: "application-properties",
-                component: () =>
-                    import(
-                        "@/pages/data-auth-module/property-management/application-management/application-properties"
-                    ),
-                name: "application-properties",
+                path: "app-prop-manage",
+                component: () => import("@/pages/data-auth-module/auth-subject-manage/app-prop-manage"),
+                name: "app-prop-manage",
                 meta: { title: "应用属性管理", noCache: false, permission: ["QXGL_SQKTGL_SJFJFLBM"] }
             },
             {
-                path: "subject-property",
-                component: () => import("@/pages/data-auth-module/property-management/subject-management/subject-property"),
-                name: "subject-property",
+                path: "subject-prop-manage",
+                component: () => import("@/pages/data-auth-module/auth-subject-manage/subject-prop-manage"),
+                name: "subject-prop-manage",
                 meta: { title: "主体属性类管理", noCache: false, permission: ["QXGL_SQKTGL_SJFJFLBM"] }
             }
         ]
@@ -54,7 +51,7 @@ const componentsRouter = [
                 path: "sort-code-manage",
                 component: () => import("@/pages/data-auth-module/auth-object-manage/sort-code-manage"),
                 name: "sort-code-manage",
-                meta: { title: "数据分级分类表码", noCache: false, permission: ["QXGL_SQKTGL_SJFJFLBM"]}
+                meta: { title: "数据分级分类表码", noCache: false, permission: ["QXGL_SQKTGL_SJFJFLBM"] }
             },
             {
                 path: "appfun-resource-manage",
@@ -76,7 +73,7 @@ const componentsRouter = [
                 path: "object-prop-manage",
                 component: () => import("@/pages/data-auth-module/auth-object-manage/object-prop-manage"),
                 name: "object-prop-manage",
-                meta: { title: "客体属性类管理", noCache: false, permission: ["QXGL_SQKTGL_SJFJFLBM"]}
+                meta: { title: "客体属性类管理", noCache: false, permission: ["QXGL_SQKTGL_SJFJFLBM"] }
             }
         ]
     },