From c4e67a8942e514b65ab41bb19781d50576c15725 Mon Sep 17 00:00:00 2001
From: liuyg <376836862@qq.com>
Date: Fri, 24 Sep 2021 19:56:52 +0800
Subject: [PATCH] 用户
---
src/views/securityGuard/data.js | 109 ++++++++++++++++++++++++++++++++++++------------------
1 files changed, 73 insertions(+), 36 deletions(-)
diff --git a/src/views/securityGuard/data.js b/src/views/securityGuard/data.js
index e5c2191..6c979e5 100644
--- a/src/views/securityGuard/data.js
+++ b/src/views/securityGuard/data.js
@@ -83,7 +83,7 @@
prop: "jurisdiction",
// multiple: true,
type: "tree",
- dicUrl: "/api/jurisdiction/lazy-tree?parentId=0",
+ dicUrl: "/api/jurisdiction/lazy-tree",
props: {
label: "title",
value: "id",
@@ -340,14 +340,14 @@
type: 'date',
format: "yyyy-MM-dd",
valueFormat: "yyyy-MM-dd",
- prop: "entryTime",
+ prop: "entrytime",
formslot: true,
}, {
label: '离职时间',
type: 'date',
format: "yyyy-MM-dd",
valueFormat: "yyyy-MM-dd",
- prop: "departureTime",
+ prop: "departuretime",
formslot: true,
}, {
label: '离职原因',
@@ -398,7 +398,6 @@
formslot: true,
}]
-
//表现
export var trackRecordColumn = [{
label: "id",
@@ -407,22 +406,48 @@
editDisplay: false,
addDisplay: false
}, {
- label: '工作态度',
- prop: "workingattitude",
+ label: '时间',
+ type: 'date',
+ format: "yyyy-MM-dd",
+ valueFormat: "yyyy-MM-dd",
+ prop: "time",
formslot: true,
-}, {
- label: '工作成效',
+},
+// {
+// label: '工作态度',
+// prop: "workingattitude",
+// formslot: true,
+// },
+{
+ label: '工作表现',
prop: "achievements",
formslot: true,
}, {
- label: '表现',
+ label: '表现评定',
prop: "score",
type: "select",
- dicUrl: "/api/blade-system/dict-biz/dictionary?code=scoreType",
- props: {
- label: "dictValue",
- value: "dictKey"
+ // 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: [{
@@ -430,18 +455,13 @@
message: "请选择表现",
trigger: "blur"
}]
-}, {
- label: '时间',
- type: 'date',
- format: "yyyy-MM-dd",
- valueFormat: "yyyy-MM-dd",
- prop: "time",
- formslot: true,
-}, {
- label: '服务公司',
- prop: "departmentName",
- formslot: true,
-}]
+}
+ // {
+ // label: '服务公司',
+ // prop: "departmentName",
+ // formslot: true,
+ // }
+]
export var securityFormPageColumn = [{
@@ -464,12 +484,29 @@
label: "title",
value: "id",
},
+ // hide: true,
slot: true,
searchSpan: 5,
display: false,
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",
@@ -495,9 +532,8 @@
prop: "cardid",
search: true,
searchLabelWidth: 90,
- searchSpan: 4,
+ searchSpan: 5,
minWidth: 140,
-
display: false
},
@@ -597,15 +633,15 @@
label: '是否派遣',
prop: 'dispatch',
type: 'select',
- dicData: [
- {
- label: '未派遣',
- value: '1'
- }, {
- label: '已派遣',
- value: '0'
- }
- ]
+ editDisplay: false,
+ addDisplay: false,
+ dicData: [{
+ label: '未派遣',
+ value: '1'
+ }, {
+ label: '已派遣',
+ value: '0'
+ }]
},
{
label: "是否持证",
@@ -657,6 +693,7 @@
value: "dictKey"
},
dataType: "number",
+ searchValue: 1,
display: false,
hide: true,
searchSpan: 3,
--
Gitblit v1.9.3