diff --git a/fir_admin/src/api/app.js b/fir_admin/src/api/app.js new file mode 100644 index 0000000..7606992 --- /dev/null +++ b/fir_admin/src/api/app.js @@ -0,0 +1,17 @@ +import request from '@/utils/request' + +export function getAppInfos(query) { + return request({ + url: '/appinfo', + method: 'get', + params: query + }) +} + +export function updateAppInfo(data) { + return request({ + url: '/appinfo', + method: 'put', + data + }) +} diff --git a/fir_admin/src/api/user.js b/fir_admin/src/api/user.js index 0849f28..900f5e2 100644 --- a/fir_admin/src/api/user.js +++ b/fir_admin/src/api/user.js @@ -30,3 +30,11 @@ export function getUserInfos(query) { params: query }) } + +export function updateUserInfo(data) { + return request({ + url: '/userinfo', + method: 'put', + data + }) +} diff --git a/fir_admin/src/router/index.js b/fir_admin/src/router/index.js index dda8608..6b019b7 100644 --- a/fir_admin/src/router/index.js +++ b/fir_admin/src/router/index.js @@ -83,12 +83,25 @@ export const constantRoutes = [ { path: '/apps', component: Layout, + redirect: '/apps/list', + name: 'apps', + meta: { + title: '应用管理', + icon: 'el-icon-s-help' + }, children: [ { - path: 'index', - name: 'index', - component: () => import('@/views/form/index'), - meta: { title: '应用管理', icon: 'form' } + path: 'list', + name: 'app_info_list', + component: () => import('@/views/appinfos/list'), + meta: { title: '应用列表', icon: 'form' } + }, + { + path: 'edit/:id(\\d+)', + component: () => import('@/views/appinfos/edit'), + name: 'app_info_edit', + meta: { title: '编辑信息', noCache: true, activeMenu: '/apps/list' }, + hidden: true } ] }, diff --git a/fir_admin/src/views/appinfos/AppDetail.vue b/fir_admin/src/views/appinfos/AppDetail.vue new file mode 100644 index 0000000..51de4c6 --- /dev/null +++ b/fir_admin/src/views/appinfos/AppDetail.vue @@ -0,0 +1,305 @@ + + + + + + diff --git a/fir_admin/src/views/appinfos/Dropdown/Comment.vue b/fir_admin/src/views/appinfos/Dropdown/Comment.vue new file mode 100644 index 0000000..d34b2b9 --- /dev/null +++ b/fir_admin/src/views/appinfos/Dropdown/Comment.vue @@ -0,0 +1,41 @@ + + + diff --git a/fir_admin/src/views/appinfos/Dropdown/Platform.vue b/fir_admin/src/views/appinfos/Dropdown/Platform.vue new file mode 100644 index 0000000..0a52726 --- /dev/null +++ b/fir_admin/src/views/appinfos/Dropdown/Platform.vue @@ -0,0 +1,46 @@ + + + diff --git a/fir_admin/src/views/appinfos/Dropdown/SourceUrl.vue b/fir_admin/src/views/appinfos/Dropdown/SourceUrl.vue new file mode 100644 index 0000000..f514e2a --- /dev/null +++ b/fir_admin/src/views/appinfos/Dropdown/SourceUrl.vue @@ -0,0 +1,38 @@ +v + + diff --git a/fir_admin/src/views/appinfos/Dropdown/index.js b/fir_admin/src/views/appinfos/Dropdown/index.js new file mode 100644 index 0000000..bc0c171 --- /dev/null +++ b/fir_admin/src/views/appinfos/Dropdown/index.js @@ -0,0 +1,3 @@ +export { default as CommentDropdown } from './Comment' +export { default as PlatformDropdown } from './Platform' +export { default as SourceUrlDropdown } from './SourceUrl' diff --git a/fir_admin/src/views/appinfos/edit.vue b/fir_admin/src/views/appinfos/edit.vue new file mode 100644 index 0000000..60ed9a5 --- /dev/null +++ b/fir_admin/src/views/appinfos/edit.vue @@ -0,0 +1,12 @@ + + + diff --git a/fir_admin/src/views/appinfos/list.vue b/fir_admin/src/views/appinfos/list.vue new file mode 100644 index 0000000..e775a38 --- /dev/null +++ b/fir_admin/src/views/appinfos/list.vue @@ -0,0 +1,201 @@ + + + diff --git a/fir_admin/src/views/userinfos/UserDetail.vue b/fir_admin/src/views/userinfos/UserDetail.vue index 7583e75..3099a6c 100644 --- a/fir_admin/src/views/userinfos/UserDetail.vue +++ b/fir_admin/src/views/userinfos/UserDetail.vue @@ -1,19 +1,22 @@