@@ -307,3 +307,13 @@ Vue.filter('teachMode', value => {
}
return template[value]
})
+
+// 老师状态
+Vue.filter('teacherStatus', value => {
+ let template = {
+ "0": '正常',
+ "1": '冻结',
+ "9": '锁定'
+ }
+ return template[value]
+})
@@ -66,7 +66,7 @@
<el-table-column align='center' prop="subjectId"
label="老师状态">
<template slot-scope="scope">
- {{ scope.row.lockFlag == 1 ? '冻结' : '正常' }}
+ {{ scope.row.lockFlag | teacherStatus }}
</template>
</el-table-column>
<el-table-column align='center'
@@ -170,7 +170,7 @@
align='center'>
<div>
- <el-button type='text'
+ <el-button type='text' v-if="scope.row.paymentStatus != 2"
@click='resetSubject(scope.row)'>修改专业</el-button>
<!-- APPLY -->
<el-popover v-if='status == "APPLY" || scope.row.remark'