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 @@ + + + + {{ !comment_disabled?'Comment: opened':'Comment: closed' }} + + + + + + + Close comment + + + Open comment + + + + + + + + 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 @@ + + + + Platfroms({{ platforms.length }}) + + + + + + {{ item.name }} + + + + + + + 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 + + + Link + + + + + + + URL + + + + + + + + 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 @@ + + + + + + + + + + + + + + + + + + + Search + + + + + + {{ scope.row.id }} + + + + + + + + + + {{ scope.row.name }} + + + + + {{ scope.row.bundle_id }} + + + + + + 无关联应用 + + + + + {{ scope.row.domain_name }} + + + + + + {{ scope.row.user_id }} + + + + + + {{ scope.row.short }} + + + + + {{ scope.row.count_hits }} + + + + + {{ scope.row |appStatusNameFilter }} + + + + + + {{ scope.row.isshow }} + + + + + + + + {{ scope.row.updated_time|formatTime }} + + + + + + + + 编辑 + + + + + + + + + + + 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 @@ - - + - - - - - - - 保存本次修改 - - - + + + + + + + + + + + + + + @@ -25,7 +28,7 @@ - + @@ -34,7 +37,7 @@ - + @@ -54,6 +57,13 @@ + + + + + + + @@ -68,21 +78,95 @@ - + + + + + + + - - + - + - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -110,7 +194,6 @@ - @@ -120,44 +203,64 @@ - - - - - - - - - - - - - - - - - - - + + 修改 + + 取消 + 保存修改 + +