浏览代码

fix(pptEasyClass): 根据任务类型调整cid和tcid的赋值逻辑

在pptEasyClass组件中,根据tType参数为'2'的情况,修改了tcid和cid的赋值逻辑,同时注释了teacher.vue中任务aiRounds的显示徽章,避免了特定场景下的变量冲突和UI显示问题。
lsc 1 天之前
父节点
当前提交
d8689b453b
共有 2 个文件被更改,包括 11 次插入 和 6 次删除
  1. 2 2
      src/components/pptEasyClass/dataBoard/teacher.vue
  2. 9 4
      src/components/pptEasyClass/index.vue

+ 2 - 2
src/components/pptEasyClass/dataBoard/teacher.vue

@@ -189,12 +189,12 @@
                         <path :d="task.typeIconPath" />
                       </svg>
                       {{ task.type }}
-                      <span v-if="task.aiRounds" class="ai-rounds-badge">
+                      <!-- <span v-if="task.aiRounds" class="ai-rounds-badge">
                         <svg width="10" height="10" viewBox="0 0 24 24" fill="currentColor">
                           <path d="M12 2l1.8 6L20 9.8l-6 1.8L12 18l-1.8-6.4L4 9.8l6.2-1.8z" />
                         </svg>
                         {{ task.aiRounds }}
-                      </span>
+                      </span> -->
                     </div>
                   </td>
                   <td class="td-center td-extrabold">{{ task.submitRate }}</td>

+ 9 - 4
src/components/pptEasyClass/index.vue

@@ -723,10 +723,15 @@ export default {
               }
             }
           })
-          this.tcid = this.arrayToArray(
-            this.courseDetail.juri ? this.courseDetail.juri.split(",") : [],
-            this.tcid2 ? this.tcid2.split(",") : []
-          )[0] || "";
+          if(this.tType == '2'){
+            this.cid = this.$route.query.cid || ''
+          }else {
+            this.tcid = this.arrayToArray(
+              this.courseDetail.juri ? this.courseDetail.juri.split(",") : [],
+              this.tcid2 ? this.tcid2.split(",") : []
+            )[0] || "";
+          }
+          
           console.log('tcid', this.tcid)
           console.log('tcid2', this.tcid2)
           if (this.tcid && res.data[1].length) {