|
@@ -54,13 +54,13 @@
|
|
|
|
|
|
|
|
<template #table-column-addTime="{scope}">
|
|
<template #table-column-addTime="{scope}">
|
|
|
<div>
|
|
<div>
|
|
|
- {{ scope.row.addTime?scope.row.addTime.substr(5,11):'' }}
|
|
|
|
|
|
|
+ {{ scope.row.addTime?formatTime(scope.row.addTime):'' }}
|
|
|
</div>
|
|
</div>
|
|
|
</template>
|
|
</template>
|
|
|
|
|
|
|
|
<template #table-column-payTime="{scope}">
|
|
<template #table-column-payTime="{scope}">
|
|
|
<div>
|
|
<div>
|
|
|
- {{ scope.row.payTime?scope.row.payTime.substr(5,11):'' }}
|
|
|
|
|
|
|
+ {{ scope.row.payTime && scope.row.payTime!='0000-00-00 00:00:00' ? formatTime(scope.row.payTime):'-' }}
|
|
|
</div>
|
|
</div>
|
|
|
</template>
|
|
</template>
|
|
|
|
|
|
|
@@ -610,6 +610,19 @@ export default {
|
|
|
}
|
|
}
|
|
|
return todaty
|
|
return todaty
|
|
|
},
|
|
},
|
|
|
|
|
+ formatTime(timeStr) {
|
|
|
|
|
+ // 获取当前年份
|
|
|
|
|
+ const currentYear = new Date().getFullYear();
|
|
|
|
|
+ // 从时间字符串中提取年份(假设格式为 YYYY-MM-DD HH:mm:ss)
|
|
|
|
|
+ const dateYear = parseInt(timeStr.substr(0, 4));
|
|
|
|
|
+
|
|
|
|
|
+ // 如果年份不是当前年份,显示完整日期 (YYYY-MM-DD HH:mm)
|
|
|
|
|
+ if (dateYear !== currentYear) {
|
|
|
|
|
+ return timeStr.substr(0, 16);
|
|
|
|
|
+ }
|
|
|
|
|
+ // 如果是当前年份,只显示月日 (MM-DD HH:mm)
|
|
|
|
|
+ return timeStr.substr(5, 11);
|
|
|
|
|
+ },
|
|
|
formatProgress(){
|
|
formatProgress(){
|
|
|
return ''
|
|
return ''
|
|
|
},
|
|
},
|