generated from root/miduo_server
Merge branch 'master' of codeup.aliyun.com:6417d67de477e2050c6497df/gm_front
commit
ab03dd445d
|
|
@ -427,6 +427,12 @@ export function delBlackList(id) {
|
||||||
method: 'post'
|
method: 'post'
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
export function delSingleBlackList(id) {
|
||||||
|
return request({
|
||||||
|
url: `/system/game/delsingleblacklist/${id}`,
|
||||||
|
method: 'post'
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
export function getNoticeInfo(data) {
|
export function getNoticeInfo(data) {
|
||||||
return request({
|
return request({
|
||||||
|
|
|
||||||
|
|
@ -159,6 +159,12 @@
|
||||||
@click="() => addOrUpdateSingle(scope.row)"
|
@click="() => addOrUpdateSingle(scope.row)"
|
||||||
>编辑
|
>编辑
|
||||||
</el-button>
|
</el-button>
|
||||||
|
<el-button
|
||||||
|
size="small"
|
||||||
|
type="danger"
|
||||||
|
@click="() => delSingle(scope.row)"
|
||||||
|
>删除
|
||||||
|
</el-button>
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
</el-table>
|
</el-table>
|
||||||
|
|
@ -187,7 +193,7 @@
|
||||||
</el-select>
|
</el-select>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item label="封禁时长" :label-width="formLabelWidth" prop="time">
|
<el-form-item label="封禁时长" :label-width="formLabelWidth" prop="time">
|
||||||
<el-input-number v-model="form.time" :min="-1" placeholder="单位:分钟,-1表示永久封禁" style="width:300px;"></el-input-number>
|
<el-input-number v-model="singleServerForm.time" :min="-1" placeholder="单位:分钟,-1表示永久封禁" style="width:300px;"></el-input-number>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-form>
|
</el-form>
|
||||||
<div slot="footer" class="dialog-footer">
|
<div slot="footer" class="dialog-footer">
|
||||||
|
|
@ -202,7 +208,15 @@
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import Pagination from '@/components/Pagination/index'
|
import Pagination from '@/components/Pagination/index'
|
||||||
import {getBlackList, saveBlackList, delBlackList, getServer, getSingleBlackList, saveSingleBlackList} from '@/api/systemapi/game'
|
import {
|
||||||
|
getBlackList,
|
||||||
|
saveBlackList,
|
||||||
|
delBlackList,
|
||||||
|
getServer,
|
||||||
|
getSingleBlackList,
|
||||||
|
saveSingleBlackList,
|
||||||
|
delSingleBlackList
|
||||||
|
} from '@/api/systemapi/game'
|
||||||
import { pageParams } from '@/settings'
|
import { pageParams } from '@/settings'
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
|
|
@ -348,7 +362,6 @@ export default {
|
||||||
this.activeTitle = '编辑黑名单信息'
|
this.activeTitle = '编辑黑名单信息'
|
||||||
this.singleServerForm.id = data.id
|
this.singleServerForm.id = data.id
|
||||||
this.singleServerForm.uid = data.uid
|
this.singleServerForm.uid = data.uid
|
||||||
this.singleServerForm.serverId = data.serverId
|
|
||||||
}
|
}
|
||||||
this.singleServerDialogFormVisible = true
|
this.singleServerDialogFormVisible = true
|
||||||
},
|
},
|
||||||
|
|
@ -377,7 +390,6 @@ export default {
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
singleSave() {
|
singleSave() {
|
||||||
this.singleServerForm.serverName =
|
|
||||||
saveSingleBlackList(this.singleServerForm).then(response => {
|
saveSingleBlackList(this.singleServerForm).then(response => {
|
||||||
if (response.code === 0) {
|
if (response.code === 0) {
|
||||||
this.$message({
|
this.$message({
|
||||||
|
|
@ -408,6 +420,34 @@ export default {
|
||||||
type: 'success'
|
type: 'success'
|
||||||
})
|
})
|
||||||
this.dialogFormVisible = false
|
this.dialogFormVisible = false
|
||||||
|
this.querySingle()
|
||||||
|
} else {
|
||||||
|
this.$message({
|
||||||
|
message: response.msg,
|
||||||
|
type: 'error'
|
||||||
|
})
|
||||||
|
}
|
||||||
|
})
|
||||||
|
}).catch(() => {
|
||||||
|
this.$message({
|
||||||
|
type: 'info',
|
||||||
|
message: '已取消删除'
|
||||||
|
})
|
||||||
|
})
|
||||||
|
},
|
||||||
|
delSingle(data) {
|
||||||
|
this.$confirm('确定要删除 ‘' + data.uid + '’吗?', '提示', {
|
||||||
|
confirmButtonText: '确定',
|
||||||
|
cancelButtonText: '取消',
|
||||||
|
type: 'warning'
|
||||||
|
}).then(() => {
|
||||||
|
delSingleBlackList(data.id).then(response => {
|
||||||
|
if (response.code === 0) {
|
||||||
|
this.$message({
|
||||||
|
message: '删除成功',
|
||||||
|
type: 'success'
|
||||||
|
})
|
||||||
|
this.singleServerDialogFormVisible = false
|
||||||
this.fetchData()
|
this.fetchData()
|
||||||
} else {
|
} else {
|
||||||
this.$message({
|
this.$message({
|
||||||
|
|
|
||||||
|
|
@ -130,7 +130,7 @@
|
||||||
<el-tab-pane label="充值排行" name="second">
|
<el-tab-pane label="充值排行" name="second">
|
||||||
<div class="search-form" style="margin-bottom:15px;">
|
<div class="search-form" style="margin-bottom:15px;">
|
||||||
<span>服务器:</span>
|
<span>服务器:</span>
|
||||||
<el-select v-model="searchForm1.serverid" size="small" clearable filterable placeholder="请选择服务器" @change="selectServer">
|
<el-select v-model="searchForm1.serverid" size="small" clearable filterable placeholder="请选择服务器">
|
||||||
<el-option
|
<el-option
|
||||||
v-for="item in serverMaps"
|
v-for="item in serverMaps"
|
||||||
:key="item.serverid"
|
:key="item.serverid"
|
||||||
|
|
@ -157,9 +157,15 @@
|
||||||
<el-table-column label="排名" width="50">
|
<el-table-column label="排名" width="50">
|
||||||
<template slot-scope="scope">{{ scope.$index + 1 }}</template>
|
<template slot-scope="scope">{{ scope.$index + 1 }}</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column label="openId">
|
<el-table-column label="渠道账号" width="300">
|
||||||
<template slot-scope="scope">{{ scope.row.id }}</template>
|
<template slot-scope="scope">{{ scope.row.id }}</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
|
<el-table-column label="openId">
|
||||||
|
<template slot-scope="scope">{{ scope.row.openId }}</template>
|
||||||
|
</el-table-column>
|
||||||
|
<el-table-column label="uid">
|
||||||
|
<template slot-scope="scope">{{ scope.row.uid}}</template>
|
||||||
|
</el-table-column>
|
||||||
<el-table-column label="充值金额">
|
<el-table-column label="充值金额">
|
||||||
<template slot-scope="scope">{{ scope.row.totalMoney }}</template>
|
<template slot-scope="scope">{{ scope.row.totalMoney }}</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
|
|
|
||||||
|
|
@ -63,6 +63,15 @@
|
||||||
</el-tab-pane>
|
</el-tab-pane>
|
||||||
<el-tab-pane label="渠道账号查询" name="second">
|
<el-tab-pane label="渠道账号查询" name="second">
|
||||||
<el-form ref="form" :model="searchForm1" label-width="80px" :inline="true">
|
<el-form ref="form" :model="searchForm1" label-width="80px" :inline="true">
|
||||||
|
<el-form-item label="渠道账号">
|
||||||
|
<el-input
|
||||||
|
v-model="searchForm1.id"
|
||||||
|
clearable
|
||||||
|
placeholder="渠道账号"
|
||||||
|
style="width:200px;"
|
||||||
|
label="渠道账号"
|
||||||
|
/>
|
||||||
|
</el-form-item>
|
||||||
<el-form-item label="openId">
|
<el-form-item label="openId">
|
||||||
<el-input
|
<el-input
|
||||||
v-model="searchForm1.openid"
|
v-model="searchForm1.openid"
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue