From 7434e5ccf889189d24e7f4e655fbf752a0883d5b Mon Sep 17 00:00:00 2001
From: Administrator <admin>
Date: Thu, 16 Dec 2021 19:23:58 +0800
Subject: [PATCH] 保安员查询修改
---
src/views/securityGuard/data.js | 199 ++++++++++++++++++++++++++++++-------------------
1 files changed, 122 insertions(+), 77 deletions(-)
diff --git a/src/views/securityGuard/data.js b/src/views/securityGuard/data.js
index 1310066..9557d2a 100644
--- a/src/views/securityGuard/data.js
+++ b/src/views/securityGuard/data.js
@@ -10,7 +10,7 @@
}
},
{
- label: "所属保安公司",
+ label: "企业名称",
prop: "deptId",
type: "tree",
dicUrl: "/api/blade-system/dept/security_lazy-tree?parentId=1413470343230877697",
@@ -320,9 +320,14 @@
editDisplay: false,
addDisplay: false
}, {
- label: '单位名称',
+ label: '企业名称',
prop: "companyname",
formslot: true,
+ rules: [{
+ required: true,
+ message: "请选择企业名称",
+ trigger: "blur"
+ }]
}, {
label: '部门',
prop: "department",
@@ -342,6 +347,11 @@
valueFormat: "yyyy-MM-dd",
prop: "entrytime",
formslot: true,
+ rules: [{
+ required: true,
+ message: "请选择入职时间",
+ trigger: "blur"
+ }]
}, {
label: '离职时间',
type: 'date',
@@ -349,6 +359,11 @@
valueFormat: "yyyy-MM-dd",
prop: "departuretime",
formslot: true,
+ rules: [{
+ required: true,
+ message: "请选择离职时间",
+ trigger: "blur"
+ }]
}, {
label: '离职原因',
prop: "leaving",
@@ -357,7 +372,7 @@
export var practitionersColumns = [{
width: 200,
- label: '单位名称',
+ label: '企业名称',
prop: "companyname",
formslot: true,
}, {
@@ -473,28 +488,13 @@
searchLabelWidth: 50,
display: false
},
- // {
- // label: "温馨提示",
- // prop: "realName1",
- // hide: true,
- // addDisplay: true,
- // editDisplay: false,
- // span: 24,
- // value: "账号为身份证号码,密码为身份证后六位",
-
- // addDisabled: true
- // // search: true,
- // // searchSpan: 3,
- // // width: 60,
- // // searchLabelWidth: 50,
- // },
{
- label: "所属保安公司",
- searchLabelWidth: "110",
+ label: "企业名称",
+ searchLabelWidth: "80",
// prop: "deptName",
prop: "deptId",
type: "tree",
- dicUrl: "/api/blade-system/dept/security_lazy-tree?parentId=1413470343230877697",
+ // dicUrl: "/api/blade-system/dept/security_lazy-tree?parentId=1413470343230877697",
props: {
label: "title",
value: "id",
@@ -506,25 +506,9 @@
search: true,
minWidth: 260
},
- // {
- // label: "所属保安公司",
- // searchLabelWidth: "110",
- // prop: "deptName",
- // // type: "tree",
- // // dicUrl: "/api/blade-system/dept/security_lazy-tree?parentId=1413470343230877697",
- // // props: {
- // // label: "title",
- // // value: "id",
- // // },
- // // slot: true,
- // // searchSpan: 5,
- // display: false,
- // // search: true,
- // minWidth: 260
- // },
{
label: "性别",
- prop: "sex",
+ prop: "sexs",
width: 80,
type: "select",
dicData: [{
@@ -547,11 +531,16 @@
prop: "cardid",
search: true,
searchLabelWidth: 90,
- searchSpan: 4,
- minWidth: 140,
+ searchSpan: 5,
+ minWidth: 150,
display: false
},
-
+ {
+ label: "照片",
+ prop: "avatar",
+ type: "upload",
+ listType: "picture-img",
+ },
{
label: "籍贯",
prop: "nativeplace",
@@ -579,6 +568,7 @@
label: "年龄",
prop: "age",
width: 55,
+ sortable: true,
display: false
},
{
@@ -616,8 +606,8 @@
prop: "securitynumber",
search: true,
searchLabelWidth: 90,
- minWidth: 105,
- searchSpan: 3,
+ minWidth: 115,
+ searchSpan: 5,
addDisplay: false,
editDisplay: false,
// hide: true,
@@ -628,35 +618,27 @@
hide: true,
display: false
},
- // {
- // label: "是否派遣",
- // prop: "dispatch",
- // // hide: true,
- // type: 'select',
- // // display: false,
- // dicData: [
- // {
- // label: '未派遣',
- // value: 1
- // }, {
- // label: '已派遣',
- // value: 0
- // }
- // ]
- // },
{
label: '是否派遣',
prop: 'dispatch',
type: 'select',
editDisplay: false,
+ search: true,
+ searchSpan: 3,
addDisplay: false,
dicData: [{
- label: '未派遣',
- value: '1'
- }, {
- label: '已派遣',
- value: '0'
- }]
+ label: '全部',
+ value: '2'
+ },
+ {
+ label: '已派遣',
+ value: '0'
+ },
+ {
+ label: '未派遣',
+ value: '1'
+ }
+ ]
},
{
label: "是否持证",
@@ -680,12 +662,6 @@
},
],
display: false,
- // dicUrl: "/api/blade-system/dict-biz/dictionary?code=equipage",
- // props: {
- // label: "dictValue",
- // value: "dictKey"
- // },
- // type: "select",
rules: [{
required: true,
message: "请选择",
@@ -696,11 +672,6 @@
{
label: "是否制证",
prop: "userType",
- // dicUrl: "/api/blade-system/dict-biz/dictionary?code=equipage",
- // props: {
- // label: "dictValue",
- // value: "dictKey",
- // },
type: "select",
slot: true,
search: true,
@@ -740,6 +711,57 @@
// // }]
// },
{
+ 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",
@@ -761,4 +783,27 @@
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",
+ }
+ ],
+ },
+]
\ No newline at end of file
--
Gitblit v1.9.3