Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in
Toggle navigation
A
admin-base
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
new-sing
admin-base
Commits
ad61aa1e
Commit
ad61aa1e
authored
Aug 14, 2019
by
赵茹林
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update
parent
c0bb4e35
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
30 additions
and
0 deletions
+30
-0
staffRecord.vue
src/components/system/staffRecord.vue
+30
-0
No files found.
src/components/system/staffRecord.vue
View file @
ad61aa1e
...
...
@@ -60,6 +60,11 @@
<span
@
click=
"onSearch('staff', scope.row.staff_id)"
class=
"cell-link"
>
{{
scope
.
row
.
staff_name
}}
</span>
</
template
>
</el-table-column>
<el-table-column
label=
"移交原因"
>
<
template
slot-scope=
"scope"
>
{{
scope
.
row
.
reason
|
reasonFormat
}}
</
template
>
</el-table-column>
<el-table-column
prop=
"start_at"
label=
"设备开始使用时间"
></el-table-column>
<el-table-column
label=
"设备使用结束时间"
>
<
template
slot-scope=
"scope"
>
...
...
@@ -86,6 +91,7 @@
teacher_id
:
''
,
staff_id
:
''
},
//reasonList: ,
teacherList
:
[],
staffList
:
[],
tableData
:
[],
...
...
@@ -101,6 +107,30 @@
this
.
getStaffList
();
this
.
getData
()
},
filters
:
{
reasonFormat
(
val
)
{
var
arr
=
[{
id
:
0
,
name
:
'人员入职'
,
},{
id
:
1
,
name
:
'人员离职'
,
},{
id
:
2
,
name
:
'请假'
,
},{
id
:
3
,
name
:
'其它'
,
}];
var
res
=
''
;
arr
.
forEach
(
value
=>
{
if
(
value
.
id
==
val
)
{
res
=
value
.
name
}
})
return
res
},
},
methods
:
{
getTeacherList
()
{
let
json
=
{
page
:
1
,
limit
:
1000
};
...
...
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