From 7e3b4fba6c236d8f2ae5b83823bfb0ae7a7c67e4 Mon Sep 17 00:00:00 2001 From: sk1551 <15175617877@163.com> Date: Wed, 8 Apr 2020 15:31:16 +0800 Subject: [PATCH] 20200407-lc-1 --- ruoyi-ui/src/api/system/school.js | 53 +++ ruoyi-ui/src/views/system/school/index.vue | 528 +++++++++++++++++++++ 2 files changed, 581 insertions(+) create mode 100644 ruoyi-ui/src/api/system/school.js create mode 100644 ruoyi-ui/src/views/system/school/index.vue diff --git a/ruoyi-ui/src/api/system/school.js b/ruoyi-ui/src/api/system/school.js new file mode 100644 index 000000000..78b428e41 --- /dev/null +++ b/ruoyi-ui/src/api/system/school.js @@ -0,0 +1,53 @@ +import request from '@/utils/request' + +// 查询幼儿园机构列表 +export function listSchool(query) { + return request({ + url: '/system/school/list', + method: 'get', + params: query + }) +} + +// 查询幼儿园机构详细 +export function getSchool(id) { + return request({ + url: '/system/school/' + id, + method: 'get' + }) +} + +// 新增幼儿园机构 +export function addSchool(data) { + return request({ + url: '/system/school', + method: 'post', + data: data + }) +} + +// 修改幼儿园机构 +export function updateSchool(data) { + return request({ + url: '/system/school', + method: 'put', + data: data + }) +} + +// 删除幼儿园机构 +export function delSchool(id) { + return request({ + url: '/system/school/' + id, + method: 'delete' + }) +} + +// 导出幼儿园机构 +export function exportSchool(query) { + return request({ + url: '/system/school/export', + method: 'get', + params: query + }) +} \ No newline at end of file diff --git a/ruoyi-ui/src/views/system/school/index.vue b/ruoyi-ui/src/views/system/school/index.vue new file mode 100644 index 000000000..7b3aaa9e7 --- /dev/null +++ b/ruoyi-ui/src/views/system/school/index.vue @@ -0,0 +1,528 @@ + + + \ No newline at end of file