11wqe1 5 months ago
parent
commit
551c00f7da

+ 104 - 0
src/components/easy2/commpont/evaTable.vue

@@ -0,0 +1,104 @@
+<template>
+  <div>
+    <div class="evaCss">
+        <el-table
+          :data="eList"
+          :header-cell-style="{ background: '#F0F4FA' }"
+          :row-class-name="tableRowClassName"
+          border
+          stripe
+          style="width: 100%"
+        >
+          <el-table-column label="素养" align="center">
+            <template slot-scope="scope">
+              <div
+                style="display:flex;justify-content: center;align-items: center;"
+              >
+                <img
+                  class="blueRootCss"
+                  v-if="
+                    scope.row.isai == 1
+                  "
+                  src="../../../assets/icon/newIcons/blueRoot.png"
+                  alt=""
+                />
+                {{ scope.row.target ? scope.row.target : "-" }}
+              </div>
+            </template></el-table-column
+          >
+
+          <el-table-column label="评价标准" align="center">
+            <template slot-scope="scope"
+              ><div>
+                {{ scope.row.detail != "" ? scope.row.detail : "-" }}
+              </div></template
+            >
+          </el-table-column>
+
+          <el-table-column label="细则" align="center">
+            <template slot-scope="scope"
+              ><div
+                style="display:flex;justify-content: space-around;margin:auto"
+                v-if="scope.row.rule"
+              >
+                <el-popover placement="top" width="350" trigger="hover">
+                  <div
+                    v-html="scope.row.rule"
+                    style="white-space:pre-wrap"
+                  ></div>
+                  <div slot="reference" style="color:#4383FF;cursor: pointer;">
+                    查看
+                  </div>
+                </el-popover>
+              </div>
+              <div v-else>-</div>
+            </template>
+          </el-table-column>
+        </el-table>
+    </div>
+  </div>
+</template>
+
+<script>
+export default {
+  props: ["eList"],
+  mounted() {
+    console.log("eList", this.eList);
+  },
+  data() {
+    return {};
+  }
+};
+</script>
+
+<style scoped>
+.evaCss {
+  display: flex;
+  flex-direction: row;
+  flex-wrap: nowrap;
+  align-items: flex-start;
+  padding: 0 0 20px;
+  width: 100%;
+}
+
+.evaCss >>> .cell {
+  position: relative;
+  overflow: visible;
+}
+.evaCss >>> .el-table__body-wrapper {
+  overflow: visible;
+}
+.evaCss >>> .el-table {
+  overflow: visible;
+}
+.blueRootCss{
+  display: block;
+  margin-right: 5px;
+}
+.blueRootCss{
+  position: absolute;
+  top:50%;
+  left: 0;
+  transform: translate(-20px,-50%);
+}
+</style>

File diff suppressed because it is too large
+ 272 - 240
src/components/easy2/commpont/markDialog.vue


+ 59 - 6
src/components/easy2/studyStudent.vue

@@ -2492,7 +2492,7 @@
                           AI评分
                           AI评分
                         </div>
                         </div>
                         <div class="ScoreBtn" v-else-if="!loopLoading[toolIndex].loading" @click="loopEva(worksStudent[toolIndex],chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].eList,courseType,taskCount,toolIndex,tool.toolDetail,chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
                         <div class="ScoreBtn" v-else-if="!loopLoading[toolIndex].loading" @click="loopEva(worksStudent[toolIndex],chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].eList,courseType,taskCount,toolIndex,tool.toolDetail,chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
-              .taskDetail)" >
+              .taskDetail,tool)" >
                           <img src="../../assets/icon/newIcons/rootImg.png" alt="">
                           <img src="../../assets/icon/newIcons/rootImg.png" alt="">
                           AI评分
                           AI评分
                         </div>
                         </div>
@@ -3231,6 +3231,9 @@
                         </el-tooltip>
                         </el-tooltip>
                       </div>
                       </div>
                     </div>
                     </div>
+                    <div style="width:100%" v-if="courseDetail.userid == userid && courseDetail.state == 5 && tool.eList && tool.eList.length">
+                      <evaTable :eList="tool.eList"></evaTable>
+                    </div>
                   </div>
                   </div>
                   <div
                   <div
                     v-if="
                     v-if="
@@ -3804,7 +3807,7 @@
                           <img src="../../assets/icon/newIcons/rootImg.png" alt="">
                           <img src="../../assets/icon/newIcons/rootImg.png" alt="">
                         AI评分
                         AI评分
                       </div>
                       </div>
-                      <div  class="ScoreBtn" v-else-if="!loopLoading[toolIndex].loading" @click="loopEva(worksStudent[toolIndex],chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].eList,courseType,taskCount,toolIndex,tool.toolDetail,chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].taskDetail)" >
+                      <div  class="ScoreBtn" v-else-if="!loopLoading[toolIndex].loading" @click="loopEva(worksStudent[toolIndex],chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].eList,courseType,taskCount,toolIndex,tool.toolDetail,chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].taskDetail,tool)" >
                           <img src="../../assets/icon/newIcons/rootImg.png" alt="">
                           <img src="../../assets/icon/newIcons/rootImg.png" alt="">
                           AI评分
                           AI评分
                         </div>
                         </div>
