@@ -90,6 +90,10 @@ | |||||
specialPublicityDetail(this.queryParams).then((resp) => { | specialPublicityDetail(this.queryParams).then((resp) => { | ||||
console.log() | console.log() | ||||
resp.data.specialPublicityType = this.selectDictLabel(this.specialPublicityTypeOptions, resp.data.specialPublicityType); | resp.data.specialPublicityType = this.selectDictLabel(this.specialPublicityTypeOptions, resp.data.specialPublicityType); | ||||
if(resp.data.openContent.indexOf('<img') > -1){ | |||||
resp.data.openContent = resp.data.openContent.replace(/<img/g,'<img style="width:100%;"') | |||||
console.log(resp.data) | |||||
} | |||||
this.form = resp.data; | this.form = resp.data; | ||||
}); | }); | ||||
}, | }, | ||||
@@ -91,6 +91,11 @@ | |||||
} | } | ||||
otherOpenDetail(this.id).then((resp) => { | otherOpenDetail(this.id).then((resp) => { | ||||
console.log(resp.data.openContent.indexOf('<img')) | |||||
if(resp.data.openContent.indexOf('<img') > -1){ | |||||
resp.data.openContent = resp.data.openContent.replace(/<img/g,'<img style="width:100%;"') | |||||
console.log(resp.data) | |||||
} | |||||
this.form = resp.data; | this.form = resp.data; | ||||
this.getDicts('other_gk_type').then((resp) => { | this.getDicts('other_gk_type').then((resp) => { | ||||
const dict = resp.data.find((x) => x.dictValue == this.form.otherType); | const dict = resp.data.find((x) => x.dictValue == this.form.otherType); | ||||