|
@@ -255,33 +255,38 @@
|
|
|
<template slot-scope="scope">
|
|
|
<!-- let search = JSON.stringify(this.searchForm)
|
|
|
let rules = JSON.stringify(this.pageInfo)-->
|
|
|
- <router-link
|
|
|
- v-permission="'/teacherDetail'"
|
|
|
- class="el-button--text"
|
|
|
- :to="{
|
|
|
- path: `/business/teacherDetail?teacherId=${scope.row.id}&teacherName=${scope.row.realName}`,
|
|
|
- }"
|
|
|
- >查看</router-link
|
|
|
- >
|
|
|
- <el-button
|
|
|
- v-permission="'/teacherIperationUpdate'"
|
|
|
- @click="onTeacher('update', scope.row)"
|
|
|
- type="text"
|
|
|
- >修改</el-button
|
|
|
- >
|
|
|
- <el-button
|
|
|
- v-permission="'employee/employeeOperate'"
|
|
|
- @click="onStaffOperation('LOCK_UNLOCK', scope.row)"
|
|
|
- type="text"
|
|
|
- >{{ scope.row.lockFlag == 1 ? "解冻" : "冻结" }}</el-button
|
|
|
- >
|
|
|
+ <auth auths="/teacherDetail">
|
|
|
+ <router-link
|
|
|
+ class="el-button--text"
|
|
|
+ :to="{
|
|
|
+ path: `/business/teacherDetail?teacherId=${scope.row.id}&teacherName=${scope.row.realName}`,
|
|
|
+ }"
|
|
|
+ >查看</router-link>
|
|
|
+ </auth>
|
|
|
+ <auth auths="/teacherIperationUpdate">
|
|
|
+ <el-button
|
|
|
+ @click="onTeacher('update', scope.row)"
|
|
|
+ type="text"
|
|
|
+ >修改</el-button
|
|
|
+ >
|
|
|
+ </auth>
|
|
|
+
|
|
|
+ <auth :auths="scope.row.lockFlag == 1 ? 'employee/employeeOperate/UNLOCK' : 'employee/employeeOperate/LOCK'">
|
|
|
+ <el-button
|
|
|
+ @click="onStaffOperation('LOCK_UNLOCK', scope.row)"
|
|
|
+ type="text"
|
|
|
+ >{{ scope.row.lockFlag == 1 ? "解冻" : "冻结" }}</el-button
|
|
|
+ >
|
|
|
+ </auth>
|
|
|
+
|
|
|
+ <auth auths="user/updatePassword2">
|
|
|
+ <el-button
|
|
|
+ @click="resetPassWrod(scope.row)"
|
|
|
+ type="text"
|
|
|
+ >修改密码</el-button
|
|
|
+ >
|
|
|
+ </auth>
|
|
|
<!-- -->
|
|
|
- <el-button
|
|
|
- v-permission="'api-auth/user/updatePassword2'"
|
|
|
- @click="resetPassWrod(scope.row)"
|
|
|
- type="text"
|
|
|
- >修改密码</el-button
|
|
|
- >
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
</el-table>
|
|
@@ -432,11 +437,8 @@ export default {
|
|
|
params.teacherId = row.id;
|
|
|
params.teacherName = row.realName;
|
|
|
}
|
|
|
- let path = "/business/teacherOperation";
|
|
|
- if (type == "update") {
|
|
|
- path = "/business/teacherOperationUpdate";
|
|
|
- }
|
|
|
- console.log(params)
|
|
|
+ let path = "/teacherManager/teacherOperation";
|
|
|
+ // console.log(params)
|
|
|
// teacherId=${scope.row.id}&teacherName=${scope.row.realName}
|
|
|
this.$router.push(
|
|
|
{
|
|
@@ -444,7 +446,9 @@ export default {
|
|
|
query: params,
|
|
|
},
|
|
|
(router) => {
|
|
|
- if (type != "update") {
|
|
|
+ if (type == "update") {
|
|
|
+ router.meta.title = "老师修改";
|
|
|
+ } else {
|
|
|
router.meta.title = "老师新增";
|
|
|
}
|
|
|
}
|