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