Administrator
2022-06-15 47a0f58d4334939b08a55b9356f94de23c8b1367
src/views/securityGuard/data.js
@@ -2,11 +2,11 @@
export var securityBaseInfoColumn = [{
        label: "",
        labelWidth: "20",
        type: 'title',
        type: "title",
        prop: "title",
        span: 24,
        styles: {
            fontSize: '24px'
            fontSize: "24px"
        }
    },
    {
@@ -17,10 +17,10 @@
        // dicUrl: "/api/blade-system/dept/lazy-tree?parentId=0",
        props: {
            label: "title",
            value: "id",
            value: "id"
        },
        disabled: true,
        span: 24,
        span: 24
    },
    {
        label: "登录账号",
@@ -30,7 +30,7 @@
    {
        label: "用户姓名",
        prop: "realName",
        disabled: true,
        disabled: true
    },
    {
        label: "用户昵称",
@@ -68,7 +68,7 @@
        dicUrl: "/api/blade-system/dict-biz/dictionary?code=equipage",
        props: {
            label: "dictValue",
            value: "dictKey",
            value: "dictKey"
        },
        type: "select",
        disabled: true
@@ -86,7 +86,7 @@
        dicUrl: "/api/jurisdiction/lazy-tree",
        props: {
            label: "title",
            value: "id",
            value: "id"
        },
        disabled: true
    },
@@ -126,7 +126,7 @@
    {
        label: "入职时间",
        prop: "rtime",
        type: 'date',
        type: "date",
        format: "yyyy-MM-dd",
        valueFormat: "yyyy-MM-dd",
        disabled: true
@@ -156,10 +156,7 @@
        prop: "birthday",
        disabled: true
    }
]
];
export var securityBaseInfoColumns = [{
        label: "所属保安单位",
@@ -171,7 +168,7 @@
            value: "tenantId"
        },
        disabled: true,
        span: 24,
        span: 24
    },
    {
        label: "登录账号",
@@ -182,14 +179,16 @@
        label: "用户姓名",
        prop: "realName",
        rules: [{
            required: true,
            message: "请输入用户姓名",
            trigger: "blur"
        }, {
            min: 2,
            max: 5,
            message: '姓名长度在2到5个字符'
        }]
                required: true,
                message: "请输入用户姓名",
                trigger: "blur"
            },
            {
                min: 2,
                max: 5,
                message: "姓名长度在2到5个字符"
            }
        ]
    },
    {
        label: "用户昵称",
@@ -278,7 +277,7 @@
    {
        label: "入职时间",
        prop: "rtime",
        type: 'date',
        type: "date",
        format: "yyyy-MM-dd",
        valueFormat: "yyyy-MM-dd",
        hide: true,
@@ -309,109 +308,123 @@
        prop: "birthday",
        hide: true
    }
]
];
//从业记录
export var practitionersColumn = [{
    label: "id",
    prop: "id",
    hide: true,
    editDisplay: false,
    addDisplay: false
}, {
    label: '企业名称',
    prop: "companyname",
    formslot: true,
    rules: [{
        required: true,
        message: "请选择企业名称",
        trigger: "blur"
    }]
}, {
    label: '部门',
    prop: "department",
    formslot: true,
}, {
    label: '岗位',
    prop: "post",
    formslot: true,
}, {
    label: '岗位职责',
    prop: "responsibilities",
    formslot: true,
}, {
    label: '入职时间',
    type: 'date',
    format: "yyyy-MM-dd",
    valueFormat: "yyyy-MM-dd",
    prop: "entrytime",
    formslot: true,
    rules: [{
        required: true,
        message: "请选择入职时间",
        trigger: "blur"
    }]
}, {
    label: '离职时间',
    type: 'date',
    format: "yyyy-MM-dd",
    valueFormat: "yyyy-MM-dd",
    prop: "departuretime",
    formslot: true,
    rules: [{
        required: true,
        message: "请选择离职时间",
        trigger: "blur"
    }]
}, {
    label: '离职原因',
    prop: "leaving",
    formslot: true,
}]
        label: "id",
        prop: "id",
        hide: true,
        editDisplay: false,
        addDisplay: false
    },
    {
        label: "企业名称",
        prop: "companyname",
        formslot: true,
        rules: [{
            required: true,
            message: "请选择企业名称",
            trigger: "blur"
        }]
    },
    {
        label: "部门",
        prop: "department",
        formslot: true
    },
    {
        label: "岗位",
        prop: "post",
        formslot: true
    },
    {
        label: "岗位职责",
        prop: "responsibilities",
        formslot: true
    },
    {
        label: "入职时间",
        type: "date",
        format: "yyyy-MM-dd",
        valueFormat: "yyyy-MM-dd",
        prop: "entrytime",
        formslot: true,
        rules: [{
            required: true,
            message: "请选择入职时间",
            trigger: "blur"
        }]
    },
    {
        label: "离职时间",
        type: "date",
        format: "yyyy-MM-dd",
        valueFormat: "yyyy-MM-dd",
        prop: "departuretime",
        formslot: true,
        rules: [{
            required: true,
            message: "请选择离职时间",
            trigger: "blur"
        }]
    },
    {
        label: "离职原因",
        prop: "leaving",
        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,
}]
        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 = [{
@@ -420,13 +433,14 @@
        hide: true,
        editDisplay: false,
        addDisplay: false
    }, {
        label: '时间',
        type: 'date',
    },
    {
        label: "时间",
        type: "date",
        format: "yyyy-MM-dd",
        valueFormat: "yyyy-MM-dd",
        prop: "time",
        formslot: true,
        formslot: true
    },
    // {
    //     label: '工作态度',
@@ -434,11 +448,12 @@
    //     formslot: true,
    // },
    {
        label: '工作表现',
        label: "工作表现",
        prop: "achievements",
        formslot: true,
    }, {
        label: '表现评定',
        formslot: true
    },
    {
        label: "表现评定",
        prop: "score",
        type: "select",
        // dicUrl: "/api/blade-system/dict-biz/dictionary?code=scoreType",
@@ -461,7 +476,7 @@
            {
                label: "差",
                value: 3
            },
            }
        ],
        dataType: "number",
        slot: true,
