Ver código fonte

年纪升级

1
mo 3 anos atrás
pai
commit
cda10a2d7e

+ 4 - 2
src/views/teamBuild/signupList.vue

@@ -624,8 +624,8 @@
         </el-table-column>
         <el-table-column label="年级班级" align="center">
           <template slot-scope="scope">
-            <div>
-              {{ scope.row.currentGrade + scope.row.currentClass }}
+            <div v-if=" gradeListObj[scope.row.currentGrade]">
+              {{ gradeListObj[scope.row.currentGrade] + scope.row.currentClass }}
             </div>
           </template>
         </el-table-column>
@@ -1237,6 +1237,7 @@ export default {
       gradeList: [],
       ischeckCanReg: false,
       courseViewType: null, // 乐团模式
+      gradeListObj:{}
     };
   },
   created() {},
@@ -1279,6 +1280,7 @@ export default {
 
       getMusicGroupGradeList({ musicGroupId: this.id }).then((res) => {
         let result = res.data;
+        this.gradeListObj = res.data
         if (res.code == 200 && result) {
           for (let i in result) {
             this.gradeList.push({

+ 5 - 1
src/views/teamDetail/components/studentList.vue

@@ -328,9 +328,11 @@
             <div>{{ scope.row.registerTime | dayjsFormat("YYYY年") }}</div>
           </template>
         </el-table-column> -->
+        <!-- 年纪班级修改 -->
         <el-table-column align="center" label="年级班级">
           <template slot-scope="scope">
-            <div>{{ scope.row.currentGrade + scope.row.currentClass }}</div>
+
+            <div v-if="gradeListObj[scope.row.currentGrade]">{{ gradeListObj[scope.row.currentGrade] + scope.row.currentClass }}</div>
           </template>
         </el-table-column>
         <!-- <el-table-column align="center" label="报名专业" prop="subjectName">
@@ -1176,6 +1178,7 @@ export default {
       organId: "",
       addTryVisible: false,
       memberRankList: [],
+      gradeListObj:{}
     };
   },
   components: {
@@ -1245,6 +1248,7 @@ export default {
       // }
       getMusicGroupGradeList({ musicGroupId: this.teamid }).then((res) => {
         let result = res.data;
+        this.gradeListObj = res.data
         if (res.code == 200 && result) {
           for (let i in result) {
             this.gradeList.push({