guhongwei 4 years ago
parent
commit
bc6d310f91
1 changed files with 4 additions and 2 deletions
  1. 4 2
      src/views/class/newClass/nameList.vue

+ 4 - 2
src/views/class/newClass/nameList.vue

@@ -47,8 +47,10 @@ export default {
   created() {},
   methods: {
     changeJob(data) {
-      this.show = true;
-      this.$set(this, `form`, _.cloneDeep(data));
+      if (this.user.job == '班长') {
+        this.show = true;
+        this.$set(this, `form`, _.cloneDeep(data));
+      }
     },
     toSelect({ name: job }) {
       let info = _.cloneDeep(this.form);