Commit aa909b8b by chenwq

折线图

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