diff --git a/sf-ui/.gitignore b/sf-ui/.gitignore new file mode 100644 index 0000000..b2d59d1 --- /dev/null +++ b/sf-ui/.gitignore @@ -0,0 +1,2 @@ +/node_modules +/dist \ No newline at end of file diff --git a/sf-ui/src/api/system/application.js b/sf-ui/src/api/system/application.js new file mode 100644 index 0000000..75137bf --- /dev/null +++ b/sf-ui/src/api/system/application.js @@ -0,0 +1,44 @@ +import request from '@/utils/request' + +// 查询应用列列表 +export function getListApi(query) { + return request({ + url: '/index/list/list', + method: 'get', + params: query + }) +} + +// 查询应用列详细 +export function getListDetail(id) { + return request({ + url: '/index/list/' + id, + method: 'get' + }) +} + +// 新增应用列 +export function addList(data) { + return request({ + url: '/index/list', + method: 'post', + data: data + }) +} + +// 修改应用列 +export function updateList(data) { + return request({ + url: '/index/list', + method: 'put', + data: data + }) +} + +// 删除应用列 +export function delList(id) { + return request({ + url: '/index/list/' + id, + method: 'delete' + }) +} diff --git a/sf-ui/src/layout/components/Navbar.vue b/sf-ui/src/layout/components/Navbar.vue index 67a53ab..7506ba1 100644 --- a/sf-ui/src/layout/components/Navbar.vue +++ b/sf-ui/src/layout/components/Navbar.vue @@ -1,5 +1,8 @@