diff --git a/src/components/StandardResolutionSheet.vue b/src/components/StandardResolutionSheet.vue index 3897548..aaf378f 100644 --- a/src/components/StandardResolutionSheet.vue +++ b/src/components/StandardResolutionSheet.vue @@ -131,6 +131,7 @@ @click="handleClickClauseContentItem(clause)">
{{ clause.item_num }} {{ clause.item_title }}
@@ -148,6 +149,7 @@
{{ clauseLabelInfo.item_num }} {{ clauseLabelInfo.item_title }}
@@ -219,6 +221,11 @@ +
+
+ +
+
@@ -249,6 +256,7 @@ export default { }, data () { return { + imageUrl: null, labelCol: { xs: { span: 24 }, sm: { span: 6 } @@ -309,6 +317,18 @@ export default { // this.sheetContainerRefX = boxWidth - this.standardCatalogueRefX - this.clauseLabelRefX }, methods: { + // 点击条款内容或者译文 + handleClickContent (e) { + const dom = e.target + // 如果是图片 + if (dom.tagName === 'IMG') { + this.imageUrl = dom.src + // 获取viewer实例 + const viewer = this.$el.querySelector('.image').$viewer + // 调用show方法进行显示预览图 + viewer.show() + } + }, // 获取标准的解读 getStandardInterpret () { this.loading = true