|
@@ -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;
|