{
+ setMsg('')
+ setLoading(false)
+ setPostData([])
+ onCancel()
+ }}
+ >
+
+ )
+}
+
+function mapStateToProps(state) {
+ const { auth, global } = state;
+ return {
+ user: auth.user,
+ actions: global.actions,
+ }
+}
+
+export default connect(mapStateToProps)(ImportDeviceModal);
\ No newline at end of file
diff --git a/web/client/src/sections/deviceManage/components/modelModal.js b/web/client/src/sections/deviceManage/components/modelModal.js
new file mode 100644
index 0000000..e2fe443
--- /dev/null
+++ b/web/client/src/sections/deviceManage/components/modelModal.js
@@ -0,0 +1,111 @@
+import React, { useRef } from 'react';
+import { Button, Form } from 'antd';
+import { InfoCircleOutlined } from '@ant-design/icons';
+import {
+ ModalForm,
+ ProFormSelect,
+ ProFormText,
+ ProFormDatePicker
+} from '@ant-design/pro-form';
+import moment from 'moment';
+export default (props) => {
+ const { title, triggerRender, editData = null, onFinish, devices } = props;
+ const formItemLayout = { labelCol: { span: 6 }, wrapperCol: { span: 16 } };
+ const initialValues = editData ? {
+ ...editData,
+ } : {};
+ const [form] = Form.useForm();
+ const formRef = useRef();
+ const disabledDate = (value) => {
+ return value.valueOf() > moment().startOf('d').add(1, 'd').valueOf();
+ }
+ return (
+