From 8c6cf205affbbc8ada74f00a7ca25ebca867e9ed Mon Sep 17 00:00:00 2001
From: liuyg <376836862@qq.com>
Date: Mon, 27 Sep 2021 11:44:44 +0800
Subject: [PATCH] 图表颜色
---
src/views/people/data.js | 240 +++++++++++++++++++++++++++++++++++++++++------------------
1 files changed, 165 insertions(+), 75 deletions(-)
diff --git a/src/views/people/data.js b/src/views/people/data.js
index be42d52..eb76ef3 100644
--- a/src/views/people/data.js
+++ b/src/views/people/data.js
@@ -11,14 +11,7 @@
},
{
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",
- },
+ prop: "deptName",
disabled: true,
span: 24,
},
@@ -30,37 +23,37 @@
{
label: "用户姓名",
prop: "realName",
- disabled: true,
+ disabled: false,
},
{
label: "用户昵称",
prop: "name",
- disabled: true
+ disabled: false
},
{
label: "手机号码",
prop: "phone",
- disabled: true
+ disabled: false
},
{
label: "电子邮箱",
prop: "email",
- disabled: true
+ disabled: false
},
{
label: "身份证号",
prop: "cardid",
- disabled: true
+ disabled: false
},
{
label: "籍贯",
prop: "nativeplace",
- disabled: true
+ disabled: false
},
{
label: "民族",
prop: "nation",
- disabled: true
+ disabled: false
},
{
label: "是否持证",
@@ -83,12 +76,12 @@
prop: "jurisdiction",
// multiple: true,
type: "tree",
- dicUrl: "/api/jurisdiction/lazy-tree?parentId=0",
+ dicUrl: "/api/jurisdiction/lazy-tree",
props: {
label: "title",
value: "id",
},
- disabled: true
+ disabled: false
},
{
label: "最高学历",
@@ -101,27 +94,27 @@
},
dataType: "number",
slot: true,
- disabled: true
+ disabled: false
},
{
label: "政治面貌",
prop: "politicaloutlook",
- disabled: true
+ disabled: false
},
{
label: "身高",
prop: "height",
- disabled: true
+ disabled: false
},
{
label: "联系地址",
prop: "address",
- disabled: true
+ disabled: false
},
{
label: "户口所在地",
prop: "registered",
- disabled: true
+ disabled: false
},
{
label: "入职时间",
@@ -129,7 +122,7 @@
type: 'date',
format: "yyyy-MM-dd",
valueFormat: "yyyy-MM-dd",
- disabled: true
+ disabled: false
},
{
label: "用户性别",
@@ -148,14 +141,14 @@
value: 3
}
],
- disabled: true
+ disabled: false
},
-{
- label: "用户生日",
- type: "date",
- prop: "birthday",
- disabled: true
-}
+ // {
+ // label: "用户生日",
+ // type: "date",
+ // prop: "birthday",
+ // disabled: true
+ // }
]
@@ -340,14 +333,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,6 +391,8 @@
formslot: true,
}]
+
+//表现
export var trackRecordColumn = [{
label: "id",
prop: "id",
@@ -405,22 +400,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: [{
@@ -428,30 +449,45 @@
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 = [{
label: "姓名",
prop: "realName",
search: true,
- searchSpan: 4,
+ searchSpan: 3,
+ width: 60,
+ searchLabelWidth: 50,
display: false
+},
+{
+ label: "所属保安公司",
+ searchLabelWidth: "110",
+ // prop: "deptName",
+ prop: "deptId",
+ 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",
+ width: 55,
type: "select",
dicData: [{
label: "男",
@@ -468,36 +504,57 @@
],
display: false
},
+{
+ label: "身份证号码",
+ prop: "cardid",
+ search: true,
+ searchLabelWidth: 90,
+ searchSpan: 5,
+ minWidth: 140,
+ 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,
+ // hide: true,
rules: [{
required: true,
message: "请选择学历",
@@ -507,40 +564,69 @@
{
label: "联系电话",
prop: "phone",
+ minWidth: 100,
display: false
},
{
- label: "邮箱",
- prop: "email",
- display: false,
- width: 150
+ label: "健康状态",
+ prop: "healstats",
+ hide: true,
+ display: false
+},
+{
+ label: "保安证编号",
+ prop: "securitynumber",
+ search: true,
+ searchLabelWidth: 90,
+ minWidth: 105,
+ searchSpan: 4,
+ addDisplay: false,
+ editDisplay: false,
+ // hide: true,
},
{
label: "入职时间",
prop: "rtime",
+ hide: true,
display: false
},
+// {
+// label: "是否派遣",
+// prop: "dispatch",
+// // hide: true,
+// type: 'select',
+// // display: false,
+// dicData: [
+// {
+// label: '未派遣',
+// value: 1
+// }, {
+// label: '已派遣',
+// value: 0
+// }
+// ]
+// },
{
- label: "保安公司名称",
- searchLabelWidth: "110",
- // prop: "deptName",
- prop: "deptId",
- type: "tree",
- dicUrl: "/api/blade-system/dept/security_lazy-tree?parentId=1413470343230877697",
- props: {
- label: "title",
- value: "id",
- },
- slot: true,
- searchSpan: 6,
- display: false,
- search: true,
- width: 260
+ label: '是否派遣',
+ prop: 'dispatch',
+ type: 'select',
+ editDisplay: false,
+ addDisplay: false,
+ dicData: [{
+ label: '未派遣',
+ value: '1'
+ }, {
+ label: '已派遣',
+ value: '0'
+ }]
},
{
label: "是否持证",
prop: "hold",
slot: true,
+ search: true,
+ searchSpan: 3,
+ width: 69,
display: false,
dicUrl: "/api/blade-system/dict-biz/dictionary?code=equipage",
props: {
@@ -554,6 +640,7 @@
trigger: "blur"
}],
},
+
// {
// label: "入职时间",
// prop: "rtime",
@@ -583,8 +670,11 @@
value: "dictKey"
},
dataType: "number",
+ searchValue: 1,
display: false,
- searchSpan: 4,
+ hide: true,
+ searchSpan: 3,
+ width: 80,
search: true,
rules: [{
required: true,
--
Gitblit v1.9.3