|
@@ -23,8 +23,8 @@
|
|
|
<div style="display: flex;">
|
|
<div style="display: flex;">
|
|
|
<div style="width: 100%">
|
|
<div style="width: 100%">
|
|
|
<div v-for="(item, index) in addForm.actPrizeList" style="margin-top: 10px;">
|
|
<div v-for="(item, index) in addForm.actPrizeList" style="margin-top: 10px;">
|
|
|
- <el-input v-model="item.prizeName" placeholder="请输入字段名称" style="margin-right: 10px;"></el-input>
|
|
|
|
|
- <el-input v-model="item.prizeContent" placeholder="请输入填写内容"></el-input>
|
|
|
|
|
|
|
+ <el-input v-model="item.fieldName" placeholder="请输入字段名称" style="margin-right: 10px;"></el-input>
|
|
|
|
|
+ <el-input v-model="item.fieldValue" placeholder="请输入填写内容"></el-input>
|
|
|
<i class="el-icon-circle-close" style="cursor:pointer; margin-left: 10px;" @click="handleDel(item,index)"></i>
|
|
<i class="el-icon-circle-close" style="cursor:pointer; margin-left: 10px;" @click="handleDel(item,index)"></i>
|
|
|
</div>
|
|
</div>
|
|
|
<el-button type="text" @click="handleAdd">新增字段</el-button>
|
|
<el-button type="text" @click="handleAdd">新增字段</el-button>
|
|
@@ -82,7 +82,7 @@ export default {
|
|
|
actType: `${obj.actType}`,
|
|
actType: `${obj.actType}`,
|
|
|
actTime: [obj.actStartTime, obj.actEndTime],
|
|
actTime: [obj.actStartTime, obj.actEndTime],
|
|
|
actDesc: obj.actDesc,
|
|
actDesc: obj.actDesc,
|
|
|
- actPrizeList: obj.actPrizeList?obj.actPrizeLis:[],
|
|
|
|
|
|
|
+ actPrizeList: obj.fieldList?obj.fieldList:[],
|
|
|
fileUrl: obj.fileUrl
|
|
fileUrl: obj.fileUrl
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
@@ -101,6 +101,7 @@ export default {
|
|
|
let params = {
|
|
let params = {
|
|
|
actName: this.addForm.actName,
|
|
actName: this.addForm.actName,
|
|
|
actType: '4',
|
|
actType: '4',
|
|
|
|
|
+ actDesc: this.addForm.actDesc,
|
|
|
actStartTime: this.addForm.actTime[0],
|
|
actStartTime: this.addForm.actTime[0],
|
|
|
actEndTime: this.addForm.actTime[1],
|
|
actEndTime: this.addForm.actTime[1],
|
|
|
actPrizeList: this.addForm.actPrizeList,
|
|
actPrizeList: this.addForm.actPrizeList,
|