@@ -476,123 +491,134 @@
    //     prop: "departmentName",
    //     formslot: true,
    // }
]
];
export var securityFormPageColumn = [{
        label: "编号",
        prop: "id",
        display: false
    }, {
        label: "账号",
        prop: "account",
        // search: true,
        // searchSpan: 3,
        // searchLabelWidth: 50,
        display: false
    }, {
        label: "姓名",
        prop: "realName",
        search: true,
        searchSpan: 3,
        width: 60,
        searchLabelWidth: 50,
        display: false
    },
    {
        label: "企业名称",
        searchLabelWidth: "80",
        searchLabelWidth: 75,
        // prop: "deptName",
        prop: "deptId",
        type: "tree",
        // dicUrl: "/api/blade-system/dept/security_lazy-tree?parentId=1413470343230877697",
        props: {
            label: "title",
            value: "id",
            value: "id"
        },
        // hide: true,
        slot: true,
        searchSpan: 5,
        display: false,
        search: true,
        minWidth: 260
        minWidth: 160
    },
    {
        label: "性别",
        prop: "sexs",
        width: 80,
        type: "select",
        dicData: [{
                label: "男",
                value: 1,
            },
            {
                label: "女",
                value: 2,
            },
            // {
            //     label: "未知",
            //     value: 3,
            // },
        ],
        display: false
    },
    // {
    //   label: "性别",
    //   prop: "sexs",
    //   sortable: true,
    //   width: 75,
    //   type: "select",
    //   dicData: [{
    //       label: "男",
    //       value: 1
    //     },
    //     {
    //       label: "女",
    //       value: 2
    //     }
    //     // {
    //     //     label: "未知",
    //     //     value: 3,
    //     // },
    //   ],
    //   display: false
    // },
    {
        label: "身份证号码",
        prop: "cardid",
        search: true,
        searchLabelWidth: 90,
        searchSpan: 5,
        minWidth: 150,
        searchSpan: 4,
        // width: 164,
        display: false
    },
    {
        label: "照片",
        prop: "avatar",
        type: "upload",
        listType: "picture-img",
    },
    {
        label: "籍贯",
        prop: "nativeplace",
        hide: true,
        display: false
    },
    {
        label: "民族",
        prop: "nation",
        hide: true,
        width: 55,
        display: false
    },
    // {
    //   label: "照片",
    //   prop: "avatar",
    //   type: "upload",
    //   listType: "picture-img",
    //   width: 60,
    //   display: false
    // },
    // {
    //   label: "籍贯",
    //   prop: "nativeplace",
    //   hide: true,
    //   display: false
    // },
    // {
    //   label: "民族",
    //   prop: "nation",
    //   hide: true,
    //   width: 55,
    //   display: false
    // },
    // {
    //   label: "出生日期",
    //   prop: "birthday",
    //   type: "date",
    //   format: "yyyy-MM-dd",
    //   valueFormat: "yyyy-MM-dd",
    //   display: false,
    //   hide: true
    // },
    // {
    //   label: "年龄",
    //   prop: "age",
    //   width: 55,
    {
        label: "出生日期",
        prop: "birthday",
        type: "date",
        format: "yyyy-MM-dd",
        valueFormat: "yyyy-MM-dd",
        display: false,
        hide: true,
    },
    {
        label: "年龄",
        prop: "age",
        width: 55,
        sortable: true,
        display: false
    },
    {
        label: "学历",
        prop: "education",
        display: false,
        width: 90,
        dicUrl: "/api/blade-system/dict-biz/dictionary?code=educationType",
        props: {
            label: "dictValue",
            value: "dictKey"
        },
        type: "select",
        // hide: true,
        rules: [{
            required: true,
            message: "请选择学历",
            trigger: "blur"
        }],
    },
    //   display: false
    // },
    // {
    //     label: "学历",
    //     prop: "education",
    //     display: false,
    //     width: 90,
    //     dicUrl: "/api/blade-system/dict-biz/dictionary?code=educationType",
    //     props: {
    //         label: "dictValue",
    //         value: "dictKey"
    //     },
    //     type: "select",
    //     // hide: true,
    //     rules: [{
    //         required: true,
    //         message: "请选择学历",
    //         trigger: "blur"
    //     }],
    // },
    {
        label: "联系电话",
        prop: "phone",
        minWidth: 100,
        // minWidth: 108,
        display: false
    },
    {
@@ -606,90 +632,98 @@
        prop: "securitynumber",
        search: true,
        searchLabelWidth: 90,
        minWidth: 115,
        searchSpan: 5,
        sortable: true,
        // width: 123,
        searchSpan: 4,
        addDisplay: false,
        editDisplay: false,
        // hide: true,
        editDisplay: false
            // hide: true,
    },
    {
        label: "入职时间",
        prop: "rtime",
        hide: true,
        display: false
    },
    {
        label: '是否派遣',
        prop: 'dispatch',
        type: 'select',
        editDisplay: false,
        search: true,
        searchSpan: 3,
        addDisplay: false,
        dicData: [{
                label: '全部',
                value: '2'
            },
            {
                label: '已派遣',
                value: '0'
            },
            {
                label: '未派遣',
                value: '1'
            }
        ]
    },
    // {
    //   label: "入职时间",
    //   prop: "rtime",
    //   hide: true,
    //   display: false
    // },
    // {
    //   label: "是否派遣",
    //   prop: "dispatch",
    //   type: "select",
    //   sortable: true,
    //   editDisplay: false,
    //   searchLabelWidth: 75,
    //   search: true,
    //   width: 110,
    //   searchSpan: 3,
    //   addDisplay: false,
    //   dicData: [{
    //       label: "全部",
    //       value: "2"
    //     },
    //     {
    //       label: "已派遣",
    //       value: "0"
    //     },
    //     {
    //       label: "未派遣",
    //       value: "1"
    //     }
    //   ]
    // },
    {
        label: "是否持证",
        prop: "hold",
        slot: true,
        sortable: true,
        searchLabelWidth: 75,
        search: true,
        searchSpan: 3,
        width: 69,
        width: 110,
        hide: true,
        type: "select",
        dicData: [{
                label: "是",
                value: "1",
                value: "1"
            },
            {
                label: "否",
                value: "2",
                value: "2"
            },
            {
                label: "已吊销",
                value: "3",
            },
                value: "3"
            }
        ],
        display: false,
        rules: [{
            required: true,
            message: "请选择",
            trigger: "blur"
        }],
        }]
    },
    {
        label: "是否制证",
        prop: "userType",
        type: "select",
        slot: true,
        search: true,
        // searchValue: 7,
        editDisplay: false,
        addDisplay: false,
        searchSpan: 3,
        width: 69,
        dicData: [{
                label: "已制证",
                value: 6,
            },
            {
                label: "未制证",
                value: 7,
            }
        ],
    },
    // {
    //   label: "是否制证",
    //   prop: "userType",
    //   type: "select",
    //   sortable: true,
    //   slot: true,
    //   search: true,
    //   // searchValue: 7,
    //   editDisplay: false,
    //   addDisplay: false,
    //   searchSpan: 3,
    //   width: 110,
    //   dicData: [{
    //       label: "已制证",
    //       value: 6
    //     },
    //     {
    //       label: "未制证",
    //       value: 7
    //     }
    //   ]
    // },
    // {
    //     label: "发证日期",
