|
@@ -92,7 +92,7 @@
|
|
|
</el-table-column>
|
|
|
<el-table-column label="游戏当前期号" align="center" prop="gameDate" />
|
|
|
<el-table-column label="游戏当前倒计时" align="center" prop="gameTime" />
|
|
|
- <el-table-column label="上次中奖选项" align="center" prop="upItem" />
|
|
|
+<!-- <el-table-column label="上次中奖选项" align="center" prop="upItem" />-->
|
|
|
<el-table-column label="logo" align="center" prop="logoUrl">
|
|
|
<template slot-scope="scope">
|
|
|
<image-preview :src="scope.row.logoUrl" :width="50" :height="50"/>
|
|
@@ -109,21 +109,26 @@
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
<el-table-column label="游戏路径" align="center" prop="gamePath" />
|
|
|
- <el-table-column label="状态" align="center" prop="status">
|
|
|
+ <el-table-column label="是否上架" align="center" prop="status">
|
|
|
<template slot-scope="scope">
|
|
|
<dict-tag :options="dict.type.app_status" :value="scope.row.status"/>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
+ <el-table-column label="是否启用投注" align="center" prop="enable">
|
|
|
+ <template slot-scope="scope">
|
|
|
+ <dict-tag :options="dict.type.app_game_betting_enable" :value="scope.row.enable"/>
|
|
|
+ </template>
|
|
|
+ </el-table-column>
|
|
|
<el-table-column label="排序" align="center" prop="orderno" />
|
|
|
<el-table-column label="操作" align="center" class-name="small-padding fixed-width">
|
|
|
<template slot-scope="scope">
|
|
|
- <el-button
|
|
|
+<!-- <el-button
|
|
|
size="mini"
|
|
|
type="text"
|
|
|
icon="el-icon-edit"
|
|
|
@click="handleUpdate(scope.row)"
|
|
|
v-hasPermi="['business:game:edit']"
|
|
|
- >查看开奖记录</el-button>
|
|
|
+ >查看开奖记录</el-button>-->
|
|
|
<el-button
|
|
|
size="mini"
|
|
|
type="text"
|
|
@@ -151,27 +156,34 @@
|
|
|
/>
|
|
|
|
|
|
<!-- 添加或修改游戏配置对话框 -->
|
|
|
- <el-dialog :title="title" :visible.sync="open" width="80%" append-to-body>
|
|
|
- <el-form ref="form" :model="form" :rules="rules" label-width="80px">
|
|
|
+ <el-dialog :title="title" :visible.sync="open" width="70%" append-to-body>
|
|
|
+ <el-form ref="form" :model="form" :rules="rules" label-width="20%">
|
|
|
<el-form-item label="名称" prop="name">
|
|
|
<el-input v-model="form.name" placeholder="请输入名称" />
|
|
|
</el-form-item>
|
|
|
- <el-form-item label="所属分类id" prop="classifyId">
|
|
|
- <el-input v-model="form.classifyId" placeholder="请输入所属分类id" />
|
|
|
+ <el-form-item label="所属分类" prop="classifyId">
|
|
|
+ <el-select v-model="form.classifyId" placeholder="请选择分类">
|
|
|
+ <el-option
|
|
|
+ v-for="dict in typeList"
|
|
|
+ :key="dict.value"
|
|
|
+ :label="dict.label"
|
|
|
+ :value="parseInt(dict.value)"
|
|
|
+ ></el-option>
|
|
|
+ </el-select>
|
|
|
</el-form-item>
|
|
|
<el-form-item label="logo" prop="logoUrl">
|
|
|
- <el-input v-model="form.logoUrl" placeholder="请输入logo" />
|
|
|
+ <image-preview :src="form.logoUrl" :width="50" :height="50"/>
|
|
|
</el-form-item>
|
|
|
<el-form-item label="直播间图片" prop="liveImgUrl">
|
|
|
- <el-input v-model="form.liveImgUrl" placeholder="请输入直播间图片" />
|
|
|
+ <image-preview :src="form.liveImgUrl" :width="50" :height="50"/>
|
|
|
</el-form-item>
|
|
|
<el-form-item label="我的页面图片" prop="myImgUrl">
|
|
|
- <el-input v-model="form.myImgUrl" placeholder="请输入我的页面图片" />
|
|
|
+ <image-preview :src="form.myImgUrl" :width="50" :height="50"/>
|
|
|
</el-form-item>
|
|
|
<el-form-item label="游戏路径" prop="gamePath">
|
|
|
<el-input v-model="form.gamePath" placeholder="请输入游戏路径" />
|
|
|
</el-form-item>
|
|
|
- <el-form-item label="状态" prop="status">
|
|
|
+ <el-form-item label="是否上架" prop="status">
|
|
|
<el-select v-model="form.status" placeholder="请选择状态">
|
|
|
<el-option
|
|
|
v-for="dict in dict.type.app_status"
|
|
@@ -181,6 +193,19 @@
|
|
|
></el-option>
|
|
|
</el-select>
|
|
|
</el-form-item>
|
|
|
+ <el-form-item label="是否启用投注" prop="enable">
|
|
|
+ <el-select v-model="form.enable" placeholder="请选择状态">
|
|
|
+ <el-option
|
|
|
+ v-for="dict in dict.type.app_game_betting_enable"
|
|
|
+ :key="dict.value"
|
|
|
+ :label="dict.label"
|
|
|
+ :value="parseInt(dict.value)"
|
|
|
+ ></el-option>
|
|
|
+ </el-select>
|
|
|
+ </el-form-item>
|
|
|
+ <el-form-item label="每期投注上限次数" prop="bettingCount">
|
|
|
+ <el-input type="number" @input="handleInput" v-model="form.bettingCount" placeholder="请输入整数" />
|
|
|
+ </el-form-item>
|
|
|
<el-form-item label="排序" prop="orderno">
|
|
|
<el-input v-model="form.orderno" placeholder="请输入排序" />
|
|
|
</el-form-item>
|
|
@@ -198,7 +223,7 @@ import { listGame, getGame, delGame, addGame, updateGame,listClassifyGame } from
|
|
|
|
|
|
export default {
|
|
|
name: "Game",
|
|
|
- dicts: ['app_status'],
|
|
|
+ dicts: ['app_status','app_game_betting_enable'],
|
|
|
data() {
|
|
|
return {
|
|
|
// 遮罩层
|
|
@@ -371,6 +396,9 @@ export default {
|
|
|
this.download('business/game/export', {
|
|
|
...this.queryParams
|
|
|
}, `game_${new Date().getTime()}.xlsx`)
|
|
|
+ },
|
|
|
+ handleInput() {
|
|
|
+ this.form.bettingCount = this.form.bettingCount.replace(/\D/g, '');
|
|
|
}
|
|
|
}
|
|
|
};
|