Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
A
attendance-performance-platform
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
赵啸非
attendance-performance-platform
Commits
28511dae
Commit
28511dae
authored
Dec 03, 2023
by
姬鋆屾
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
tui
parent
f6c4dafd
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
233 additions
and
144 deletions
+233
-144
attendance-performance-manager-ui/admin/src/views/staff/leave/drawershow.vue
...nce-manager-ui/admin/src/views/staff/leave/drawershow.vue
+233
-144
No files found.
attendance-performance-manager-ui/admin/src/views/staff/leave/drawershow.vue
View file @
28511dae
...
@@ -4,44 +4,139 @@
...
@@ -4,44 +4,139 @@
:title=
"title"
:title=
"title"
:visible.sync=
"open"
:visible.sync=
"open"
:direction=
"direction"
:direction=
"direction"
size=
"50%"
>
size=
"50%"
>
<el-form
ref=
"form"
:model=
"form"
:rules=
"rules"
label-width=
"120px"
>
<el-form
ref=
"form"
:model=
"form"
:rules=
"rules"
label-width=
"120px"
>
<el-row>
<el-row>
<Field
label=
"员工姓名"
prop=
"staffName"
v-model=
"form.staffName"
placeholder=
"请输入员工姓名"
/>
<Field
<Field
label=
"性别"
prop=
"gender"
v-model=
"form.gender"
type=
"select"
:enumData=
"dict.gender"
placeholder=
"请选择性别"
/>
label=
"员工姓名"
<Field
label=
"出生日期"
prop=
"birthday"
v-model=
"form.birthday"
type=
"date"
/>
prop=
"staffName"
<Field
label=
"照片"
prop=
"photoPath"
v-model=
"form.photoPath"
type=
"textarea"
placeholder=
"请输入照片"
/>
v-model=
"form.staffName"
<Field
label=
"联系电话"
prop=
"phoneNumber"
v-model=
"form.phoneNumber"
placeholder=
"请输入联系电话"
/>
placeholder=
"请输入员工姓名"
<Field
label=
"身份证号码"
prop=
"idCard"
v-model=
"form.idCard"
placeholder=
"请输入身份证号码"
/>
/>
<Field
label=
"工号"
prop=
"workNum"
v-model=
"form.workNum"
placeholder=
"请输入工号"
/>
<Field
<Field
label=
"政治面貌 "
prop=
"politicalstatus"
v-model=
"form.politicalstatus"
type=
"select"
:enumData=
"dict.politicalstatus"
placeholder=
"请选择政治面貌 "
/>
label=
"性别"
<Field
label=
"所属部门"
prop=
"deptId"
v-model=
"form.deptId"
:enumData=
"dict.deptId"
placeholder=
"请输入所属部门"
/>
prop=
"gender"
<Field
label=
"职位ID"
prop=
"jobId"
v-model=
"form.jobId"
:enumData=
"dict.jobId"
placeholder=
"请输入职位ID"
/>
v-model=
"form.gender"
<Field
label=
"员工类型"
prop=
"staffType"
v-model=
"form.staffType"
type=
"select"
:enumData=
"dict.staffType"
placeholder=
"请选择员工类型"
/>
type=
"select"
<Field
label=
"员工状态"
prop=
"status"
v-model=
"form.status"
type=
"select"
:enumData=
"dict.status"
placeholder=
"请选择员工状态"
/>
:enumData=
"dict.gender"
<Field
label=
"入职时间"
prop=
"entryDate"
v-model=
"form.entryDate"
type=
"date"
/>
placeholder=
"请选择性别"
<Field
label=
"离职时间"
prop=
"leaveDate"
v-model=
"form.leaveDate"
type=
"date"
/>
/>
<Field
label=
"离职原因"
prop=
"leaveReason"
v-model=
"form.leaveReason"
type=
"textarea"
placeholder=
"请输入离职原因"
/>
<Field
<Field
label=
"审核状态"
prop=
"auditStatus"
v-model=
"form.auditStatus"
type=
"select"
:enumData=
"dict.auditStatus"
placeholder=
"请选择审核状态"
/>
label=
"出生日期"
prop=
"birthday"
v-model=
"form.birthday"
type=
"date"
/>
<Field
label=
"照片"
prop=
"photoPath"
v-model=
"form.photoPath"
type=
"textarea"
placeholder=
"请输入照片"
/>
<Field
label=
"联系电话"
prop=
"phoneNumber"
v-model=
"form.phoneNumber"
placeholder=
"请输入联系电话"
/>
<Field
label=
"身份证号码"
prop=
"idCard"
v-model=
"form.idCard"
placeholder=
"请输入身份证号码"
/>
<Field
label=
"工号"
prop=
"workNum"
v-model=
"form.workNum"
placeholder=
"请输入工号"
/>
<Field
label=
"政治面貌 "
prop=
"politicalstatus"
v-model=
"form.politicalstatus"
type=
"select"
:enumData=
"dict.politicalstatus"
placeholder=
"请选择政治面貌 "
/>
<Field
label=
"所属部门"
prop=
"deptId"
v-model=
"form.deptId"
:enumData=
"dict.deptId"
placeholder=
"请输入所属部门"
/>
<Field
label=
"职位ID"
prop=
"jobId"
v-model=
"form.jobId"
:enumData=
"dict.jobId"
placeholder=
"请输入职位ID"
/>
<Field
label=
"员工类型"
prop=
"staffType"
v-model=
"form.staffType"
type=
"select"
:enumData=
"dict.staffType"
placeholder=
"请选择员工类型"
/>
<Field
label=
"员工状态"
prop=
"status"
v-model=
"form.status"
type=
"select"
:enumData=
"dict.status"
placeholder=
"请选择员工状态"
/>
<Field
label=
"入职时间"
prop=
"entryDate"
v-model=
"form.entryDate"
type=
"date"
/>
<Field
label=
"离职时间"
prop=
"leaveDate"
v-model=
"form.leaveDate"
type=
"date"
/>
<Field
label=
"离职原因"
prop=
"leaveReason"
v-model=
"form.leaveReason"
type=
"textarea"
placeholder=
"请输入离职原因"
/>
<Field
label=
"审核状态"
prop=
"auditStatus"
v-model=
"form.auditStatus"
type=
"select"
:enumData=
"dict.auditStatus"
placeholder=
"请选择审核状态"
/>
</el-row>
</el-row>
<form-buttons
@
submit=
'submitForm'
noCancelBtn
/>
<form-buttons
@
submit=
"submitForm"
noCancelBtn
v-if=
"(title == '修改员工离职信息')"
/>
</el-form>
</el-form>
</el-drawer>
</el-drawer>
</
template
>
</
template
>
<
script
>
<
script
>
import
form
from
"
@/assets/mixins/formdialog
"
;
import
form
from
"
@/assets/mixins/formdialog
"
;
export
default
{
export
default
{
name
:
"
StaffLeaveDetail
"
,
name
:
"
StaffLeaveDetail
"
,
mixins
:
[
form
],
mixins
:
[
form
],
components
:
{
components
:
{},
},
created
()
{
created
()
{
this
.
changePath
(
"
staff/leave
"
)
this
.
changePath
(
"
staff/leave
"
);
},
},
data
()
{
data
()
{
return
{
return
{
...
@@ -51,57 +146,51 @@
...
@@ -51,57 +146,51 @@
title
:
"
员工离职信息
"
,
title
:
"
员工离职信息
"
,
// 是否显示弹出层
// 是否显示弹出层
open
:
false
,
open
:
false
,
direction
:
"
rtl
"
,
direction
:
"
rtl
"
,
toString
:
[
toString
:
[
"
gender
"
,
"
gender
"
,
"
politicalstatus
"
,
"
politicalstatus
"
,
"
staffType
"
,
"
staffType
"
,
"
status
"
,
"
status
"
,
"
auditStatus
"
,
"
auditStatus
"
,
],
],
toDate
:[
toDate
:
[
"
birthday
"
,
"
entryDate
"
,
"
leaveDate
"
],
"
birthday
"
,
"
entryDate
"
,
"
leaveDate
"
,
],
// 表单校验
// 表单校验
rules
:
{
rules
:
{
staffName
:
[
staffName
:
[
{
required
:
true
,
message
:
"
请输入员工姓名
"
,
trigger
:
"
blur
"
},
{
required
:
true
,
message
:
"
请输入员工姓名
"
,
trigger
:
"
blur
"
},
{
max
:
64
,
message
:
"
最多只能录入64个字符
"
,
trigger
:
"
blur
"
,
},
{
max
:
64
,
message
:
"
最多只能录入64个字符
"
,
trigger
:
"
blur
"
},
],
],
createTime
:
[
createTime
:
[{
required
:
true
,
message
:
"
请选择创建时间
"
}],
{
required
:
true
,
message
:
"
请选择创建时间
"
},
},
],
}
};
};
},
},
methods
:
{
methods
:
{
/** 编辑 */
/** 编辑 */
edit
(
row
)
{
edit
(
row
)
{
this
.
reset
()
this
.
reset
();
this
.
query
=
{
id
:
row
.
id
};
this
.
query
=
{
id
:
row
.
id
};
this
.
urls
.
currUrl
=
"
staff/leave/edit
"
;
this
.
urls
.
currUrl
=
"
staff/leave/edit
"
;
this
.
getData
();
this
.
getData
();
this
.
pageInfo
.
type
=
"
edit
"
this
.
pageInfo
.
type
=
"
edit
"
;
this
.
title
=
"
修改员工离职信息
"
;
this
.
title
=
"
修改员工离职信息
"
;
},
},
/** 新增 */
/** 新增 */
add
(
row
)
{
add
(
row
)
{
this
.
reset
()
this
.
reset
();
this
.
urls
.
currUrl
=
"
staff/leave/add
"
;
this
.
urls
.
currUrl
=
"
staff/leave/add
"
;
this
.
getData
();
this
.
getData
();
this
.
pageInfo
.
type
=
"
add
"
this
.
pageInfo
.
type
=
"
add
"
;
this
.
title
=
"
新增员工离职信息
"
;
this
.
title
=
"
新增员工离职信息
"
;
},
},
/** 查看*/
/** 查看*/
view
(
row
)
{
view
(
row
)
{
this
.
reset
()
this
.
reset
();
this
.
query
=
{
id
:
row
.
id
};
this
.
query
=
{
id
:
row
.
id
};
this
.
urls
.
currUrl
=
"
staff/leave/view
"
;
this
.
urls
.
currUrl
=
"
staff/leave/view
"
;
this
.
getData
();
this
.
getData
();
this
.
pageInfo
.
type
=
"
view
"
this
.
pageInfo
.
type
=
"
view
"
;
this
.
title
=
"
员工离职信息详细
"
;
this
.
title
=
"
员工离职信息详细
"
;
},
},
/**取消按钮 */
/**取消按钮 */
...
@@ -121,25 +210,25 @@
...
@@ -121,25 +210,25 @@
// 表单重置
// 表单重置
reset
()
{
reset
()
{
this
.
form
=
{
this
.
form
=
{
staffId
:
null
,
staffId
:
null
,
staffName
:
""
,
staffName
:
""
,
gender
:
1
,
gender
:
1
,
birthday
:
null
,
birthday
:
null
,
photoPath
:
""
,
photoPath
:
""
,
phoneNumber
:
""
,
phoneNumber
:
""
,
idCard
:
""
,
idCard
:
""
,
workNum
:
""
,
workNum
:
""
,
politicalstatus
:
1
,
politicalstatus
:
1
,
deptId
:
null
,
deptId
:
null
,
deptName
:
""
,
deptName
:
""
,
jobId
:
null
,
jobId
:
null
,
jobName
:
""
,
jobName
:
""
,
staffType
:
1
,
staffType
:
1
,
status
:
1
,
status
:
1
,
entryDate
:
null
,
entryDate
:
null
,
leaveDate
:
null
,
leaveDate
:
null
,
leaveReason
:
""
,
leaveReason
:
""
,
auditStatus
:
0
,
auditStatus
:
0
,
};
};
this
.
resetForm
(
"
form
"
);
this
.
resetForm
(
"
form
"
);
},
},
...
@@ -149,5 +238,5 @@
...
@@ -149,5 +238,5 @@
}
}
},
},
},
},
};
};
</
script
>
</
script
>
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment