拆分图片修改
This commit is contained in:
@@ -299,7 +299,7 @@
|
|||||||
eventBUs.$emit('searchReset')
|
eventBUs.$emit('searchReset')
|
||||||
this.$emit('addFormClick')
|
this.$emit('addFormClick')
|
||||||
} else {
|
} else {
|
||||||
this.$message.warning(this.$t('operationFailed'))
|
this.$message.warning(this.$t(res.message))
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
@@ -630,7 +630,10 @@
|
|||||||
if(res.success){
|
if(res.success){
|
||||||
this.contentList=[...res.result]
|
this.contentList=[...res.result]
|
||||||
this.contentList.forEach(item=>{
|
this.contentList.forEach(item=>{
|
||||||
item.thumbUrl=window._CONFIG['domianURL']+'/sys/split/file/getImage?fileUrl='+Base64.encode(item.itemContent)
|
let imgData=item.itemContent.split('fileUrl=')[1]
|
||||||
|
// console.log('imgData',imgData)
|
||||||
|
item.thumbUrl=window._CONFIG['domianURL']+'/sys/split/file/getImage?fileUrl='+imgData
|
||||||
|
// item.thumbUrl=Base64.encode(item.itemContent)
|
||||||
})
|
})
|
||||||
// window._CONFIG['domianURL']+'/sys/split/file/getImage?fileUrl='+Base64.encode(file.response.result.url)
|
// window._CONFIG['domianURL']+'/sys/split/file/getImage?fileUrl='+Base64.encode(file.response.result.url)
|
||||||
|
|
||||||
@@ -851,7 +854,7 @@
|
|||||||
id:'',
|
id:'',
|
||||||
type:'IMG',
|
type:'IMG',
|
||||||
itemContent:file.response.result.url,
|
itemContent:file.response.result.url,
|
||||||
thumbUrl:window._CONFIG['domianURL']+'/sys/split/file/getImage?fileUrl='+Base64.encode(file.response.result.url)
|
thumbUrl:window._CONFIG['domianURL']+'/sys/split/file/getImage?fileUrl='+file.response.result.url.split('fileUrl=')[1]
|
||||||
}
|
}
|
||||||
// console.log('baseDecode',Base64.decode(this.contentList[this.addIndex].thumbUrl))
|
// console.log('baseDecode',Base64.decode(this.contentList[this.addIndex].thumbUrl))
|
||||||
|
|
||||||
@@ -879,10 +882,10 @@
|
|||||||
// console.log('conteend',imgs,this.contentList)
|
// console.log('conteend',imgs,this.contentList)
|
||||||
},
|
},
|
||||||
//点击图片预览
|
//点击图片预览
|
||||||
preImg(item){
|
// preImg(item){
|
||||||
this.itemSrc=item.thumbUrl?item.thumbUrl:item.itemContent
|
// this.itemSrc=item.thumbUrl?item.thumbUrl:item.itemContent
|
||||||
this.preImgVisible=true
|
// this.preImgVisible=true
|
||||||
},
|
// },
|
||||||
//关闭预览图片
|
//关闭预览图片
|
||||||
handlePreImgCancel(){
|
handlePreImgCancel(){
|
||||||
this.preImgVisible=false
|
this.preImgVisible=false
|
||||||
|
|||||||
Reference in New Issue
Block a user