diff --git a/src/api/workertool.js b/src/api/workertool.js new file mode 100644 index 0000000..7f8c022 --- /dev/null +++ b/src/api/workertool.js @@ -0,0 +1,49 @@ +import request from '@/utils/request' + +export function addGameapi(data) { + return request({ + url: '/gameapihost/add', + method: 'post', + data + }) +} + +export function getGameapiList(data) { + return request({ + url: '/gameapihost/list', + method: 'post', + data + }) +} + +export function updateGameapi(data) { + return request({ + url: '/gameapihost/edit', + method: 'post', + data + }) +} + +export function addApigate(data) { + return request({ + url: '/apigate/add', + method: 'post', + data + }) +} + +export function getApigateList(data) { + return request({ + url: '/apigate/list', + method: 'post', + data + }) +} + +export function updateApigate(data) { + return request({ + url: '/apigate/edit', + method: 'post', + data + }) +} diff --git a/src/router/index.js b/src/router/index.js index 14a58bd..bfda42a 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -361,6 +361,29 @@ export const asyncRoutes = [ meta: { title: '激活码', pername: 'activecode' } } ] + }, { + path: '/workertool', + component: Layout, + redirect: '/index', + meta: { + title: '运维工具', + icon: 'skill', + pername: 'wokertool' + }, + children: [ + { + path: 'index', + component: () => import('@/views/workertool/gameapi'), + name: 'gameapi', + meta: { title: 'php服务器配置', pername: 'gameapi' } + }, + { + path: 'apigate', + component: () => import('@/views/workertool/apigate'), + name: 'apigate', + meta: { title: 'apigate服务器配置', pername: 'apigate' } + } + ] } // { // path: '/permission', diff --git a/src/views/whitelist/index.vue b/src/views/whitelist/index.vue index 542c096..ecee42e 100644 --- a/src/views/whitelist/index.vue +++ b/src/views/whitelist/index.vue @@ -85,7 +85,7 @@ - + +
+
+ + 新增 + +
+ + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + diff --git a/src/views/workertool/gameapi.vue b/src/views/workertool/gameapi.vue new file mode 100644 index 0000000..5f16b53 --- /dev/null +++ b/src/views/workertool/gameapi.vue @@ -0,0 +1,237 @@ + + + +