diff --git a/src/api/gameswitch.js b/src/api/gameswitch.js new file mode 100644 index 0000000..f86d15a --- /dev/null +++ b/src/api/gameswitch.js @@ -0,0 +1,32 @@ +import request from '@/utils/request' + +export function addGameSwitch(data) { + return request({ + url: '/game_switch/add', + method: 'post', + data + }) +} + +export function getGameSwitchList(pagesize, page) { + return request({ + url: '/game_switch/list?pagesize=' + pagesize + '&page=' + page, + method: 'get' + }) +} + +export function updatGameSwitch(data) { + return request({ + url: '/game_switch/edit', + method: 'post', + data + }) +} + +export function delGameSwitch(data) { + return request({ + url: '/game_switch/del', + method: 'post', + data + }) +} diff --git a/src/router/index.js b/src/router/index.js index 8b1039a..cb9259b 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -301,6 +301,21 @@ export const asyncRoutes = [ hidden: false } ] + }, { + path: '/gameswitch', + component: Layout, + redirect: '/index', + meta: { + pername: 'gameswitch' + }, + children: [ + { + path: 'index', + component: () => import('@/views/gameswitch/index'), + name: 'gameswitch', + meta: { title: '游戏设置', icon: 'skill', pername: 'gameswitchlist' } + } + ] } // { // path: '/permission', diff --git a/src/views/gameswitch/index.vue b/src/views/gameswitch/index.vue new file mode 100644 index 0000000..a362f98 --- /dev/null +++ b/src/views/gameswitch/index.vue @@ -0,0 +1,247 @@ + + +