style: 调整时间字段宽度
This commit is contained in:
@@ -203,7 +203,7 @@ let tableColumns: ColumnsType = [
|
||||
if (typeof cdrJSON.releaseTime === 'number') {
|
||||
return parseDateToStr(+cdrJSON.releaseTime * 1000);
|
||||
}
|
||||
return cdrJSON.releaseTime;
|
||||
return parseDateToStr(cdrJSON.releaseTime);
|
||||
},
|
||||
},
|
||||
];
|
||||
@@ -735,7 +735,7 @@ onBeforeUnmount(() => {
|
||||
</div>
|
||||
<div>
|
||||
<span>{{ t('views.dashboard.cdr.releaseTime') }}: </span>
|
||||
<span>{{ record.cdrJSON.releaseTime }}</span>
|
||||
<span>{{ parseDateToStr(record.cdrJSON.releaseTime) }}</span>
|
||||
</div>
|
||||
</a-col>
|
||||
</a-row>
|
||||
|
||||
@@ -155,7 +155,7 @@ let tableColumns: ColumnsType = [
|
||||
title: t('views.system.log.operate.operDate'),
|
||||
dataIndex: 'operTime',
|
||||
align: 'center',
|
||||
width: 150,
|
||||
width: 250,
|
||||
customRender(opt) {
|
||||
if (+opt.value <= 0) return '';
|
||||
return parseDateToStr(+opt.value);
|
||||
|
||||
@@ -18,6 +18,7 @@ import {
|
||||
import { OptionsType, WS } from '@/plugins/ws-websocket';
|
||||
import PQueue from 'p-queue';
|
||||
import saveAs from 'file-saver';
|
||||
import { parseDateToStr } from '@/utils/date-utils';
|
||||
const { t } = useI18n();
|
||||
const ws = new WS();
|
||||
const queue = new PQueue({ concurrency: 1, autoStart: true });
|
||||
@@ -199,7 +200,7 @@ let tableColumns: ColumnsType = [
|
||||
width: 200,
|
||||
customRender(opt) {
|
||||
const cdrJSON = opt.value;
|
||||
return cdrJSON.invocationTimestamp;
|
||||
return parseDateToStr(cdrJSON.invocationTimestamp);
|
||||
},
|
||||
},
|
||||
];
|
||||
@@ -593,7 +594,7 @@ onBeforeUnmount(() => {
|
||||
</div>
|
||||
<div>
|
||||
<span>{{ t('views.dashboard.cdr.time') }}: </span>
|
||||
<span>{{ record.cdrJSON.invocationTimestamp }}</span>
|
||||
<span>{{ parseDateToStr(record.cdrJSON.invocationTimestamp) }}</span>
|
||||
</div>
|
||||
<a-divider orientation="left">
|
||||
{{ t('views.dashboard.cdr.rowInfo') }}
|
||||
|
||||
@@ -171,7 +171,7 @@ let tableColumns: ColumnsType = [
|
||||
if (typeof cdrJSON.updateTime === 'number') {
|
||||
return parseDateToStr(+cdrJSON.updateTime * 1000);
|
||||
}
|
||||
return cdrJSON.updateTime;
|
||||
return parseDateToStr(cdrJSON.updateTime);
|
||||
},
|
||||
},
|
||||
];
|
||||
@@ -580,7 +580,7 @@ onBeforeUnmount(() => {
|
||||
{{
|
||||
typeof record.cdrJSON.updateTime === 'number'
|
||||
? parseDateToStr(+record.cdrJSON.updateTime * 1000)
|
||||
: record.cdrJSON.updateTime
|
||||
: parseDateToStr(record.cdrJSON.updateTime)
|
||||
}}
|
||||
</span>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user