Commit ac9d3c71 authored by chenyishuai@singsingenglish.com's avatar chenyishuai@singsingenglish.com

Merge branch 'dev'

parents c70bf725 ad61aa1e
...@@ -60,6 +60,11 @@ ...@@ -60,6 +60,11 @@
<span @click="onSearch('staff', scope.row.staff_id)" class="cell-link">{{scope.row.staff_name}}</span> <span @click="onSearch('staff', scope.row.staff_id)" class="cell-link">{{scope.row.staff_name}}</span>
</template> </template>
</el-table-column> </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 prop="start_at" label="设备开始使用时间"></el-table-column>
<el-table-column label="设备使用结束时间"> <el-table-column label="设备使用结束时间">
<template slot-scope="scope"> <template slot-scope="scope">
...@@ -86,6 +91,7 @@ ...@@ -86,6 +91,7 @@
teacher_id: '', teacher_id: '',
staff_id: '' staff_id: ''
}, },
//reasonList: ,
teacherList: [], teacherList: [],
staffList: [], staffList: [],
tableData: [], tableData: [],
...@@ -101,6 +107,30 @@ ...@@ -101,6 +107,30 @@
this.getStaffList(); this.getStaffList();
this.getData() 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: { methods: {
getTeacherList() { getTeacherList() {
let json = { page: 1, limit: 1000 }; let json = { page: 1, limit: 1000 };
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment