|
|
@ -46,7 +46,8 @@ interface FormData { |
|
|
|
point_coin: number | string |
|
|
|
lower_rate: number | string |
|
|
|
upper_rate: number | string |
|
|
|
loop_times: number | string |
|
|
|
refresh_status: number |
|
|
|
refresh_times: number | string |
|
|
|
remark: string |
|
|
|
} |
|
|
|
|
|
|
@ -154,7 +155,8 @@ const addBox = (action: number, item: any) => { |
|
|
|
point_coin: '', |
|
|
|
lower_rate: '', |
|
|
|
upper_rate: '', |
|
|
|
loop_times: 0, |
|
|
|
refresh_status: 0, |
|
|
|
refresh_times: 0, |
|
|
|
remark: '', |
|
|
|
} as FormData |
|
|
|
|
|
|
@ -208,7 +210,8 @@ const editBox = (action: number, item: any) => { |
|
|
|
point_coin: current.point_coin, |
|
|
|
lower_rate: current.lower_rate, |
|
|
|
upper_rate: current.upper_rate, |
|
|
|
loop_times: current.loop_times, |
|
|
|
refresh_status: current.refresh_status, |
|
|
|
refresh_times: current.refresh_times, |
|
|
|
remark: current.remark, |
|
|
|
} as FormData |
|
|
|
|
|
|
@ -236,13 +239,13 @@ const submitData = async () => { |
|
|
|
} |
|
|
|
|
|
|
|
//小于等于4为输 |
|
|
|
if (data.form.point_gear as number > 0 && parseInt(data.form.point_coin as string) > 0) { |
|
|
|
if ((data.form.point_gear as number) > 0 && parseInt(data.form.point_coin as string) > 0) { |
|
|
|
ElMessage.error('点控输作弊值必须小于0') |
|
|
|
return |
|
|
|
} |
|
|
|
|
|
|
|
//大于4赢 |
|
|
|
if (data.form.point_gear as number < 0 && parseInt(data.form.point_coin as string) < 0) { |
|
|
|
if ((data.form.point_gear as number) < 0 && parseInt(data.form.point_coin as string) < 0) { |
|
|
|
ElMessage.error('点控赢作弊值必须大于0') |
|
|
|
return |
|
|
|
} |
|
|
@ -254,7 +257,8 @@ const submitData = async () => { |
|
|
|
point_coin: parseInt(data.form.point_coin as string), |
|
|
|
lower_rate: parseInt(data.form.lower_rate as string), |
|
|
|
upper_rate: parseInt(data.form.upper_rate as string), |
|
|
|
loop_times: parseInt(data.form.loop_times as string), |
|
|
|
refresh_status: data.form.refresh_status, |
|
|
|
refresh_times: parseInt(data.form.refresh_times as string), |
|
|
|
new_register_status: encodeStatus(data.form.new_register_status, data.form.new_register_type), |
|
|
|
today_winlose_status: encodeStatus(data.form.today_winlose_status, data.form.today_winlose_type), |
|
|
|
today_winlose_values: parseInt(data.form.today_winlose_values as string), |
|
|
@ -328,9 +332,10 @@ onMounted(async () => { |
|
|
|
<el-table-column align="center" prop="lower_rate" label="浮动区间"> |
|
|
|
<template #default="item"> {{ item.row.lower_rate }}% - {{ item.row.upper_rate }}% </template> |
|
|
|
</el-table-column> |
|
|
|
<el-table-column align="center" prop="loop_times" label="循环次数"> |
|
|
|
<template #default="item">{{ item.row.loop_times == -1 ? '∞' : item.row.loop_times }}</template> |
|
|
|
<el-table-column align="center" prop="refresh_status" label="每天刷新"> |
|
|
|
<template #default="item">{{ item.row.refresh_status == 1 ? '是' : '否' }}</template> |
|
|
|
</el-table-column> |
|
|
|
<el-table-column align="center" prop="refresh_times" label="生效次数" /> |
|
|
|
<el-table-column align="center" prop="option" label="操作"> |
|
|
|
<template #default="item"> |
|
|
|
<el-button type="warning" size="small" @click="editBox(1, item.row)">编辑</el-button> |
|
|
@ -370,9 +375,16 @@ onMounted(async () => { |
|
|
|
</el-col> |
|
|
|
</el-row> |
|
|
|
</el-form-item> |
|
|
|
<el-form-item label="循环次数" label-width="130" prop="loop_times"> |
|
|
|
<el-input v-model="data.form.loop_times" type="number"></el-input> |
|
|
|
<p style="color: red; font-size: 12px">循环次数,-1: 不限, 0 - ∞: 次数</p> |
|
|
|
<el-form-item label="每天刷新" label-width="130" prop="loop_times"> |
|
|
|
<el-row class="full-select" justify="space-between"> |
|
|
|
<el-col :span="3"> |
|
|
|
<el-switch v-model="data.form.refresh_status" :active-value="1" :inactive-value="0"></el-switch> |
|
|
|
</el-col> |
|
|
|
|
|
|
|
<el-col :span="10"> |
|
|
|
<el-input v-model="data.form.refresh_times" type="number"></el-input> |
|
|
|
</el-col> |
|
|
|
</el-row> |
|
|
|
</el-form-item> |
|
|
|
<el-form-item label="新注册用户" label-width="130" prop=""> |
|
|
|
<el-row class="full-select" justify="space-between"> |
|
|
@ -389,7 +401,6 @@ onMounted(async () => { |
|
|
|
/> |
|
|
|
</el-select> |
|
|
|
</el-col> |
|
|
|
<el-col :span="10"></el-col> |
|
|
|
</el-row> |
|
|
|
</el-form-item> |
|
|
|
<el-form-item label="今日输赢" label-width="130" prop=""> |
|
|
@ -525,7 +536,7 @@ onMounted(async () => { |
|
|
|
</template> |
|
|
|
</el-row> |
|
|
|
</el-form-item> |
|
|
|
<el-form-item label="今日充冲提差" label-width="130" prop=""> |
|
|
|
<el-form-item label="今日充提差" label-width="130" prop=""> |
|
|
|
<el-row class="full-select" justify="space-between"> |
|
|
|
<el-col :span="3"> |
|
|
|
<el-switch v-model="data.form.today_surplus_status" :active-value="1" :inactive-value="0"></el-switch> |
|
|
@ -547,7 +558,7 @@ onMounted(async () => { |
|
|
|
</template> |
|
|
|
</el-row> |
|
|
|
</el-form-item> |
|
|
|
<el-form-item label="总冲提差" label-width="130" prop=""> |
|
|
|
<el-form-item label="总提差" label-width="130" prop=""> |
|
|
|
<el-row class="full-select" justify="space-between"> |
|
|
|
<el-col :span="3"> |
|
|
|
<el-switch v-model="data.form.total_surplus_status" :active-value="1" :inactive-value="0"></el-switch> |
|
|
|