Commit aa909b8b by chenwq

折线图

1 parent 51eb5eda
......@@ -4,7 +4,6 @@ function getLineOptions(obj) {
tooltip: {
trigger: 'axis',
borderWidth: 0,
show: true,
backgroundColor: 'rgba(68,68,68,0.80)',
textStyle: {
color: '#FFFFFF',
......@@ -72,4 +71,4 @@ function getLineOptions(obj) {
}
return lineOptions
}
export default getLineOptions
\ No newline at end of file
export default getLineOptions
......@@ -84,13 +84,13 @@ export default {
Object.keys(topTempList).forEach(item => {
topList.push({
label: item,
value: topTempList[item] ? this.numAddSymbol(topTempList[item]) : '- -'
value: topTempList[item].num ? this.numAddSymbol(topTempList[item].num) : '- -'
})
})
Object.keys(lastTempList).forEach(item => {
lastList.push({
label: item,
value: lastTempList[item] ? this.numAddSymbol(lastTempList[item]) : '- -'
value: lastTempList[item].num ? this.numAddSymbol(lastTempList[item].num) : '- -'
})
})
this.dataList.push({
......
......@@ -86,13 +86,13 @@ export default {
Object.keys(topTempList).forEach(item => {
topList.push({
label: item,
value: topTempList[item] ? this.numAddSymbol(topTempList[item]) : '- -'
value: topTempList[item].num ? this.numAddSymbol(topTempList[item].num) : '- -'
})
})
Object.keys(lastTempList).forEach(item => {
lastList.push({
label: item,
value: lastTempList[item] ? this.numAddSymbol(lastTempList[item]) : '- -'
value: lastTempList[item].num ? this.numAddSymbol(lastTempList[item].num) : '- -'
})
})
this.dataList.push({
......
......@@ -56,7 +56,7 @@ export default {
]
}
},
mounted() {},
mounted() { },
methods: {
init(val) {
this.isEmpty = true
......@@ -101,13 +101,13 @@ export default {
Object.keys(topTempList).forEach(item => {
topList.push({
label: item,
value: topTempList[item] ? this.numAddSymbol(topTempList[item]) : '- -'
value: topTempList[item].num ? this.numAddSymbol(topTempList[item].num) : '- -'
})
})
Object.keys(lastTempList).forEach(item => {
lastList.push({
label: item,
value: lastTempList[item] ? this.numAddSymbol(lastTempList[item]) : '- -'
value: lastTempList[item].num ? this.numAddSymbol(lastTempList[item].num) : '- -'
})
})
this.dataList.push({
......
......@@ -102,13 +102,13 @@ export default {
Object.keys(topTempList).forEach(item => {
topList.push({
label: item,
value: topTempList[item] ? this.numAddSymbol(topTempList[item]) : '- -'
value: topTempList[item].num ? this.numAddSymbol(topTempList[item].num) : '- -'
})
})
Object.keys(lastTempList).forEach(item => {
lastList.push({
label: item,
value: lastTempList[item] ? this.numAddSymbol(lastTempList[item]) : '- -'
value: lastTempList[item].num ? this.numAddSymbol(lastTempList[item].num) : '- -'
})
})
this.dataList.push({
......
......@@ -15,7 +15,7 @@
<div v-if="isEmpty" class="empty">
<img src="../../assets/images/empty.png" alt="" />
</div>
<LineChart v-else ref="lineChartRef" domId="sadayasuChart" :dataList.sync="dataList" :storeOrBrandTxt="storeOrBrandTxt" :queryType="queryType"></LineChart>
<LineChart v-else ref="lineChartRef" domId="sadayasuChart" :dataList.sync="dataList" :storeOrBrandTxt="storeOrBrandTxt" :queryType="queryType"></LineChart>
</div>
</div>
</template>
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!