From 5a583c074adaf152cd24897db1cab3e2ce221988 Mon Sep 17 00:00:00 2001
From: dhy1725534722 <1725534722@qq.com>
Date: Tue, 22 Aug 2023 09:00:22 +0800
Subject: [PATCH] =?UTF-8?q?=E7=BD=91=E7=BB=9C=E8=88=86=E6=83=85?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.env.development | 2 +-
.eslintignore | 3 +
src/App.vue | 1 +
src/api/consensusList/index.js | 18 +
src/api/publicOpinion/index.js | 46 ++
src/store/modules/dict.js | 2 +-
.../sentiment/components/WordCloud.vue | 187 +++---
.../sentiment/components/componentLeft.vue | 618 +++++++++---------
.../sentiment/components/componentRight.vue | 545 ++++++++-------
.../sentiment/components/mediaPie.vue | 145 ++--
.../sentiment/components/sentimentPie.vue | 218 +++---
11 files changed, 932 insertions(+), 853 deletions(-)
create mode 100644 src/api/consensusList/index.js
create mode 100644 src/api/publicOpinion/index.js
diff --git a/.env.development b/.env.development
index 1a2d7ae..ba1a2b9 100644
--- a/.env.development
+++ b/.env.development
@@ -4,6 +4,6 @@ ENV = 'development'
# base api
VUE_APP_BASE_API = '/dashboard'
-VUE_APP_BASE_API2 = 'http://localhost:9027'
+VUE_APP_BASE_API2 = 'http://192.168.0.106:9027'
BASE_API = 'http://10.10.3.35:9070'
diff --git a/.eslintignore b/.eslintignore
index c92a1d3..800f919 100644
--- a/.eslintignore
+++ b/.eslintignore
@@ -3,3 +3,6 @@ src/assets
public
dist
mock.js
+src/router
+*.vue
+*.js
\ No newline at end of file
diff --git a/src/App.vue b/src/App.vue
index 2ff3f8c..3c778f3 100644
--- a/src/App.vue
+++ b/src/App.vue
@@ -34,6 +34,7 @@ export default {
created() {
if (window.location.search != null && window.location.search !== '') {
var tokenObj = qs.parse(window.location.search.substr(1))
+ console.log(tokenObj);
if (tokenObj.token != null && tokenObj.token !== '') {
setToken(tokenObj.token)
if (tokenObj.redirect != null) {
diff --git a/src/api/consensusList/index.js b/src/api/consensusList/index.js
new file mode 100644
index 0000000..a12db26
--- /dev/null
+++ b/src/api/consensusList/index.js
@@ -0,0 +1,18 @@
+import request from '@/utils/request.js'
+
+
+//网络舆情列表
+export function yuqingListA(data) {
+ return request({
+ url: '/zongzhi/sentiment/list',
+ method: 'get',
+ params:data
+ })
+}
+//网络舆情详情
+export function getWlyq(id) {
+ return request({
+ url: `/zongzhi/sentiment/${id}`,
+ method: 'get',
+ })
+}
\ No newline at end of file
diff --git a/src/api/publicOpinion/index.js b/src/api/publicOpinion/index.js
new file mode 100644
index 0000000..6d69bbe
--- /dev/null
+++ b/src/api/publicOpinion/index.js
@@ -0,0 +1,46 @@
+import request from '@/utils/request.js'
+
+
+//舆情分类
+export function yuqingTypes(data) {
+ return request({
+ url: '/zongzhi/opinionscreen/sentimenclassification',
+ method: 'post',
+ data
+ })
+}
+//舆情信息量统计
+export function yuqingMsgStats() {
+ return request({
+ url: '/zongzhi/opinionscreen/sentimencount',
+ method: 'get',
+ })
+}
+//动态筛选
+export function sift() {
+ return request({
+ url: '/zongzhi/opinionscreen/sentimenfiltering',
+ method: 'get',
+ })
+}
+// 舆情走势图
+export function yuqingChart() {
+ return request({
+ url: '/zongzhi/opinionscreen/sentimentype',
+ method: 'get',
+ })
+}
+//词云
+export function wordCloud() {
+ return request({
+ url: '/zongzhi/opinionscreen/wordcloud',
+ method: 'get',
+ })
+}
+//舆情报告
+export function yqbg() {
+ return request({
+ url: '/zongzhi/opinionscreen/sentimentreport',
+ method: 'get',
+ })
+}
\ No newline at end of file
diff --git a/src/store/modules/dict.js b/src/store/modules/dict.js
index d5bebf6..9ac07e2 100644
--- a/src/store/modules/dict.js
+++ b/src/store/modules/dict.js
@@ -12,7 +12,7 @@ const dict = {
getDictType({ commit }) {
return new Promise((resolve, reject) => {
const query = {
- list: 'sys_user_sex,tc_net_sx,tc_yq_media,tc_enter_type,tc_inlet_yewu,tc_item_type'
+ list: 'sys_user_sex,tc_net_sx,tc_yq_media,tc_enter_type,tc_inlet_yewu,tc_item_type,tc_yq_type,tc_event_type,tc_cy_type,tc_yq_state'
}
getDictList(query)
.then((res) => {
diff --git a/src/views/privateOrder/sentiment/components/WordCloud.vue b/src/views/privateOrder/sentiment/components/WordCloud.vue
index 5f29833..f1bdba1 100644
--- a/src/views/privateOrder/sentiment/components/WordCloud.vue
+++ b/src/views/privateOrder/sentiment/components/WordCloud.vue
@@ -9,135 +9,124 @@