|
@@ -22,13 +22,20 @@ const actions = {
|
|
return res;
|
|
return res;
|
|
},
|
|
},
|
|
async update({ commit }, { id, ...info } = {}) {
|
|
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;
|
|
return res;
|
|
},
|
|
},
|
|
async delete({ commit }, payload) {
|
|
async delete({ commit }, payload) {
|
|
const res = await this.$axios.$delete(`${api.interface}/${payload}`);
|
|
const res = await this.$axios.$delete(`${api.interface}/${payload}`);
|
|
return res;
|
|
return res;
|
|
},
|
|
},
|
|
|
|
+ // 获取状态下的成果数
|
|
|
|
+ async queryNum({ commit }, payload) {
|
|
|
|
+ const res = await this.$axios.$get(`${api.interface}/remind/${payload}`);
|
|
|
|
+ return res;
|
|
|
|
+ },
|
|
};
|
|
};
|
|
export default {
|
|
export default {
|
|
namespaced: true,
|
|
namespaced: true,
|