|
@ -27,7 +27,7 @@ |
|
|
</ContentWrap> |
|
|
</ContentWrap> |
|
|
<div class="flex"> |
|
|
<div class="flex"> |
|
|
<!-- 详情 --> |
|
|
<!-- 详情 --> |
|
|
<ContentWrap class="w-[100%]" v-show="tabsList[current].label!=annexAliasLabel&&tabsList[current].label!='备注'&&tabsList[current].label!='变更记录'&&tabsList[current].label!='主数据'&&!annexTableData.some(item=>item.label==tabsList[current].label)"> <!-- 列表头部 --> |
|
|
<ContentWrap class="w-[100%]" v-show="tabsList[current].label!=annexAlias.label&&tabsList[current].label!='备注'&&tabsList[current].label!='变更记录'&&tabsList[current].label!='主数据'&&!annexTableData.some(item=>item.label==tabsList[current].label)"> <!-- 列表头部 --> |
|
|
<TableHead |
|
|
<TableHead |
|
|
v-if="!isBasic" |
|
|
v-if="!isBasic" |
|
|
:HeadButttondata="HeadButttondata" |
|
|
:HeadButttondata="HeadButttondata" |
|
@ -101,8 +101,10 @@ |
|
|
<div v-for="(annexItem ,index) in annexTableData" :key="index" v-show="annexItem.label==tabsList[current].label" class="w-[100%]" :style="{height:annexItem.hasSubDetail?'100%':remarkHeight+'px'}"> |
|
|
<div v-for="(annexItem ,index) in annexTableData" :key="index" v-show="annexItem.label==tabsList[current].label" class="w-[100%]" :style="{height:annexItem.hasSubDetail?'100%':remarkHeight+'px'}"> |
|
|
<ContentWrap class="w-[100%]"> |
|
|
<ContentWrap class="w-[100%]"> |
|
|
<ElScrollbar ref="scrollbar" :style="{height:annexItem.hasSubDetail?'100%':(remarkHeight-40)+'px'}"> |
|
|
<ElScrollbar ref="scrollbar" :style="{height:annexItem.hasSubDetail?'100%':(remarkHeight-40)+'px'}"> |
|
|
<Annex v-show="tabsList[current].label==annexItem.label" |
|
|
<Annex v-show="tabsList[current].label==annexItem.label" |
|
|
:annexData="annexItem" |
|
|
:annexData="annexItem" |
|
|
|
|
|
:showDownload = "annexItem.showDownload" |
|
|
|
|
|
:hiddenDelete = "annexItem.hiddenDelete" |
|
|
@handleAnnexSuccess="updateAnnexTableHandle" |
|
|
@handleAnnexSuccess="updateAnnexTableHandle" |
|
|
@deleteAnnexSuccess="updateAnnexTableHandle" |
|
|
@deleteAnnexSuccess="updateAnnexTableHandle" |
|
|
:upData="{...remarksData.data,tableName:annexItem.tableName}" |
|
|
:upData="{...remarksData.data,tableName:annexItem.tableName}" |
|
@ -125,11 +127,13 @@ |
|
|
|
|
|
|
|
|
</div> |
|
|
</div> |
|
|
<!-- 附件/备注/变更记录 --> |
|
|
<!-- 附件/备注/变更记录 --> |
|
|
<ContentWrap class="w-[100%]" v-show="tabsList[current].label==annexAliasLabel||tabsList[current].label=='备注'||tabsList[current].label=='变更记录'" :style="{height:remarkHeight+'px'}"> |
|
|
<ContentWrap class="w-[100%]" v-show="tabsList[current].label==annexAlias.label||tabsList[current].label=='备注'||tabsList[current].label=='变更记录'" :style="{height:remarkHeight+'px'}"> |
|
|
<!-- 附件组件 --> |
|
|
<!-- 附件组件 --> |
|
|
<ElScrollbar ref="scrollbar" :style="{height:(remarkHeight-40)+'px'}"> |
|
|
<ElScrollbar ref="scrollbar" :style="{height:(remarkHeight-40)+'px'}"> |
|
|
<Annex v-show="tabsList[current].label==annexAliasLabel" |
|
|
<Annex v-show="tabsList[current].label==annexAlias.label" |
|
|
:annexData="annexData" |
|
|
:annexData="annexData" |
|
|
|
|
|
:showDownload = "annexAlias.showDownload" |
|
|
|
|
|
:hiddenDelete = "annexAlias.hiddenDelete" |
|
|
@handleAnnexSuccess="handleAnnexSuccess" |
|
|
@handleAnnexSuccess="handleAnnexSuccess" |
|
|
@deleteAnnexSuccess="deleteAnnexSuccess" |
|
|
@deleteAnnexSuccess="deleteAnnexSuccess" |
|
|
:upData="remarksData.data" |
|
|
:upData="remarksData.data" |
|
@ -213,11 +217,16 @@ const props = defineProps({ |
|
|
default: ()=>[] |
|
|
default: ()=>[] |
|
|
}, |
|
|
}, |
|
|
//展示附件组件的tab标签 |
|
|
//展示附件组件的tab标签 |
|
|
annexAliasLabel: { |
|
|
annexAlias: { |
|
|
type: String, |
|
|
type: Object, |
|
|
required: false, |
|
|
required: false, |
|
|
default: '附件' |
|
|
default: ()=>({ |
|
|
|
|
|
label: '附件', |
|
|
|
|
|
showDownload:false, |
|
|
|
|
|
hiddenDelete:false |
|
|
|
|
|
}) |
|
|
}, |
|
|
}, |
|
|
|
|
|
|
|
|
// 是否是基础数据 展现详情顶部表单 |
|
|
// 是否是基础数据 展现详情顶部表单 |
|
|
isBasic: { |
|
|
isBasic: { |
|
|
type: Boolean, |
|
|
type: Boolean, |
|
@ -383,7 +392,7 @@ if (props.isBasic == true) { |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
const otherList = [...props.annexTable,{ |
|
|
const otherList = [...props.annexTable,{ |
|
|
label:props.annexAliasLabel, |
|
|
label:props.annexAlias.label, |
|
|
prop:'Annex' |
|
|
prop:'Annex' |
|
|
},{ |
|
|
},{ |
|
|
label:'备注', |
|
|
label:'备注', |
|
@ -463,7 +472,9 @@ const getAnnexFileList = async (row:id) => { |
|
|
tableName: item?.tableName || '', |
|
|
tableName: item?.tableName || '', |
|
|
annexList, |
|
|
annexList, |
|
|
hasSubDetail:item.hasSubDetail||false, |
|
|
hasSubDetail:item.hasSubDetail||false, |
|
|
subDetailTableData:item.subDetailTableData |
|
|
subDetailTableData:item.subDetailTableData, |
|
|
|
|
|
showDownload:item.showDownload||false, // 是否展示下载按钮 |
|
|
|
|
|
hiddenDelete:item.hiddenDelete || false, // 是否展示删除按钮 |
|
|
}) |
|
|
}) |
|
|
if(item?.subDetailTableData){ |
|
|
if(item?.subDetailTableData){ |
|
|
const { tableObject:subTableObject, tableMethods:subTableMethods } = useTable({ |
|
|
const { tableObject:subTableObject, tableMethods:subTableMethods } = useTable({ |
|
|