修改图片预览
This commit is contained in:
+1
-1
@@ -577,7 +577,7 @@ public class ProblemKnowledgeBaseEOServiceImpl extends ServiceImpl<ProblemKnowle
|
|||||||
List<SysConfig> sysConfigs = iSysConfigService.queryList();
|
List<SysConfig> sysConfigs = iSysConfigService.queryList();
|
||||||
if(org.apache.commons.collections.CollectionUtils.isNotEmpty(sysConfigs)){
|
if(org.apache.commons.collections.CollectionUtils.isNotEmpty(sysConfigs)){
|
||||||
for (SysConfig sysConfig : sysConfigs) {
|
for (SysConfig sysConfig : sysConfigs) {
|
||||||
if(sysConfig.getConfigName().equals("domainWebImgURL")){
|
if(sysConfig.getConfigName().equals("domianWebImgURL")){
|
||||||
String pcUrl = sysConfig.getConfig();
|
String pcUrl = sysConfig.getConfig();
|
||||||
String phoneUrl = sysConfig.getPhoneConfig();
|
String phoneUrl = sysConfig.getPhoneConfig();
|
||||||
if(ObjectUtils.isNotEmpty(problemKnowledgeBaseEO) && StringUtils.isNotBlank(problemKnowledgeBaseEO.getContent())){
|
if(ObjectUtils.isNotEmpty(problemKnowledgeBaseEO) && StringUtils.isNotBlank(problemKnowledgeBaseEO.getContent())){
|
||||||
|
|||||||
@@ -24,7 +24,7 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="content" id="contentId" v-html="queryForm.content">
|
<div class="content" id="contentId" @click="contentIdClick($event)" v-html="queryForm.content">
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
@@ -172,14 +172,13 @@
|
|||||||
}
|
}
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
this.$nextTick(() => {
|
// this.$nextTick(() => {
|
||||||
let contentId = document.getElementById('contentId')
|
// let contentId = document.getElementById('contentId')
|
||||||
contentId.onclick = function(e) {
|
// console.log(contentId)
|
||||||
if (e.target.localName == 'img') {
|
// contentId.onclick = function(e) {
|
||||||
ImagePreview([e.target.currentSrc])
|
// console.log(e)
|
||||||
}
|
// }
|
||||||
}
|
// })
|
||||||
})
|
|
||||||
window.addEventListener('scroll', this.scrolling)
|
window.addEventListener('scroll', this.scrolling)
|
||||||
window.addEventListener('mousedown', this.handleonmousedown)
|
window.addEventListener('mousedown', this.handleonmousedown)
|
||||||
this.getQueryBy()
|
this.getQueryBy()
|
||||||
@@ -205,6 +204,11 @@
|
|||||||
// scrolling() {
|
// scrolling() {
|
||||||
// this.isDisplay = false
|
// this.isDisplay = false
|
||||||
// },
|
// },
|
||||||
|
contentIdClick(e){
|
||||||
|
if (e.target.localName == 'img') {
|
||||||
|
ImagePreview([e.target.currentSrc])
|
||||||
|
}
|
||||||
|
},
|
||||||
handleonmousedown(e) {
|
handleonmousedown(e) {
|
||||||
if (e.srcElement.type == 'textarea' || e.target.type == 'textarea') {
|
if (e.srcElement.type == 'textarea' || e.target.type == 'textarea') {
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user