11wqe1 9 月之前
父节点
当前提交
9107b33de7
共有 2 个文件被更改,包括 30 次插入9 次删除
  1. 8 4
      src/components/easy2/commpont/markScore.vue
  2. 22 5
      src/components/easy2/studyStudent.vue

+ 8 - 4
src/components/easy2/commpont/markScore.vue

@@ -60,7 +60,8 @@ export default {
     "allData",
     "loading",
     "wIndex",
-    "toolIndex"
+    "toolIndex",
+    "toolDetail"
   ],
 
   data() {
@@ -94,7 +95,7 @@ export default {
 
   mounted() {
     this.scoTitList = JSON.parse(JSON.stringify(this.scoTit));
-    // console.log("scoCon", this.scoCon);
+    console.log("scoCon", this.scoCon);
     // console.log("scoTit", this.scoTit);
 
     this.getData();
@@ -193,11 +194,14 @@ export default {
       ## 评价细则
       ${_text}
 
+      ## 作业题目
+      ${this.toolDetail}
+
       ## 作业内容
       ${con.text}
 
       ## 要求
-      根据评价细则评价作业,判断该作业属于五级中的哪个等级。
+      根据评价细则和作业内容与作业题目的相关性评价作业,判断该作业属于五级中的哪个等级。
       具体的评价标准分为5级——1级,2级,3级,4级,5级。输出格式参考===输出范例===。
       ===
       1 级,没有识别问题和需求;
@@ -256,7 +260,7 @@ export default {
                 console.log("error_________________" + error);
               }
             }
-            console.log("dArray", dArray);
+            // console.log("dArray", dArray);
             // _this.submit2(dArray);
             // 提交评分
             // if (!dArray) {

+ 22 - 5
src/components/easy2/studyStudent.vue

@@ -6558,7 +6558,7 @@
                         </div>
                       </div>
                       <div v-if="chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].eList && courseDetail.state == 2">
-                        <div class="ScoreBtn" v-if="!loopLoading[toolIndex].loading" @click="loopEva(worksStudent[toolIndex],chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].eList,courseType,taskCount,toolIndex)" >
+                        <div class="ScoreBtn" v-if="!loopLoading[toolIndex].loading" @click="loopEva(worksStudent[toolIndex],chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].eList,courseType,taskCount,toolIndex,tool.toolDetail)" >
                           <img src="../../assets/icon/newIcons/rootImg.png" alt="">
                           AI评分
                         </div>
@@ -6635,7 +6635,8 @@
                               :disabled="AIloading[toolIndex][wIndex].loading"
                               trigger="click"
                               >
-                            <markScore :loading="AIloading[toolIndex][wIndex].loading" 
+                            <markScore 
+                              :loading="AIloading[toolIndex][wIndex].loading" 
                               ref="markSco" 
                               @updateLoading=updateLoading
                               @updateDocSco=updateDocSco
@@ -6644,6 +6645,7 @@
                               :TotalScore="AIloading[toolIndex][wIndex].sco"
                               :toolIndex="toolIndex" 
                               :key="refreshKey" 
+                              :toolDetail=tool.toolDetail
                               :stage="courseType"
                               :task="taskCount"  
                               :scoTit=chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].eList>
@@ -12482,8 +12484,20 @@ export default {
     //   });
     // },
 
-    async loopEva(con,tit,stage,task,toolIndex){
-        console.log(con,tit,stage,task,toolIndex);
+    async loopEva(con,tit,stage,task,toolIndex,toolDetail){
+        console.log(con,tit,stage,task,toolIndex,toolDetail);
+
+        let jude = false
+        this.AIloading.forEach((e,index)=>{
+          if(index == toolIndex){
+            e.forEach(k=>{
+              if(k.loading == true)
+                jude=true
+            })
+          }
+        })
+      if(jude) return this.$message.info('请勿同时间进行AI评分')
+
       this.AIloading.forEach((e,index)=>{
           if(index == toolIndex){
             e.forEach(k=>{
@@ -12510,11 +12524,14 @@ export default {
         ## 评价细则
         ${_text}
 
+        ## 作业题目
+        ${toolDetail}
+
         ## 作业内容
         ${JSON.parse(con[i].works).text}
 
         ## 要求
-        根据评价细则评价作业,判断该作业属于五级中的哪个等级。
+        根据评价细则和作业内容与作业题目的相关性评价作业,判断该作业属于五级中的哪个等级。
         具体的评价标准分为5级——1级,2级,3级,4级,5级。输出格式参考===输出范例===。
         ===
         1 级,没有识别问题和需求;