diff --git a/src/api/model/hrm.js b/src/api/model/hrm.js index 5f55e757..9f5b3ba2 100644 --- a/src/api/model/hrm.js +++ b/src/api/model/hrm.js @@ -159,6 +159,33 @@ export default { `${config.API_URL}/hrm/attendance/${id}/` ); } - } + }, + }, + resignation: { + list: { + name: "离职申请", + req: async function(data){ + return await http.get( + `${config.API_URL}/hrm/resignation/`, + data + ); + } + }, + item: { + name: "离职申请", + req: async function(id){ + return await http.get( + `${config.API_URL}/hrm/resignation/${id}/`, + ); + } + }, + create: { + name: "新增", + req: async function(data){ + return await http.post( + `${config.API_URL}/hrm/resignation/`, + data); + } + }, } } diff --git a/src/views/hrm/resignation.vue b/src/views/hrm/resignation.vue new file mode 100644 index 00000000..9ec9c79d --- /dev/null +++ b/src/views/hrm/resignation.vue @@ -0,0 +1,42 @@ + + \ No newline at end of file diff --git a/src/views/hrm/resignation_form.vue b/src/views/hrm/resignation_form.vue new file mode 100644 index 00000000..a6eadc3f --- /dev/null +++ b/src/views/hrm/resignation_form.vue @@ -0,0 +1,75 @@ + + \ No newline at end of file