Browse Source

Merge branch 'beta' of https://git.cocorobo.cn/CocoRoboLabs/pbl-student-table into beta

SanHQin 11 tháng trước cách đây
mục cha
commit
77c0c7b8a8

+ 1 - 1
dist/index.html

@@ -27,7 +27,7 @@
     html,
     body{
       font-family: '黑体';
-    }</style><link href=./static/css/app.e899675c15336f0ce8e5499e31258581.css rel=stylesheet></head><body><div id=app></div><script type=text/javascript src=./static/js/manifest.3ad1d5771e9b13dbdad2.js></script><script type=text/javascript src=./static/js/vendor.7707b4b07bf11db2f61a.js></script><script type=text/javascript src=./static/js/app.3e0b600c9a54f04936c0.js></script></body></html><script>function stopSafari() {
+    }</style><link href=./static/css/app.66f28771854f824d0abf85f6034b0ff7.css rel=stylesheet></head><body><div id=app></div><script type=text/javascript src=./static/js/manifest.3ad1d5771e9b13dbdad2.js></script><script type=text/javascript src=./static/js/vendor.7707b4b07bf11db2f61a.js></script><script type=text/javascript src=./static/js/app.435a44eb14529b3620c3.js></script></body></html><script>function stopSafari() {
     //阻止safari浏览器双击放大功能
     let lastTouchEnd = 0  //更新手指弹起的时间
     document.documentElement.addEventListener("touchstart", function (event) {

Những thai đổi đã bị hủy bỏ vì nó quá lớn
+ 0 - 0
dist/static/css/app.66f28771854f824d0abf85f6034b0ff7.css


Những thai đổi đã bị hủy bỏ vì nó quá lớn
+ 0 - 0
dist/static/css/app.66f28771854f824d0abf85f6034b0ff7.css.map


Những thai đổi đã bị hủy bỏ vì nó quá lớn
+ 0 - 0
dist/static/css/app.e899675c15336f0ce8e5499e31258581.css


Những thai đổi đã bị hủy bỏ vì nó quá lớn
+ 0 - 0
dist/static/css/app.e899675c15336f0ce8e5499e31258581.css.map


Những thai đổi đã bị hủy bỏ vì nó quá lớn
+ 0 - 40
dist/static/img/aiWait.bc90766.svg


Những thai đổi đã bị hủy bỏ vì nó quá lớn
+ 0 - 0
dist/static/js/app.435a44eb14529b3620c3.js


Những thai đổi đã bị hủy bỏ vì nó quá lớn
+ 0 - 0
dist/static/js/app.435a44eb14529b3620c3.js.map


Những thai đổi đã bị hủy bỏ vì nó quá lớn
+ 0 - 0
dist/static/js/manifest.3ad1d5771e9b13dbdad2.js.map


+ 0 - 0
dist/static/SourceHanSans-Regular.otf → src/assets/drawIcon/SourceHanSans-Regular.otf


+ 48 - 61
src/components/easy2/commpont/markScore.vue

@@ -65,17 +65,32 @@ export default {
   computed: {
     totalScore() {
       let a = 0;
+     
+      let isPing = 0;
       this.scoTitList.forEach(e => {
-        a += e.cog;
+        console.log(e.cog);
+        if (!e.cog && e.cog != 0) {
+          isPing += 1;
+        } else {
+          a += e.cog;
+        }
       });
       let data = 0;
-      data = (a / this.scoTit.length).toFixed(1);
-      this.$emit("updateDocSco", {
-        val: this.toolIndex,
-        val2: this.wIndex,
-        val3: data
-      });
-    
+      if (isPing != 0) {
+        this.$emit("updateDocSco", {
+          val: this.toolIndex,
+          val2: this.wIndex,
+          val3: null
+        });
+      } else {
+        data = (a / this.scoTit.length).toFixed(1);
+        this.$emit("updateDocSco", {
+          val: this.toolIndex,
+          val2: this.wIndex,
+          val3: data
+        });
+      }
+
       return data;
     }
   },
@@ -95,27 +110,32 @@ export default {
       this.ajax
         .get(this.$store.state.api + "selectWorksEvaScore", params)
         .then(res => {
-          // console.log(res);
           if (res.data[0].length > 0) {
-            let data2 = [];
+            var data2 = [];
             res.data[0].forEach((val, index) => {
               if (val.task == this.task) {
                 data2 = res.data[0][index];
               }
             });
-
-            let data = JSON.parse(data2.rate);
-
-            this.scoTitList.forEach((e, index) => {
-              e.cog = 0;
-              for (const key in data) {
-                if (e.value == key) {
-                  e.cog = data[key] * 1;
+            if (data2.length == 0) {
+              this.scoTitList = JSON.parse(JSON.stringify(this.scoTit));
+              // this.$emit("updateDocSco", {
+              //   val: this.toolIndex,
+              //   val2: this.wIndex,
+              //   val3: ''
+              // });
+            } else {
+              let data = JSON.parse(data2.rate);
+              this.scoTitList.forEach((e, index) => {
+                e.cog = 0;
+                for (const key in data) {
+                  if (e.value == key) {
+                    e.cog = data[key] * 1;
+                  }
                 }
-              }
-            });
-
-            // console.log("this.scoTitList", this.scoTitList);
+              });
+            }
+            // console.log('this.scoTitList',this.scoTitList);
           }
         })
         .catch(err => {
@@ -124,40 +144,10 @@ export default {
     },
     // 重置
     reset() {
-      console.log("this.scoTitList", this.scoTitList);
+      // console.log("this.scoTitList", this.scoTitList);
       this.scoTitList.forEach(e => {
         e.cog = 0;
       });
-      // let data = this.scoTitList.map(e => {
-      //   return e.value + ":" + e.cog;
-      // });
-      // // console.log("data", data);
-      // const processedData = {};
-
-      // data.forEach(item => {
-      //   const [key, value] = item.split(":");
-      //   processedData[key] = 0;
-      // });
-      // processedData.content = "";
-      // this.scoTitList = processedData
-      // // return console.log(processedData);
-      // let params = {
-      //   cid: this.id,
-      //   s: this.stage,
-      //   t: this.task,
-      //   rate: JSON.stringify(processedData),
-      //   uid: this.stUid
-      // };
-      // // return console.log(params);
-      // this.ajax
-      //   .get(this.$store.state.api + "updateWorksEva", params)
-      //   .then(res => {
-      //     this.getData();
-      //   })
-      //   .catch(err => {
-      //     this.$message.error("重置失败");
-      //     console.error(err);
-      //   });
     },
     // 老师提交评分
     submit() {
@@ -239,7 +229,7 @@ export default {
     },
     // ai打分
     aiGet2(messages, callback) {
-      console.log(this.toolIndex,this.wIndex);
+      console.log(this.toolIndex, this.wIndex);
       let _this = this;
       // let parm = {
       //   assistant_id: "6063369f-289a-11ef-8bf4-12e77c4cb76b",
@@ -331,8 +321,8 @@ export default {
             });
 
             for (const key in processedData) {
-              if (!Number.isFinite(processedData[key]*1)) {
-                processedData[key] = 0
+              if (!Number.isFinite(processedData[key] * 1)) {
+                processedData[key] = 0;
               }
             }
 
@@ -473,16 +463,13 @@ export default {
               });
 
               for (const key in processedData) {
-                if (!Number.isFinite(processedData[key]*1)) {
-                  processedData[key] = 0
+                if (!Number.isFinite(processedData[key] * 1)) {
+                  processedData[key] = 0;
                 }
               }
 
-
-
               processedData.content = "";
 
-
               let params = {
                 cid: _this.id,
                 s: stage,

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

@@ -6665,11 +6665,11 @@
                                     w.ateacher == userid,
                                 }"
                               >
-                              <span v-if="AIloading[toolIndex][wIndex].sco && AIloading[toolIndex][wIndex].sco*1 != 0">
+                              <span v-if="AIloading[toolIndex][wIndex].sco">
                                 {{ AIloading[toolIndex][wIndex].loading  ? '评分中' : AIloading[toolIndex][wIndex].sco + "分" }}
                               </span>
                               <span v-else>
-                                {{AIloading[toolIndex][wIndex].loading? '评分中' :'评分'}}{{w.Total}}
+                                {{AIloading[toolIndex][wIndex].loading? '评分中' :'评分'}}
                               </span>    
                               </div>
                             </el-popover>
@@ -12556,7 +12556,7 @@ export default {
       this.$refs[mk][0].getData()
     },
     handleHide(toolIndex,val,worksStudent) {
-      console.log(worksStudent)
+      // console.log(worksStudent)
       let mk = `markSco${toolIndex}${val}`
       this.$refs[mk][0].getData()
 
@@ -12568,11 +12568,9 @@ export default {
           })
         }
       })
-
-
     },
     updateDocSco(payload){
-      // console.log(this.AIloading[payload.val][payload.val2].sco , payload.val3);
+      console.log('6',this.AIloading[payload.val][payload.val2].sco , payload.val3);
       this.AIloading[payload.val][payload.val2].sco=payload.val3
     },
     gx(){

BIN
static/SourceHanSans-Regular.otf


Một số tệp đã không được hiển thị bởi vì quá nhiều tập tin thay đổi trong này khác