guhongwei hace 4 años
padre
commit
cc09467242
Se han modificado 1 ficheros con 8 adiciones y 1 borrados
  1. 8 1
      src/store/achieve/achieve_apply.js

+ 8 - 1
src/store/achieve/achieve_apply.js

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