| | |
| | | }) |
| | | } |
| | | |
| | | export const securitySaves = (row) => { |
| | | return request({ |
| | | url: '/api/blade-user/securitySaves', |
| | | method: 'post', |
| | | data: row |
| | | }) |
| | | } |
| | | |
| | | export const update = (row) => { |
| | | return request({ |
| | | url: '/api/blade-user/update', |
| | |
| | | //保安员基本信息 |
| | | export var securityBaseInfoColumn = [{ |
| | | label: "", |
| | | labelWidth: "20", |
| | | type: "title", |
| | | prop: "title", |
| | | span: 24, |
| | | styles: { |
| | | fontSize: "24px" |
| | | label: "", |
| | | labelWidth: "20", |
| | | type: "title", |
| | | prop: "title", |
| | | span: 24, |
| | | styles: { |
| | | fontSize: "24px" |
| | | } |
| | | }, |
| | | { |
| | | label: "企业名称", |
| | | prop: "deptId", |
| | | type: "tree", |
| | | dicUrl: "/api/blade-system/dept/security_lazy-tree?parentId=1413470343230877697", |
| | | // dicUrl: "/api/blade-system/dept/lazy-tree?parentId=0", |
| | | props: { |
| | | label: "title", |
| | | value: "id" |
| | | }, |
| | | disabled: true, |
| | | span: 24 |
| | | }, |
| | | { |
| | | label: "登录账号", |
| | | prop: "account", |
| | | disabled: true |
| | | }, |
| | | { |
| | | label: "用户姓名", |
| | | prop: "realName", |
| | | disabled: true |
| | | }, |
| | | { |
| | | label: "用户昵称", |
| | | prop: "name", |
| | | disabled: true |
| | | }, |
| | | { |
| | | label: "手机号码", |
| | | prop: "phone", |
| | | disabled: true |
| | | }, |
| | | { |
| | | label: "电子邮箱", |
| | | prop: "email", |
| | | disabled: true |
| | | }, |
| | | { |
| | | label: "身份证号", |
| | | prop: "cardid", |
| | | disabled: true |
| | | }, |
| | | { |
| | | label: "籍贯", |
| | | prop: "nativeplace", |
| | | disabled: true |
| | | }, |
| | | { |
| | | 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", |
| | | props: { |
| | | label: "title", |
| | | value: "id" |
| | | }, |
| | | disabled: true |
| | | }, |
| | | { |
| | | label: "最高学历", |
| | | prop: "education", |
| | | type: "select", |
| | | dicUrl: "/api/blade-system/dict-biz/dictionary?code=educationType", |
| | | props: { |
| | | label: "dictValue", |
| | | value: "dictKey" |
| | | }, |
| | | dataType: "number", |
| | | slot: true, |
| | | disabled: true |
| | | }, |
| | | { |
| | | label: "政治面貌", |
| | | prop: "politicaloutlook", |
| | | disabled: true |
| | | }, |
| | | { |
| | | label: "身高", |
| | | prop: "height", |
| | | disabled: true |
| | | }, |
| | | { |
| | | label: "联系地址", |
| | | prop: "address", |
| | | disabled: true |
| | | }, |
| | | { |
| | | label: "户口所在地", |
| | | prop: "registered", |
| | | disabled: true |
| | | }, |
| | | { |
| | | label: "入职时间", |
| | | prop: "rtime", |
| | | type: "date", |
| | | format: "yyyy-MM-dd", |
| | | valueFormat: "yyyy-MM-dd", |
| | | disabled: true |
| | | }, |
| | | { |
| | | label: "用户性别", |
| | | prop: "sex", |
| | | type: "select", |
| | | dicData: [{ |
| | | label: "男", |
| | | value: 1 |
| | | }, |
| | | { |
| | | label: "女", |
| | | value: 2 |
| | | }, |
| | | { |
| | | label: "未知", |
| | | value: 3 |
| | | } |
| | | ], |
| | | disabled: true |
| | | }, |
| | | { |
| | | label: "用户生日", |
| | | type: "date", |
| | | prop: "birthday", |
| | | disabled: true |
| | | } |
| | | }, |
| | | { |
| | | label: "企业名称", |
| | | prop: "deptId", |
| | | type: "tree", |
| | | dicUrl: "/api/blade-system/dept/security_lazy-tree?parentId=1413470343230877697", |
| | | // dicUrl: "/api/blade-system/dept/lazy-tree?parentId=0", |
| | | props: { |
| | | label: "title", |
| | | value: "id" |
| | | }, |
| | | disabled: true, |
| | | span: 24 |
| | | }, |
| | | { |
| | | label: "登录账号", |
| | | prop: "account", |
| | | disabled: true |
| | | }, |
| | | { |
| | | label: "用户姓名", |
| | | prop: "realName", |
| | | disabled: true |
| | | }, |
| | | { |
| | | label: "用户昵称", |
| | | prop: "name", |
| | | disabled: true |
| | | }, |
| | | { |
| | | label: "手机号码", |
| | | prop: "phone", |
| | | disabled: true |
| | | }, |
| | | { |
| | | label: "电子邮箱", |
| | | prop: "email", |
| | | disabled: true |
| | | }, |
| | | { |
| | | label: "身份证号", |
| | | prop: "cardid", |
| | | disabled: true |
| | | }, |
| | | { |
| | | label: "籍贯", |
| | | prop: "nativeplace", |
| | | disabled: true |
| | | }, |
| | | { |
| | | 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", |
| | | props: { |
| | | label: "title", |
| | | value: "id" |
| | | }, |
| | | disabled: true |
| | | }, |
| | | { |
| | | label: "最高学历", |
| | | prop: "education", |
| | | type: "select", |
| | | dicUrl: "/api/blade-system/dict-biz/dictionary?code=educationType", |
| | | props: { |
| | | label: "dictValue", |
| | | value: "dictKey" |
| | | }, |
| | | dataType: "number", |
| | | slot: true, |
| | | disabled: true |
| | | }, |
| | | { |
| | | label: "政治面貌", |
| | | prop: "politicaloutlook", |
| | | disabled: true |
| | | }, |
| | | { |
| | | label: "身高", |
| | | prop: "height", |
| | | disabled: true |
| | | }, |
| | | { |
| | | label: "联系地址", |
| | | prop: "address", |
| | | disabled: true |
| | | }, |
| | | { |
| | | label: "户口所在地", |
| | | prop: "registered", |
| | | disabled: true |
| | | }, |
| | | { |
| | | label: "入职时间", |
| | | prop: "rtime", |
| | | type: "date", |
| | | format: "yyyy-MM-dd", |
| | | valueFormat: "yyyy-MM-dd", |
| | | disabled: true |
| | | }, |
| | | { |
| | | label: "用户性别", |
| | | prop: "sex", |
| | | type: "select", |
| | | dicData: [{ |
| | | label: "男", |
| | | value: 1 |
| | | }, |
| | | { |
| | | label: "女", |
| | | value: 2 |
| | | }, |
| | | { |
| | | label: "未知", |
| | | value: 3 |
| | | } |
| | | ], |
| | | disabled: true |
| | | }, |
| | | { |
| | | label: "用户生日", |
| | | type: "date", |
| | | prop: "birthday", |
| | | disabled: true |
| | | } |
| | | ]; |
| | | |
| | | export var securityBaseInfoColumns = [{ |
| | | label: "所属保安单位", |
| | | prop: "tenantId", |
| | | type: "tree", |
| | | dicUrl: "/api/blade-system/tenant/select", |
| | | props: { |
| | | label: "tenantName", |
| | | value: "tenantId" |
| | | label: "所属保安单位", |
| | | prop: "tenantId", |
| | | type: "tree", |
| | | dicUrl: "/api/blade-system/tenant/select", |
| | | props: { |
| | | label: "tenantName", |
| | | value: "tenantId" |
| | | }, |
| | | disabled: true, |
| | | span: 24 |
| | | }, |
| | | 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" |
| | | { |
| | | label: "登录账号", |
| | | prop: "account", |
| | | disabled: true |
| | | }, |
| | | 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 |
| | | } |
| | | { |
| | | 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", |
| | | 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 = [{ |
| | | label: "id", |
| | | prop: "id", |
| | | hide: true, |
| | | editDisplay: false, |
| | | addDisplay: false |
| | | }, |
| | | { |
| | | label: "时间", |
| | | type: "date", |
| | | format: "yyyy-MM-dd", |
| | | valueFormat: "yyyy-MM-dd", |
| | | prop: "time", |
| | | formslot: true |
| | | }, |
| | | // { |
| | | // label: '工作态度', |
| | | // prop: "workingattitude", |
| | | // formslot: true, |
| | | // }, |
| | | { |
| | | label: "工作表现", |
| | | prop: "achievements", |
| | | formslot: true |
| | | }, |
| | | { |
| | | label: "表现评定", |
| | | prop: "score", |
| | | type: "select", |
| | | // dicUrl: "/api/blade-system/dict-biz/dictionary?code=scoreType", |
| | | // props: { |
| | | // label: "dictValue", |
| | | // value: "dictKey" |
| | | label: "id", |
| | | prop: "id", |
| | | hide: true, |
| | | editDisplay: false, |
| | | addDisplay: false |
| | | }, |
| | | { |
| | | label: "时间", |
| | | type: "date", |
| | | format: "yyyy-MM-dd", |
| | | valueFormat: "yyyy-MM-dd", |
| | | prop: "time", |
| | | formslot: true |
| | | }, |
| | | // { |
| | | // label: '工作态度', |
| | | // prop: "workingattitude", |
| | | // formslot: true, |
| | | // }, |
| | | dicData: [{ |
| | | label: "优秀", |
| | | value: 0 |
| | | }, |
| | | { |
| | | label: "良好", |
| | | value: 1 |
| | | }, |
| | | { |
| | | label: "一般", |
| | | value: 2 |
| | | }, |
| | | { |
| | | label: "差", |
| | | value: 3 |
| | | } |
| | | ], |
| | | dataType: "number", |
| | | slot: true, |
| | | rules: [{ |
| | | required: true, |
| | | message: "请选择表现", |
| | | trigger: "blur" |
| | | }] |
| | | } |
| | | // { |
| | | // label: '服务公司', |
| | | // prop: "departmentName", |
| | | // formslot: true, |
| | | // } |
| | | { |
| | | label: "工作表现", |
| | | prop: "achievements", |
| | | formslot: true |
| | | }, |
| | | { |
| | | label: "表现评定", |
| | | prop: "score", |
| | | type: "select", |
| | | // dicUrl: "/api/blade-system/dict-biz/dictionary?code=scoreType", |
| | | // props: { |
| | | // label: "dictValue", |
| | | // value: "dictKey" |
| | | // }, |
| | | dicData: [{ |
| | | label: "优秀", |
| | | value: 0 |
| | | }, |
| | | { |
| | | label: "良好", |
| | | value: 1 |
| | | }, |
| | | { |
| | | label: "一般", |
| | | value: 2 |
| | | }, |
| | | { |
| | | label: "差", |
| | | value: 3 |
| | | } |
| | | ], |
| | | dataType: "number", |
| | | slot: true, |
| | | rules: [{ |
| | | required: true, |
| | | message: "请选择表现", |
| | | trigger: "blur" |
| | | }] |
| | | } |
| | | // { |
| | | // label: '服务公司', |
| | | // prop: "departmentName", |
| | | // formslot: true, |
| | | // } |
| | | ]; |
| | | |
| | | export var securityFormPageColumn = [{ |
| | | label: "姓名", |
| | | prop: "realName", |
| | | search: true, |
| | | searchSpan: 3, |
| | | width: 65, |
| | | searchLabelWidth: 50, |
| | | display: false |
| | | }, |
| | | { |
| | | label: "企业名称", |
| | | searchLabelWidth: 75, |
| | | // prop: "deptName", |
| | | prop: "deptId", |
| | | type: "tree", |
| | | // dicUrl: "/api/blade-system/dept/security_lazy-tree?parentId=1413470343230877697", |
| | | props: { |
| | | label: "title", |
| | | value: "id" |
| | | label: "姓名", |
| | | prop: "realName", |
| | | search: true, |
| | | searchSpan: 3, |
| | | // width: 65, |
| | | searchLabelWidth: 50, |
| | | display: false |
| | | }, |
| | | // hide: true, |
| | | slot: true, |
| | | searchSpan: 5, |
| | | display: false, |
| | | search: true, |
| | | minWidth: 160 |
| | | }, |
| | | { |
| | | 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: 4, |
| | | width: 164, |
| | | 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, |
| | | |
| | | 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: 108, |
| | | display: false |
| | | }, |
| | | { |
| | | label: "健康状态", |
| | | prop: "healstats", |
| | | hide: true, |
| | | display: false |
| | | }, |
| | | { |
| | | label: "保安证编号", |
| | | prop: "securitynumber", |
| | | search: true, |
| | | searchLabelWidth: 90, |
| | | sortable: true, |
| | | width: 123, |
| | | searchSpan: 4, |
| | | addDisplay: false, |
| | | editDisplay: false |
| | | // hide: true, |
| | | }, |
| | | { |
| | | 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: 110, |
| | | type: "select", |
| | | dicData: [{ |
| | | label: "是", |
| | | value: "1" |
| | | }, |
| | | { |
| | | label: "否", |
| | | value: "2" |
| | | }, |
| | | { |
| | | label: "已吊销", |
| | | value: "3" |
| | | } |
| | | ], |
| | | display: false, |
| | | rules: [{ |
| | | required: true, |
| | | message: "请选择", |
| | | trigger: "blur" |
| | | }] |
| | | }, |
| | | |
| | | { |
| | | 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: "发证日期", |
| | | // prop: "papertime", |
| | | // type: "date", |
| | | // 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: "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", |
| | | type: "select", |
| | | dicUrl: "/api/blade-system/dict-biz/dictionary?code=workerState", |
| | | props: { |
| | | label: "dictValue", |
| | | value: "dictKey" |
| | | { |
| | | label: "企业名称", |
| | | searchLabelWidth: 75, |
| | | // prop: "deptName", |
| | | prop: "deptId", |
| | | type: "tree", |
| | | // dicUrl: "/api/blade-system/dept/security_lazy-tree?parentId=1413470343230877697", |
| | | props: { |
| | | label: "title", |
| | | value: "id" |
| | | }, |
| | | // hide: true, |
| | | slot: true, |
| | | searchSpan: 5, |
| | | display: false, |
| | | search: true, |
| | | minWidth: 160 |
| | | }, |
| | | dataType: "number", |
| | | searchValue: 1, |
| | | display: false, |
| | | hide: true, |
| | | searchSpan: 3, |
| | | width: 80, |
| | | search: true, |
| | | rules: [{ |
| | | required: true, |
| | | message: "请选择在职状态", |
| | | trigger: "blur" |
| | | }] |
| | | }, |
| | | { |
| | | 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" |
| | | } |
| | | ] |
| | | } |
| | | ]; |
| | | // { |
| | | // 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: 4, |
| | | // width: 164, |
| | | 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, |
| | | |
| | | // 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: 108, |
| | | display: false |
| | | }, |
| | | { |
| | | label: "健康状态", |
| | | prop: "healstats", |
| | | hide: true, |
| | | display: false |
| | | }, |
| | | { |
| | | label: "保安证编号", |
| | | prop: "securitynumber", |
| | | search: true, |
| | | searchLabelWidth: 90, |
| | | sortable: true, |
| | | // width: 123, |
| | | searchSpan: 4, |
| | | addDisplay: false, |
| | | editDisplay: false |
| | | // hide: true, |
| | | }, |
| | | // { |
| | | // 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: 110, |
| | | // type: "select", |
| | | // dicData: [{ |
| | | // label: "是", |
| | | // value: "1" |
| | | // }, |
| | | // { |
| | | // label: "否", |
| | | // value: "2" |
| | | // }, |
| | | // { |
| | | // label: "已吊销", |
| | | // value: "3" |
| | | // } |
| | | // ], |
| | | // display: false, |
| | | // rules: [{ |
| | | // required: true, |
| | | // message: "请选择", |
| | | // trigger: "blur" |
| | | // }] |
| | | // }, |
| | | |
| | | // { |
| | | // 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: "发证日期", |
| | | // prop: "papertime", |
| | | // type: "date", |
| | | // 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: "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", |
| | | // type: "select", |
| | | // dicUrl: "/api/blade-system/dict-biz/dictionary?code=workerState", |
| | | // props: { |
| | | // label: "dictValue", |
| | | // value: "dictKey" |
| | | // }, |
| | | // dataType: "number", |
| | | // searchValue: 1, |
| | | // display: false, |
| | | // hide: true, |
| | | // searchSpan: 3, |
| | | // width: 80, |
| | | // search: true, |
| | | // rules: [{ |
| | | // required: true, |
| | | // message: "请选择在职状态", |
| | | // trigger: "blur" |
| | | // }] |
| | | // }, |
| | | // { |
| | | // 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" |
| | | // } |
| | | // ] |
| | | // } |
| | | ]; |
| | |
| | | icon="el-icon-scissors" |
| | | :size="size" |
| | | :type="type" |
| | | v-if="permission.securityGuard_delete && row.status != 2" |
| | | v-if="permission.securityGuard_edit && row.status != 2" |
| | | @click="$refs.crud.rowEdit(row, index)" |
| | | >编辑 |
| | | </el-button> |
| | |
| | | update, |
| | | updatePlatform, |
| | | securitySave, |
| | | securitySaves, |
| | | grant, |
| | | resetPassword, |
| | | getUserPractitionersInfo, |
| | |
| | | } else { |
| | | callback(new Error("身份证错误")); |
| | | } |
| | | // console.log(oldy, oldm, oldd, year - oldy, mouth, day); |
| | | // var test = |
| | | // /^[1-9]\d{7}((0\d)|(1[0-2]))(([0|1|2]\d)|3[0-1])\d{3}$|^[1-9]\d{5}[1-9]\d{3}((0\d)|(1[0-2]))(([0|1|2]\d)|3[0-1])\d{3}([0-9]|X)$/; |
| | | // if (!test.test(value)) { |
| | | // callback(new Error("请输入正确身份证号码")); |
| | | // } else { |
| | | // // //加入校验18岁到60岁的 |
| | | // // oldy = +value.slice(6, 10); |
| | | // // oldm = +value.slice(10, 12); |
| | | // // oldd = +value.slice(12, 14); |
| | | // // ok = |
| | | // // year - oldy < 18 || year - oldy > 60 |
| | | // // ? false |
| | | // // : year - oldy == 18 |
| | | // // ? mouth < oldm |
| | | // // ? false |
| | | // // : mouth > oldm |
| | | // // ? true |
| | | // // : day < oldd |
| | | // // ? false |
| | | // // : true |
| | | // // : year - oldy == 60 |
| | | // // ? mouth < oldm |
| | | // // ? true |
| | | // // : mouth > oldm |
| | | // // ? false |
| | | // // : day <= oldd |
| | | // // ? false |
| | | // // : true |
| | | // // : true; |
| | | // // if (ok) { |
| | | // callback(); |
| | | // // } else { |
| | | // // // callback(new Error("根据国家要求,需在18岁至60岁")); |
| | | // // callback(new Error("年龄不符")); |
| | | // } |
| | | |
| | | // } |
| | | }; |
| | | const validatePassPhone = (rule, value, callback) => { |
| | | var test = /^(13[0-9]|14[0-9]|15[0-9]|17[0-9]|18[0-9]|19[0-9])\d{8}$/g; |
| | |
| | | callback(); |
| | | } |
| | | }; |
| | | // let table = document.getElementsByClassName("tablesss"); |
| | | // let heard = table[0].getElementsByClassName("avue-crud__search"); |
| | | // let usNum = |
| | | // this.windowWidth <= 1376 && this.windowHeight <= 778 ? 170 : 332; |
| | | // // that.option.height = +h - (+heard[0].clientHeight + 332); |
| | | // let optionHeight = +this.windowHeight - (+heard[0].clientHeight + +usNum); |
| | | |
| | | return { |
| | | startTimecc: null, |
| | | sort: "", |
| | |
| | | "screenHeight" |
| | | ]), |
| | | permissionList() { |
| | | console.log(this.permission, 789787); |
| | | return { |
| | | addBtn: this.vaildData(this.permission.securityGuard_add, false), |
| | | viewBtn: this.vaildData(null, false), |
| | |
| | | } |
| | | }; |
| | | |
| | | securitySave(userMap).then( |
| | | securitySaves(userMap).then( |
| | | res => { |
| | | // console.log(res.data,111111111111111111); |
| | | this.initFlag = false; |
| | |
| | | that.userInfo.jurisdiction; |
| | | |
| | | //审查状态查询开启 |
| | | var columnExaminationType = that.findObject( |
| | | that.option.column, |
| | | "examinationType" |
| | | ); |
| | | columnExaminationType.search = true; |
| | | columnExaminationType.hide = false; |
| | | // var columnExaminationType = that.findObject( |
| | | // that.option.column, |
| | | // "examinationType" |
| | | // ); |
| | | // columnExaminationType.search = true; |
| | | // columnExaminationType.hide = false; |
| | | } else { |
| | | var ColumnDeptUpdate1 = that.findObject( |
| | | that.option.group, |