|
@@ -9,6 +9,7 @@ import { useRequest } from '@umijs/max'
|
|
|
import { Modal } from 'antd'
|
|
|
import React, { useRef, useState } from 'react'
|
|
|
import StaffDetail from '../Staff/components/StaffDetail'
|
|
|
+import dayjs from 'dayjs'
|
|
|
|
|
|
type iRestrictProps = {
|
|
|
title: Nullable<string>
|
|
@@ -92,7 +93,8 @@ const Restrict: React.FC = () => {
|
|
|
width: 106,
|
|
|
align: 'center',
|
|
|
title: '创建时间',
|
|
|
- onHeaderCell: () => ({ style: { textAlign: 'center' } })
|
|
|
+ onHeaderCell: () => ({ style: { textAlign: 'center' } }),
|
|
|
+ renderText: text => dayjs(text).format('YYYY-MM-DD')
|
|
|
},
|
|
|
{
|
|
|
title: '操作',
|