From b8434958cda4dd1ad00ed1b8bcec3d8f24b0be3b Mon Sep 17 00:00:00 2001
From: markma <750975972@qq.com>
Date: Mon, 28 Mar 2022 10:42:31 +0800
Subject: [PATCH] =?UTF-8?q?14=20=E6=B3=A8=E5=86=8C=E7=94=A8=E6=88=B7?=
=?UTF-8?q?=E6=89=B9=E5=87=86?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/router/index.js | 9 +-
src/views/OuterUserIndex.vue | 1 +
src/views/RegisterApplication.vue | 191 ++++++++++++++++++++++++++++++
src/views/TeacherApplication.vue | 16 +++
4 files changed, 216 insertions(+), 1 deletion(-)
create mode 100644 src/views/RegisterApplication.vue
diff --git a/src/router/index.js b/src/router/index.js
index 5bab7b7..b992ae4 100644
--- a/src/router/index.js
+++ b/src/router/index.js
@@ -17,6 +17,7 @@ import SetComment from "../views/SetComment"
import GetComment from "../views/GetComment"
import DataAnalysis from "../views/DataAnalysis";
import StudentAnalysis from "../views/StudentAnalysis";
+import RegisterApplication from "../views/RegisterApplication";
Vue.use(VueRouter)
@@ -57,7 +58,8 @@ const routes = [
path: "/user/student/:id/studentAnalysis",
name: "学生请假数据分析",
component: StudentAnalysis
- }
+ },
+
]
},
{
@@ -113,6 +115,11 @@ const routes = [
path: "/user/outer/:id/dataAnalysis/",
name: "请假数据分析",
component: DataAnalysis
+ },
+ {
+ path: "/user/outer/:id/registerApplication",
+ name: "注册申请审批",
+ component: RegisterApplication
}
]
},
diff --git a/src/views/OuterUserIndex.vue b/src/views/OuterUserIndex.vue
index e490717..98d1b93 100644
--- a/src/views/OuterUserIndex.vue
+++ b/src/views/OuterUserIndex.vue
@@ -29,6 +29,7 @@
处理外出申请
查看评论
请假数据分析
+ 注册申请审批
diff --git a/src/views/RegisterApplication.vue b/src/views/RegisterApplication.vue
new file mode 100644
index 0000000..a9f4477
--- /dev/null
+++ b/src/views/RegisterApplication.vue
@@ -0,0 +1,191 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 同意
+ 拒绝
+
+
+
+
+ 批量同意
+ 批量拒绝
+ 取消选择
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/src/views/TeacherApplication.vue b/src/views/TeacherApplication.vue
index 0bf5d1b..f069136 100644
--- a/src/views/TeacherApplication.vue
+++ b/src/views/TeacherApplication.vue
@@ -101,6 +101,10 @@ export default {
const _this = this
let userid = window.location.pathname.split('/')[3];
axios.get('http://localhost:8181/leaveDetail/agreeUpdate/' + id).then(function (resp) {
+ this.$message({
+ message: '已同意',
+ type: 'success'
+ });
window.location.href = "/user/teacher/" + userid + "/history";
})
},
@@ -108,6 +112,10 @@ export default {
const _this = this
let userid = window.location.pathname.split('/')[3];
axios.get('http://localhost:8181/leaveDetail/disagreeUpdate/' + id).then(function (resp) {
+ this.$message({
+ message: '已拒绝',
+ type: 'success'
+ });
window.location.href = "/user/teacher/" + userid + "/history";
})
},
@@ -117,6 +125,10 @@ export default {
for (let i = 0; i < arrLength; i++) {
axios.get('http://localhost:8181/leaveDetail/agreeUpdate/' + this.$refs.multipleTable.selection[i].id)
}
+ this.$message({
+ message: '已批量同意',
+ type: 'success'
+ });
window.location.href = "/user/teacher/" + userid + "/history";
},
allDisagree() {
@@ -125,6 +137,10 @@ export default {
for (let i = 0; i < arrLength; i++) {
axios.get('http://localhost:8181/leaveDetail/disagreeUpdate/' + this.$refs.multipleTable.selection[i].id)
}
+ this.$message({
+ message: '已批量拒绝',
+ type: 'success'
+ });
window.location.href = "/user/teacher/" + userid + "/history";
},
//this.$refs.multipleTable.selection