@@ -4191,6 +4194,9 @@
                         </el-tooltip>
                         </el-tooltip>
                       </div>
                       </div>
                     </div>
                     </div>
+                    <div style="width:100%" v-if="courseDetail.userid == userid && courseDetail.state == 5 && tool.eList && tool.eList.length">
+                      <evaTable :eList="tool.eList"></evaTable>
+                    </div>
                   </div>
                   </div>
                   <div
                   <div
                     v-if="
                     v-if="
@@ -5106,7 +5112,7 @@
                           AI评分
                           AI评分
                         </div>
                         </div>
                         <div class="ScoreBtn" v-else-if="!loopLoading[toolIndex].loading" @click="loopEva(worksStudent[toolIndex],chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].eList,courseType,taskCount,toolIndex,tool.toolDetail,chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
                         <div class="ScoreBtn" v-else-if="!loopLoading[toolIndex].loading" @click="loopEva(worksStudent[toolIndex],chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].eList,courseType,taskCount,toolIndex,tool.toolDetail,chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
-                        .taskDetail)" >
+                        .taskDetail,tool)" >
                           <img src="../../assets/icon/newIcons/rootImg.png" alt="">
                           <img src="../../assets/icon/newIcons/rootImg.png" alt="">
                           AI评分
                           AI评分
                         </div>
                         </div>
@@ -5415,6 +5421,9 @@
                         </el-tooltip>
                         </el-tooltip>
                       </div>
                       </div>
                     </div>
                     </div>
+                    <div style="width:100%" v-if="courseDetail.userid == userid && courseDetail.state == 5 && tool.eList && tool.eList.length">
+                      <evaTable :eList="tool.eList"></evaTable>
+                    </div>
                   </div>
                   </div>
                   <div
                   <div
                     v-if="
                     v-if="
@@ -5428,6 +5437,8 @@
                   >
                   >
                     <div
                     <div
                       class="zuoyeYulan"
                       class="zuoyeYulan"
+                      style="display: flex;justify-content: space-between;align-items: center;"
+
                       v-if="
                       v-if="
                         (worksStudent.length &&
                         (worksStudent.length &&
                         worksStudent[toolIndex].length > 0) || (courseGroup.group && courseGroup.group.length)
                         worksStudent[toolIndex].length > 0) || (courseGroup.group && courseGroup.group.length)
@@ -5452,6 +5463,26 @@
                         >
                         >
                           展开
                           展开
                         </div>
                         </div>
+                      </div>
+                      <div style="display: flex;" v-if="courseDetail.userid == userid && ((chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].eList && chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].eList.length) || (tool.eList && tool.eList.length)) && courseDetail.state == 5">
+
+                      <div  style="margin-right:10px" class="ScoreBtn" @click="resetLoopEva(worksStudent[toolIndex],chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].eList,courseType,taskCount,toolIndex,tool.toolDetail,worksStudent)" >
+                        一键重置
+                      </div>
+                      <div class="ScoreBtn" @click="noIsAi" v-if="isaiNum" >
+                        <img src="../../assets/icon/newIcons/rootImg.png" alt="">
+                        AI评分
+                      </div>
+                      <div class="ScoreBtn" v-else-if="!loopLoading[toolIndex].loading" @click="loopEva(worksStudent[toolIndex],chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].eList,courseType,taskCount,toolIndex,tool.toolDetail,chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
+                      .taskDetail,tool)" >
+                        <img src="../../assets/icon/newIcons/rootImg.png" alt="">
+                        AI评分
+                      </div>
+                      <div class="ScoreBtn" v-else >
+                        <img src="../../assets/icon/newIcons/rootImg.png" alt="">
+                        正在评分
+                      </div>
+
                       </div>
                       </div>
                       <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
                       <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
                     </div>
                     </div>
@@ -5752,6 +5783,11 @@
                         </el-tooltip>
                         </el-tooltip>
                       </div>
                       </div>
                     </div>
                     </div>
+                    <div style="width:100%" v-if="courseDetail.userid == userid && courseDetail.state == 5 && tool.eList && tool.eList.length">
+                      <evaTable :eList="tool.eList"></evaTable>
+                    </div>
+                    
+                    
                   </div>
                   </div>
                   <div
                   <div
                     v-if="
                     v-if="
@@ -6085,7 +6121,7 @@
                           AI评分
                           AI评分
                         </div>
                         </div>
                         <div class="ScoreBtn" v-else-if="!loopLoading[toolIndex].loading" @click="loopEva(worksStudent[toolIndex],chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].eList,courseType,taskCount,toolIndex,tool.toolDetail,chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
                         <div class="ScoreBtn" v-else-if="!loopLoading[toolIndex].loading" @click="loopEva(worksStudent[toolIndex],chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].eList,courseType,taskCount,toolIndex,tool.toolDetail,chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
-                        .taskDetail)" >
+                        .taskDetail,tool)" >
                           <img src="../../assets/icon/newIcons/rootImg.png" alt="">
                           <img src="../../assets/icon/newIcons/rootImg.png" alt="">
                           AI评分
                           AI评分
                         </div>
                         </div>
