guhongwei %!s(int64=3) %!d(string=hai) anos
pai
achega
160d087915

+ 10 - 1
src/store/patent/patentanalysis.js

@@ -10,7 +10,11 @@ const mutations = {};
 
 const actions = {
   async query({ commit }, { skip = 0, limit = 10, ...info } = {}) {
-    const res = await this.$axios.$get(api.patentanalysis, { skip, limit, ...info });
+    const res = await this.$axios.$get(api.patentanalysis, {
+      skip,
+      limit,
+      ...info,
+    });
     return res;
   },
   async create({ commit }, payload) {
@@ -31,6 +35,11 @@ const actions = {
     const res = await this.$axios.$delete(`${api.patentanalysis}/${payload}`);
     return res;
   },
+  // 审核
+  async check({ commit }, payload) {
+    const res = await this.$axios.$post(`${api.patentanalysis}/check`, payload);
+    return res;
+  },
 };
 export default {
   namespaced: true,

+ 1 - 1
src/store/patent/patentapply.js

@@ -37,7 +37,7 @@ const actions = {
   },
   // 审核
   async check({ commit }, payload) {
-    const res = await this.$axios.$post(`${api.interface}/check`, payload);
+    const res = await this.$axios.$post(`${api.patentapply}/check`, payload);
     return res;
   },
 };

+ 10 - 1
src/store/patent/patentassess.js

@@ -10,7 +10,11 @@ const mutations = {};
 
 const actions = {
   async query({ commit }, { skip = 0, limit = 10, ...info } = {}) {
-    const res = await this.$axios.$get(api.patentassess, { skip, limit, ...info });
+    const res = await this.$axios.$get(api.patentassess, {
+      skip,
+      limit,
+      ...info,
+    });
     return res;
   },
   async create({ commit }, payload) {
@@ -31,6 +35,11 @@ const actions = {
     const res = await this.$axios.$delete(`${api.patentassess}/${payload}`);
     return res;
   },
+  // 审核
+  async check({ commit }, payload) {
+    const res = await this.$axios.$post(`${api.patentassess}/check`, payload);
+    return res;
+  },
 };
 export default {
   namespaced: true,

+ 38 - 0
src/store/patent/patentexamine.js

@@ -0,0 +1,38 @@
+import Vue from 'vue';
+import Vuex from 'vuex';
+import _ from 'lodash';
+Vue.use(Vuex);
+const api = {
+  interface: `/api/live/v0/patent/patentexamine`,
+};
+const state = () => ({});
+const mutations = {};
+
+const actions = {
+  async query({ commit }, { skip = 0, limit = 10, ...info } = {}) {
+    const res = await this.$axios.$get(api.interface, { skip, limit, ...info });
+    return res;
+  },
+  async create({ commit }, payload) {
+    const res = await this.$axios.$post(`${api.interface}`, payload);
+    return res;
+  },
+  async fetch({ commit }, payload) {
+    const res = await this.$axios.$get(`${api.interface}/${payload}`);
+    return res;
+  },
+  async update({ commit }, { id, ...info } = {}) {
+    const res = await this.$axios.$post(`${api.interface}/update/${id}`, { ...info });
+    return res;
+  },
+  async delete({ commit }, payload) {
+    const res = await this.$axios.$delete(`${api.interface}/${payload}`);
+    return res;
+  },
+};
+export default {
+  namespaced: true,
+  state,
+  mutations,
+  actions,
+};

+ 6 - 6
src/store/patent/patent_trans.js

@@ -3,32 +3,32 @@ import Vuex from 'vuex';
 import _ from 'lodash';
 Vue.use(Vuex);
 const api = {
-  patent_trans: `/api/live/v0/patent/patent_trans`,
+  patentinfo: `/api/live/v0/patent/patentinfo`,
 };
 const state = () => ({});
 const mutations = {};
 
 const actions = {
   async query({ commit }, { skip = 0, limit = 10, ...info } = {}) {
-    const res = await this.$axios.$get(api.patent_trans, { skip, limit, ...info });
+    const res = await this.$axios.$get(api.patentinfo, { skip, limit, ...info });
     return res;
   },
   async create({ commit }, payload) {
-    const res = await this.$axios.$post(`${api.patent_trans}`, payload);
+    const res = await this.$axios.$post(`${api.patentinfo}`, payload);
     return res;
   },
   async fetch({ commit }, payload) {
-    const res = await this.$axios.$get(`${api.patent_trans}/${payload}`);
+    const res = await this.$axios.$get(`${api.patentinfo}/${payload}`);
     return res;
   },
   async update({ commit }, { id, ...info } = {}) {
-    const res = await this.$axios.$post(`${api.patent_trans}/update/${id}`, {
+    const res = await this.$axios.$post(`${api.patentinfo}/update/${id}`, {
       ...info,
     });
     return res;
   },
   async delete({ commit }, payload) {
-    const res = await this.$axios.$delete(`${api.patent_trans}/${payload}`);
+    const res = await this.$axios.$delete(`${api.patentinfo}/${payload}`);
     return res;
   },
 };

+ 38 - 0
src/store/patent/patentnotice.js

@@ -0,0 +1,38 @@
+import Vue from 'vue';
+import Vuex from 'vuex';
+import _ from 'lodash';
+Vue.use(Vuex);
+const api = {
+  interface: `/api/live/v0/patent/patentnotice`,
+};
+const state = () => ({});
+const mutations = {};
+
+const actions = {
+  async query({ commit }, { skip = 0, limit = 10, ...info } = {}) {
+    const res = await this.$axios.$get(api.interface, { skip, limit, ...info });
+    return res;
+  },
+  async create({ commit }, payload) {
+    const res = await this.$axios.$post(`${api.interface}`, payload);
+    return res;
+  },
+  async fetch({ commit }, payload) {
+    const res = await this.$axios.$get(`${api.interface}/${payload}`);
+    return res;
+  },
+  async update({ commit }, { id, ...info } = {}) {
+    const res = await this.$axios.$post(`${api.interface}/update/${id}`, { ...info });
+    return res;
+  },
+  async delete({ commit }, payload) {
+    const res = await this.$axios.$delete(`${api.interface}/${payload}`);
+    return res;
+  },
+};
+export default {
+  namespaced: true,
+  state,
+  mutations,
+  actions,
+};

+ 6 - 6
src/store/patent/patent_info.js

@@ -3,32 +3,32 @@ import Vuex from 'vuex';
 import _ from 'lodash';
 Vue.use(Vuex);
 const api = {
-  patent_info: `/api/live/v0/patent/patent_info`,
+  patenttrans: `/api/live/v0/patent/patenttrans`,
 };
 const state = () => ({});
 const mutations = {};
 
 const actions = {
   async query({ commit }, { skip = 0, limit = 10, ...info } = {}) {
-    const res = await this.$axios.$get(api.patent_info, { skip, limit, ...info });
+    const res = await this.$axios.$get(api.patenttrans, { skip, limit, ...info });
     return res;
   },
   async create({ commit }, payload) {
-    const res = await this.$axios.$post(`${api.patent_info}`, payload);
+    const res = await this.$axios.$post(`${api.patenttrans}`, payload);
     return res;
   },
   async fetch({ commit }, payload) {
-    const res = await this.$axios.$get(`${api.patent_info}/${payload}`);
+    const res = await this.$axios.$get(`${api.patenttrans}/${payload}`);
     return res;
   },
   async update({ commit }, { id, ...info } = {}) {
-    const res = await this.$axios.$post(`${api.patent_info}/update/${id}`, {
+    const res = await this.$axios.$post(`${api.patenttrans}/update/${id}`, {
       ...info,
     });
     return res;
   },
   async delete({ commit }, payload) {
-    const res = await this.$axios.$delete(`${api.patent_info}/${payload}`);
+    const res = await this.$axios.$delete(`${api.patenttrans}/${payload}`);
     return res;
   },
 };