|
@@ -58,7 +58,7 @@
|
|
|
<el-form :rules="rules" ref="dataForm" :model="dataForm" status-icon label-position="left" label-width="110px" style='width:700px; margin-left:50px;'>
|
|
|
<el-form-item label="活动类型" prop="type">
|
|
|
<el-select v-model="dataForm.type" filterable placeholder="请选择" style="width: 350px"
|
|
|
- value-key="value">
|
|
|
+ value-key="value" @change="clickType">
|
|
|
<el-option :key="item.dictValue" v-for="item in typeList" :label="item.dictLabel"
|
|
|
:value="item.dictValue">
|
|
|
</el-option>
|
|
@@ -125,8 +125,13 @@
|
|
|
<el-form-item v-if="dataForm.type=='3'" label="抽奖次数" prop="prizeNum">
|
|
|
<el-input-number style="width: 350px" :min="1" :step="1" v-model="dataForm.prizeNum"></el-input-number>
|
|
|
</el-form-item>
|
|
|
- <el-form-item v-if="dataForm.relationCoupon=='1' || dataForm.type=='3'" label="兑换截至日期" prop="couponEndTime">
|
|
|
- <el-date-picker value-format="yyyy-MM-dd" v-model="dataForm.couponEndTime" type="date" placeholder="请选择结束时间" style="width: 350px">
|
|
|
+ <el-form-item v-if="dataForm.relationCoupon=='1' || dataForm.type=='3'" label="兑换截至时间" prop="couponEndTime">
|
|
|
+ <el-date-picker
|
|
|
+ format="yyyy-MM-dd HH:mm:ss"
|
|
|
+ value-format="yyyy-MM-dd HH:mm:ss"
|
|
|
+ type="datetime" v-model="dataForm.couponEndTime"
|
|
|
+ placeholder="请选择兑换截至时间"
|
|
|
+ style="width: 350px">
|
|
|
</el-date-picker>
|
|
|
</el-form-item>
|
|
|
<el-form-item label="活动连接">
|
|
@@ -282,6 +287,23 @@ export default {
|
|
|
this.getList();
|
|
|
},
|
|
|
methods: {
|
|
|
+ clickType(){
|
|
|
+ this.dataForm.title = undefined;
|
|
|
+ this.dataForm.imgUrl = undefined;
|
|
|
+ this.dataForm.activityUrl = undefined;
|
|
|
+ this.dataForm.startCron = undefined;
|
|
|
+ this.dataForm.endCron = undefined;
|
|
|
+
|
|
|
+ this.dataForm.couponEndTime = undefined;
|
|
|
+ this.dataForm.prizePoolId = undefined;
|
|
|
+ this.dataForm.relationCoupon = '0';
|
|
|
+ this.dataForm.couponIds = [];
|
|
|
+ this.dataForm.prizeNum = undefined;
|
|
|
+
|
|
|
+ this.dataForm.participants = [];
|
|
|
+ this.dataForm.content = undefined;
|
|
|
+ this.dataForm.images = [];
|
|
|
+ },
|
|
|
getPrizePoolList() {
|
|
|
prizePoolList({}).then(response => {
|
|
|
this.prizePoolList = response.data.data;
|