|
@@ -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) {
|