This is an automated email from the ASF dual-hosted git repository.
zhengchenyu pushed a commit to branch branch-0.9
in repository https://gitbox.apache.org/repos/asf/incubator-uniffle.git
The following commit(s) were added to refs/heads/branch-0.9 by this push:
new 727ac1727 [MINOR] Improvement(dashboard): Support display
human-readable time format for app page (#2011)
727ac1727 is described below
commit 727ac17275956fa77cb66438230c66b442c4caa5
Author: maobaolong <[email protected]>
AuthorDate: Fri Aug 9 14:01:38 2024 +0800
[MINOR] Improvement(dashboard): Support display human-readable time format
for app page (#2011)
Display the human-readable time format in application page.
A long type timestamp really hard to get information from it.
Format the update time to human-readable.
Manual testing
---
dashboard/src/main/webapp/src/components/ApplicationPage.vue | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/dashboard/src/main/webapp/src/components/ApplicationPage.vue
b/dashboard/src/main/webapp/src/components/ApplicationPage.vue
index 1729311b9..13ac9dead 100644
--- a/dashboard/src/main/webapp/src/components/ApplicationPage.vue
+++ b/dashboard/src/main/webapp/src/components/ApplicationPage.vue
@@ -43,7 +43,7 @@
<el-table :data="pageData.appInfoData" height="250" style="width: 100%">
<el-table-column prop="appId" label="AppId" min-width="180"/>
<el-table-column prop="userName" label="UserName" min-width="180"/>
- <el-table-column prop="updateTime" label="Update Time"
min-width="180"/>
+ <el-table-column prop="updateTime" label="Update Time" min-width="180"
:formatter="dateFormatter"/>
</el-table>
</div>
</div>
@@ -56,6 +56,7 @@ import {
getTotalForUser
} from "@/api/api";
import {onMounted, reactive} from "vue";
+import {dateFormatter} from '@/utils/common';
export default {
setup() {
@@ -85,7 +86,7 @@ export default {
getTotalForUserPage();
getAppTotalPage();
})
- return {pageData}
+ return {pageData, dateFormatter}
}
}
</script>