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 {
name: 'StandardResolutionSheet',
props: {
// 是否文档拆分处查看
horizontalOverstep: {
type: Boolean,
required: false,
default: false
}
},
data () {
return {
showClauseLabel: true, // 是否展示条文标签
@@ -130,7 +138,13 @@ export default {
},
initDetailInfo () {
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) {
const data = res.result || {}
this.treeData = data.sarFileSplitMenuEO || []
@@ -237,8 +251,10 @@ export default {
height: 100%;
position: relative;
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);
&:hover {
max-width: 100%;
}
@@ -434,12 +450,14 @@ export default {
/deep/ table {
width: 100%;
border: 1px solid;
td {
border: 1px solid;
}
}
/deep/ img.wordImg {
width: auto!important;
width: auto !important;
max-width: 100%;
}
}