调整
This commit is contained in:
parent
04e7d2ddd1
commit
ec294b5713
@ -23,10 +23,10 @@ export function updatGameSwitch(data) {
|
|||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
export function delGameSwitch(data) {
|
// export function delGameSwitch(data) {
|
||||||
return request({
|
// return request({
|
||||||
url: '/game_switch/del',
|
// url: '/game_switch/del',
|
||||||
method: 'post',
|
// method: 'post',
|
||||||
data
|
// data
|
||||||
})
|
// })
|
||||||
}
|
// }
|
||||||
|
@ -328,7 +328,7 @@ export const asyncRoutes = [
|
|||||||
path: 'index',
|
path: 'index',
|
||||||
component: () => import('@/views/gameswitch/index'),
|
component: () => import('@/views/gameswitch/index'),
|
||||||
name: 'gameswitch',
|
name: 'gameswitch',
|
||||||
meta: { title: '游戏设置', pername: 'gameswitchlist' }
|
meta: { title: '功能开关', pername: 'gameswitchlist' }
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
path: 'blockplayer',
|
path: 'blockplayer',
|
||||||
|
@ -1,10 +1,10 @@
|
|||||||
<template>
|
<template>
|
||||||
<div class="app-container">
|
<div class="app-container">
|
||||||
<div class="filter-container">
|
<!--div class="filter-container">
|
||||||
<el-button v-show="visibleAddaudit" class="filter-item" style="margin-left: 10px;" type="primary" @click="handleCreate">
|
<el-button v-show="visibleAddaudit" class="filter-item" style="margin-left: 10px;" type="primary" @click="handleCreate">
|
||||||
新增
|
新增
|
||||||
</el-button>
|
</el-button>
|
||||||
</div>
|
</div-->
|
||||||
<el-table
|
<el-table
|
||||||
:data="auditList"
|
:data="auditList"
|
||||||
border
|
border
|
||||||
|
@ -1,10 +1,10 @@
|
|||||||
<template>
|
<template>
|
||||||
<div class="app-container">
|
<div class="app-container">
|
||||||
<div class="filter-container">
|
<!--div class="filter-container">
|
||||||
<el-button class="filter-item" style="margin-left: 10px;" type="primary" @click="handleCreate">
|
<el-button class="filter-item" style="margin-left: 10px;" type="primary" @click="handleCreate">
|
||||||
新增
|
新增
|
||||||
</el-button>
|
</el-button>
|
||||||
</div>
|
</div-->
|
||||||
<el-table
|
<el-table
|
||||||
:data="gameSwitchList"
|
:data="gameSwitchList"
|
||||||
border
|
border
|
||||||
@ -33,7 +33,7 @@
|
|||||||
<svg-icon v-else icon-class="no" style="font-size: 20px;" />
|
<svg-icon v-else icon-class="no" style="font-size: 20px;" />
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column
|
<!--el-table-column
|
||||||
prop="createtime"
|
prop="createtime"
|
||||||
label="创建时间"
|
label="创建时间"
|
||||||
>
|
>
|
||||||
@ -52,14 +52,14 @@
|
|||||||
{{ parseTime(row.modifytime) }}
|
{{ parseTime(row.modifytime) }}
|
||||||
</span>
|
</span>
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column-->
|
||||||
<el-table-column
|
<el-table-column
|
||||||
fixed="right"
|
fixed="right"
|
||||||
label="操作"
|
label="操作"
|
||||||
>
|
>
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
<el-button type="text" size="small" @click="handleUpdate(scope.row)">编辑</el-button>
|
<el-button type="text" size="small" @click="handleUpdate(scope.row)">编辑</el-button>
|
||||||
<el-button type="text" size="small" @click="handleDel(scope.row)">删除</el-button>
|
<!--el-button type="text" size="small" @click="handleDel(scope.row)">删除</el-button-->
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
</el-table>
|
</el-table>
|
||||||
@ -74,10 +74,10 @@
|
|||||||
<el-dialog :title="dialogTitle" :visible.sync="dialogFormVisible" :close-on-click-modal="false" @close="handleDialogClose()">
|
<el-dialog :title="dialogTitle" :visible.sync="dialogFormVisible" :close-on-click-modal="false" @close="handleDialogClose()">
|
||||||
<el-form ref="form" :rules="rules" :model="form" label-position="left" label-width="90px" style="width: 400px; margin-left:50px;">
|
<el-form ref="form" :rules="rules" :model="form" label-position="left" label-width="90px" style="width: 400px; margin-left:50px;">
|
||||||
<el-form-item label="功能" prop="switch_name">
|
<el-form-item label="功能" prop="switch_name">
|
||||||
<el-input v-model="form.switch_name" />
|
<el-input v-model="form.switch_name" :readonly="true" />
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item label="功能描述" prop="remark">
|
<el-form-item label="功能描述" prop="remark">
|
||||||
<el-input v-model="form.remark" />
|
<el-input v-model="form.remark" :readonly="true" />
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item label="是否启用">
|
<el-form-item label="是否启用">
|
||||||
<el-switch
|
<el-switch
|
||||||
@ -104,7 +104,7 @@
|
|||||||
|
|
||||||
<script>
|
<script>
|
||||||
// import Pagination from '@/components/Pagination/index.vue'
|
// 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'
|
import { parseTime } from '@/utils'
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
@ -155,27 +155,27 @@ export default {
|
|||||||
})
|
})
|
||||||
},
|
},
|
||||||
handleDel(row) {
|
handleDel(row) {
|
||||||
this.$confirm('此操作将无法恢复, 是否继续?', '提示', {
|
// this.$confirm('此操作将无法恢复, 是否继续?', '提示', {
|
||||||
confirmButtonText: '确定',
|
// confirmButtonText: '确定',
|
||||||
cancelButtonText: '取消',
|
// cancelButtonText: '取消',
|
||||||
type: 'warning'
|
// type: 'warning'
|
||||||
}).then(() => {
|
// }).then(() => {
|
||||||
delGameSwitch({ switch_name: row.switch_name }).then(response => {
|
// delGameSwitch({ switch_name: row.switch_name }).then(response => {
|
||||||
if (response.code === 0) {
|
// if (response.code === 0) {
|
||||||
if (this.gameSwitchList.length === 1 && this.curpage === this.totalpage && this.curpage > 1) {
|
// if (this.gameSwitchList.length === 1 && this.curpage === this.totalpage && this.curpage > 1) {
|
||||||
this.curpage--
|
// this.curpage--
|
||||||
}
|
// }
|
||||||
this.getList()
|
// this.getList()
|
||||||
this.$notify({
|
// this.$notify({
|
||||||
title: 'Success',
|
// title: 'Success',
|
||||||
message: 'Deleted Successfully',
|
// message: 'Deleted Successfully',
|
||||||
type: 'success',
|
// type: 'success',
|
||||||
duration: 2000
|
// duration: 2000
|
||||||
})
|
// })
|
||||||
}
|
// }
|
||||||
})
|
// })
|
||||||
}).catch(() => {
|
// }).catch(() => {
|
||||||
})
|
// })
|
||||||
},
|
},
|
||||||
getList() {
|
getList() {
|
||||||
getGameSwitchList(this.page_size, this.curpage).then(response => {
|
getGameSwitchList(this.page_size, this.curpage).then(response => {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user