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