Commit 1c05f202 by 吕明尚

抽奖日志增加查看信息,确认兑换功能

parent 60e268fe
......@@ -148,24 +148,18 @@
</el-table-column>
<el-table-column align="center" label="发放结果" prop="sendMsg"/>
<el-table-column align="center" label="备注" prop="remark"/>
<!-- <el-table-column label="操作" align="center" class-name="small-padding fixed-width">-->
<!-- <template slot-scope="scope">-->
<!-- <el-button-->
<!-- size="mini"-->
<!-- type="text"-->
<!-- icon="el-icon-edit"-->
<!-- @click="handleUpdate(scope.row)"-->
<!-- v-hasPermi="['system:lotteryRecordsLog:edit']"-->
<!-- >修改</el-button>-->
<!-- <el-button-->
<!-- size="mini"-->
<!-- type="text"-->
<!-- icon="el-icon-delete"-->
<!-- @click="handleDelete(scope.row)"-->
<!-- v-hasPermi="['system:lotteryRecordsLog:remove']"-->
<!-- >删除</el-button>-->
<!-- </template>-->
<!-- </el-table-column>-->
<el-table-column align="center" class-name="small-padding fixed-width" label="操作">
<template slot-scope="scope">
<el-button v-if="scope.row.isHit===1 && scope.row.isSend===0"
v-hasPermi="['system:lotteryRecordsLog:edit']"
icon="el-icon-edit"
size="mini"
type="text"
@click="handleUpdate(scope.row)"
>查看消息
</el-button>
</template>
</el-table-column>
</el-table>
<pagination
......@@ -179,44 +173,58 @@
<!-- 添加或修改抽奖记录日志对话框 -->
<el-dialog :title="title" :visible.sync="open" append-to-body width="500px">
<el-form ref="form" :model="form" :rules="rules" label-width="80px">
<el-form-item label="游戏id" prop="gameId">
<el-input v-model="form.gameId" placeholder="请输入游戏id"/>
</el-form-item>
<el-form-item label="用户id" prop="userId">
<el-input v-model="form.userId" placeholder="请输入用户id"/>
</el-form-item>
<!-- <el-form-item label="游戏id" prop="gameId">-->
<!-- <el-input v-model="form.gameId" placeholder="请输入游戏id"/>-->
<!-- </el-form-item>-->
<!-- <el-form-item label="用户id" prop="userId">-->
<!-- <el-input v-model="form.userId" placeholder="请输入用户id"/>-->
<!-- </el-form-item>-->
<el-form-item label="用户名" prop="userName">
<el-input v-model="form.userName" placeholder="请输入用户名"/>
<el-input v-model="form.userName" disabled placeholder="请输入用户名"/>
</el-form-item>
<el-form-item label="手机号" prop="phone">
<el-input v-model="form.phone" placeholder="请输入手机号"/>
<el-input v-model="form.phone" disabled placeholder="请输入手机号"/>
</el-form-item>
<el-form-item label="抽奖时间" prop="drawTime">
<el-date-picker v-model="form.drawTime"
clearable
placeholder="请选择抽奖时间"
type="date"
value-format="yyyy-MM-dd">
disabled value-format="yyyy-MM-dd">
</el-date-picker>
</el-form-item>
<el-form-item label="是否中奖 0:未中奖 1:中奖" prop="isHit">
<el-input v-model="form.isHit" placeholder="请输入是否中奖 0:未中奖 1:中奖"/>
<el-form-item label="是否中奖" prop="isHit">
<el-radio-group v-model="form.isHit" disabled>
<el-radio
v-for="dict in dict.type.store_is_use_coupon"
:key="dict.value"
:label="parseInt(dict.value)"
>{{ dict.label }}
</el-radio>
</el-radio-group>
</el-form-item>
<el-form-item label="中奖奖品" prop="hitPrize">
<el-input v-model="form.hitPrize" placeholder="请输入中奖奖品"/>
<el-input v-model="form.hitPrize" disabled placeholder="请输入中奖奖品"/>
</el-form-item>
<el-form-item label=" 是否发放 1未发放,2 已发放 3 发放失败" prop="isSend">
<el-input v-model="form.isSend" placeholder="请输入 是否发放 1未发放,2 已发放 3 发放失败"/>
<el-form-item label="是否发放" prop="isSend">
<el-radio-group v-model="form.isSend">
<el-radio
v-for="dict in dict.type.store_is_use_coupon"
:key="dict.value"
:label="parseInt(dict.value)"
>{{ dict.label }}
</el-radio>
</el-radio-group>
</el-form-item>
<el-form-item label="发放结果" prop="sendMsg">
<el-input v-model="form.sendMsg" placeholder="请输入内容" type="textarea"/>
<el-input v-model="form.sendMsg" disabled placeholder="请输入内容" type="textarea"/>
</el-form-item>
<el-form-item label="备注" prop="remark">
<el-input v-model="form.remark" placeholder="请输入内容" type="textarea"/>
<el-input v-model="form.remark" disabled placeholder="" type="textarea"/>
</el-form-item>
</el-form>
<div slot="footer" class="dialog-footer">
<el-button type="primary" @click="submitForm"> </el-button>
<el-button type="primary" @click="submitForm">认兑换</el-button>
<el-button @click="cancel"> </el-button>
</div>
</el-dialog>
......
......@@ -208,7 +208,7 @@
<el-input-number v-model="form.currentNum" :max="999" :min="0" disabled/>
</el-form-item>
<el-form-item label="最大中奖数" prop="maxNum">
<el-input-number v-model="form.maxNum" :max="999" :min="0" disabled/>
<el-input-number v-model="form.maxNum" :max="999" :min="0"/>
</el-form-item>
<el-form-item label="中奖几率" prop="ratio">
<el-input-number v-model="form.ratio" :max="999" :min="1" :step="1"/>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment