|
@@ -6,6 +6,10 @@
|
|
|
<div class="main">
|
|
|
<div>
|
|
|
<div v-loading="LeftLoading" class="left">
|
|
|
+ <a v-if="!userID" class="go-back" @click="goBack">
|
|
|
+ <i class="el-icon-arrow-left"></i>
|
|
|
+ 返回
|
|
|
+ </a>
|
|
|
<div class="search">
|
|
|
<div class="select-result" @click="showSearchColorList">
|
|
|
<span class="selectBg" :style="{ background: colorValue }"></span>
|
|
@@ -39,7 +43,7 @@
|
|
|
</span>
|
|
|
<div>
|
|
|
<span v-if="searchVal.trim() && !userID" class="resule-right-btn" @click="jumpSeekPage"
|
|
|
- >在语料库词典中查看</span
|
|
|
+ >在教材语料库中查看</span
|
|
|
>
|
|
|
<span class="resule-right-btn" @click="clearSelected('all')">清除标记</span>
|
|
|
</div>
|
|
@@ -106,19 +110,6 @@
|
|
|
</div>
|
|
|
</div>
|
|
|
<div id="echarts" class="tubiao">
|
|
|
- <div style="height: 22px">
|
|
|
- <template v-if="chartIndex != 3">
|
|
|
- <el-switch
|
|
|
- v-model="ratioShow"
|
|
|
- inactive-text="数量"
|
|
|
- active-text="比例"
|
|
|
- :width="26"
|
|
|
- style="margin-left: 24px"
|
|
|
- @change="changeratioShow"
|
|
|
- />
|
|
|
- </template>
|
|
|
- </div>
|
|
|
-
|
|
|
<div id="main_echarts" class="main_echarts"></div>
|
|
|
<div class="cut_download">
|
|
|
<span
|
|
@@ -1337,11 +1328,6 @@ export default {
|
|
|
reslove();
|
|
|
});
|
|
|
},
|
|
|
- changeratioShow() {
|
|
|
- let str =
|
|
|
- this.chartIndex === 0 ? '柱状图' : this.chartIndex === 1 ? '雷达图' : this.chartIndex === 2 ? '折线图' : '';
|
|
|
- this.createEcharts('main_echarts', str, this.leftList, this.chartIndex);
|
|
|
- },
|
|
|
// 图表
|
|
|
async createEcharts(id, type, data, index) {
|
|
|
this.chartIndex = index;
|
|
@@ -1370,12 +1356,12 @@ export default {
|
|
|
indicatorMaxRatio = item.ratio;
|
|
|
}
|
|
|
});
|
|
|
- indicatorMax += 50;
|
|
|
+ indicatorMax += 10;
|
|
|
if (indicatorMaxRatio < 50) {
|
|
|
indicatorMaxRatio = 50;
|
|
|
}
|
|
|
// 比例开关
|
|
|
- if (this.ratioShow) {
|
|
|
+ if (index === '3') {
|
|
|
newdata.forEach((item) => {
|
|
|
item.value = item.ratio;
|
|
|
// item.name = item.name;
|
|
@@ -1853,7 +1839,7 @@ export default {
|
|
|
this.loading = false;
|
|
|
});
|
|
|
},
|
|
|
- // 跳转到语料库词典
|
|
|
+ // 跳转到教材语料库
|
|
|
jumpSeekPage() {
|
|
|
if (!this.searchVal.trim()) {
|
|
|
return;
|
|
@@ -1882,6 +1868,12 @@ export default {
|
|
|
pinyin_mark_position: value ? 1 : 0,
|
|
|
});
|
|
|
},
|
|
|
+ // 返回上一页
|
|
|
+ goBack() {
|
|
|
+ this.$router.push({
|
|
|
+ path: '/TextAnalysis',
|
|
|
+ });
|
|
|
+ },
|
|
|
},
|
|
|
};
|
|
|
</script>
|
|
@@ -1910,7 +1902,26 @@ export default {
|
|
|
|
|
|
> .left {
|
|
|
width: 352px;
|
|
|
-
|
|
|
+ .go-back {
|
|
|
+ border-radius: 4px;
|
|
|
+ border: 1px solid #d9d9d9;
|
|
|
+ background: #fff;
|
|
|
+ box-shadow: 0px 2px 0px 0px rgba(0, 0, 0, 0.02);
|
|
|
+ display: flex;
|
|
|
+ width: 60px;
|
|
|
+ color: #333;
|
|
|
+ font-size: 14px;
|
|
|
+ font-weight: 400;
|
|
|
+ line-height: 22px;
|
|
|
+ padding: 9px 8px;
|
|
|
+ align-items: center;
|
|
|
+ cursor: pointer;
|
|
|
+ margin-bottom: 16px;
|
|
|
+ .el-icon-arrow-left {
|
|
|
+ font-size: 16px;
|
|
|
+ margin-right: 8px;
|
|
|
+ }
|
|
|
+ }
|
|
|
.top_nav {
|
|
|
display: flex;
|
|
|
align-items: center;
|
|
@@ -2355,8 +2366,9 @@ export default {
|
|
|
height: calc(100% - 137px);
|
|
|
padding: 12px 15px;
|
|
|
margin-top: 16px;
|
|
|
- background: #f9f9f9;
|
|
|
+ // background: #f9f9f9;
|
|
|
border-radius: 4px;
|
|
|
+ border: 1px solid rgba(0, 0, 0, 0.08);
|
|
|
|
|
|
.right_main_top {
|
|
|
display: flex;
|