|
@@ -467,7 +467,7 @@ export default {
|
|
|
data() {
|
|
|
return {
|
|
|
ratioShow: false,
|
|
|
- chsFhList: [",", "。", "”", ":", "》", "《", "?", "!", ";"],
|
|
|
+ chsFhList: [",", "。", "”", ":", "》", "《", "?", "!", ";","、"],
|
|
|
loading: false,
|
|
|
LeftLoading: false,
|
|
|
wordFontsize: 20, // 汉字字号初始值
|
|
@@ -893,12 +893,15 @@ export default {
|
|
|
});
|
|
|
},
|
|
|
changeratioShow() {
|
|
|
- this.createEcharts(
|
|
|
- "main_echarts",
|
|
|
- "柱状图",
|
|
|
- this.leftList,
|
|
|
- this.chartIndex
|
|
|
- );
|
|
|
+ let str =
|
|
|
+ this.chartIndex == 0
|
|
|
+ ? "柱状图"
|
|
|
+ : this.chartIndex == 1
|
|
|
+ ? "雷达图"
|
|
|
+ : this.chartIndex == 2
|
|
|
+ ? "折线图"
|
|
|
+ : "";
|
|
|
+ this.createEcharts("main_echarts", str, this.leftList, this.chartIndex);
|
|
|
},
|
|
|
// 图表
|
|
|
createEcharts(id, type, data, index) {
|
|
@@ -1280,8 +1283,16 @@ export default {
|
|
|
let obj = JSON.parse(JSON.stringify(itemsss));
|
|
|
obj.isShow = true;
|
|
|
if (index > 0) {
|
|
|
- items[index - 1].text.push(obj);
|
|
|
- itemsss.isShow = false;
|
|
|
+ if (
|
|
|
+ items[index - 1].text[items[index - 1].text.length - 1]
|
|
|
+ .isShow
|
|
|
+ ) {
|
|
|
+ items[index - 1].text.push(obj);
|
|
|
+ itemsss.isShow = false;
|
|
|
+ } else {
|
|
|
+ items[index - 2].text.push(obj);
|
|
|
+ itemsss.isShow = false;
|
|
|
+ }
|
|
|
} else {
|
|
|
itemsss.isShow = true;
|
|
|
}
|
|
@@ -1831,6 +1842,11 @@ export default {
|
|
|
</style>
|
|
|
<style lang="scss">
|
|
|
.textanalysis_index {
|
|
|
+ .el-switch {
|
|
|
+ .el-switch__label {
|
|
|
+ color: #888888;
|
|
|
+ }
|
|
|
+ }
|
|
|
.el-switch__label.is-active {
|
|
|
color: #000000;
|
|
|
}
|