@@ -710,57 +744,57 @@
    //     //     trigger: "blur"
    //     // }]
    // },
    {
        label: "有无照片",
        prop: "isAvatar",
        type: "select",
        search: true,
        minWidth: 105,
        searchSpan: 3,
        addDisplay: false,
        editDisplay: false,
        hide: true,
        display: false,
        dicData: [{
                label: "全部",
                value: 3,
            },
            {
                label: "有",
                value: 1,
            },
            {
                label: "无",
                value: 2,
            },
        ],
    },
    {
        label: "是否采集指纹",
        prop: "isFingerprint",
        type: "select",
        search: true,
        searchLabelWidth: 110,
        minWidth: 105,
        searchSpan: 4,
        addDisplay: false,
        editDisplay: false,
        hide: true,
        display: false,
        dicData: [{
                label: "全部",
                value: 3,
            },
            {
                label: "是",
                value: 1,
            },
            {
                label: "否",
                value: 2,
            },
        ],
    },
    // {
    //   label: "有无照片",
    //   prop: "isAvatar",
    //   type: "select",
    //   search: true,
    //   minWidth: 105,
    //   searchSpan: 3,
    //   addDisplay: false,
    //   editDisplay: false,
    //   hide: true,
    //   display: false,
    //   dicData: [{
    //       label: "全部",
    //       value: 3
    //     },
    //     {
    //       label: "有",
    //       value: 1
    //     },
    //     {
    //       label: "无",
    //       value: 2
    //     }
    //   ]
    // },
    // {
    //   label: "是否采集指纹",
    //   prop: "isFingerprint",
    //   type: "select",
    //   search: true,
    //   searchLabelWidth: 110,
    //   minWidth: 105,
    //   searchSpan: 4,
    //   addDisplay: false,
    //   editDisplay: false,
    //   hide: true,
    //   display: false,
    //   dicData: [{
    //       label: "全部",
    //       value: 3
    //     },
    //     {
    //       label: "是",
    //       value: 1
    //     },
    //     {
    //       label: "否",
    //       value: 2
    //     }
    //   ]
    // },
    {
        label: "在职状态",
        prop: "status",
@@ -783,27 +817,28 @@
            trigger: "blur"
        }]
    },
    {
        label: "审查状态",
        prop: "examinationType",
        type: "select",
        display: false,
        searchSpan: 3,
        search: false,
        hide: true,
        width: 80,
        dicData: [{
                label: "全部",
                value: 6,
            },
            {
                label: "正常",
                value: "0",
            },
            {
                label: "异常",
                value: "1",
            }
        ],
    },
]
    // {
    //   label: "审查状态",
    //   prop: "examinationType",
    //   type: "select",
    //   sortable: true,
    //   display: false,
    //   searchSpan: 3,
    //   search: true,
    //   hide: true,
    //   width: 110,
    //   dicData: [{
    //       label: "全部",
    //       value: 6
    //     },
    //     {
    //       label: "正常",
    //       value: "0"
    //     },
    //     {
    //       label: "异常",
    //       value: "1"
    //     }
    //   ]
    // }
];