@@ -113,27 +113,25 @@ | |||||
methods: { | methods: { | ||||
getDetail(id){ | getDetail(id){ | ||||
financePublicDetail(this.queryParams).then((res) => { | financePublicDetail(this.queryParams).then((res) => { | ||||
res.data.openFile = res.data.openFile.split(',') | |||||
res.data.openFile.map(rr=>{ | |||||
let name = rr.substr(27,rr.length); | |||||
let type = ''; | |||||
if (name.indexOf('.doc') > -1){ | |||||
type = 'word'; | |||||
}else if(name.indexOf('.xls') > -1){ | |||||
type = 'excel'; | |||||
} | |||||
this.openFileList.push({name:name,type:type}) | |||||
}) | |||||
if (res.data.openPic!=''){ | |||||
this.openPic = res.data.openPic.split(',') | |||||
this.openPic2 = res.data.openPic.split(',') | |||||
this.openPic.map((rrr,i)=>{ | |||||
this.openPic[i] = {url:'/api'+rrr} | |||||
if (res.data.openFile !='' && res.data.openFile != null && res.data.openFile != undefined){ | |||||
res.data.openFile = res.data.openFile.split(',') | |||||
res.data.openFile.map(rr=>{ | |||||
let name = rr.substr(27,rr.length); | |||||
let type = ''; | |||||
if (name.indexOf('.doc') > -1){ | |||||
type = 'word'; | |||||
}else if(name.indexOf('.xls') > -1){ | |||||
type = 'excel'; | |||||
} | |||||
this.openFileList.push({name:name,type:type}) | |||||
}) | |||||
} | |||||
if (res.data.openPic !='' && res.data.openPic != null && res.data.openPic != undefined){ | |||||
res.data.openPic = res.data.openPic.split(',') | |||||
res.data.openPic.map((rrr,i)=>{ | |||||
this.openPic.push({url:'/api'+rrr}) | |||||
}) | }) | ||||
} | } | ||||
// res.data.openPic.map((rrr,i)=>{ | |||||
// this.openPic.push({url:this.$store.getters.baseRoutingUrl+rrr}) | |||||
// }) | |||||
this.form = res.data; | this.form = res.data; | ||||
}) | }) | ||||
@@ -139,7 +139,7 @@ | |||||
getDetail(id){ | getDetail(id){ | ||||
financePublicDetail(this.queryParams).then((res) => { | financePublicDetail(this.queryParams).then((res) => { | ||||
var that = this ; | var that = this ; | ||||
if (res.data.openFile!=''){ | |||||
if (res.data.openFile!='' && res.data.openFile != null && res.data.openFile != undefined){ | |||||
this.openFile = res.data.openFile.split(',') | this.openFile = res.data.openFile.split(',') | ||||
this.openFile2 = res.data.openFile.split(',') | this.openFile2 = res.data.openFile.split(',') | ||||
this.openFile.map((rr,i)=>{ | this.openFile.map((rr,i)=>{ | ||||
@@ -153,7 +153,7 @@ | |||||
this.openFile[i] = {name:name,type:type} | this.openFile[i] = {name:name,type:type} | ||||
}) | }) | ||||
} | } | ||||
if (res.data.openPic!=''){ | |||||
if (res.data.openPic!='' && res.data.openPic != null && res.data.openPic != undefined){ | |||||
this.openPic = res.data.openPic.split(',') | this.openPic = res.data.openPic.split(',') | ||||
this.openPic2 = res.data.openPic.split(',') | this.openPic2 = res.data.openPic.split(',') | ||||
this.openPic.map((rrr,i)=>{ | this.openPic.map((rrr,i)=>{ | ||||
@@ -30,7 +30,7 @@ | |||||
</template> | </template> | ||||
</van-field> | </van-field> | ||||
<van-field required input-align="right" :border="false" > | |||||
<van-field readonly input-align="right" :border="false" > | |||||
<template #label> | <template #label> | ||||
<img src="../../assets/images/sunVillage_info/add_tit_icon_03.png" width="18"> | <img src="../../assets/images/sunVillage_info/add_tit_icon_03.png" width="18"> | ||||
<p style="margin-left: 5px;">公开图片</p> | <p style="margin-left: 5px;">公开图片</p> | ||||
@@ -119,23 +119,25 @@ | |||||
methods: { | methods: { | ||||
getDetail(id){ | getDetail(id){ | ||||
majorEventPublicDetail(this.queryParams).then((res) => { | majorEventPublicDetail(this.queryParams).then((res) => { | ||||
res.data.openFile = res.data.openFile.split(',') | |||||
res.data.openPic = res.data.openPic.split(',') | |||||
res.data.openFile.map(rr=>{ | |||||
let name = rr.substr(27,rr.length); | |||||
let type = ''; | |||||
if (name.indexOf('.doc') > -1){ | |||||
type = 'word'; | |||||
}else if(name.indexOf('.xls') > -1){ | |||||
type = 'excel'; | |||||
} | |||||
this.openFileList.push({name:name,type:type}) | |||||
}) | |||||
res.data.openPic.map((rrr,i)=>{ | |||||
this.openPic.push({url:'/api'+rrr}) | |||||
}) | |||||
if (res.data.openFile !='' && res.data.openFile != null && res.data.openFile != undefined){ | |||||
res.data.openFile = res.data.openFile.split(',') | |||||
res.data.openFile.map(rr=>{ | |||||
let name = rr.substr(27,rr.length); | |||||
let type = ''; | |||||
if (name.indexOf('.doc') > -1){ | |||||
type = 'word'; | |||||
}else if(name.indexOf('.xls') > -1){ | |||||
type = 'excel'; | |||||
} | |||||
this.openFileList.push({name:name,type:type}) | |||||
}) | |||||
} | |||||
if (res.data.openPic !='' && res.data.openPic != null && res.data.openPic != undefined){ | |||||
res.data.openPic = res.data.openPic.split(',') | |||||
res.data.openPic.map((rrr,i)=>{ | |||||
this.openPic.push({url:'/api'+rrr}) | |||||
}) | |||||
} | |||||
this.form = res.data; | this.form = res.data; | ||||
}) | }) | ||||
}, | }, | ||||
@@ -145,7 +145,7 @@ | |||||
getDetail(id){ | getDetail(id){ | ||||
majorEventPublicDetail(this.queryParams).then((res) => { | majorEventPublicDetail(this.queryParams).then((res) => { | ||||
var that = this ; | var that = this ; | ||||
if (res.data.openFile!=''){ | |||||
if (res.data.openFile!='' && res.data.openFile != null && res.data.openFile != undefined){ | |||||
this.openFile = res.data.openFile.split(',') | this.openFile = res.data.openFile.split(',') | ||||
this.openFile2 = res.data.openFile.split(',') | this.openFile2 = res.data.openFile.split(',') | ||||
this.openFile.map((rr,i)=>{ | this.openFile.map((rr,i)=>{ | ||||
@@ -159,7 +159,7 @@ | |||||
this.openFile[i] = {name:name,type:type} | this.openFile[i] = {name:name,type:type} | ||||
}) | }) | ||||
} | } | ||||
if (res.data.openPic!=''){ | |||||
if (res.data.openPic!='' && res.data.openPic != null && res.data.openPic != undefined){ | |||||
this.openPic = res.data.openPic.split(',') | this.openPic = res.data.openPic.split(',') | ||||
this.openPic2 = res.data.openPic.split(',') | this.openPic2 = res.data.openPic.split(',') | ||||
this.openPic.map((rrr,i)=>{ | this.openPic.map((rrr,i)=>{ | ||||
@@ -30,7 +30,7 @@ | |||||
</template> | </template> | ||||
</van-field> | </van-field> | ||||
<van-field required input-align="right" :border="false" > | |||||
<van-field readonly input-align="right" :border="false" > | |||||
<template #label> | <template #label> | ||||
<img src="../../assets/images/sunVillage_info/add_tit_icon_03.png" width="18"> | <img src="../../assets/images/sunVillage_info/add_tit_icon_03.png" width="18"> | ||||
<p style="margin-left: 5px;">公开图片</p> | <p style="margin-left: 5px;">公开图片</p> | ||||
@@ -113,22 +113,25 @@ | |||||
methods: { | methods: { | ||||
getDetail(id){ | getDetail(id){ | ||||
tempWorkerPublicDetail(this.queryParams).then((res) => { | tempWorkerPublicDetail(this.queryParams).then((res) => { | ||||
res.data.openFile = res.data.openFile.split(',') | |||||
res.data.openPic = res.data.openPic.split(',') | |||||
res.data.openFile.map(rr=>{ | |||||
let name = rr.substr(27,rr.length); | |||||
let type = ''; | |||||
if (name.indexOf('.doc') > -1){ | |||||
type = 'word'; | |||||
}else if(name.indexOf('.xls') > -1){ | |||||
type = 'excel'; | |||||
} | |||||
this.openFileList.push({name:name,type:type}) | |||||
}) | |||||
res.data.openPic.map((rrr,i)=>{ | |||||
this.openPic.push({url:'/api'+rrr}) | |||||
}) | |||||
if (res.data.openFile !='' && res.data.openFile != null && res.data.openFile != undefined){ | |||||
res.data.openFile = res.data.openFile.split(',') | |||||
res.data.openFile.map(rr=>{ | |||||
let name = rr.substr(27,rr.length); | |||||
let type = ''; | |||||
if (name.indexOf('.doc') > -1){ | |||||
type = 'word'; | |||||
}else if(name.indexOf('.xls') > -1){ | |||||
type = 'excel'; | |||||
} | |||||
this.openFileList.push({name:name,type:type}) | |||||
}) | |||||
} | |||||
if (res.data.openPic !='' && res.data.openPic != null && res.data.openPic != undefined){ | |||||
res.data.openPic = res.data.openPic.split(',') | |||||
res.data.openPic.map((rrr,i)=>{ | |||||
this.openPic.push({url:'/api'+rrr}) | |||||
}) | |||||
} | |||||
this.form = res.data; | this.form = res.data; | ||||
}) | }) | ||||
@@ -139,7 +139,7 @@ | |||||
getDetail(id){ | getDetail(id){ | ||||
tempWorkerPublicDetail(this.queryParams).then((res) => { | tempWorkerPublicDetail(this.queryParams).then((res) => { | ||||
var that = this ; | var that = this ; | ||||
if (res.data.openFile!=''){ | |||||
if (res.data.openFile!='' && res.data.openFile != null && res.data.openFile != undefined){ | |||||
this.openFile = res.data.openFile.split(',') | this.openFile = res.data.openFile.split(',') | ||||
this.openFile2 = res.data.openFile.split(',') | this.openFile2 = res.data.openFile.split(',') | ||||
this.openFile.map((rr,i)=>{ | this.openFile.map((rr,i)=>{ | ||||
@@ -153,7 +153,7 @@ | |||||
this.openFile[i] = {name:name,type:type} | this.openFile[i] = {name:name,type:type} | ||||
}) | }) | ||||
} | } | ||||
if (res.data.openPic!=''){ | |||||
if (res.data.openPic!='' && res.data.openPic != null && res.data.openPic != undefined){ | |||||
this.openPic = res.data.openPic.split(',') | this.openPic = res.data.openPic.split(',') | ||||
this.openPic2 = res.data.openPic.split(',') | this.openPic2 = res.data.openPic.split(',') | ||||
this.openPic.map((rrr,i)=>{ | this.openPic.map((rrr,i)=>{ | ||||