|
@@ -116,7 +116,7 @@
|
|
|
<template slot-scope="scope">
|
|
|
<div>
|
|
|
<el-button type="text"
|
|
|
- v-permission="'teacherAttendance/agreeTeacherAttendanceComplaints'"
|
|
|
+ v-if="permission('teacherAttendance/operation')"
|
|
|
@click="lookDetail(scope.row)">操作</el-button>
|
|
|
</div>
|
|
|
</template>
|
|
@@ -166,8 +166,8 @@
|
|
|
</div>
|
|
|
<div slot="footer"
|
|
|
v-if="visibleForm.complaintsStatusEnum =='2'">
|
|
|
- <el-button @click="subreset('DENIED')">拒绝</el-button>
|
|
|
- <el-button type="primary"
|
|
|
+ <el-button v-permission="'teacherAttendance/agreeTeacherAttendanceComplaints'" @click="subreset('DENIED')">拒绝</el-button>
|
|
|
+ <el-button v-permission="'teacherAttendance/rejectTeacherAttendanceComplaints'" type="primary"
|
|
|
@click="subreset('AGREED')">同意</el-button>
|
|
|
</div>
|
|
|
</el-dialog>
|
|
@@ -180,6 +180,7 @@ import { getToken } from "@/utils/auth";
|
|
|
import pagination from "@/components/Pagination/index";
|
|
|
import load from "@/utils/loading";
|
|
|
import { getEmployeeOrgan } from "@/api/buildTeam";
|
|
|
+import { permission } from '@/utils/directivePage'
|
|
|
import {
|
|
|
queryTeacherAttendanceComplaints,
|
|
|
agreeTeacherAttendanceComplaints,
|
|
@@ -240,6 +241,9 @@ export default {
|
|
|
init () {
|
|
|
this.getList()
|
|
|
},
|
|
|
+ permission (str) {
|
|
|
+ return permission(str)
|
|
|
+ },
|
|
|
getList () {
|
|
|
let obj = {}
|
|
|
Object.assign(obj, this.searchForm)
|