|
|
@ -255,12 +255,32 @@ const props = defineProps({ |
|
|
|
default: ()=>({ |
|
|
|
hidden:false, |
|
|
|
label: '附件', |
|
|
|
prop:'File', |
|
|
|
showDownload:false, |
|
|
|
showPreview:false, |
|
|
|
hiddenDelete:false |
|
|
|
}) |
|
|
|
}, |
|
|
|
|
|
|
|
//展示备注组件的tab标签 |
|
|
|
remarksAlias: { |
|
|
|
type: Object, |
|
|
|
required: false, |
|
|
|
default: ()=>({ |
|
|
|
hidden:false, |
|
|
|
label: '备注', |
|
|
|
prop:'Remarks' |
|
|
|
}) |
|
|
|
}, |
|
|
|
//展示变更记录组件的tab标签 |
|
|
|
changeRecordAlias: { |
|
|
|
type: Object, |
|
|
|
required: false, |
|
|
|
default: ()=>({ |
|
|
|
hidden:false, |
|
|
|
label: '变更记录', |
|
|
|
prop:'ChangeRecord' |
|
|
|
}) |
|
|
|
}, |
|
|
|
// 是否是基础数据 展现详情顶部表单 |
|
|
|
isBasic: { |
|
|
|
type: Boolean, |
|
|
@ -517,25 +537,17 @@ if(props.slotDetailTabList){ |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
let otherList = [...filterPermissionAnnexTable(),{ |
|
|
|
label:props.annexAlias.label, |
|
|
|
prop:'Annex' |
|
|
|
},{ |
|
|
|
label:'备注', |
|
|
|
prop:'Remarks' |
|
|
|
},{ |
|
|
|
label:'变更记录', |
|
|
|
prop:'ChangeRecord' |
|
|
|
}] |
|
|
|
if(props.annexAlias.hidden){ |
|
|
|
otherList = [...filterPermissionAnnexTable(),{ |
|
|
|
label:'备注', |
|
|
|
prop:'Remarks' |
|
|
|
},{ |
|
|
|
label:'变更记录', |
|
|
|
prop:'ChangeRecord' |
|
|
|
}] |
|
|
|
let otherList = [...filterPermissionAnnexTable()] |
|
|
|
if (!props.annexAlias.hidden) { |
|
|
|
otherList.push(props.annexAlias) |
|
|
|
} |
|
|
|
if (!props.remarksAlias.hidden) { |
|
|
|
otherList.push(props.remarksAlias) |
|
|
|
} |
|
|
|
if (!props.changeRecordAlias.hidden) { |
|
|
|
otherList.push(props.changeRecordAlias) |
|
|
|
} |
|
|
|
|
|
|
|
tabsList.value = [...tabsList?.value,...otherList] |
|
|
|
|
|
|
|
if (!tabsList.value || tabsList.value && tabsList.value.length == otherList.length) { |
|
|
|