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