79 changed files with 54802 additions and 9247 deletions
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
@ -1,45 +1,50 @@ |
|||||||
[ |
[ |
||||||
{ |
{ |
||||||
"Id": 1, |
"Id": 1, |
||||||
"StoneNum": 6, |
"StoneNum": 12, |
||||||
"StoneProbability": [ |
"StoneProbability": [ |
||||||
[ |
[ |
||||||
0, |
0, |
||||||
20 |
10 |
||||||
], |
], |
||||||
[ |
[ |
||||||
1, |
1, |
||||||
50 |
30 |
||||||
], |
], |
||||||
[ |
[ |
||||||
2, |
2, |
||||||
20 |
40 |
||||||
], |
], |
||||||
[ |
[ |
||||||
3, |
3, |
||||||
10 |
20 |
||||||
] |
] |
||||||
], |
], |
||||||
"ZongziProbability": [ |
"ZongziProbability": [ |
||||||
[ |
[ |
||||||
0, |
0, |
||||||
30 |
10 |
||||||
], |
], |
||||||
[ |
[ |
||||||
1, |
1, |
||||||
40 |
20 |
||||||
], |
], |
||||||
[ |
[ |
||||||
2, |
2, |
||||||
|
40 |
||||||
|
], |
||||||
|
[ |
||||||
|
3, |
||||||
30 |
30 |
||||||
] |
] |
||||||
], |
], |
||||||
"AccelerationValue": 50, |
"AccelerationValue": 50, |
||||||
"AccelerationTime": 2, |
"AccelerationTime": 2, |
||||||
|
"MapWidth": 8, |
||||||
"MapLength": 120, |
"MapLength": 120, |
||||||
"BasicLabor": 150, |
"BasicLabor": 100, |
||||||
"LongZhouSpeed1": 3, |
"LongZhouSpeed1": 3, |
||||||
"LongZhouSpeed2": 2, |
"LongZhouSpeed2": 2, |
||||||
"LongZhouSpeed": 2 |
"LongZhouSpeed": 1 |
||||||
} |
} |
||||||
] |
] |
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
@ -1,110 +1,138 @@ |
|||||||
<template> |
<template> |
||||||
<div class="game-statistics-container"> |
<div class="game-statistics-container"> |
||||||
<el-card shadow="hover"> |
<el-card shadow="hover"> |
||||||
<el-table :data="channels" style="width: 100%"> |
<el-table :data="channels" style="width: 100%"> |
||||||
<el-table-column prop="one" label="渠道名称"> |
<el-table-column prop="one" label="渠道名称"> |
||||||
<template #default="scope"> |
<template #default="scope"> |
||||||
<span>{{ scope.row.label }}-{{scope.row.value}}</span> |
<span>{{ scope.row.label }}-{{ scope.row.value }}</span> |
||||||
</template> |
</template> |
||||||
</el-table-column> |
</el-table-column> |
||||||
<el-table-column prop="seven" label="支付"> |
<el-table-column prop="seven" label="支付"> |
||||||
<template #default="scope"> |
<template #header> |
||||||
<div v-if="!tableData.data.find(r=>r.channel == scope.row.value)"> |
支付 |
||||||
<el-button type="success" size="small" circle @click="add(scope.row.value)"> |
<el-button type="info" size="small" plain @click="add(-1)">全部关闭</el-button> |
||||||
<el-icon><ele-Check/></el-icon> |
<el-button type="success" size="small" @click="del(-1)">全部打开</el-button> |
||||||
</el-button> |
</template> |
||||||
</div> |
<template #default="scope"> |
||||||
<div v-if="tableData.data.find(r=>r.channel == scope.row.value)"> |
<div v-if="!tableData.data.find((r) => r.channel == scope.row.value)"> |
||||||
<el-button type="info" size="small" circle plain @click="del(scope.row.value)"> |
<el-button type="success" size="small" circle @click="add(scope.row.value)"> |
||||||
<el-icon><ele-Close/></el-icon> |
<el-icon> |
||||||
</el-button> |
<ele-Check /> |
||||||
</div> |
</el-icon> |
||||||
</template> |
</el-button> |
||||||
</el-table-column> |
</div> |
||||||
</el-table> |
<div v-if="tableData.data.find((r) => r.channel == scope.row.value)"> |
||||||
</el-card> |
<el-button type="info" size="small" circle plain @click="del(scope.row.value)"> |
||||||
</div> |
<el-icon> |
||||||
|
<ele-Close /> |
||||||
|
</el-icon> |
||||||
|
</el-button> |
||||||
|
</div> |
||||||
|
</template> |
||||||
|
</el-table-column> |
||||||
|
</el-table> |
||||||
|
</el-card> |
||||||
|
</div> |
||||||
</template> |
</template> |
||||||
|
|
||||||
<script lang="ts"> |
<script lang="ts"> |
||||||
import {toRefs, reactive, onMounted, defineComponent,} from 'vue'; |
import { toRefs, reactive, onMounted, defineComponent } from 'vue'; |
||||||
import { |
import { gameRechargeControlAdd, gameRechargeControlDelete, gameRechargeControlList } from '/@/api/game/index'; |
||||||
gameRechargeControlAdd, |
import { channelList, ChannelList } from '/@/utils/game'; |
||||||
gameRechargeControlDelete, |
|
||||||
gameRechargeControlList |
// import {ElMessageBox} from "element-plus/es"; |
||||||
} from "/@/api/game/index"; |
|
||||||
import {channelList, ChannelList} from "/@/utils/game"; |
|
||||||
import {ElMessageBox} from "element-plus/es"; |
|
||||||
|
|
||||||
interface TableData { |
interface TableData { |
||||||
id: number; |
id: number; |
||||||
channel: string; |
channel: string; |
||||||
} |
} |
||||||
|
|
||||||
interface TableDataState { |
interface TableDataState { |
||||||
tableData: { |
tableData: { |
||||||
data: Array<TableData>; |
data: Array<TableData>; |
||||||
}; |
}; |
||||||
channels: object[]; |
channels: object[]; |
||||||
} |
} |
||||||
|
|
||||||
export default defineComponent({ |
export default defineComponent({ |
||||||
name: 'apiV1SystemRoleList', |
name: 'apiV1SystemRoleList', |
||||||
setup() { |
setup() { |
||||||
const state = reactive<TableDataState>({ |
const state = reactive<TableDataState>({ |
||||||
tableData: { |
tableData: { |
||||||
data: [] |
data: [], |
||||||
}, |
}, |
||||||
channels: ChannelList, |
channels: ChannelList, |
||||||
}); |
}); |
||||||
|
|
||||||
const getRemain = () => { |
|
||||||
gameRechargeControlList({}).then(res => { |
|
||||||
console.log(res); |
|
||||||
state.tableData.data = res.data.list || [] |
|
||||||
}) |
|
||||||
}; |
|
||||||
const add = (value: any) => { |
|
||||||
|
|
||||||
ElMessageBox.confirm("是否确认添加充值拦截?", '提示', { |
|
||||||
confirmButtonText: '确认', |
|
||||||
cancelButtonText: '取消', |
|
||||||
type: 'warning', |
|
||||||
}).then(() => { |
|
||||||
gameRechargeControlAdd({channel: value}).then(res => { |
|
||||||
console.log(res) |
|
||||||
getRemain(); |
|
||||||
}).finally(() => { |
|
||||||
}); |
|
||||||
}); |
|
||||||
}; |
|
||||||
const del = (value: any) => { |
|
||||||
ElMessageBox.confirm("是否确认去除充值拦截?", '提示', { |
|
||||||
confirmButtonText: '确认', |
|
||||||
cancelButtonText: '取消', |
|
||||||
type: 'warning', |
|
||||||
}).then(() => { |
|
||||||
gameRechargeControlDelete({channel: value}).then(res => { |
|
||||||
console.log(res) |
|
||||||
getRemain(); |
|
||||||
}).finally(() => { |
|
||||||
}); |
|
||||||
}); |
|
||||||
}; |
|
||||||
onMounted(function () { |
|
||||||
|
|
||||||
channelList().then((res)=>{ |
const getRemain = () => { |
||||||
state.channels = res |
gameRechargeControlList({}).then((res) => { |
||||||
}) |
console.log(res); |
||||||
getRemain() |
state.tableData.data = res.data.list || []; |
||||||
}); |
}); |
||||||
|
}; |
||||||
|
const add = (value: any) => { |
||||||
|
// ElMessageBox.confirm("是否确认添加充值拦截?", '提示', { |
||||||
|
// confirmButtonText: '确认', |
||||||
|
// cancelButtonText: '取消', |
||||||
|
// type: 'warning', |
||||||
|
// }).then(() => { |
||||||
|
if (value == -1) { |
||||||
|
for (let i in state.channels) { |
||||||
|
gameRechargeControlAdd({ channel: state.channels[i].value }) |
||||||
|
.then((res) => { |
||||||
|
console.log(res); |
||||||
|
getRemain(); |
||||||
|
}) |
||||||
|
.finally(() => {}); |
||||||
|
} |
||||||
|
return; |
||||||
|
} |
||||||
|
gameRechargeControlAdd({ channel: value }) |
||||||
|
.then((res) => { |
||||||
|
console.log(res); |
||||||
|
getRemain(); |
||||||
|
}) |
||||||
|
.finally(() => {}); |
||||||
|
// }); |
||||||
|
}; |
||||||
|
const del = (value: any) => { |
||||||
|
// ElMessageBox.confirm("是否确认去除充值拦截?", '提示', { |
||||||
|
// confirmButtonText: '确认', |
||||||
|
// cancelButtonText: '取消', |
||||||
|
// type: 'warning', |
||||||
|
// }).then(() => { |
||||||
|
if (value == -1) { |
||||||
|
for (let i in state.channels) { |
||||||
|
gameRechargeControlDelete({ channel: state.channels[i].value }) |
||||||
|
.then((res) => { |
||||||
|
console.log(res); |
||||||
|
getRemain(); |
||||||
|
}) |
||||||
|
.finally(() => {}); |
||||||
|
} |
||||||
|
return; |
||||||
|
} |
||||||
|
gameRechargeControlDelete({ channel: value }) |
||||||
|
.then((res) => { |
||||||
|
console.log(res); |
||||||
|
getRemain(); |
||||||
|
}) |
||||||
|
.finally(() => {}); |
||||||
|
// }); |
||||||
|
}; |
||||||
|
onMounted(function () { |
||||||
|
channelList().then((res) => { |
||||||
|
state.channels = res; |
||||||
|
}); |
||||||
|
getRemain(); |
||||||
|
}); |
||||||
|
|
||||||
return { |
return { |
||||||
getRemain, |
getRemain, |
||||||
add, |
add, |
||||||
del, |
del, |
||||||
...toRefs(state), |
...toRefs(state), |
||||||
}; |
}; |
||||||
}, |
}, |
||||||
}); |
}); |
||||||
</script> |
</script> |
||||||
|
Loading…
Reference in new issue