From 38aef23cca9ef314d76b3543b361c0237353201d Mon Sep 17 00:00:00 2001 From: asd <374367073@qq.com> Date: Fri, 20 Nov 2020 17:15:30 +0800 Subject: [PATCH] ... --- .env.production | 4 +- src/App.vue | 53 + src/assets/js/computeddata.js | 11 +- src/components/chartsCont/ChartsCont.vue | 33 +- src/components/chartsCut/ChartsCut.vue | 13 +- src/components/footerInfor/FooterInfor.vue | 37 +- src/components/mapData/MapData.vue | 178 +- src/components/nav/Nav.vue | 120 +- src/components/search/search.vue | 19 +- src/main.js | 4 + src/util.zip | Bin 0 -> 1704 bytes src/util/a.js | 89 + src/util/s.js | 19 + src/views/datasweb/Datasweb.vue | 1948 +++++++++-------- src/views/index/Index.vue | 4 +- src/views/personalCenter/PersonalCenter.vue | 12 +- src/views/register/Register.vue | 56 +- src/views/relation/Relation.vue | 59 +- src/views/searchList/SearchList.vue | 69 +- src/views/userAgreement/UserAgreement.vue | 2 + ....下载 => all_async_search_99b3fbd.js.ÏÂÔØ} | 0 ...下载 => jquery-1.10.2.min_65682a2.js.ÏÂÔØ} | 0 ...af2.js.下载 => search-sug_d37baf2.js.ÏÂÔØ} | 0 ...8953.js.下载 => swfobject_0178953.js.ÏÂÔØ} | 0 ...{tu_77547af.js.下载 => tu_77547af.js.ÏÂÔØ} | 0 vue.config.js | 4 +- ...分类年度数据.xlsx => µØÇøÊý¾ÝÄê¶È·ÖÀàÄê¶ÈÊý¾Ý.xlsx} | Bin ...度分类季度数据.xlsx => µØÇøÔ¶ȷÖÀ༾¶ÈÊý¾Ý.xlsx} | Bin ...度分类月度数据.xlsx => µØÇøÔ¶ȷÖÀàÔ¶ÈÊý¾Ý.xlsx} | Bin 29 files changed, 1647 insertions(+), 1087 deletions(-) create mode 100644 src/util.zip create mode 100644 src/util/a.js create mode 100644 src/util/s.js rename static/data/Component is not found in path_files/{all_async_search_99b3fbd.js.下载 => all_async_search_99b3fbd.js.ÏÂÔØ} (100%) rename static/data/Component is not found in path_files/{jquery-1.10.2.min_65682a2.js.下载 => jquery-1.10.2.min_65682a2.js.ÏÂÔØ} (100%) rename static/data/Component is not found in path_files/{search-sug_d37baf2.js.下载 => search-sug_d37baf2.js.ÏÂÔØ} (100%) rename static/data/Component is not found in path_files/{swfobject_0178953.js.下载 => swfobject_0178953.js.ÏÂÔØ} (100%) rename static/data/Component is not found in path_files/{tu_77547af.js.下载 => tu_77547af.js.ÏÂÔØ} (100%) rename 地区数据/{地区数据年度分类年度数据.xlsx => µØÇøÊý¾ÝÄê¶È·ÖÀàÄê¶ÈÊý¾Ý.xlsx} (100%) rename 地区数据/{地区月度分类季度数据.xlsx => µØÇøÔ¶ȷÖÀ༾¶ÈÊý¾Ý.xlsx} (100%) rename 地区数据/{地区月度分类月度数据.xlsx => µØÇøÔ¶ȷÖÀàÔ¶ÈÊý¾Ý.xlsx} (100%) diff --git a/.env.production b/.env.production index f813048..9ffb4ac 100644 --- a/.env.production +++ b/.env.production @@ -2,4 +2,6 @@ ENV = 'production' # base api -VUE_APP_BASE_API = 'http://data.it-blog.wang/api/v1/' \ No newline at end of file +#VUE_APP_BASE_API = 'http://data.it-blog.wang/api/v1/' +#VUE_APP_BASE_API = 'http://abc.zhangjiwei.top/api/v1/' +VUE_APP_BASE_API = 'http://www.zhishidata.com/api/v1/' \ No newline at end of file diff --git a/src/App.vue b/src/App.vue index 60d3c8f..879927c 100644 --- a/src/App.vue +++ b/src/App.vue @@ -5,6 +5,58 @@ + + diff --git a/src/assets/js/computeddata.js b/src/assets/js/computeddata.js index 67e62c6..b8b0f63 100644 --- a/src/assets/js/computeddata.js +++ b/src/assets/js/computeddata.js @@ -246,10 +246,12 @@ class computedFunc { } // 处理input选中数据 inputSelectData (listArr, lineArr) { // listArr 列选中的数组 //line行选中的数组 + // 重定向数组 let listArrs = JSON.parse(JSON.stringify(listArr)) let lineArrs = JSON.parse(JSON.stringify(lineArr)) listArrs.unshift(0) // 必选第一项 + if (this.restur.tableLine.length < listArrs.length) { listArrs = this.restur.tableLine.map((item, index) => { return index @@ -272,6 +274,7 @@ class computedFunc { }) // this.selectData.tableLine = this.restur.tableLine let datart = JSON.parse(JSON.stringify(this.restur.countData)) + let csd1 = datart.map((itemCol, indexCol) => { let newArr = {} Object.keys(itemCol).forEach((itemRow, indexRow) => { @@ -281,6 +284,7 @@ class computedFunc { }) return newArr }) + this.selectData.countData = lineArrs.map((lineItem, lineIndex) => { return csd1[lineItem] }) @@ -519,7 +523,8 @@ class computedFunc { dataSumLine () { let dataRs = JSON.parse(JSON.stringify(this.restur)) dataRs.tableLine.push({ - label: 'SUM求和' + this.restur.computedNum, + // label: 'SUM求和' + this.restur.computedNum, + label: 'SUM求和', labelId: 'table_line' + dataRs.tableLine.length }) let bth = dataRs.countData.map((item, index) => { @@ -556,7 +561,8 @@ class computedFunc { let returObj = {} transSum.forEach((item, index) => { if (index === 0) { - returObj['table_line' + index] = 'SUM求和' + this.restur.computedNum + // returObj['table_line' + index] = 'SUM求和' + this.restur.computedNum + returObj['table_line' + index] = 'SUM求和' } returObj['table_line' + (index + 1)] = item }) @@ -1294,6 +1300,7 @@ class computedFunc { shHangData = tableData.map((item, index) => { return Object.values(item) }) + console.log(5555) let hangAllDatas = null hangAllDatas = tableLine.map((item, index) => { return tableLine[index].label diff --git a/src/components/chartsCont/ChartsCont.vue b/src/components/chartsCont/ChartsCont.vue index a7c97f5..64572f5 100644 --- a/src/components/chartsCont/ChartsCont.vue +++ b/src/components/chartsCont/ChartsCont.vue @@ -10,10 +10,11 @@ style="width: 100%" height="360px" ref="table"> + - {{scope.row['table_line'+index]}} + + + + + + {{isNaN(scope.row['table_line'+index])?scope.row['table_line'+index]:isNaN(parseFloat(scope.row['table_line'+index]))?'暂无数据':parseFloat(scope.row['table_line'+index])}} + -
+
+
暂无数据