From c5e544c8f4b234d2e115dceb8f515123b313763f Mon Sep 17 00:00:00 2001 From: markma <750975972@qq.com> Date: Tue, 25 Jan 2022 17:27:00 +0800 Subject: [PATCH] =?UTF-8?q?06=20debug=E5=88=86=E9=A1=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/OuterHistory.vue | 17 +++++-------- src/views/StudentAppForm.vue | 42 +++++++++++++++++++++++++++++++- src/views/StudentApplication.vue | 23 +++++++---------- src/views/StudentHistory.vue | 21 ++++++---------- src/views/TeacherApplication.vue | 8 ++++-- src/views/TeacherHistory.vue | 19 ++++++--------- 6 files changed, 77 insertions(+), 53 deletions(-) diff --git a/src/views/OuterHistory.vue b/src/views/OuterHistory.vue index 26d9e01..460cdad 100644 --- a/src/views/OuterHistory.vue +++ b/src/views/OuterHistory.vue @@ -67,7 +67,9 @@ export default { axios.get('http://localhost:8181/outDetail/findAndReturnOLDs/' + (currentPage) + '/6').then(function (resp) { _this.tableData = resp.data _this.pageSize = 6 - _this.total = resp.data.length + }) + axios.get('http://localhost:8181/outDetail/findAndReturnOLDsNum/' + (currentPage) + '/6').then(function (resp) { + _this.total = resp.data }) } }, @@ -92,18 +94,11 @@ export default { const _this = this let id = window.location.pathname.split('/')[3]; axios.get('http://localhost:8181/outDetail/findAndReturnOLDs/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 + }) + axios.get('http://localhost:8181/outDetail/findAndReturnOLDsNum/1/6').then(function (resp) { + _this.total = resp.data }) } } diff --git a/src/views/StudentAppForm.vue b/src/views/StudentAppForm.vue index 86f5931..bc0fa16 100644 --- a/src/views/StudentAppForm.vue +++ b/src/views/StudentAppForm.vue @@ -1,20 +1,25 @@