|
@@ -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;
|
|
|
},
|
|
|
};
|