You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
61 lines
1.5 KiB
61 lines
1.5 KiB
import React, { useState, useRef, useEffect } from "react";
|
|
import { connect } from "react-redux";
|
|
import { Modal, Spin,Input } from "@douyinfe/semi-ui";
|
|
|
|
function remarksModal (props) {
|
|
const {
|
|
close,
|
|
visible,
|
|
dispatch,
|
|
actions,
|
|
} = props;
|
|
const { equipmentWarehouse } = actions;
|
|
//初始化
|
|
useEffect(() => {
|
|
|
|
}, []);
|
|
|
|
function handleOk () {
|
|
//点击弹框确定 右边按钮
|
|
// dispatch(
|
|
// equipmentWarehouse.postCameraRemark({
|
|
// cameraId:rowId,
|
|
// remark:showScrollList
|
|
// })
|
|
// ).then((res) => {
|
|
// close();
|
|
// })
|
|
}
|
|
function handleCancel () {
|
|
close();
|
|
//点击弹框取消 左边按钮
|
|
}
|
|
return (
|
|
<>
|
|
<Modal
|
|
title="备注管理"
|
|
okText="确定"
|
|
cancelText="取消"
|
|
visible={visible}
|
|
onOk={handleOk}
|
|
width={763}
|
|
onCancel={handleCancel}
|
|
>
|
|
<div style={{margin:"2px 14px 18px 29px",display:'flex'}}>
|
|
|
|
</div>
|
|
</Modal>
|
|
</>
|
|
);
|
|
}
|
|
function mapStateToProps (state) {
|
|
const { auth, global, members } = state;
|
|
return {
|
|
// loading: members.isRequesting,
|
|
user: auth.user,
|
|
actions: global.actions,
|
|
// members: members.data,
|
|
};
|
|
}
|
|
|
|
export default connect(mapStateToProps)(remarksModal);
|
|
|