fix(拆解单): 水平越权问题

This commit is contained in:
赵霄
2024-03-05 17:29:39 +08:00
parent 0f638c2dd2
commit bcb646727c
2 changed files with 22 additions and 4 deletions
+21 -3
View File
@@ -96,6 +96,14 @@ import { FieldType } from '@/enums/commonEnums'
export default { export default {
name: 'StandardResolutionSheet', name: 'StandardResolutionSheet',
props: {
// 是否文档拆分处查看
horizontalOverstep: {
type: Boolean,
required: false,
default: false
}
},
data () { data () {
return { return {
showClauseLabel: true, // 是否展示条文标签 showClauseLabel: true, // 是否展示条文标签
@@ -130,7 +138,13 @@ export default {
}, },
initDetailInfo () { initDetailInfo () {
this.loading = true this.loading = true
previewDocSplit(this.queryParams).then(res => { const params = {
...this.queryParams
}
if (this.horizontalOverstep) {
params.horizontalOverstep = true
}
previewDocSplit(params).then(res => {
if (res.success) { if (res.success) {
const data = res.result || {} const data = res.result || {}
this.treeData = data.sarFileSplitMenuEO || [] this.treeData = data.sarFileSplitMenuEO || []
@@ -237,8 +251,10 @@ export default {
height: 100%; height: 100%;
position: relative; position: relative;
transition: width .2s linear; transition: width .2s linear;
/deep/ .ant-tree li .ant-tree-node-content-wrapper{
/deep/ .ant-tree li .ant-tree-node-content-wrapper {
max-width: calc(100% - 24px); max-width: calc(100% - 24px);
&:hover { &:hover {
max-width: 100%; max-width: 100%;
} }
@@ -434,12 +450,14 @@ export default {
/deep/ table { /deep/ table {
width: 100%; width: 100%;
border: 1px solid; border: 1px solid;
td { td {
border: 1px solid; border: 1px solid;
} }
} }
/deep/ img.wordImg { /deep/ img.wordImg {
width: auto!important; width: auto !important;
max-width: 100%; max-width: 100%;
} }
} }
@@ -1,6 +1,6 @@
<template> <template>
<div class="split-content"> <div class="split-content">
<standard-resolution-sheet ref="resolutionSheet" /> <standard-resolution-sheet ref="resolutionSheet" :horizontal-overstep="true"/>
</div> </div>
</template> </template>