diff --git a/src/router/index.js b/src/router/index.js index 7405015..975f516 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -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 + } ] }, ] diff --git a/src/views/OuterAppDetail.vue b/src/views/OuterAppDetail.vue new file mode 100644 index 0000000..9eeb4ce --- /dev/null +++ b/src/views/OuterAppDetail.vue @@ -0,0 +1,13 @@ + + + + + \ No newline at end of file diff --git a/src/views/OuterAppForm.vue b/src/views/OuterAppForm.vue index e69de29..78329c6 100644 --- a/src/views/OuterAppForm.vue +++ b/src/views/OuterAppForm.vue @@ -0,0 +1,45 @@ + + + + + \ No newline at end of file diff --git a/src/views/OuterHistory.vue b/src/views/OuterHistory.vue index 4b06cf1..26d9e01 100644 --- a/src/views/OuterHistory.vue +++ b/src/views/OuterHistory.vue @@ -41,8 +41,8 @@ width="200"> @@ -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