|
@@ -83,6 +83,7 @@
|
|
|
<el-table-column label="选项倍数" align="center" prop="itemMultiple" />
|
|
|
<el-table-column label="选项值" align="center" prop="itemLocation" />
|
|
|
<el-table-column label="每期投注上限" align="center" prop="bettingMoney" />
|
|
|
+ <el-table-column label="每期投注个数" align="center" prop="bettingCount" />
|
|
|
<el-table-column label="操作" align="center" class-name="small-padding fixed-width">
|
|
|
<template slot-scope="scope">
|
|
|
<el-button
|
|
@@ -129,6 +130,9 @@
|
|
|
<el-form-item label="每期投注上限金额" prop="bettingMoney">
|
|
|
<el-input v-model="form.bettingMoney" placeholder="请输入" />
|
|
|
</el-form-item>
|
|
|
+ <el-form-item label="每期投注个数" prop="bettingCount">
|
|
|
+ <el-input v-model="form.bettingCount" placeholder="请输入" />
|
|
|
+ </el-form-item>
|
|
|
</el-form>
|
|
|
<div slot="footer" class="dialog-footer">
|
|
|
<el-button type="primary" @click="submitForm">确 定</el-button>
|
|
@@ -223,7 +227,8 @@ export default {
|
|
|
gameId: null,
|
|
|
itemName: null,
|
|
|
itemMultiple: null,
|
|
|
- itemLocation: null
|
|
|
+ itemLocation: null,
|
|
|
+ bettingCount:-1
|
|
|
};
|
|
|
this.resetForm("form");
|
|
|
},
|
|
@@ -263,6 +268,9 @@ export default {
|
|
|
submitForm() {
|
|
|
this.$refs["form"].validate(valid => {
|
|
|
if (valid) {
|
|
|
+ if(!this.form.bettingCount){
|
|
|
+ this.form.bettingCount = -1;
|
|
|
+ }
|
|
|
if (this.form.id != null) {
|
|
|
updateGame_item(this.form).then(response => {
|
|
|
this.$modal.msgSuccess("修改成功");
|