|
@@ -18,7 +18,6 @@
|
|
|
<script>
|
|
|
import * as echarts from 'echarts';
|
|
|
import { mapState, createNamespacedHelpers } from 'vuex';
|
|
|
-const { mapActions: ticket } = createNamespacedHelpers('ticket');
|
|
|
const { mapActions: statistics } = createNamespacedHelpers('statistics');
|
|
|
export default {
|
|
|
name: 'one',
|
|
@@ -32,10 +31,9 @@ export default {
|
|
|
this.init();
|
|
|
},
|
|
|
methods: {
|
|
|
- ...ticket(['staQuery']),
|
|
|
...statistics(['query']),
|
|
|
async init() {
|
|
|
- let res = await this.staQuery();
|
|
|
+ let res = await this.query({ type: 'declare' });
|
|
|
if (this.$checkRes(res)) {
|
|
|
console.log(res);
|
|
|
var chartDom = document.getElementById('oneChart');
|