From fd827f656353c4940aae59d33cf79f837e926709 Mon Sep 17 00:00:00 2001
From: markma <750975972@qq.com>
Date: Wed, 19 Jan 2022 16:59:33 +0800
Subject: [PATCH] =?UTF-8?q?03=20=E6=89=B9=E9=87=8F=E6=89=B9=E5=81=87?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/views/StudentApplication.vue | 1 -
src/views/TeacherApplication.vue | 38 ++++++++++++++++++++++++++++++--
src/views/TeacherHistory.vue | 1 -
3 files changed, 36 insertions(+), 4 deletions(-)
diff --git a/src/views/StudentApplication.vue b/src/views/StudentApplication.vue
index df7b4e0..d27f5b5 100644
--- a/src/views/StudentApplication.vue
+++ b/src/views/StudentApplication.vue
@@ -88,7 +88,6 @@ export default {
_this.type = resp.data.type
console.log(resp)
*/
- console.log(resp.data)
_this.tableData = resp.data
_this.pageSize = 6
_this.total = resp.data.length
diff --git a/src/views/TeacherApplication.vue b/src/views/TeacherApplication.vue
index 2d3cf45..cc4b128 100644
--- a/src/views/TeacherApplication.vue
+++ b/src/views/TeacherApplication.vue
@@ -4,7 +4,7 @@
ref="multipleTable"
:data="tableData"
border
- style="width: 90%">
+ style="width: 100%">
@@ -40,8 +40,17 @@
label="状态"
width="120">
+
+
+ 同意
+ 拒绝
+
+
+ 全部同意
+ 全部拒绝
取消选择
@@ -80,6 +89,32 @@ export default {
handleSelectionChange(val) {
this.multipleSelection = val;
},
+ agree(id) {
+ const _this = this
+ axios.get('http://localhost:8181/leaveDetail/agreeUpdate/' + id).then(function (resp) {
+ location.reload();
+ })
+ },
+ disagree(row) {
+ const _this = this
+ axios.get('http://localhost:8181/leaveDetail/disagreeUpdate/' + id).then(function (resp) {
+ location.reload();
+ })
+ },
+ allAgree() {
+ let arrLength = this.$refs.multipleTable.selection.length;
+ for (let i = 0; i < arrLength; i++) {
+ axios.get('http://localhost:8181/leaveDetail/agreeUpdate/' + this.$refs.multipleTable.selection[i].id)
+ }
+ location.reload();
+ },
+ allDisagree() {
+ let arrLength = this.$refs.multipleTable.selection.length;
+ for (let i = 0; i < arrLength; i++) {
+ axios.get('http://localhost:8181/leaveDetail/disagreeUpdate/' + this.$refs.multipleTable.selection[i].id)
+ }
+ location.reload();
+ },
//this.$refs.multipleTable.selection
},
data() {
@@ -110,7 +145,6 @@ export default {
_this.type = resp.data.type
console.log(resp)
*/
- console.log(resp.data)
_this.tableData = resp.data
_this.pageSize = 6
_this.total = resp.data.length
diff --git a/src/views/TeacherHistory.vue b/src/views/TeacherHistory.vue
index 9082d09..b704148 100644
--- a/src/views/TeacherHistory.vue
+++ b/src/views/TeacherHistory.vue
@@ -89,7 +89,6 @@ export default {
_this.type = resp.data.type
console.log(resp)
*/
- console.log(resp.data)
_this.tableData = resp.data
_this.pageSize = 6
_this.total = resp.data.length