mirror of
https://github.com/MHSanaei/3x-ui.git
synced 2025-09-12 13:10:05 +00:00
feat(frontend): display Created and Updated columns in client table with proper date formatting
This commit is contained in:
parent
5f52b02e43
commit
9f477dd2f8
2 changed files with 28 additions and 0 deletions
|
@ -278,4 +278,30 @@
|
||||||
</a-badge>
|
</a-badge>
|
||||||
</a-popover>
|
</a-popover>
|
||||||
</template>
|
</template>
|
||||||
|
<template slot="createdAt" slot-scope="text, client, index">
|
||||||
|
<template v-if="client.created_at">
|
||||||
|
<template v-if="app.datepicker === 'gregorian'">
|
||||||
|
[[ DateUtil.formatMillis(client.created_at) ]]
|
||||||
|
</template>
|
||||||
|
<template v-else>
|
||||||
|
[[ DateUtil.convertToJalalian(moment(client.created_at)) ]]
|
||||||
|
</template>
|
||||||
|
</template>
|
||||||
|
<template v-else>
|
||||||
|
-
|
||||||
|
</template>
|
||||||
|
</template>
|
||||||
|
<template slot="updatedAt" slot-scope="text, client, index">
|
||||||
|
<template v-if="client.updated_at">
|
||||||
|
<template v-if="app.datepicker === 'gregorian'">
|
||||||
|
[[ DateUtil.formatMillis(client.updated_at) ]]
|
||||||
|
</template>
|
||||||
|
<template v-else>
|
||||||
|
[[ DateUtil.convertToJalalian(moment(client.updated_at)) ]]
|
||||||
|
</template>
|
||||||
|
</template>
|
||||||
|
<template v-else>
|
||||||
|
-
|
||||||
|
</template>
|
||||||
|
</template>
|
||||||
{{end}}
|
{{end}}
|
||||||
|
|
|
@ -760,6 +760,8 @@
|
||||||
{ title: '{{ i18n "pages.inbounds.client" }}', width: 80, scopedSlots: { customRender: 'client' } },
|
{ title: '{{ i18n "pages.inbounds.client" }}', width: 80, scopedSlots: { customRender: 'client' } },
|
||||||
{ title: '{{ i18n "pages.inbounds.traffic" }}', width: 80, align: 'center', scopedSlots: { customRender: 'traffic' } },
|
{ title: '{{ i18n "pages.inbounds.traffic" }}', width: 80, align: 'center', scopedSlots: { customRender: 'traffic' } },
|
||||||
{ title: '{{ i18n "pages.inbounds.expireDate" }}', width: 80, align: 'center', scopedSlots: { customRender: 'expiryTime' } },
|
{ title: '{{ i18n "pages.inbounds.expireDate" }}', width: 80, align: 'center', scopedSlots: { customRender: 'expiryTime' } },
|
||||||
|
{ title: '{{ i18n "pages.inbounds.createdAt" }}', width: 90, align: 'center', scopedSlots: { customRender: 'createdAt' } },
|
||||||
|
{ title: '{{ i18n "pages.inbounds.updatedAt" }}', width: 90, align: 'center', scopedSlots: { customRender: 'updatedAt' } },
|
||||||
];
|
];
|
||||||
|
|
||||||
const innerMobileColumns = [
|
const innerMobileColumns = [
|
||||||
|
|
Loading…
Reference in a new issue