liuyg
2021-08-19 0c35e05ca9c90883e5073ea35232ea100f866a8f
src/views/securityGuard/data.js
@@ -10,13 +10,14 @@
        }
    },
    {
        label: "所属保安单位",
        prop: "tenantId",
        label: "所属保安公司",
        prop: "deptId",
        type: "tree",
        dicUrl: "/api/blade-system/tenant/select",
        dicUrl: "/api/blade-system/dept/security_lazy-tree?parentId=1413470343230877697",
        // dicUrl: "/api/blade-system/dept/lazy-tree?parentId=0",
        props: {
            label: "tenantName",
            value: "tenantId"
            label: "title",
            value: "id",
        },
        disabled: true,
        span: 24,
@@ -59,6 +60,34 @@
    {
        label: "民族",
        prop: "nation",
        disabled: true
    },
    {
        label: "是否持证",
        prop: "hold",
        dicUrl: "/api/blade-system/dict-biz/dictionary?code=equipage",
        props: {
            label: "dictValue",
            value: "dictKey",
        },
        type: "select",
        disabled: true
    },
    {
        label: "保安员证编号",
        prop: "securitynumber",
        disabled: true
    },
    {
        label: "所属辖区",
        prop: "jurisdiction",
        // multiple: true,
        type: "tree",
        dicUrl: "/api/jurisdiction/lazy-tree?parentId=0",
        props: {
            label: "title",
            value: "id",
        },
        disabled: true
    },
    {
@@ -369,6 +398,8 @@
    formslot: true,
}]
//表现
export var trackRecordColumn = [{
    label: "id",
    prop: "id",
@@ -376,54 +407,68 @@
    editDisplay: false,
    addDisplay: false
}, {
    label: '单位名称',
    prop: "companyname",
    label: '工作态度',
    prop: "workingattitude",
    formslot: true,
}, {
    label: '部门',
    prop: "department",
    label: '工作成效',
    prop: "achievements",
    formslot: true,
}, {
    label: '岗位',
    prop: "post",
    formslot: true,
    label: '表现',
    prop: "score",
    type: "select",
    dicUrl: "/api/blade-system/dict-biz/dictionary?code=scoreType",
    props: {
        label: "dictValue",
        value: "dictKey"
    },
    dataType: "number",
    slot: true,
    rules: [{
        required: true,
        message: "请选择表现",
        trigger: "blur"
    }]
}, {
    label: '岗位职责',
    prop: "responsibilities",
    formslot: true,
}, {
    label: '入职时间',
    label: '时间',
    type: 'date',
    format: "yyyy-MM-dd",
    valueFormat: "yyyy-MM-dd",
    prop: "entryTime",
    prop: "time",
    formslot: true,
}, {
    label: '离职时间',
    type: 'date',
    format: "yyyy-MM-dd",
    valueFormat: "yyyy-MM-dd",
    prop: "departureTime",
    formslot: true,
}, {
    label: '离职原因',
    prop: "leaving",
    label: '服务公司',
    prop: "departmentName",
    formslot: true,
}]
export var securityFormPageColumn = [{
        label: "用户姓名",
        label: "姓名",
        prop: "realName",
        search: true,
        searchSpan: 4,
        searchLabelWidth: 50,
        display: false
    },
    {
        label: "性别",
        prop: "sex",
        type: "select",
        slot: true,
        dicData: [{
                label: "男",
                value: 1,
            },
            {
                label: "女",
                value: 2,
            },
            {
                label: "未知",
                value: 3,
            },
        ],
        display: false
    },
@@ -455,6 +500,7 @@
            value: "dictKey"
        },
        type: "select",
        hide: true,
        rules: [{
            required: true,
            message: "请选择学历",
@@ -478,27 +524,38 @@
        display: false
    },
    {
        label: "组织机构名称",
        label: "保安公司名称",
        searchLabelWidth: "110",
        // prop: "deptName",
        prop: "deptId",
        type: "tree",
        dicUrl: "/api/blade-system/dept/lazy-tree?parentId=0",
        dicUrl: "/api/blade-system/dept/security_lazy-tree?parentId=1413470343230877697",
        props: {
            label: "title",
            value: "id",
        },
        slot: true,
        searchSpan: 5,
        searchSpan: 6,
        display: false,
        search: true,
        width: 260
    },
    {
        label: "岗位",
        prop: "postName",
        label: "是否持证",
        prop: "hold",
        slot: true,
        display: false
        display: false,
        dicUrl: "/api/blade-system/dict-biz/dictionary?code=equipage",
        props: {
            label: "dictValue",
            value: "dictKey"
        },
        type: "select",
        rules: [{
            required: true,
            message: "请选择",
            trigger: "blur"
        }],
    },
    // {
    //     label: "入职时间",
@@ -530,7 +587,7 @@
        },
        dataType: "number",
        display: false,
        searchSpan: 3,
        searchSpan: 4,
        search: true,
        rules: [{
            required: true,