diff --git a/src/api/model/em.js b/src/api/model/em.js index a9263441..405c35e0 100644 --- a/src/api/model/em.js +++ b/src/api/model/em.js @@ -255,4 +255,36 @@ export default { } }, }, + repair: { + list: { + req: async function(data){ + return await http.get( + `${config.API_URL}/em/repair/`, + data + ); + } + }, + item: { + req: async function(id){ + return await http.get( + `${config.API_URL}/em/repair/${id}/` + ); + } + }, + create: { + name: "创建", + req: async function(data){ + return await http.post( + `${config.API_URL}/em/repair/`, + data); + } + }, + delete: { + name: "删除", + req: async function(id){ + return await http.delete( + `${config.API_URL}/em/repair/${id}/`); + } + }, + } } \ No newline at end of file diff --git a/src/views/em/repair.vue b/src/views/em/repair.vue new file mode 100644 index 00000000..c06a6503 --- /dev/null +++ b/src/views/em/repair.vue @@ -0,0 +1,63 @@ + + \ No newline at end of file diff --git a/src/views/em/repair_form.vue b/src/views/em/repair_form.vue new file mode 100644 index 00000000..4c62764c --- /dev/null +++ b/src/views/em/repair_form.vue @@ -0,0 +1,181 @@ + + + \ No newline at end of file