@@ -6393,6 +6429,9 @@
                         </el-tooltip>
                         </el-tooltip>
                       </div>
                       </div>
                     </div>
                     </div>
+                    <div style="width:100%" v-if="courseDetail.userid == userid && courseDetail.state == 5 && tool.eList && tool.eList.length">
+                      <evaTable :eList="tool.eList"></evaTable>
+                    </div>
                   </div>
                   </div>
                   <div
                   <div
                     v-if="
                     v-if="
@@ -7094,7 +7133,7 @@
                           AI评分
                           AI评分
                         </div>
                         </div>
                         <div class="ScoreBtn" v-else-if="!loopLoading[toolIndex].loading" @click="loopEva(worksStudent[toolIndex],chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].eList,courseType,taskCount,toolIndex,tool.toolDetail,chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
                         <div class="ScoreBtn" v-else-if="!loopLoading[toolIndex].loading" @click="loopEva(worksStudent[toolIndex],chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].eList,courseType,taskCount,toolIndex,tool.toolDetail,chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
-              .taskDetail)" >
+              .taskDetail,tool)" >
                           <img src="../../assets/icon/newIcons/rootImg.png" alt="">
                           <img src="../../assets/icon/newIcons/rootImg.png" alt="">
                           AI评分
                           AI评分
                         </div>
                         </div>
@@ -7281,6 +7320,9 @@
                         </el-tooltip>
                         </el-tooltip>
                       </div>
                       </div>
                     </div>
                     </div>
+                    <div style="width:100%" v-if="courseDetail.userid == userid && courseDetail.state == 5 && tool.eList && tool.eList.length">
+                      <evaTable :eList="tool.eList"></evaTable>
+                    </div>
                   </div>
                   </div>
                   <div
                   <div
                     v-if="
                     v-if="
@@ -7599,6 +7641,9 @@
                         </el-tooltip>
                         </el-tooltip>
                       </div>
                       </div>
                     </div>
                     </div>
+                    <div style="width:100%" v-if="courseDetail.userid == userid && courseDetail.state == 5 && tool.eList && tool.eList.length">
+                      <evaTable :eList="tool.eList"></evaTable>
+                    </div>
                   </div>
                   </div>
                   <div
                   <div
                     v-if="
                     v-if="
@@ -12968,6 +13013,7 @@ import scoreZong from '../scoreZong/index.vue'
 import classRoomHelper from '../classRoomHelper/index.vue'
 import classRoomHelper from '../classRoomHelper/index.vue'
 import markScore from "./commpont/markScore";
 import markScore from "./commpont/markScore";
 import markDialog from "./commpont/markDialog";
 import markDialog from "./commpont/markDialog";
+import evaTable from './commpont/evaTable'
 
 
 import { v4 as uuidv4 } from "uuid";
 import { v4 as uuidv4 } from "uuid";
 
 
@@ -13047,7 +13093,8 @@ export default {
 		classRoomHelper,
 		classRoomHelper,
     scoreZong,
     scoreZong,
     markScore,
     markScore,
-    markDialog
+    markDialog,
+    evaTable
   },
   },
   data() {
   data() {
     return {
     return {
@@ -13592,6 +13639,7 @@ export default {
       let laws = ""
       let laws = ""
       let std = ""
       let std = ""
       let text = ''
       let text = ''
+      
 
 
       if(toolList && toolList.eList && toolList.eList.length){
       if(toolList && toolList.eList && toolList.eList.length){
         for (let i = 0; i < toolList.eList.length; i++) {
         for (let i = 0; i < toolList.eList.length; i++) {
@@ -13707,6 +13755,10 @@ export default {
             continue;
             continue;
           }
           }
         }
         }
+        console.log('con[i].type',con[i])
+
+        console.log('con[i].type',con[i].type)
+        
         if(_fileid == 1 || con[i].type == 3){
         if(_fileid == 1 || con[i].type == 3){
           this.AIloading[toolIndex][i].loading=false;
           this.AIloading[toolIndex][i].loading=false;
           continue;
           continue;
@@ -13722,6 +13774,7 @@ export default {
         你要根据<评价细则>和<作业内容>的相关性评价作业,判断该作业属于六级中的哪个等级。
         你要根据<评价细则>和<作业内容>的相关性评价作业,判断该作业属于六级中的哪个等级。
         你要结合<评价标准><评价细则>和<你判断的等级>写评语。
         你要结合<评价标准><评价细则>和<你判断的等级>写评语。
         如果作业内容与评价细则无关,则直接评为0星。如果作业内容与<任务描述>或<工具描述>一致或者相似,则直接评为0星,并输出评语“期待看到你自己的想法!必要时,可以请教老师哦~”
         如果作业内容与评价细则无关,则直接评为0星。如果作业内容与<任务描述>或<工具描述>一致或者相似,则直接评为0星,并输出评语“期待看到你自己的想法!必要时,可以请教老师哦~”
+        ${con[i].type == 0 ? '提取图片内容进行评价' : ''}
 
 
 
 
         #评分资料#
         #评分资料#

Some files were not shown because too many files changed in this diff