From f90cb73f1c8f3156278ca81409c7a74e620e458a Mon Sep 17 00:00:00 2001
From: Administrator <admin>
Date: Sat, 10 Jul 2021 00:24:48 +0800
Subject: [PATCH] 1.用户管理修改单位修改为组织机构,其他字段删减   2.保安员管理弹窗事件修改

---
 src/views/securityGuard/data.js |  325 +++++++++++++++++++++++++++++++++++++++++++++++++++++
 1 files changed, 323 insertions(+), 2 deletions(-)

diff --git a/src/views/securityGuard/data.js b/src/views/securityGuard/data.js
index ae5fcb7..1f3d97b 100644
--- a/src/views/securityGuard/data.js
+++ b/src/views/securityGuard/data.js
@@ -132,6 +132,157 @@
 ]
 
 
+export var securityBaseInfoColumns = [{
+        label: "所属保安单位",
+        prop: "tenantId",
+        type: "tree",
+        dicUrl: "/api/blade-system/tenant/select",
+        props: {
+            label: "tenantName",
+            value: "tenantId"
+        },
+        disabled: true,
+        span: 24,
+    },
+    {
+        label: "登录账号",
+        prop: "account",
+        disabled: true
+    },
+    {
+        label: "用户姓名",
+        prop: "realName",
+        rules: [{
+            required: true,
+            message: "请输入用户姓名",
+            trigger: "blur"
+        }, {
+            min: 2,
+            max: 5,
+            message: '姓名长度在2到5个字符'
+        }]
+    },
+    {
+        label: "用户昵称",
+        prop: "name"
+    },
+    {
+        label: "手机号码",
+        prop: "phone",
+        overHidden: true,
+        rules: [{
+            required: true,
+            message: "请输入手机号",
+            trigger: "blur"
+        }]
+    },
+    {
+        label: "电子邮箱",
+        prop: "email",
+        hide: true,
+        overHidden: true
+    },
+    {
+        label: "身份证号",
+        prop: "cardid",
+        hide: true,
+        overHidden: true,
+        rules: [{
+            required: true,
+            message: "请输入身份证号",
+            trigger: "blur"
+        }]
+    },
+    {
+        label: "籍贯",
+        prop: "nativeplace",
+        hide: true,
+        overHidden: true
+    },
+    {
+        label: "民族",
+        prop: "nation",
+        hide: true,
+        overHidden: true
+    },
+    {
+        label: "最高学历",
+        prop: "education",
+        type: "select",
+        dicUrl: "/api/blade-system/dict-biz/dictionary?code=educationType",
+        props: {
+            label: "dictValue",
+            value: "dictKey"
+        },
+        dataType: "number",
+        slot: true,
+        rules: [{
+            required: true,
+            message: "请选择学历",
+            trigger: "blur"
+        }]
+    },
+    {
+        label: "政治面貌",
+        prop: "politicaloutlook",
+        hide: true,
+        overHidden: true
+    },
+    {
+        label: "身高",
+        prop: "height",
+        hide: true,
+        overHidden: true
+    },
+    {
+        label: "联系地址",
+        prop: "address",
+        hide: true,
+        overHidden: true
+    },
+    {
+        label: "户口所在地",
+        prop: "registered",
+        hide: true,
+        overHidden: true
+    },
+    {
+        label: "入职时间",
+        prop: "rtime",
+        type: 'date',
+        format: "yyyy-MM-dd",
+        valueFormat: "yyyy-MM-dd",
+        hide: true,
+        overHidden: true
+    },
+    {
+        label: "用户性别",
+        prop: "sex",
+        type: "select",
+        dicData: [{
+                label: "男",
+                value: 1
+            },
+            {
+                label: "女",
+                value: 2
+            },
+            {
+                label: "未知",
+                value: 3
+            }
+        ],
+        hide: true
+    },
+    {
+        label: "用户生日",
+        type: "date",
+        prop: "birthday",
+        hide: true
+    }
+]
+
+
 //从业记录
 export var practitionersColumn = [{
     label: "id",
@@ -175,7 +326,48 @@
     formslot: true,
 }]
 
