|
@@ -4,6 +4,7 @@ import _ from 'lodash';
|
|
|
Vue.use(Vuex);
|
|
|
const api = {
|
|
|
productpactInfo: `/api/market/productpact`,
|
|
|
+ findpactInfo: `/api/market/productpact/findpact`,
|
|
|
};
|
|
|
const state = () => ({});
|
|
|
const mutations = {};
|
|
@@ -25,6 +26,12 @@ const actions = {
|
|
|
const res = await this.$axios.$get(`${api.productpactInfo}/${payload}`);
|
|
|
return res;
|
|
|
},
|
|
|
+
|
|
|
+ async findpact({ commit }, payload) {
|
|
|
+ const res = await this.$axios.$get(`${api.findpactInfo}/${payload}`);
|
|
|
+ return res;
|
|
|
+ },
|
|
|
+
|
|
|
async update({ commit }, { id, ...data }) {
|
|
|
const res = await this.$axios.$post(`${api.productpactInfo}/update/${id}`, data);
|
|
|
return res;
|