guhongwei 4 years ago
parent
commit
9312f85f7c
2 changed files with 6 additions and 1 deletions
  1. 1 1
      dict/index.js
  2. 5 0
      src/store/ticket.js

+ 1 - 1
dict/index.js

@@ -19,7 +19,7 @@ export const status = [
   { label: '通过', value: '1' },
   { label: '通过', value: '1' },
   { label: '拒绝', value: '2' },
   { label: '拒绝', value: '2' },
 ];
 ];
-export const onlineType = ['线上培训', '线上新品发布', '线上展会', '线上科技产品宣传', '线上科普教育'];
+export const onlineType = ['线上培训', '线上新品发布', '线上展会', '线上科技产品宣传', '线上科普教育', '项目路演'];
 
 
 export const progressType = [
 export const progressType = [
   { label: '准备中', value: '0' },
   { label: '准备中', value: '0' },

+ 5 - 0
src/store/ticket.js

@@ -5,6 +5,7 @@ import { registerCoordinateSystem } from 'echarts';
 Vue.use(Vuex);
 Vue.use(Vuex);
 const api = {
 const api = {
   interface: `/api/m/main/ticket`,
   interface: `/api/m/main/ticket`,
+  statistics: `/api/m/main/statistics`,
 };
 };
 const state = () => ({});
 const state = () => ({});
 const mutations = {};
 const mutations = {};
@@ -43,6 +44,10 @@ const actions = {
     const res = await this.$axios.$get(`${api.interface}Record`, payload);
     const res = await this.$axios.$get(`${api.interface}Record`, payload);
     return res;
     return res;
   },
   },
+  async staQuery({ commit }, { type }) {
+    const res = await this.$axios.$get(`${api.statistics}/${type}`);
+    return res;
+  },
 };
 };
 export default {
 export default {
   namespaced: true,
   namespaced: true,