|
@@ -30,15 +30,28 @@
|
|
|
</el-select>
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
- <el-col :span="12" style="margin-bottom: 1px;">
|
|
|
+ <el-col :span="6" style="height: 51px;">
|
|
|
+ <el-form-item label="活动网点" prop="customWebsitName">
|
|
|
+ <el-select v-model="formData.customWebsitName" :disabled="formType!=0" placeholder="请选择" style="width: 100%;">
|
|
|
+ <el-option
|
|
|
+ v-for="(item,index) in websitList"
|
|
|
+ :key="index"
|
|
|
+ :label="item.websitName"
|
|
|
+ :value="item.websitName">
|
|
|
+ </el-option>
|
|
|
+ </el-select>
|
|
|
+ </el-form-item>
|
|
|
+ </el-col>
|
|
|
+ <el-col :span="6" style="margin-bottom: 1px;">
|
|
|
<el-form-item label="活动时间" prop="" class="is-required">
|
|
|
<el-date-picker
|
|
|
- v-model="formData.activeDate"
|
|
|
- disabled
|
|
|
- type="daterange"
|
|
|
- range-separator="至"
|
|
|
- start-placeholder="开始日期"
|
|
|
- end-placeholder="结束日期">
|
|
|
+ style="width: 100%"
|
|
|
+ v-model="formData.activeDate"
|
|
|
+ disabled
|
|
|
+ type="daterange"
|
|
|
+ range-separator="至"
|
|
|
+ start-placeholder="开始日期"
|
|
|
+ end-placeholder="结束日期">
|
|
|
</el-date-picker>
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
@@ -184,10 +197,12 @@
|
|
|
dataList: [],
|
|
|
activeList: [],
|
|
|
activeItems: [],
|
|
|
+ websitList: [],
|
|
|
formData: {
|
|
|
active: {},
|
|
|
activeDate: [],
|
|
|
promotionActivityId: '',
|
|
|
+ customWebsitName: '',
|
|
|
userName: '',
|
|
|
linkName: '',
|
|
|
userMobile: '',
|
|
@@ -248,6 +263,7 @@
|
|
|
Object.assign(this.formData, res.data, {
|
|
|
active: {id: res.data.promotionQuestionnaireId}
|
|
|
})
|
|
|
+ this.websitList = res.data.promotionQuestionnaireQrcodes
|
|
|
this.status = res.data.status
|
|
|
res.data.items.forEach(item=>{
|
|
|
item.answer = JSON.parse(item.answer)
|
|
@@ -277,6 +293,7 @@
|
|
|
getActiveDetail(id,items){
|
|
|
getActiveDetail({id}).then(res => {
|
|
|
this.formData.activeDate = [res.data.startTime,res.data.endTime]
|
|
|
+ this.websitList = res.data.promotionQuestionnaireQrcodes
|
|
|
res.data.promotionQuestionnaireItems.forEach((item,index)=>{
|
|
|
item.answer = JSON.parse(item.answer)
|
|
|
if(items){
|
|
@@ -377,6 +394,7 @@
|
|
|
userMobile: this.formData.userMobile,
|
|
|
userMobile2: this.formData.userMobile2,
|
|
|
userAddress: this.formData.userAddress,
|
|
|
+ customWebsitName: this.formData.customWebsitName,
|
|
|
items
|
|
|
}).then(res => {
|
|
|
if(res.code == 200){
|