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 6f799ba..7a8cac5 100644 --- a/src/store/modules/dict.js +++ b/src/store/modules/dict.js @@ -17,7 +17,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,tc_net_safety_level,tc_yes_no,tc_unit_type,tc_tmt_type,tc_net_safety_level,tc_db_steam_state,tc_attack_type,tc_yh_level,tc_yh_source' + list: 'sys_user_sex,tc_net_sx,tc_yq_media,tc_enter_type,tc_inlet_yewu,tc_item_type,tc_net_safety_level,tc_yes_no,tc_unit_type,tc_tmt_type,tc_db_steam_state,tc_attack_type,tc_yh_level,tc_yh_source,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 @@