guhongwei 4 éve
szülő
commit
6df1af791b
2 módosított fájl, 14 hozzáadás és 0 törlés
  1. 2 0
      src/store/index.js
  2. 12 0
      src/views/service/index.vue

+ 2 - 0
src/store/index.js

@@ -14,6 +14,7 @@ import code from '@common/src/store/code';
 import online from '@common/src/store/online';
 import policy from '@common/src/store/policy';
 import ticket from '@common/src/store/ticket';
+import achieveApply from '@common/src/store/achieve_apply';
 
 Vue.use(Vuex);
 
@@ -34,5 +35,6 @@ export default new Vuex.Store({
     code,
     policy,
     ticket,
+    achieveApply,
   },
 });

+ 12 - 0
src/views/service/index.vue

@@ -54,6 +54,7 @@ import { mapState, createNamespacedHelpers } from 'vuex';
 const { mapActions: organization } = createNamespacedHelpers('organization');
 const { mapActions: policy } = createNamespacedHelpers('policy');
 const { mapActions: ticket } = createNamespacedHelpers('ticket');
+const { mapActions: achieveApply } = createNamespacedHelpers('achieveApply');
 export default {
   name: 'index',
   props: {},
@@ -108,6 +109,7 @@ export default {
   methods: {
     ...policy({ policyQuery: 'query' }),
     ...ticket({ ticketQuery: 'query' }),
+    ...achieveApply({ achieveApplyQuery: 'query' }),
     ...organization(['login', 'fetch']),
     link(data) {
       const { type, name } = data;
@@ -160,6 +162,16 @@ export default {
       if (this.$checkRes(res)) {
         this.$set(this, `twoList`, res.data);
       }
+      // 创新券
+      res = await this.ticketQuery({ skip, limit: 7, status: 1, ...info });
+      if (this.$checkRes(res)) {
+        this.$set(this, `twoList`, res.data);
+      }
+      // 科技成果评价
+      res = await this.achieveApplyQuery({ skip, limit: 12, status: 6, ...info });
+      if (this.$checkRes(res)) {
+        this.$set(this, `thrList`, res.data);
+      }
     },
     // 查询企业详细信息
     async searchCompany(data) {