Explorar el Código

问题修改

rongxin_dev
庞东旭 hace 1 día
padre
commit
72fc48059a
Se han modificado 2 ficheros con 9 adiciones y 0 borrados
  1. +4
    -0
      src/views/sunVillage_info/list_special_detail_vote.vue
  2. +5
    -0
      src/views/sunVillage_info/otherOpenNew/otherOpenVisitDetail.vue

+ 4
- 0
src/views/sunVillage_info/list_special_detail_vote.vue Ver fichero

@@ -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;
}); });
}, },


+ 5
- 0
src/views/sunVillage_info/otherOpenNew/otherOpenVisitDetail.vue Ver fichero

@@ -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);


Cargando…
Cancelar
Guardar