master
markma 4 years ago
parent 30d3b3ff65
commit 72199ff419

@ -11,6 +11,7 @@ import TeacherHistory from "../views/TeacherHistory";
import OuterUserIndex from "../views/OuterUserIndex";
import OuterHistory from "../views/OuterHistory";
import OuterAppForm from "../views/OuterAppForm";
import OuterAppDetail from "../views/OuterAppDetail";
Vue.use(VueRouter)
@ -77,6 +78,11 @@ const routes = [
name: "处理外出申请",
component: OuterAppForm
},
{
path: "/user/outer/:id/appDetail",
name: "申请详情",
component: OuterAppDetail
}
]
},
]

@ -0,0 +1,13 @@
<template>
</template>
<script>
export default {
name: "OuterAppDetail"
}
</script>
<style scoped>
</style>

@ -0,0 +1,45 @@
<template>
<el-form :model="ruleForm" :rules="rules" ref="ruleForm" label-width="100px" class="demo-ruleForm">
<el-form-item label="学生id" prop="place">
<el-input v-model="ruleForm.place"></el-input>
</el-form-item>
<el-form-item>
<el-button type="primary" @click="submitForm('ruleForm')"></el-button>
<el-button @click="resetForm('ruleForm')"></el-button>
</el-form-item>
</el-form>
</template>
<script>
export default {
name: "StudentAppForm",
data() {
return {
ruleForm: {
school_id: ''
},
rules: {
school_id: [
{required: true, message: '请输入学生id', trigger: 'blur'}
],
}
};
},
methods: {
submitForm(formName) {
const _this = this
let id = window.location.pathname.split('/')[3];
},
resetForm(formName) {
this.$refs[formName].resetFields();
}
}
}
</script>
<style scoped>
</style>

@ -41,8 +41,8 @@
width="200">
</el-table-column>
<el-table-column
prop="is_exceed"
label="超假"
prop="exceed_type"
label="超假情况"
width="200">
</el-table-column>
</el-table>
@ -64,7 +64,7 @@ export default {
page(currentPage) {
const _this = this
let id = window.location.pathname.split('/')[3];
axios.get('http://localhost:8181/leaveDetail/findByNotTypeNoID/审核中/' + (currentPage) + '/6').then(function (resp) {
axios.get('http://localhost:8181/outDetail/findAndReturnOLDs/' + (currentPage) + '/6').then(function (resp) {
_this.tableData = resp.data
_this.pageSize = 6
_this.total = resp.data.length
@ -84,14 +84,14 @@ export default {
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: '否'
exceed_type: '正常'
}]
}
},
created() {
const _this = this
let id = window.location.pathname.split('/')[3];
axios.get('http://localhost:8181/leaveDetail/findByNotTypeNoID/审核中/1/6').then(function (resp) {
axios.get('http://localhost:8181/outDetail/findAndReturnOLDs/1/6').then(function (resp) {
/*
_this.id = resp.data.id
_this.leave_time = resp.data.leave_time

Loading…
Cancel
Save