소스 검색

增加投注次数

dos 1 개월 전
부모
커밋
04ca7edb1b
1개의 변경된 파일9개의 추가작업 그리고 1개의 파일을 삭제
  1. 9 1
      game-ui/src/views/business/game_item/index.vue

+ 9 - 1
game-ui/src/views/business/game_item/index.vue

@@ -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("修改成功");