From 7f5f478bde26ab37a86e89b07faff61d85488bfc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=8E=8B=E5=8D=93=E7=85=9C?= <2210102150@qq.com> Date: Mon, 11 Aug 2025 17:15:48 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E6=A1=88=E4=BE=8B=E7=9A=84?= =?UTF-8?q?=E6=B5=8F=E8=A7=88=E8=AE=B0=E5=BD=95=E4=B8=AD=EF=BC=8C=E6=97=B6?= =?UTF-8?q?=E9=97=B4=E6=88=B3=E6=98=BE=E7=A4=BA=E6=A0=BC=E5=BC=8F=E9=97=AE?= =?UTF-8?q?=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/portal/case/Index.vue | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/src/views/portal/case/Index.vue b/src/views/portal/case/Index.vue index c3b60712..e9f1c8ac 100644 --- a/src/views/portal/case/Index.vue +++ b/src/views/portal/case/Index.vue @@ -664,12 +664,6 @@ export default { return !this.speciData.some(item => item.fielclass); } }, - formatDateTime(dateArray) { - if (!dateArray || dateArray.length !== 6) return ''; - const [year, month, day, hour, minute, second] = dateArray; - const pad = (num) => num.toString().padStart(2, '0'); - return `${year}-${pad(month)}-${pad(day)} ${pad(hour)}:${pad(minute)}:${pad(second)}`; - }, beforeRouteLeave (to, from, next) { const isScroll = 'caseDetail,caseCharts,caseExcellent' if(!isScroll.includes(to.name)){ @@ -868,6 +862,12 @@ export default { this.popularityName = this.switch[e] this.getPopularity() }, + formatDateTime(dateArray) { + if (!dateArray || dateArray.length !== 6) return ''; + const [year, month, day, hour, minute, second] = dateArray; + const pad = (num) => num.toString().padStart(2, '0'); + return `${year}-${pad(month)}-${pad(day)} ${pad(hour)}:${pad(minute)}:${pad(second)}`; + }, handleType(msg){ // this.queryCondition.type = msg }, @@ -2811,3 +2811,4 @@ export default { } } +