Browse Source

词句卡片

natasha 1 year ago
parent
commit
f9a1d8800d

+ 1 - 1
src/components/Header.vue

@@ -423,7 +423,7 @@ export default {
   position: sticky;
   top: 0;
   left: 0;
-  z-index: 999999;
+  z-index: 999;
   box-sizing: border-box;
   display: flex;
   align-items: center;

+ 1 - 1
src/components/corpus/Strockplay.vue

@@ -150,7 +150,7 @@ export default {
   display: flex;
   justify-content: center;
   align-items: center;
-  z-index: 999;
+  z-index: 998;
   position: relative;
   &.morewords {
     // background: url("../../../../assets/NPC/chinaTianRed.png") center no-repeat;

+ 2 - 2
src/components/corpus/Strockplayredline.vue

@@ -171,7 +171,7 @@ export default {
   display: flex;
   justify-content: center;
   align-items: center;
-  z-index: 99999;
+  z-index: 998;
   font-family: "FZJCGFKTK";
   border: 2px solid #de4444;
   border-radius: 8px;
@@ -195,7 +195,7 @@ export default {
   position: absolute;
   right: 0;
   top: 0;
-  z-index: 999;
+  z-index: 998;
   width: 22px;
   height: 22px;
   color: #d47064;

+ 1 - 1
src/components/corpus/StrockplayredlineCorpus.vue

@@ -173,7 +173,7 @@ export default {
 .character-target-div {
   width: 100%;
   height: 100%;
-  z-index: 99999;
+  z-index: 998;
   position: absolute;
   border: 1px solid #de4444;
   border-radius: 8px;

+ 1 - 1
src/components/corpus/StrockplayredlineTable.vue

@@ -168,7 +168,7 @@ export default {
 .character-target-div {
   width: 100%;
   height: 100%;
-  z-index: 99999;
+  z-index: 998;
   position: absolute;
 }
 .character-target-div-gray {

+ 1 - 1
src/components/corpus/Strockred.vue

@@ -157,7 +157,7 @@ export default {
     display: flex;
     justify-content: center;
     align-items: center;
-    z-index: 99999;
+    z-index: 998;
   }
   .animate-butto {
     width: 240px;

+ 1 - 1
src/components/teacher-dev/TeachingTool.vue

@@ -44,7 +44,7 @@
         >
           <img src="../../assets/teacherdev/jygj-3.png" alt="" />
         </div>
-        <p>词卡片</p>
+        <p>词卡片</p>
       </div>
       <!-- <div>
         <div

+ 9 - 5
src/views/corpus/Result.vue

@@ -32,7 +32,7 @@
               :isHighlight="false"
               :judgeAnswer="2"
             />
-            <div class="Highlight" v-if="item.hzDetail.hz_json">
+            <div class="Highlight" v-if="item.hzDetail.hz_json&&item.hzDetail.hz_json.medians">
               <div class="play_audio">
                 <!-- <img src="../../assets/teacherdev/speaker-one.png" alt="" /> -->
                 <span>{{ item.pinyin }}</span>
@@ -55,7 +55,7 @@
             </div>
           </div>
         </div>
-        <div class="shouqi" v-if="hzData.length > 2">
+        <div class="shouqi" v-if="hzData&&hzData.length > 2">
           <span @click="updownHz">
             <template v-if="unfold">
               <img src="../../assets/teacherdev/up.png" alt="" />
@@ -151,7 +151,7 @@
                      -->
                     <!-- <img src="../../assets/teacherdev/speaker-one.png" alt="" /> -->
                     <div class="words">
-                        <template v-if="item.sentence_fc_list_style.length>1">
+                        <template v-if="item.sentence_fc_list_style&&item.sentence_fc_list_style.length>1">
                             <span
                                 :style="{
                                 fontSize: conSize + 'px',
@@ -293,7 +293,7 @@
             >
               <div style="width: 60%">
                 <span></span>
-                <span v-html="item.book_name"></span>
+                <span v-html="item.book_name_s"></span>
               </div>
               <div style="width: 10%">
                 <span>{{ item.count }}</span>
@@ -648,7 +648,11 @@ export default {
 
           if (res.sentence_list.length > 0) {
             res.stat_list_word_definition.forEach(item => {
-              item.book_name = item.definition.replace(/<i>/g, "").replace(/<\/i>/g, "");
+              item.book_name_s = item.definition;
+              item.book_name = JSON.parse(JSON.stringify(item.definition)).replace(/<i>/g, "").replace(/<\/i>/g, "");
+            });
+            res.stat_list_sentence_source_book.forEach(item => {
+              item.book_name_s = item.book_name;
             });
             // 清理脏数据
             this.removeRubbishData(res);

+ 6 - 6
src/views/wordcard/cread.vue

@@ -8,7 +8,7 @@
             字模式
           </div>
           <div :class="[typeIndex == 1 ? 'sele' : '']" @click="cutType(1)">
-            模式
+            模式
           </div>
         </div>
         <div class="from_main">
@@ -16,7 +16,7 @@
             <el-input
               type="textarea"
               :placeholder="
-                typeIndex == 0 ? '每行输入一个字' : '每行输入一个句子/词汇'
+                typeIndex == 0 ? '请输入' : '每行输入一个句子/词汇'
               "
               v-model="from.content"
               maxlength="100"
@@ -122,7 +122,7 @@
           </div>
         </div>
       </div>
-      <div class="operation" v-if="isCread">
+      <div class="operation" v-if="isCread && writeTableData && writeTableData.result && writeTableData.result.length>0">
         <div @click="saveEvent">
           <img src="../../assets/teacherdev/word-save.png" alt="" /> 保存
         </div>
@@ -493,13 +493,13 @@ export default {
         return;
       }
       if (
-        this.from.writeBoxNumber < this.from.miaoRedBoxNumber &&
+        Number(this.from.writeBoxNumber) < Number(this.from.miaoRedBoxNumber) &&
         this.typeIndex == 1
       ) {
         this.$message.warning("书写格数不能小于描红数");
         return;
       } else if (
-        this.from.writeBoxNumber <
+        Number(this.from.writeBoxNumber) <
           Math.ceil(this.from.miaoRedBoxNumber / data.rowNumber) &&
         this.typeIndex == 0
       ) {
@@ -1035,7 +1035,7 @@ export default {
       box-sizing: border-box;
       .type {
         display: flex;
-        width: 108px;
+        width: 104px;
         height: 28px;
         background: #eeeeee;
         border-radius: 4px;

+ 1 - 1
src/views/wordcard/table.vue

@@ -3,7 +3,7 @@
     <Header />
     <div class="main">
       <div>
-        <div class="title">词卡片</div>
+        <div class="title">词卡片</div>
         <div class="number_cread">
           <span class="left">文件数量:{{ data.total_count }}</span>
           <div class="right" @click="Startcread">开始创建</div>