|
@@ -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 = [];
|