From 9d0acfb65c80c4948c305ca01338f894b87346a0 Mon Sep 17 00:00:00 2001
From: luxiaotao1123 <t1341870251@163.com>
Date: 星期一, 08 四月 2024 09:44:37 +0800
Subject: [PATCH] Merge branch 'Four-Way-Rack' of http://47.97.1.152:5880/r/zy-asrs-master into Four-Way-Rack
---
zy-asrs-flow/src/pages/system/host/components/edit.jsx | 12 +++++++-----
1 files changed, 7 insertions(+), 5 deletions(-)
diff --git a/zy-asrs-flow/src/pages/system/host/components/edit.jsx b/zy-asrs-flow/src/pages/system/host/components/edit.jsx
index 4950fb5..754268b 100644
--- a/zy-asrs-flow/src/pages/system/host/components/edit.jsx
+++ b/zy-asrs-flow/src/pages/system/host/components/edit.jsx
@@ -7,10 +7,12 @@
ProFormDateTimePicker
} from '@ant-design/pro-components';
import { Form, Modal } from 'antd';
+import { FormattedMessage, useIntl } from '@umijs/max';
import moment from 'moment';
import Http from '@/utils/http';
const Edit = (props) => {
+ const intl = useIntl();
const [form] = Form.useForm();
const { } = props;
@@ -36,7 +38,11 @@
return (
<>
<Modal
- title="Edit"
+ title={
+ Object.keys(props.values).length > 0
+ ? intl.formatMessage({ id: 'page.edit', defaultMessage: '缂栬緫' })
+ : intl.formatMessage({ id: 'page.add', defaultMessage: '娣诲姞' })
+ }
width={640}
forceRender
destroyOnClose
@@ -61,14 +67,12 @@
name="name"
label="鍚嶇О"
colProps={{ md: 12, xl: 12 }}
- placeholder="璇疯緭鍏�"
rules={[{ required: true, message: "鍚嶇О涓嶈兘涓虹┖锛�" }]}
/>
<ProFormSelect
name="status"
label="鐘舵��"
colProps={{ md: 12, xl: 12 }}
- placeholder="璇烽�夋嫨"
options={[
{ label: '姝e父', value: 1 },
{ label: '绂佺敤', value: 0 },
@@ -80,14 +84,12 @@
name="createTime"
label="娣诲姞鏃堕棿"
colProps={{ md: 12, xl: 12 }}
- placeholder="璇烽�夋嫨"
transform={(value) => moment(value).toISOString()}
/>
<ProFormDateTimePicker
name="updateTime"
label="淇敼鏃堕棿"
colProps={{ md: 12, xl: 12 }}
- placeholder="璇烽�夋嫨"
transform={(value) => moment(value).toISOString()}
/>
</ProForm.Group>
--
Gitblit v1.9.1