diff --git a/package.json b/package.json index 997be84..03c055d 100644 --- a/package.json +++ b/package.json @@ -16,16 +16,18 @@ }, "dependencies": { "@antv/g2": "^5.2.3", - "echarts-stat": "^1.2.0", "@element-plus/icons-vue": "2.0.10", "@vueup/vue-quill": "1.1.0", "@vueuse/core": "9.5.0", "axios": "0.27.2", "echarts": "5.4.0", + "echarts-stat": "^1.2.0", + "echarts-wordcloud": "^2.1.0", "element-plus": "2.2.27", "file-saver": "2.0.5", "fuse.js": "6.6.2", "highlight.js": "^11.10.0", + "html2canvas": "^1.4.1", "js-cookie": "3.0.1", "jsencrypt": "3.3.1", "marked": "^14.0.0", @@ -34,7 +36,8 @@ "pinia": "2.0.22", "vue": "^3.2.47", "vue-cropper": "1.0.3", - "vue-router": "4.1.4" + "vue-router": "4.1.4", + "xlsx": "^0.18.5" }, "devDependencies": { "@vitejs/plugin-vue": "3.1.0", diff --git a/src/assets/images/删除.png b/src/assets/images/删除.png new file mode 100644 index 0000000..e9da7e1 Binary files /dev/null and b/src/assets/images/删除.png differ diff --git a/src/assets/images/哭脸.png b/src/assets/images/哭脸.png new file mode 100644 index 0000000..a348504 Binary files /dev/null and b/src/assets/images/哭脸.png differ diff --git a/src/assets/images/情感分析.png b/src/assets/images/情感分析.png new file mode 100644 index 0000000..27da9e6 Binary files /dev/null and b/src/assets/images/情感分析.png differ diff --git a/src/assets/images/清空.png b/src/assets/images/清空.png new file mode 100644 index 0000000..815cb00 Binary files /dev/null and b/src/assets/images/清空.png differ diff --git a/src/assets/images/笑脸.png b/src/assets/images/笑脸.png new file mode 100644 index 0000000..7a9487a Binary files /dev/null and b/src/assets/images/笑脸.png differ diff --git a/src/assets/images/编辑.png b/src/assets/images/编辑.png new file mode 100644 index 0000000..a3f7e32 Binary files /dev/null and b/src/assets/images/编辑.png differ diff --git a/src/assets/images/评价.png b/src/assets/images/评价.png new file mode 100644 index 0000000..314c611 Binary files /dev/null and b/src/assets/images/评价.png differ diff --git a/src/components/DictTag/index.vue b/src/components/DictTag/index.vue index 4667310..d5ebb1c 100644 --- a/src/components/DictTag/index.vue +++ b/src/components/DictTag/index.vue @@ -2,22 +2,8 @@
@@ -421,8 +634,6 @@ const sentimentAnalysis = () => { } } .app-main { - // background-color: #f5f5f5; - min-height: 965px; margin: 5px 20px 0; height: 100%; display: flex; @@ -430,7 +641,7 @@ const sentimentAnalysis = () => { .main-left { //水平居中 flex-direction: column; - min-height: 965px; + // min-height: 965px; display: flex; width: 205px; height: 100%; @@ -476,9 +687,9 @@ const sentimentAnalysis = () => { } } .main-right { - width: 1639px; + width: 100%; // height: 100%; - padding: 20px; + // padding: 20px; border: 1px solid #0452c6; .text-type { margin: 29px 0 20px 0px; @@ -489,16 +700,26 @@ const sentimentAnalysis = () => { --el-button-bg-color: #041d3b; --el-button-border-color: #1983dd; } + .btnActive { + background: #409eff; + color: #ffffff; + } } .analysis { - .el-textarea { + margin-top: 10px; + :deep(.el-textarea) { height: 343px; background: #002652; border-radius: 10px; - :deep(.el-textarea__inner) { + .el-textarea__inner { min-height: 343px !important; background: transparent; - box-shadow: 0 0 0 1px #1983dd; + box-shadow: 0 0 0 0px #1983dd !important; + border: 1px solid #1983dd; + color: #ffffff; + } + .el-input__count { + background: transparent !important; color: #ffffff; } } @@ -530,6 +751,8 @@ const sentimentAnalysis = () => { } } .analysisResults { + transition: all 6s; + .el-button { width: 89px; height: 31px; @@ -570,6 +793,109 @@ const sentimentAnalysis = () => { margin-right: 55px; } } + .emotion_analysis { + position: relative; + display: flex; + // align-items: center; + justify-content: center; + gap: 30px; + color: #ffffff; + font-size: 14px; + height: 180px; + margin-top: 40px; + .emotion_analysis-ani-in-ri, + .emotion_analysis-ani-in-le { + display: flex; + align-items: center; + gap: 10px; + } + .emotion_analysis_title { + position: absolute; + top: 0px; + right: 48%; + font-size: 24px; + font-weight: normal; + } + :deep(.el-progress-bar__outer) { + background-color: #036fe2; + } + } + .comment-opinion { + padding: 30px 20px 0px 90px !important; + + .result { + height: 40px; + -webkit-text-size-adjust: 100%; + font: 14px BlinkMacSystemFont, Roboto, Helvetica Neue, Helvetica, PingFangSC-Regular, Hiragino Sans GB, Microsoft YaHei, SimSun, sans-serif; + -webkit-tap-highlight-color: transparent; + -webkit-font-smoothing: antialiased; + font-family: -apple-system, BlinkMacSystemFont, SF Pro SC, SF Pro Text, Helvetica Neue, Helvetica, PingFang SC, Segoe UI, Roboto, Hiragino Sans GB, arial, microsoft yahei ui, Microsoft YaHei, SimSun, sans-serif; + font-weight: 400; + position: relative; + padding: 8px 0 8px 55px; + margin-right: 1px; + color: #ffffff; + .result-img { + -webkit-text-size-adjust: 100%; + font: 14px BlinkMacSystemFont, Roboto, Helvetica Neue, Helvetica, PingFangSC-Regular, Hiragino Sans GB, Microsoft YaHei, SimSun, sans-serif; + -webkit-tap-highlight-color: transparent; + -webkit-font-smoothing: antialiased; + font-family: -apple-system, BlinkMacSystemFont, SF Pro SC, SF Pro Text, Helvetica Neue, Helvetica, PingFang SC, Segoe UI, Roboto, Hiragino Sans GB, arial, microsoft yahei ui, Microsoft YaHei, SimSun, sans-serif; + font-weight: 400; + position: absolute; + top: 8px; + left: 0; + width: 26px; + height: 26px; + border-radius: 50%; + background-size: contain; + background-repeat: no-repeat; + background-image: url(../../../assets/images/笑脸.png); + background-color: #ff6b0f; + } + .result-neg { + position: absolute; + top: 8px; + left: 0; + width: 26px; + height: 26px; + border-radius: 50%; + background-size: contain; + background-repeat: no-repeat; + background-image: url(../../../assets/images/哭脸.png); + background-color: #60aefd; + } + .result-title { + line-height: 26px; + font-size: 14px; + } + .result-view { + position: relative; + display: inline-block; + padding: 0 10px; + margin-right: 2px; + line-height: 26px; + font-size: 14px; + top: -26px; + left: 61px; + .result-bar { + position: absolute; + top: 50%; + right: -1px; + transform: translateY(-50%); + height: 15px; + width: 1px; + color: #d8d8d8; + border-right: 1px solid #d8d8d8; + } + } + .result-view:last-child { + .result-bar { + border: none; + } + } + } + } } :deep(.el-form-item__label) { color: #ffffff; @@ -590,4 +916,13 @@ p { color: #ffffff !important; font-size: 14px; } +:deep(.pagination-container .el-pagination) { + // 去除定位 + position: static; +} +:deep(.demo-form-inline) { + .el-form-item__content { + flex-wrap: nowrap !important; + } +}