|
@@ -12,7 +12,7 @@
|
|
|
|
|
|
<script>
|
|
|
import * as echarts from 'echarts';
|
|
|
- import {getSbfb} from '@/api/bigdata'
|
|
|
+ import {getSbfb,selectDeviceType} from '@/api/bigdata'
|
|
|
|
|
|
export default {
|
|
|
name: 'camera',
|
|
@@ -32,11 +32,17 @@
|
|
|
|
|
|
methods: {
|
|
|
sbfb() {
|
|
|
- let that = this
|
|
|
- getSbfb().then(resp => {
|
|
|
- that.data_sbfb = resp.data;
|
|
|
- that.myEcharts2();
|
|
|
- })
|
|
|
+ let that = this
|
|
|
+ selectDeviceType().then(res => {
|
|
|
+ res.data.forEach(item=> {
|
|
|
+ const param = Object.assign({})
|
|
|
+ param.name = item.deviceName
|
|
|
+ param.数量=item.deviceCount
|
|
|
+ this.source.push(param)
|
|
|
+ })
|
|
|
+ that.myEcharts2()
|
|
|
+ })
|
|
|
+ },
|
|
|
},
|
|
|
// 出处 http://192.144.199.210:8080/editor/index.html?chart_id=TMyJh73uiXkeu3_v
|
|
|
myEcharts1() {
|