eb6d1150
liuqimichale
title 总计 简单封装
|
1
|
<template>
|
cb40959e
liuqimichale
添加mock 数据
|
2
|
<div>
|
667dd190
liuqimichale
地磁
|
3
|
<titlesection title="PDA"></titlesection>
|
841f35d2
liuqimichale
filter
|
4
|
<totalsection :totalNum="totalVal"></totalsection>
|
9092f766
liuqimichale
pda
|
5
|
<bar-chart :chart-data="barChartData" class="flexfm"/>
|
cb40959e
liuqimichale
添加mock 数据
|
6
|
</div>
|
eb6d1150
liuqimichale
title 总计 简单封装
|
7
8
9
10
11
|
</template>
<script>
import titlesection from '../components/titlesection'
import totalsection from '../components/total'
|
813cafa3
liuqimichale
bar echarts
|
12
|
import barChart from '../components/barChart'
|
cb40959e
liuqimichale
添加mock 数据
|
13
14
|
import {fetchList} from '../api/api'
|
9092f766
liuqimichale
pda
|
15
16
17
|
const barChartData = {
data: {
yData: [100, 80, 21],
|
813cafa3
liuqimichale
bar echarts
|
18
19
20
21
|
xData: ['正常', '异常', '故障']
}
}
|
eb6d1150
liuqimichale
title 总计 简单封装
|
22
|
export default {
|
cb40959e
liuqimichale
添加mock 数据
|
23
|
name: 'pdasection',
|
eb6d1150
liuqimichale
title 总计 简单封装
|
24
25
|
components: {
titlesection,
|
813cafa3
liuqimichale
bar echarts
|
26
27
|
totalsection,
barChart
|
cb40959e
liuqimichale
添加mock 数据
|
28
|
},
|
841f35d2
liuqimichale
filter
|
29
30
|
data() {
return {
|
813cafa3
liuqimichale
bar echarts
|
31
|
totalVal: '213734',
|
9092f766
liuqimichale
pda
|
32
|
barChartData: barChartData.data
|
841f35d2
liuqimichale
filter
|
33
34
|
}
},
|
cb40959e
liuqimichale
添加mock 数据
|
35
36
37
38
39
40
41
42
43
44
45
|
created() {
this.getList()
},
methods: {
getList() {
fetchList()
.then(res => {
console.log(res);
});
},
|
eb6d1150
liuqimichale
title 总计 简单封装
|
46
47
48
49
50
51
52
|
}
}
</script>
<style scoped>
</style>
|