guhongwei 3 years ago
parent
commit
ab7a4ef628
1 changed files with 12 additions and 1 deletions
  1. 12 1
      src/store/patent/disclosure.js

+ 12 - 1
src/store/patent/disclosure.js

@@ -13,6 +13,15 @@ const actions = {
     const res = await this.$axios.$get(api.interface, { skip, limit, ...info });
     const res = await this.$axios.$get(api.interface, { skip, limit, ...info });
     return res;
     return res;
   },
   },
+  // 预估报告
+  async haveReport({ commit }, { skip = 0, limit = 10, ...info } = {}) {
+    const res = await this.$axios.$get(`${api.interface}/haveReport`, {
+      skip,
+      limit,
+      ...info,
+    });
+    return res;
+  },
   async create({ commit }, payload) {
   async create({ commit }, payload) {
     const res = await this.$axios.$post(`${api.interface}`, payload);
     const res = await this.$axios.$post(`${api.interface}`, payload);
     return res;
     return res;
@@ -22,7 +31,9 @@ const actions = {
     return res;
     return res;
   },
   },
   async update({ commit }, { id, ...info } = {}) {
   async update({ commit }, { id, ...info } = {}) {
-    const res = await this.$axios.$post(`${api.interface}/update/${id}`, { ...info });
+    const res = await this.$axios.$post(`${api.interface}/update/${id}`, {
+      ...info,
+    });
     return res;
     return res;
   },
   },
   async delete({ commit }, payload) {
   async delete({ commit }, payload) {