From c635d78b479510ebe2556a420948effcd30a0731 Mon Sep 17 00:00:00 2001
From: skyouc
Date: 星期六, 21 十二月 2024 18:40:43 +0800
Subject: [PATCH] 新建德森项目分支

---
 zy-asrs-flow/src/pages/system/user/components/pwd.jsx |  152 +++++++++++++++++++++++++-------------------------
 1 files changed, 76 insertions(+), 76 deletions(-)

diff --git a/zy-asrs-flow/src/pages/system/user/components/pwd.jsx b/zy-asrs-flow/src/pages/system/user/components/pwd.jsx
index 13e70f8..41f2df5 100644
--- a/zy-asrs-flow/src/pages/system/user/components/pwd.jsx
+++ b/zy-asrs-flow/src/pages/system/user/components/pwd.jsx
@@ -1,76 +1,76 @@
-import React, { useState, useRef, useEffect } from 'react';
-import {
-    ProForm,
-    ProFormDigit,
-    ProFormText,
-} from '@ant-design/pro-components';
-import { FormattedMessage, useIntl } from '@umijs/max';
-import { Form, Modal } from 'antd';
-
-const Pwd = (props) => {
-    const intl = useIntl();
-    const [form] = Form.useForm();
-    const { } = props;
-
-    delete props.values.password
-
-    useEffect(() => {
-        form.resetFields();
-        form.setFieldsValue({
-            ...props.values
-        })
-    }, [form, props])
-
-    const handleCancel = () => {
-        props.onCancel();
-    };
-
-    const handleOk = () => {
-        form.submit();
-    }
-
-    const handleFinish = async (values) => {
-        props.onSubmit({ ...values });
-    }
-
-    return (
-        <>
-            <Modal
-                title={intl.formatMessage({ id: 'page.reset.pwd', defaultMessage: '閲嶇疆瀵嗙爜' })}
-                width={400}
-                forceRender
-                destroyOnClose
-                open={props.open}
-                onCancel={handleCancel}
-                onOk={handleOk}
-            >
-                <ProForm
-                    form={form}
-                    submitter={false}
-                    onFinish={handleFinish}
-                    layout="horizontal"
-                    grid={true}
-                >
-                    <ProFormDigit
-                        name="id"
-                        disabled
-                        hidden={true}
-                    />
-                    <ProFormText
-                        name="password"
-                        label={intl.formatMessage({ id: 'personal.security.new.pwd', defaultMessage: '鏂板瘑鐮�' })}
-                        colProps={{ md: 24, xl: 24 }}
-                        placeholder="璇疯緭鍏�"
-                        rules={[
-                            { required: true, message: "瀵嗙爜涓嶈兘涓虹┖锛�" },
-                            { min: 4, message: "瀵嗙爜涓嶈兘灏忎簬4浣�! " },
-                            { max: 16, message: "瀵嗙爜涓嶈兘澶т簬16浣�! " },
-                        ]}
-                    />
-                </ProForm>
-            </Modal>
-        </>
-    )
-}
-
-export default Pwd;
+import React, { useState, useRef, useEffect } from 'react';
+import {
+    ProForm,
+    ProFormDigit,
+    ProFormText,
+} from '@ant-design/pro-components';
+import { FormattedMessage, useIntl } from '@umijs/max';
+import { Form, Modal } from 'antd';
+
+const Pwd = (props) => {
+    const intl = useIntl();
+    const [form] = Form.useForm();
+    const { } = props;
+
+    delete props.values.password
+
+    useEffect(() => {
+        form.resetFields();
+        form.setFieldsValue({
+            ...props.values
+        })
+    }, [form, props])
+
+    const handleCancel = () => {
+        props.onCancel();
+    };
+
+    const handleOk = () => {
+        form.submit();
+    }
+
+    const handleFinish = async (values) => {
+        props.onSubmit({ ...values });
+    }
+
+    return (
+        <>
+            <Modal
+                title={intl.formatMessage({ id: 'page.reset.pwd', defaultMessage: '閲嶇疆瀵嗙爜' })}
+                width={400}
+                forceRender
+                destroyOnClose
+                open={props.open}
+                onCancel={handleCancel}
+                onOk={handleOk}
+            >
+                <ProForm
+                    form={form}
+                    submitter={false}
+                    onFinish={handleFinish}
+                    layout="horizontal"
+                    grid={true}
+                >
+                    <ProFormDigit
+                        name="id"
+                        disabled
+                        hidden={true}
+                    />
+                    <ProFormText
+                        name="password"
+                        label={intl.formatMessage({ id: 'personal.security.new.pwd', defaultMessage: '鏂板瘑鐮�' })}
+                        colProps={{ md: 24, xl: 24 }}
+                        placeholder="璇疯緭鍏�"
+                        rules={[
+                            { required: true, message: "瀵嗙爜涓嶈兘涓虹┖锛�" },
+                            { min: 4, message: "瀵嗙爜涓嶈兘灏忎簬4浣�! " },
+                            { max: 16, message: "瀵嗙爜涓嶈兘澶т簬16浣�! " },
+                        ]}
+                    />
+                </ProForm>
+            </Modal>
+        </>
+    )
+}
+
+export default Pwd;

--
Gitblit v1.9.1