|
|
|
@ -57,6 +57,7 @@ |
|
|
|
|
<el-table-column label="操作" align="center" width="300"> |
|
|
|
|
<template slot-scope="scope"> |
|
|
|
|
<el-button type="text" v-auth @click="editStudent(scope.row,true)">查看</el-button> |
|
|
|
|
<template v-if="!studentIds.includes(scope.row.studentId)"> |
|
|
|
|
<el-button type="text" v-auth @click="editStudent(scope.row,false)">编辑</el-button> |
|
|
|
|
<el-button type="text" v-auth @click="resetPassword(scope.row)">重置密码</el-button> |
|
|
|
|
<el-button type="text" v-auth @click="handleDelete(scope.row)">删除</el-button> |
|
|
|
@ -66,9 +67,10 @@ |
|
|
|
|
:inactive-value="1" |
|
|
|
|
style="margin: 0 5px" |
|
|
|
|
@change="switchOff($event,scope.row,scope.$index)" |
|
|
|
|
v-auth="'学生管理:禁用'" |
|
|
|
|
v-auth="'student:禁用'" |
|
|
|
|
></el-switch> |
|
|
|
|
</template> |
|
|
|
|
</template> |
|
|
|
|
</el-table-column> |
|
|
|
|
</el-table> |
|
|
|
|
<div class="pagination"> |
|
|
|
@ -248,7 +250,8 @@ export default { |
|
|
|
|
schoolList: [], |
|
|
|
|
uploadFaild: false, |
|
|
|
|
token: '', |
|
|
|
|
accountMsg: '' |
|
|
|
|
accountMsg: '', |
|
|
|
|
studentIds: [1504, 1505, 1506, 1507, 1508, 1509, 1510, 1511, 1512, 1513] |
|
|
|
|
}; |
|
|
|
|
}, |
|
|
|
|
mounted() { |
|
|
|
|