guhongwei 3 年之前
父节点
当前提交
ab7a4ef628
共有 1 个文件被更改,包括 12 次插入1 次删除
  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 });
     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) {
     const res = await this.$axios.$post(`${api.interface}`, payload);
     return res;
@@ -22,7 +31,9 @@ const actions = {
     return res;
   },
   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;
   },
   async delete({ commit }, payload) {