|
@@ -9,6 +9,7 @@
|
|
<script>
|
|
<script>
|
|
import * as echarts from 'echarts';
|
|
import * as echarts from 'echarts';
|
|
import {getSjqs} from '@/api/bigdata.js'
|
|
import {getSjqs} from '@/api/bigdata.js'
|
|
|
|
+ import {getWaterSjqs} from '@/api/bigdata.js'
|
|
|
|
|
|
|
|
|
|
export default {
|
|
export default {
|
|
@@ -21,7 +22,8 @@
|
|
}
|
|
}
|
|
},
|
|
},
|
|
mounted() {
|
|
mounted() {
|
|
- this.sjqs()
|
|
|
|
|
|
+ // this.sjqs()
|
|
|
|
+ this.getWaterSjqs()
|
|
|
|
|
|
},
|
|
},
|
|
|
|
|
|
@@ -35,6 +37,15 @@
|
|
that.myEcharts()
|
|
that.myEcharts()
|
|
})
|
|
})
|
|
},
|
|
},
|
|
|
|
+ getWaterSjqs() {
|
|
|
|
+ let that = this
|
|
|
|
+ getWaterSjqs().then(resp => {
|
|
|
|
+ console.log("偷砂采石事件分析", resp.data)
|
|
|
|
+ that.data_month = resp.data.month
|
|
|
|
+ that.data_num = resp.data.num
|
|
|
|
+ that.myEcharts()
|
|
|
|
+ })
|
|
|
|
+ },
|
|
|
|
|
|
myEcharts() {
|
|
myEcharts() {
|
|
let that = this
|
|
let that = this
|