diff --git a/src/api/gameswitch.js b/src/api/gameswitch.js index f86d15a..700b61e 100644 --- a/src/api/gameswitch.js +++ b/src/api/gameswitch.js @@ -23,10 +23,10 @@ export function updatGameSwitch(data) { }) } -export function delGameSwitch(data) { - return request({ - url: '/game_switch/del', - 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 3169f26..4960458 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -328,7 +328,7 @@ export const asyncRoutes = [ path: 'index', component: () => import('@/views/gameswitch/index'), name: 'gameswitch', - meta: { title: '游戏设置', pername: 'gameswitchlist' } + meta: { title: '功能开关', pername: 'gameswitchlist' } }, { path: 'blockplayer', diff --git a/src/views/audit/index.vue b/src/views/audit/index.vue index fb1db9e..23a7431 100644 --- a/src/views/audit/index.vue +++ b/src/views/audit/index.vue @@ -1,10 +1,10 @@ - @@ -52,14 +52,14 @@ {{ parseTime(row.modifytime) }} - + @@ -74,10 +74,10 @@ - + - + // import Pagination from '@/components/Pagination/index.vue' -import { addGameSwitch, updatGameSwitch, getGameSwitchList, delGameSwitch } from '@/api/gameswitch' +import { addGameSwitch, updatGameSwitch, getGameSwitchList } from '@/api/gameswitch' import { parseTime } from '@/utils' export default { @@ -155,27 +155,27 @@ export default { }) }, handleDel(row) { - this.$confirm('此操作将无法恢复, 是否继续?', '提示', { - confirmButtonText: '确定', - cancelButtonText: '取消', - type: 'warning' - }).then(() => { - delGameSwitch({ switch_name: row.switch_name }).then(response => { - if (response.code === 0) { - if (this.gameSwitchList.length === 1 && this.curpage === this.totalpage && this.curpage > 1) { - this.curpage-- - } - this.getList() - this.$notify({ - title: 'Success', - message: 'Deleted Successfully', - type: 'success', - duration: 2000 - }) - } - }) - }).catch(() => { - }) + // this.$confirm('此操作将无法恢复, 是否继续?', '提示', { + // confirmButtonText: '确定', + // cancelButtonText: '取消', + // type: 'warning' + // }).then(() => { + // delGameSwitch({ switch_name: row.switch_name }).then(response => { + // if (response.code === 0) { + // if (this.gameSwitchList.length === 1 && this.curpage === this.totalpage && this.curpage > 1) { + // this.curpage-- + // } + // this.getList() + // this.$notify({ + // title: 'Success', + // message: 'Deleted Successfully', + // type: 'success', + // duration: 2000 + // }) + // } + // }) + // }).catch(() => { + // }) }, getList() { getGameSwitchList(this.page_size, this.curpage).then(response => {