Browse Source

修改锁定问题

lex-xin 5 years ago
parent
commit
7160087366

+ 10 - 0
src/utils/vueFilter.js

@@ -307,3 +307,13 @@ Vue.filter('teachMode', value => {
   }
   return template[value]
 })
+
+// 老师状态
+Vue.filter('teacherStatus', value => {
+  let template = {
+    "0": '正常',
+    "1": '冻结',
+    "9": '锁定'
+  }
+  return template[value]
+})

+ 1 - 1
src/views/teacherManager/teacherList.vue

@@ -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'

+ 1 - 1
src/views/teamBuild/signupList.vue

@@ -170,7 +170,7 @@
                            align='center'>
             <template slot-scope="scope">
               <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'