diff --git a/src/api/model/rem.js b/src/api/model/rem.js new file mode 100644 index 00000000..be4866c7 --- /dev/null +++ b/src/api/model/rem.js @@ -0,0 +1,54 @@ +import config from "@/config" +import http from "@/utils/request" +export default { + project: { + list: { + name: "获取列表", + req: async function(data){ + return await http.get( + `${config.API_URL}/rem/project/`, + data + ); + } + }, + item: { + name: "获取详情", + req: async function(id){ + return await http.get( + `${config.API_URL}/rem/project/${id}/` + ); + } + }, + cquery: { + name: "复杂查询", + req: async function(data){ + return await http.post( + `${config.API_URL}/rem/project/cquery/`, + data); + } + }, + update: { + name: "编辑更新", + req: async function(id, data){ + return await http.put( + `${config.API_URL}/rem/project/${id}/`, + data); + } + }, + create: { + name: "新增", + req: async function(data){ + return await http.post( + `${config.API_URL}/rem/project/`, + data); + } + }, + delete: { + name: "删除", + req: async function(id){ + return await http.delete( + `${config.API_URL}/rem/project/${id}/`); + } + }, + }, +} \ No newline at end of file diff --git a/src/views/rem/project.vue b/src/views/rem/project.vue new file mode 100644 index 00000000..ae91767a --- /dev/null +++ b/src/views/rem/project.vue @@ -0,0 +1,78 @@ + + \ No newline at end of file diff --git a/src/views/rem/project_form.vue b/src/views/rem/project_form.vue new file mode 100644 index 00000000..301bdfd2 --- /dev/null +++ b/src/views/rem/project_form.vue @@ -0,0 +1,181 @@ + + + \ No newline at end of file