Ver Fonte

修改拼音对其 字号行高及 列表页高度问题.

qinpeng há 2 anos atrás
pai
commit
d7cca9c225
3 ficheiros alterados com 33 adições e 10 exclusões
  1. 25 8
      src/views/Textanalysis/index.vue
  2. 7 1
      src/views/teacher-dev/TextAnalysis.vue
  3. 1 1
      vue.config.js

+ 25 - 8
src/views/Textanalysis/index.vue

@@ -303,12 +303,16 @@
                     :key="indexss + 'words'"
                   >
                     <template v-if="fenci">
-                      <span class="word" style="margin: 0 2px">
+                      <span :class="['word']" style="margin: 0 2px">
                         <span
                           v-if="pinyinShow"
-                          class="pinyin"
+                          :class="[
+                            'pinyin',
+                            itemss.text.length > 1 ? 'fc_pinyin' : '',
+                          ]"
                           :style="{
                             fontSize: pinyinFontsize + 'px',
+                            lineHeight: pinyinLineHeight + 'px',
                           }"
                         >
                           <span
@@ -322,6 +326,7 @@
                           class="hanzi"
                           :style="{
                             fontSize: wordFontsize + 'px',
+                            lineHeight: wordLineHeight + 'px',
                           }"
                         >
                           <span
@@ -378,9 +383,10 @@
                       >
                         <span
                           v-if="pinyinShow"
-                          class="pinyin"
+                          :class="['pinyin']"
                           :style="{
                             fontSize: pinyinFontsize + 'px',
+                            lineHeight: pinyinLineHeight + 'px',
                           }"
                         >
                           {{ word.pinyin }}
@@ -389,6 +395,8 @@
                           class="hanzi"
                           :style="{
                             fontSize: wordFontsize + 'px',
+                            lineHeight: wordLineHeight + 'px',
+
                             color: word.color
                               ? word.color
                               : !xifen
@@ -459,6 +467,9 @@ export default {
       loading: false,
       wordFontsize: 20, // 汉字字号初始值
       pinyinFontsize: 12, // 拼音字号初始值
+      wordLineHeight: 28,
+      pinyinLineHeight: 12,
+
       fenci: false,
       pinyinShow: false,
       leftNavIndex: 0,
@@ -624,11 +635,15 @@ export default {
         if (this.wordFontsize < 24) {
           this.pinyinFontsize = this.pinyinFontsize + 2;
           this.wordFontsize = this.wordFontsize + 2;
+          this.pinyinLineHeight = this.pinyinLineHeight + 2;
+          this.wordLineHeight = this.wordLineHeight + 2;
         }
       } else if (symbol == "-") {
         if (this.wordFontsize > 12) {
           this.pinyinFontsize = this.pinyinFontsize - 2;
           this.wordFontsize = this.wordFontsize - 2;
+          this.pinyinLineHeight = this.pinyinLineHeight - 2;
+          this.wordLineHeight = this.wordLineHeight - 2;
         }
       }
     },
@@ -997,7 +1012,7 @@ export default {
             tooltip: {},
             radar: {
               indicator: leidaList,
-              radius:"50%"
+              radius: "50%",
             },
             series: buildSeries(value),
           };
@@ -1047,7 +1062,7 @@ export default {
             : this.base.vocabularyTextCount;
       }
       postapi({
-        url: "/GCLSTRCServer/tools/TS/statistics",
+        url: "/GCLSTCServer/tools/TS/statistics",
         data: {
           searchType: this.leftNavIndex,
           partitionKey: this.partitionKey,
@@ -1077,7 +1092,7 @@ export default {
     getArticleData() {
       this.loading = true;
       postapi({
-        url: "/GCLSTRCServer/tools/TS/analysis/parsed/text",
+        url: "/GCLSTCServer/tools/TS/analysis/parsed/text",
         data: {
           partitionKey: this.partitionKey,
         },
@@ -1560,13 +1575,16 @@ export default {
                 .words {
                   // display: flex;
                   .word {
+                    text-align: center;
                     writing-mode: vertical-lr;
                     > span {
                       writing-mode: horizontal-tb;
                     }
                   }
-                  .pinyin {
+                  .fc_pinyin {
                     float: left;
+                  }
+                  .pinyin {
                     color: rgba(255, 255, 255, 0.5);
                     text-align: center;
                     line-height: 12px;
@@ -1574,7 +1592,6 @@ export default {
                     // display: flex;
                   }
                   .hanzi {
-                    float: left;
                     color: rgb(255, 255, 255);
                     text-align: center;
                     line-height: 28px;

+ 7 - 1
src/views/teacher-dev/TextAnalysis.vue

@@ -120,6 +120,12 @@ export default {
         .then((res) => {
           this.data.list.splice(index, 1);
           this.data.total = this.data.total - 1;
+
+          let num = this.page * this.pageSize - this.pageSize + 1;
+          this.data.list.forEach((item) => {
+            item.number = num;
+            num++;
+          });
           this.$message.success(res.msg);
           this.loading = false;
         })
@@ -263,7 +269,7 @@ export default {
 <style lang="scss" scoped>
 /* @import url(); 引入css类 */
 .TextAnalysis {
-  height: 100%;
+  min-height: 100%;
   .main {
     min-height: 100%;
     background: #f6f6f6;

+ 1 - 1
vue.config.js

@@ -43,7 +43,7 @@ module.exports = {
       // http://mk.wmjh.cn
       // https://gcls.helxsoft.cn
       [process.env.VUE_APP_BASE_API]: {
-        target: `http://mk.wmjh.cn`,
+        target: `https://gcls.utschool.cn`,
         changeOrigin: true,
         pathRewrite: {
           ['^' + process.env.VUE_APP_BASE_API]: ''