-
+export var practitionersColumns = [{
+    width: 200,
+    label: '单位名称',
+    prop: "companyname",
+    formslot: true,
+}, {
+    width: 200,
+    label: '部门',
+    prop: "department",
+    formslot: true,
+}, {
+    width: 200,
+    label: '岗位',
+    prop: "post",
+    formslot: true,
+}, {
+    width: 200,
+    label: '岗位职责',
+    prop: "responsibilities",
+    formslot: true,
+}, {
+    width: 200,
+    label: '入职时间',
+    type: 'date',
+    format: "yyyy-MM-dd",
+    valueFormat: "yyyy-MM-dd",
+    prop: "entryTime",
+    formslot: true,
+}, {
+    width: 200,
+    label: '离职时间',
+    type: 'date',
+    format: "yyyy-MM-dd",
+    valueFormat: "yyyy-MM-dd",
+    prop: "departureTime",
+    formslot: true,
+}, {
+    width: 200,
+    label: '离职原因',
+    prop: "leaving",
+    formslot: true,
+}]
 
 export var trackRecordColumn = [{
     label: "id",
@@ -217,4 +409,133 @@
     label: '离职原因',
     prop: "leaving",
     formslot: true,
-}]
\ No newline at end of file
+}]
+
+
+export var securityFormPageColumn = [{
+        label: "用户姓名",
+        prop: "realName",
+        search: true,
+        searchSpan: 4,
+        display: false
+    },
+    {
+        label: "性别",
+        prop: "sex",
+        type: "select",
+        slot: true,
+        display: false
+    },
+
+    {
+        label: "籍贯",
+        prop: "nativeplace",
+        display: false
+    },
+    {
+        label: "民族",
+        prop: "nation",
+        display: false
+    },
+    {
+        label: "出生日期",
+        prop: "birthday",
+        type: "date",
+        format: "yyyy-MM-dd",
+        valueFormat: "yyyy-MM-dd",
+        display: false
+    },
+    {
+        label: "学历",
+        prop: "education",
+        display: false,
+        dicUrl: "/api/blade-system/dict-biz/dictionary?code=educationType",
+        props: {
+            label: "dictValue",
+            value: "dictKey"
+        },
+        type: "select",
+        rules: [{
+            required: true,
+            message: "请选择学历",
+            trigger: "blur"
+        }],
+    },
+    {
+        label: "联系电话",
+        prop: "phone",
+        display: false
+    },
+    {
+        label: "邮箱",
+        prop: "email",
+        display: false,
+        width: 150
+    },
+    {
+        label: "入职时间",
+        prop: "rtime",
+        display: false
+    },
+    {
+        label: "组织机构名称",
+        searchLabelWidth: "110",
+        // prop: "deptName",
+        prop: "deptId",
+        type: "tree",
+        dicUrl: "/api/blade-system/dept/lazy-tree?parentId=0",
+        props: {
+            label: "title",
+            value: "id",
+        },
+        slot: true,
+        searchSpan: 5,
+        display: false,
+        search: true,
+        width: 260
+    },
+    {
+        label: "岗位",
+        prop: "postName",
+        slot: true,
+        display: false
+    },
+    // {
+    //     label: "入职时间",
+    //     prop: "rtime",
+    //     type: "datetime",
+    //     format: "yyyy-MM-dd",
+    //     valueFormat: "yyyy-MM-dd",
+    //     searchRange: true,
+    //     searchSpan: 6,
+    //     hide: true,
+    //     addDisplay: false,
+    //     editDisplay: false,
+    //     viewDisplay: false,
+    //     search: true,
+    //     rules: [{
+    //         required: true,
+    //         message: "请输入时间",
+    //         trigger: "blur"
+    //     }]
+    // },
+    {
+        label: "在职状态",
+        prop: "status",
+        type: "select",
+        dicUrl: "/api/blade-system/dict-biz/dictionary?code=workerState",
+        props: {
+            label: "dictValue",
+            value: "dictKey"
+        },
+        dataType: "number",
+        display: false,
+        searchSpan: 3,
+        search: true,
+        rules: [{
+            required: true,
+            message: "请选择在职状态",
+            trigger: "blur"
+        }]
+    },
+]
\ No newline at end of file

--
Gitblit v1.9.3