|
@@ -68,6 +68,7 @@ function handleUploadImg(file){
|
|
|
apiAuthor.uploadAuthorPic(form).then(res=>{
|
|
|
if(res.Ret!==200) return
|
|
|
curAuthorData.value.HeadImgURL = res.Data?.Url||''
|
|
|
+ curAuthorData.value.OriginUrl = res.Data?.OriginUrl||''
|
|
|
})
|
|
|
}
|
|
|
const rules = {
|
|
@@ -79,9 +80,9 @@ async function handleSaveAuthor(){
|
|
|
try{
|
|
|
await formRef.value?.validate()
|
|
|
}catch(e){ return }
|
|
|
- const {Id,HeadImgURL,Introduction,Name,ProfessionalCertificate,Position,InvestmentCertificate} = curAuthorData.value
|
|
|
+ const {Id,HeadImgURL,Introduction,Name,ProfessionalCertificate,Position,InvestmentCertificate,OriginUrl} = curAuthorData.value
|
|
|
apiAuthor.editAuthor({
|
|
|
- Id,HeadImgUrl:HeadImgURL,Introduction,Name,ProfessionalCertificate,Position,InvestmentCertificate
|
|
|
+ Id,HeadImgUrl:HeadImgURL,Introduction,Name,ProfessionalCertificate,Position,InvestmentCertificate,HeadOriginImgUrl:OriginUrl||''
|
|
|
}).then(res=>{
|
|
|
if(res.Ret!==200) return
|
|
|
ElMessage.success('配置成功')
|
|
@@ -114,7 +115,7 @@ async function handleSaveAuthor(){
|
|
|
v-if="row[column.key]"
|
|
|
fit="cover"
|
|
|
:src="row[column.key]||''"
|
|
|
- :preview-src-list="[row[column.key]||'']"
|
|
|
+ :preview-src-list="[row.HeadOriginImgUrl||'']"
|
|
|
style="display: inline-block;width:60px;height: 60px;" preview-teleported/>
|
|
|
<span v-else style="display: inline-block;width:60px;height: 60px;line-height: 60px;">-</span>
|
|
|
</div>
|