rht
This commit is contained in:
parent
ca079e0096
commit
111288b07d
|
@ -4,6 +4,7 @@ backup
|
||||||
**/node_modules/
|
**/node_modules/
|
||||||
volumes
|
volumes
|
||||||
web-dist
|
web-dist
|
||||||
|
web-dist.zip
|
||||||
/.pnp
|
/.pnp
|
||||||
.pnp.js
|
.pnp.js
|
||||||
*.tar
|
*.tar
|
||||||
|
|
File diff suppressed because one or more lines are too long
Before Width: | Height: | Size: 35 KiB After Width: | Height: | Size: 737 B |
File diff suppressed because one or more lines are too long
Before Width: | Height: | Size: 35 KiB After Width: | Height: | Size: 737 B |
|
@ -41,7 +41,7 @@ export default function DeptSettingPage() {
|
||||||
(<Spin spinning={isGetingFileId} fullscreen />) :
|
(<Spin spinning={isGetingFileId} fullscreen />) :
|
||||||
(<div style={{ maxWidth: '1000px', margin: '0 auto', padding: '20px' }}>
|
(<div style={{ maxWidth: '1000px', margin: '0 auto', padding: '20px' }}>
|
||||||
<div className="flex items-center">
|
<div className="flex items-center">
|
||||||
<img src="/logo.svg" className="h-20 w-20 rounded-xl" />
|
<img src="/logo.svg" className="h-16 w-16 rounded-xl" />
|
||||||
<span className="text-4xl py-4 mx-4">烽火快传</span>
|
<span className="text-4xl py-4 mx-4">烽火快传</span>
|
||||||
</div>
|
</div>
|
||||||
<Tabs defaultActiveKey="upload">
|
<Tabs defaultActiveKey="upload">
|
||||||
|
|
|
@ -54,7 +54,7 @@ export const ShareCodeGenerator: React.FC<ShareCodeGeneratorProps> = ({
|
||||||
try {
|
try {
|
||||||
const data: ShareCodeResponse = await generateShareCode.mutateAsync({
|
const data: ShareCodeResponse = await generateShareCode.mutateAsync({
|
||||||
fileId,
|
fileId,
|
||||||
expiresAt: form.getFieldsValue()?.expiresAt ? form.getFieldsValue().expiresAt.toDate() : dayjs().add(1, 'day').tz('Asia/Shanghai').toDate(),
|
expiresAt: form.getFieldsValue()?.expiresAt ? form.getFieldsValue().expiresAt.tz('Asia/Shanghai').toDate() : dayjs().add(1, 'day').tz('Asia/Shanghai').toDate(),
|
||||||
canUseTimes: form.getFieldsValue()?.canUseTimes ? form.getFieldsValue().canUseTimes : 10,
|
canUseTimes: form.getFieldsValue()?.canUseTimes ? form.getFieldsValue().canUseTimes : 10,
|
||||||
});
|
});
|
||||||
console.log('data', data)
|
console.log('data', data)
|
||||||
|
@ -117,6 +117,21 @@ export const ShareCodeGenerator: React.FC<ShareCodeGeneratorProps> = ({
|
||||||
<Form.Item name="expiresAt" className='mt-5'>
|
<Form.Item name="expiresAt" className='mt-5'>
|
||||||
<DatePicker
|
<DatePicker
|
||||||
showTime
|
showTime
|
||||||
|
disabledDate={(current) => current && current < dayjs().startOf('day')}
|
||||||
|
disabledTime={(current) => {
|
||||||
|
if (current && current.isSame(dayjs(), 'day')) {
|
||||||
|
return {
|
||||||
|
disabledHours: () => [...Array(dayjs().hour() + 1).keys()],
|
||||||
|
disabledMinutes: (selectedHour) => {
|
||||||
|
if (selectedHour === dayjs().hour()) {
|
||||||
|
return [...Array(dayjs().minute() + 1).keys()];
|
||||||
|
}
|
||||||
|
return [];
|
||||||
|
}
|
||||||
|
};
|
||||||
|
}
|
||||||
|
return {};
|
||||||
|
}}
|
||||||
/>
|
/>
|
||||||
</Form.Item>
|
</Form.Item>
|
||||||
<small style={{ color: '#666' }}>
|
<small style={{ color: '#666' }}>
|
||||||
|
|
Loading…
Reference in New Issue