From 8d18dbc867b285b6e021d5e3c22ccb4335ceab4b Mon Sep 17 00:00:00 2001 From: yufei0306 <13417315+yufei0306@user.noreply.gitee.com> Date: Fri, 29 Mar 2024 11:42:25 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0tablist=E9=BB=98=E8=AE=A4?= =?UTF-8?q?=E6=95=B0=E6=8D=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/Detail/src/Detail.vue | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/src/components/Detail/src/Detail.vue b/src/components/Detail/src/Detail.vue index d45aff944..74bbe4844 100644 --- a/src/components/Detail/src/Detail.vue +++ b/src/components/Detail/src/Detail.vue @@ -329,7 +329,8 @@ if (props.isBasic == true) { ] } } -tabsList.value = [...tabsList?.value,{ + +const otherList = [{ label:'附件', prop:'Annex' },{ @@ -340,6 +341,14 @@ tabsList.value = [...tabsList?.value,{ prop:'ChangeRecord' }] +tabsList.value = [...tabsList?.value,...otherList] + +if (!tabsList.value || tabsList.value && tabsList.value.length == otherList.length) { + tabsList.value.unshift({ + label: '明细', + prop: 'Detail' + }) +} // 附件默认数据 const annexData = reactive({