...
|
...
|
@@ -5,13 +5,14 @@ |
|
|
<div slot="left" class="split-pane">
|
|
|
<Form ref="prizeForm" :model="prize" :rules="prizeRules" :label-width="120">
|
|
|
<FormItem label="奖品位置" prop="prize_idx">
|
|
|
<Input v-model="prize.prize_idx" placeholder="奖品位置序号(竖直方向顺时针从1开始)" :maxlength="1"></Input>
|
|
|
<Input v-model="prize.prize_idx" :disabled="status == 2 || status == 3"
|
|
|
placeholder="奖品位置序号(竖直方向顺时针从1开始)" :maxlength="1"></Input>
|
|
|
</FormItem>
|
|
|
<FormItem label="奖品名称" prop="name">
|
|
|
<Input v-model="prize.name" placeholder="奖品名称" :maxlength="50"></Input>
|
|
|
</FormItem>
|
|
|
<FormItem label="奖品类型" prop="type">
|
|
|
<Select v-model="prize.type" @on-change="typeChange">
|
|
|
<Select v-model="prize.type" @on-change="typeChange" :disabled="status == 2 || status == 3">
|
|
|
<Option :value="1">谢谢惠顾</Option>
|
|
|
<Option :value="2">红包</Option>
|
|
|
<Option :value="3">优惠券</Option>
|
...
|
...
|
@@ -19,7 +20,9 @@ |
|
|
</Select>
|
|
|
</FormItem>
|
|
|
<FormItem label="奖品token" prop="value">
|
|
|
<Input v-model="prize.value" placeholder="红包优惠券token(实物奖品和谢谢惠顾不填)" :maxlenght="200"></Input>
|
|
|
<Input v-model="prize.value"
|
|
|
:disabled="status == 2 || status == 3"
|
|
|
placeholder="红包优惠券token(实物奖品和谢谢惠顾不填)" :maxlenght="200"></Input>
|
|
|
</FormItem>
|
|
|
<FormItem label="奖品总数" prop="total">
|
|
|
<Input v-model="prize.total" placeholder="奖品总数(不限量奖品可填9999999999)" number
|
...
|
...
|
@@ -68,6 +71,9 @@ |
|
|
|
|
|
export default {
|
|
|
name: 'AddPrize',
|
|
|
props: {
|
|
|
status: Number
|
|
|
},
|
|
|
data: function () {
|
|
|
return {
|
|
|
actId: 0,
|
...
|
...
|
@@ -129,8 +135,7 @@ |
|
|
h('Button', {
|
|
|
props: {
|
|
|
type: 'error',
|
|
|
size: 'small',
|
|
|
disabled: !!row.id
|
|
|
size: 'small'
|
|
|
},
|
|
|
style: {
|
|
|
margin: '2px'
|
...
|
...
|
|