fix: 修复导出功能中时间分组字段的日期格式化
This commit is contained in:
@@ -336,7 +336,11 @@ function fnRecordExport() {
|
|||||||
for (const key of keys) {
|
for (const key of keys) {
|
||||||
if (tableColumnsKeyArr[i] === key) {
|
if (tableColumnsKeyArr[i] === key) {
|
||||||
const title = tableColumnsTitleArr[i];
|
const title = tableColumnsTitleArr[i];
|
||||||
kpiData[title] = item[key];
|
if (key === 'timeGroup') {
|
||||||
|
kpiData[title] = parseDateToStr(item[key]);
|
||||||
|
} else {
|
||||||
|
kpiData[title] = item[key];
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -1288,9 +1292,7 @@ function handleSearch() {
|
|||||||
// 检查是否选择了网元类型和网元ID
|
// 检查是否选择了网元类型和网元ID
|
||||||
if (!state.neType) {
|
if (!state.neType) {
|
||||||
message.warning({
|
message.warning({
|
||||||
content:
|
content: 'Please select the network element type first',
|
||||||
t('views.perfManage.goldTarget.selectNeTypeFirst') ||
|
|
||||||
'请先选择网元类型',
|
|
||||||
duration: 2,
|
duration: 2,
|
||||||
});
|
});
|
||||||
return;
|
return;
|
||||||
@@ -1298,9 +1300,7 @@ function handleSearch() {
|
|||||||
|
|
||||||
if (state.neIds.length === 0) {
|
if (state.neIds.length === 0) {
|
||||||
message.warning({
|
message.warning({
|
||||||
content:
|
content: 'Please select at least one network element',
|
||||||
t('views.perfManage.goldTarget.selectNeIdsFirst') ||
|
|
||||||
'请选择至少一个网元',
|
|
||||||
duration: 2,
|
duration: 2,
|
||||||
});
|
});
|
||||||
return;
|
return;
|
||||||
|
|||||||
@@ -334,7 +334,11 @@ function fnRecordExport() {
|
|||||||
for (const key of keys) {
|
for (const key of keys) {
|
||||||
if (tableColumnsKeyArr[i] === key) {
|
if (tableColumnsKeyArr[i] === key) {
|
||||||
const title = tableColumnsTitleArr[i];
|
const title = tableColumnsTitleArr[i];
|
||||||
kpiData[title] = item[key];
|
if (key === 'timeGroup') {
|
||||||
|
kpiData[title] = parseDateToStr(item[key]);
|
||||||
|
} else {
|
||||||
|
kpiData[title] = item[key];
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user