guhongwei 4 سال پیش
والد
کامیت
07ded07332
1فایلهای تغییر یافته به همراه1 افزوده شده و 3 حذف شده
  1. 1 3
      src/views/adminCenter/homeIndex/parts/one.vue

+ 1 - 3
src/views/adminCenter/homeIndex/parts/one.vue

@@ -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');