فهرست منبع

保存人工校对

guanchunjie 3 سال پیش
والد
کامیت
42c8622460

+ 13 - 0
src/components/Adult/preview/components/Freewrite.vue

@@ -85,6 +85,7 @@ export default {
       imgIndex: null,
       saveShow: false,
       tabIndex: 0,
+      hasPlay: false,
     };
   },
   computed: {},
@@ -116,6 +117,10 @@ export default {
       });
     },
     removeImage() {
+      if (this.hasPlay) {
+        this.$message.warning("正在播放,不能删除");
+        return;
+      }
       let MethodName = "teaching-practice_manager-DeleteMyHZHandwrittenRecord";
       let data = {
         hz_handwritten_record_id:
@@ -128,6 +133,11 @@ export default {
       });
     },
     play(index) {
+      if (this.hasPlay) {
+        this.$message.warning("请等待播放完成");
+        return;
+      }
+      this.hasPlay = true;
       this.imgIndex = index;
       let c = document.getElementById("esign");
       let cxt = document.getElementById("esign").getContext("2d");
@@ -140,6 +150,9 @@ export default {
         if (i < len) {
           this.$refs.esign.draw(null, history[i][0], history[i][1]);
           requestAnimationFrame(runner);
+        } else {
+          console.log("播放完成");
+          this.hasPlay = false;
         }
       };
       requestAnimationFrame(runner);

+ 6 - 2
src/components/Adult/preview/components/Practice.vue

@@ -266,8 +266,12 @@ export default {
     changeLearnMode(mode) {
       this.learn_mode = mode;
     },
-    resetHuahua(index) {
-      this.$refs.freewrite[index].handelReset();
+    resetHuahua() {
+      if (this.$refs.freewrite[this.isShow].hasPlay) {
+        this.$message.warning("正在播放,不能清除");
+        return;
+      }
+      this.$refs.freewrite[this.isShow].handelReset();
     },
     handleClick(tab, event) {
       let _this = this;

+ 31 - 16
src/components/Adult/preview/components/Wordcard.vue

@@ -73,14 +73,27 @@
       }}</span>
     </p>
     <template v-if="word.detail">
-      <span class="word-ben-def">{{
-        word.detail.definition_list && word.detail.definition_list.length > 0
-          ? "本课释义"
-          : "词典释义"
-      }}</span>
-      <div class="bwc-word-en" :class="['bwc-word-en'+ word.detail.new_word.length]">
-        <span class="word-chs" v-if="defChsArr.length > 0" v-html="defChsArr[0]"></span>
-        <span class="word-en" v-if="defEnArr.length > 0" v-html="defEnArr[0]"></span>
+      <span class="word-ben-def">
+        <span>{{
+          word.detail.definition_list && word.detail.definition_list.length > 0
+            ? "本课释义"
+            : "词典释义"
+        }}</span>
+      </span>
+      <div
+        class="bwc-word-en"
+        :class="['bwc-word-en' + word.detail.new_word.length]"
+      >
+        <span
+          class="word-chs"
+          v-if="defChsArr.length > 0"
+          v-html="defChsArr[0]"
+        ></span>
+        <span
+          class="word-en"
+          v-if="defEnArr.length > 0"
+          v-html="defEnArr[0]"
+        ></span>
       </div>
     </template>
     <div class="bwc-more-intp" @click="viewIntp">查看更多</div>
@@ -408,16 +421,18 @@ export default {
     margin: 0 0 16px 0;
   }
   .word-ben-def {
+    font-size: 12px;
     height: 20px;
     background: rgba(0, 0, 0, 0.06);
     border-radius: 4px;
     line-height: 20px;
     text-align: center;
-    font-size: 10px;
     color: #262626;
     margin: 0 auto 8px;
     display: block;
-    width: 48px;
+    width: 56px;
+    padding: 0 4px;
+    box-sizing: border-box;
     -webkit-text-size-adjust: none;
   }
   .bwc-word-en {
@@ -432,14 +447,14 @@ export default {
     text-align: center;
     color: #2c2c2c;
     margin-bottom: 16px;
-    &.bwc-word-en1{
-        max-width: 256px;
+    &.bwc-word-en1 {
+      max-width: 256px;
     }
-    &.bwc-word-en2{
-        max-width: 256px;
+    &.bwc-word-en2 {
+      max-width: 256px;
     }
-    &.bwc-word-en3{
-        max-width: 386px;
+    &.bwc-word-en3 {
+      max-width: 386px;
     }
     > span {
       width: 100%;

+ 1 - 1
src/views/adultInput.vue

@@ -1359,7 +1359,7 @@ export default {
       return resArr;
     },
     onSave() {
-      let isProof = false;
+      let isProof = true;
       let question_list_str = JSON.stringify(this.question_list);
       console.log(this.question_list);
       localStorage.setItem("question_list", question_list_str);

+ 2 - 2
vue.config.js

@@ -43,8 +43,8 @@ module.exports = {
       // change xxx-api/login => mock/login
       // detail: https://cli.vuejs.org/config/#devserver-proxy
       [process.env.VUE_APP_BASE_API]: {
-        target: `http://gcls.utschool.cn/`,
-        //target: `http://gcls.helxsoft.cn/`,
+        //target: `http://gcls.utschool.cn/`,
+        target: `http://gcls.helxsoft.cn/`,
         changeOrigin: true,
         pathRewrite: {
           ['^' + process.env.VUE_APP_BASE_API]: ''