lrf402788946 4 年之前
父節點
當前提交
a6cba45838
共有 1 個文件被更改,包括 11 次插入0 次删除
  1. 11 0
      store/school.js

+ 11 - 0
store/school.js

@@ -5,6 +5,7 @@ import axios from 'axios';
 Vue.use(Vuex);
 const api = {
   interface: `/api/train/school`,
+  nameListNotice: `/api/train/job`,
 };
 const state = () => ({});
 const mutations = {};
@@ -30,6 +31,16 @@ const actions = {
     const res = await this.$axios.$delete(`${api.interface}/${payload}`);
     return res;
   },
+  async getNoticeList({ commit }, { skip = 0, limit, ...info } = {}) {
+    const res = await this.$axios.$get(`${api.nameListNotice}`, { skip, limit, ...info });
+    return res;
+  },
+
+  async updateNoticeStatus({ commit }, { id, ...info }) {
+    const res = await this.$axios.$post(`${api.nameListNotice}/update/${id}`, info);
+    return res;
+  },
+
   async mergeRequest({ commit, dispatch }, { method, data }) {
     let toRequest = () => {
       let res = [];