@@ -19,13 +19,14 @@ import { isSaasMode } from "util/envUtils";
1919import { selectSystemConfig } from "redux/selectors/configSelectors" ;
2020import { default as Form } from "antd/es/form" ;
2121import { default as Input } from "antd/es/input" ;
22- import { Pagination , Spin } from "antd" ;
22+ import { Pagination , Spin , Tooltip } from "antd" ;
2323import { getUser } from "redux/selectors/usersSelectors" ;
2424import { getOrgCreateStatus } from "redux/selectors/orgSelectors" ;
2525import { useWorkspaceManager } from "util/useWorkspaceManager" ;
2626import { Org } from "constants/orgConstants" ;
2727import { useState } from "react" ;
2828import { SwapOutlined } from "@ant-design/icons" ;
29+ import dayjs from "dayjs" ;
2930
3031const OrgName = styled . div `
3132 display: flex;
@@ -170,6 +171,8 @@ type DataItemInfo = {
170171 del : boolean ;
171172 orgName : string ;
172173 logoUrl : string ;
174+ createdAt ?: number ;
175+ updatedAt ?: number ;
173176} ;
174177
175178function OrganizationSetting ( ) {
@@ -194,6 +197,7 @@ function OrganizationSetting() {
194197 } ) ;
195198
196199
200+
197201 // Filter to only show orgs where user has admin permissions
198202 const adminOrgs = displayWorkspaces . filter ( ( org : Org ) => {
199203 const role = user . orgRoleMap . get ( org . id ) ;
@@ -205,10 +209,14 @@ function OrganizationSetting() {
205209 del : adminOrgs . length > 1 ,
206210 orgName : org . name ,
207211 logoUrl : org . logoUrl || "" ,
212+ createdAt : org . createdAt ,
213+ updatedAt : org . updatedAt ,
208214 } ) ) ;
209215
216+
217+
210218 return (
211- < Level1SettingPageContentWithList >
219+ < Level1SettingPageContentWithList style = { { minWidth : "1000px" } } >
212220 < Level1SettingPageTitleWithBtn >
213221 { trans ( "settings.organization" ) }
214222 { isSaasMode ( sysConfig ) && (
@@ -249,7 +257,7 @@ function OrganizationSetting() {
249257 onClick : ( ) => history . push ( buildOrgId ( ( record as DataItemInfo ) . id ) ) ,
250258 } ) }
251259 columns = { [
252- {
260+ {
253261 title : trans ( "orgSettings.orgName" ) ,
254262 dataIndex : "orgName" ,
255263 ellipsis : true ,
@@ -264,6 +272,34 @@ function OrganizationSetting() {
264272 ) ;
265273 } ,
266274 } ,
275+ {
276+ title : trans ( "orgSettings.createdAt" ) ,
277+ dataIndex : "createdAt" ,
278+ width : "150px" ,
279+ render : ( createdAt : number ) => {
280+ if ( ! createdAt ) return "-" ;
281+ return (
282+ < Tooltip title = { dayjs . unix ( createdAt ) . format ( "YYYY/MM/DD HH:mm:ss" ) }
283+ placement = "bottom" >
284+ < span style = { { color : "#8b8fa3" } } > { dayjs . unix ( createdAt ) . fromNow ( ) } </ span >
285+ </ Tooltip >
286+ ) ;
287+ } ,
288+ } ,
289+ {
290+ title : trans ( "orgSettings.updatedAt" ) ,
291+ dataIndex : "updatedAt" ,
292+ width : "150px" ,
293+ render : ( updatedAt : number ) => {
294+ if ( ! updatedAt ) return "-" ;
295+ return (
296+ < Tooltip title = { dayjs . unix ( updatedAt ) . format ( "YYYY/MM/DD HH:mm:ss" ) }
297+ placement = "bottom" >
298+ < span style = { { color : "#8b8fa3" } } > { dayjs . unix ( updatedAt ) . fromNow ( ) } </ span >
299+ </ Tooltip >
300+ ) ;
301+ } ,
302+ } ,
267303 { title : " " , dataIndex : "operation" , width : "208px" } ,
268304 ] }
269305 dataSource = { dataSource . map ( ( item , i ) => ( {
0 commit comments