From 30994514a57c07c8c1f9c6a614b16e11ef005903 Mon Sep 17 00:00:00 2001 From: BianLzhaoMin <11485688+bianliangzhaomin123@user.noreply.gitee.com> Date: Mon, 31 Mar 2025 11:12:00 +0800 Subject: [PATCH] =?UTF-8?q?bug=E4=BF=AE=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/pro-tabs/bns-timeline-tabs.vue | 31 ++++++++++++++++--- 1 file changed, 27 insertions(+), 4 deletions(-) diff --git a/src/components/pro-tabs/bns-timeline-tabs.vue b/src/components/pro-tabs/bns-timeline-tabs.vue index fcb486b..d1513bf 100644 --- a/src/components/pro-tabs/bns-timeline-tabs.vue +++ b/src/components/pro-tabs/bns-timeline-tabs.vue @@ -10,7 +10,7 @@
-1) return 'currentGary' + if (item.auditStatus == 4 && this.endAuditingIndex < 0) return 'currentLight' } }, @@ -232,7 +233,13 @@ export default { watch: { items: { handler: function (val) { - console.log('=----------------', val) + console.log('=----------------items9996', val) + + const endIndex = val.findIndex(item => item.status === '终审通过') + this.endAuditingIndex = endIndex + if (endIndex > -1) { + this.auditRecordList = val.slice(0, endIndex + 1) + } }, deep: true, }, @@ -267,6 +274,10 @@ export default { code: 1, num: 0, assignNum: 0, + + // 3.31更改bug新增 + auditRecordList: [], + endAuditingIndex: -1, } }, mounted() { @@ -428,6 +439,18 @@ export default { border-radius: 5px; background: #f56c6c; } +.currentGary { + /* Add any specific styles for the highlighted state */ + padding: 8px; + /* border: 1px solid green; */ + width: 50%; + text-align: center; + height: 50px; + font-size: 14px; + margin-top: 2px; + border-radius: 5px; + background: rgb(153, 153, 153); +} .currentLight { /* Add any specific styles for the highlighted state */ padding: 8px;