master_basic
parent
b5e0d3082e
commit
4dab3a2d4b
@ -0,0 +1,40 @@
|
||||
import { FC } from 'react';
|
||||
import { Modal } from 'antd';
|
||||
import ButtonComp from '../ButtonComp';
|
||||
|
||||
interface PageProps {
|
||||
title?: string;
|
||||
visibility: boolean;
|
||||
onCancel: () => void;
|
||||
onOk: () => void;
|
||||
children?: any; // 插槽内容
|
||||
}
|
||||
|
||||
const ClearInfoDialog: FC<PageProps> = ({
|
||||
title = "提示框",
|
||||
visibility = false,
|
||||
onCancel,
|
||||
onOk,
|
||||
...props
|
||||
}) => {
|
||||
|
||||
return (
|
||||
<Modal
|
||||
title={title}
|
||||
open={visibility}
|
||||
centered
|
||||
width={420}
|
||||
onCancel={onCancel}
|
||||
footer={null}
|
||||
maskClosable={false}
|
||||
>
|
||||
{props?.children}
|
||||
<div className='flex_jE mt20'>
|
||||
<ButtonComp style={{ marginRight: 20 }} text={'确定'} onClick={onOk} />
|
||||
<ButtonComp type="cancel" text={'取消'} onClick={onCancel} />
|
||||
</div>
|
||||
</Modal>
|
||||
)
|
||||
}
|
||||
|
||||
export default ClearInfoDialog
|
@ -0,0 +1,33 @@
|
||||
import { getRequest, postRequest, uploadFile } from "@/utils/request";
|
||||
|
||||
// 参数设置
|
||||
export async function setParameter(data: any) {
|
||||
return postRequest(`/xgd/parameterSet/setParameter`, data);
|
||||
}
|
||||
|
||||
// -----------------------------MMJ初装-------------------------
|
||||
// 清空信息
|
||||
export async function secretInit_cleanInfo(params: any) {
|
||||
return getRequest(`/xgd/secretInit/cleanInfo`, params);
|
||||
}
|
||||
|
||||
// 状态查询
|
||||
export async function secretInit_getStatus(params: any) {
|
||||
return getRequest(`/xgd/secretInit/getStatus`, params);
|
||||
}
|
||||
|
||||
// 加载数据
|
||||
export async function secretInit_loadData(params: any) {
|
||||
return uploadFile(`/xgd/secretInit/loadData`, params);
|
||||
}
|
||||
|
||||
// 发送命令
|
||||
// @param type 1 密销毁 2 密毙 密机遥毙
|
||||
export async function secretInit_sendCommand(params: any) {
|
||||
return getRequest(`/xgd/secretInit/sendCommand`, params);
|
||||
}
|
||||
|
||||
// 发送数据
|
||||
export async function secretInit_sendData(params: any) {
|
||||
return postRequest(`/xgd/secretInit/sendData`, params);
|
||||
}
|
Loading…
Reference in new issue