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">
+