parent
fd827f6563
commit
30d3b3ff65
@ -0,0 +1,114 @@
|
||||
<template>
|
||||
<div>
|
||||
<el-table
|
||||
:data="tableData"
|
||||
border
|
||||
style="width: 90%">
|
||||
<el-table-column
|
||||
fixed
|
||||
prop="id"
|
||||
label="编号"
|
||||
width="100">
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
prop="username"
|
||||
label="姓名"
|
||||
width="200">
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
prop="school_id"
|
||||
label="学号"
|
||||
width="200">
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
prop="leave_time"
|
||||
label="预计外出时间"
|
||||
width="200">
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
prop="back_time"
|
||||
label="预计返回时间"
|
||||
width="200">
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
prop="out_time"
|
||||
label="实际外出时间"
|
||||
width="200">
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
prop="return_time"
|
||||
label="实际返回时间"
|
||||
width="200">
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
prop="is_exceed"
|
||||
label="超假"
|
||||
width="200">
|
||||
</el-table-column>
|
||||
</el-table>
|
||||
|
||||
<el-pagination
|
||||
background
|
||||
layout="prev, pager, next"
|
||||
:page-size="pageSize"
|
||||
:total="total"
|
||||
@current-change="page">
|
||||
</el-pagination>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
export default {
|
||||
name: "OuterHistory",
|
||||
methods: {
|
||||
page(currentPage) {
|
||||
const _this = this
|
||||
let id = window.location.pathname.split('/')[3];
|
||||
axios.get('http://localhost:8181/leaveDetail/findByNotTypeNoID/审核中/' + (currentPage) + '/6').then(function (resp) {
|
||||
_this.tableData = resp.data
|
||||
_this.pageSize = 6
|
||||
_this.total = resp.data.length
|
||||
})
|
||||
}
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
pageSize: 6,
|
||||
total: 1,
|
||||
tableData: [{
|
||||
id: 1,
|
||||
username: '张三',
|
||||
school_id: '201902001031',
|
||||
|
||||
leave_time: '2021-12-20 16:59:15',
|
||||
back_time: '2222-12-21 17:28:59',
|
||||
out_time: '2021-12-20 18:59:15',
|
||||
return_time: '2021-12-20 22:59:15',
|
||||
is_exceed: '否'
|
||||
}]
|
||||
}
|
||||
},
|
||||
created() {
|
||||
const _this = this
|
||||
let id = window.location.pathname.split('/')[3];
|
||||
axios.get('http://localhost:8181/leaveDetail/findByNotTypeNoID/审核中/1/6').then(function (resp) {
|
||||
/*
|
||||
_this.id = resp.data.id
|
||||
_this.leave_time = resp.data.leave_time
|
||||
_this.back_time = resp.data.back_time
|
||||
_this.place = resp.data.place
|
||||
_this.reason = resp.data.reason
|
||||
_this.type = resp.data.type
|
||||
console.log(resp)
|
||||
*/
|
||||
_this.tableData = resp.data
|
||||
_this.pageSize = 6
|
||||
_this.total = resp.data.length
|
||||
})
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<style scoped>
|
||||
|
||||
</style>
|
Loading…
Reference in new issue