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 { } } +