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 @@