1
0

feat: 股票增加上市日期

This commit is contained in:
2025-09-06 21:01:41 +08:00
parent fccf059416
commit 440d67c5e7
7 changed files with 34 additions and 6 deletions

View File

@@ -3,6 +3,7 @@ import {
amisRender,
commonInfo,
crudCommonOptions,
date,
paginationTemplate,
remoteMappings,
remoteOptions,
@@ -123,6 +124,12 @@ function StockList() {
label: '行业',
width: 150,
},
{
label: '上市日期',
width: 100,
align: 'center',
...date('listedDate'),
},
{
type: 'operation',
label: '操作',

View File

@@ -254,6 +254,13 @@ export function time(field: string) {
}
}
export function date(field: string) {
return {
type: 'tpl',
tpl: `\${IF(${field}, DATETOSTR(${field}, 'YYYY-MM-DD'), '/')}`,
}
}
export function pictureFromIds(field: string) {
return `\${ARRAYMAP(${field},id => '${commonInfo.baseUrl}/upload/download/' + id)}`
}