feat: 股票集增加创建和更新时间
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
import React from "react"
|
||||
import {amisRender, commonInfo, crudCommonOptions, paginationTemplate} from '../../util/amis.tsx'
|
||||
import {amisRender, commonInfo, crudCommonOptions, paginationTemplate, time} from '../../util/amis.tsx'
|
||||
import {useNavigate} from 'react-router'
|
||||
|
||||
function StockCollectionList() {
|
||||
@@ -14,8 +14,16 @@ function StockCollectionList() {
|
||||
{
|
||||
type: 'crud',
|
||||
api: {
|
||||
method: 'get',
|
||||
method: 'post',
|
||||
url: `${commonInfo.baseUrl}/stock_collection/list`,
|
||||
data: {
|
||||
sort: [
|
||||
{
|
||||
column: 'createdTime',
|
||||
direction: 'DESC',
|
||||
},
|
||||
],
|
||||
},
|
||||
},
|
||||
...crudCommonOptions(),
|
||||
...paginationTemplate(15, undefined, ['filter-toggler']),
|
||||
@@ -35,6 +43,20 @@ function StockCollectionList() {
|
||||
align: 'center',
|
||||
width: 100,
|
||||
},
|
||||
{
|
||||
name: 'createdTime',
|
||||
label: '创建时间',
|
||||
width: 150,
|
||||
align: 'center',
|
||||
...time('createdTime'),
|
||||
},
|
||||
{
|
||||
name: 'modifiedTime',
|
||||
label: '更新时间',
|
||||
width: 150,
|
||||
align: 'center',
|
||||
...time('modifiedTime'),
|
||||
},
|
||||
{
|
||||
type: 'operation',
|
||||
label: '操作',
|
||||
@@ -58,6 +80,16 @@ function StockCollectionList() {
|
||||
},
|
||||
},
|
||||
},
|
||||
{
|
||||
className: 'text-danger btn-deleted',
|
||||
type: 'action',
|
||||
label: '删除',
|
||||
level: 'link',
|
||||
actionType: 'ajax',
|
||||
api: `get:${commonInfo.baseUrl}/stock_collection/remove/\${id}`,
|
||||
confirmText: '确认删除股票集<span class="text-lg font-bold mx-2">${name}</span>?',
|
||||
confirmTitle: '删除',
|
||||
},
|
||||
],
|
||||
},
|
||||
],
|
||||
|
||||
Reference in New Issue
Block a user