diff --git a/src/api/model/mtm.js b/src/api/model/mtm.js index a76f323a..f8ea06b4 100644 --- a/src/api/model/mtm.js +++ b/src/api/model/mtm.js @@ -231,6 +231,33 @@ export default { return await http.get(`${config.API_URL}/mtm/shift/`, data); }, }, + item: { + name: "获取详情", + req: async function (id) { + return await http.get(`${config.API_URL}/mtm/shift/${id}/`); + }, + }, + create: { + name: "创建", + req: async function (data) { + return await http.post(`${config.API_URL}/mtm/shift/`, data); + }, + }, + update: { + name: "更新", + req: async function (id, data) { + return await http.put( + `${config.API_URL}/mtm/shift/${id}/`, + data + ); + }, + }, + delete: { + name: "删除", + req: async function (id) { + return await http.delete(`${config.API_URL}/mtm/shift/${id}/`); + }, + }, }, //班组 team: { diff --git a/src/views/mtm/shift.vue b/src/views/mtm/shift.vue new file mode 100644 index 00000000..1e417c45 --- /dev/null +++ b/src/views/mtm/shift.vue @@ -0,0 +1,125 @@ + +