|
|
@ -5,11 +5,13 @@ import { ConfigProvider, DatePicker, Form, Modal, Pagination, Radio, Select, Tab
|
|
|
|
import { rowClassName } from '@/utils';
|
|
|
|
import { rowClassName } from '@/utils';
|
|
|
|
import ButtonComp from '@/components/ButtonComp';
|
|
|
|
import ButtonComp from '@/components/ButtonComp';
|
|
|
|
import moment from 'moment';
|
|
|
|
import moment from 'moment';
|
|
|
|
import { secretFormatList, secretList } from '@/services/my';
|
|
|
|
import { secretKey, secretList } from '@/services/my';
|
|
|
|
|
|
|
|
import { managerSysDataList } from '@/services/register';
|
|
|
|
|
|
|
|
import { sysTypeStr } from '@/utils/sysType';
|
|
|
|
|
|
|
|
|
|
|
|
export default function Page() {
|
|
|
|
export default function Page() {
|
|
|
|
const [tableData, setTableData] = useState([]);
|
|
|
|
const [tableData, setTableData] = useState([]);
|
|
|
|
const [tableData1, setTableData1] = useState([]);
|
|
|
|
const [tableData1, setTableData1] = useState<any>([]);
|
|
|
|
const [visibility, setVisibility] = useState(false);
|
|
|
|
const [visibility, setVisibility] = useState(false);
|
|
|
|
const [form] = Form.useForm();
|
|
|
|
const [form] = Form.useForm();
|
|
|
|
const [pageNumber, setPageNumber] = useState(1);
|
|
|
|
const [pageNumber, setPageNumber] = useState(1);
|
|
|
@ -18,48 +20,79 @@ export default function Page() {
|
|
|
|
|
|
|
|
|
|
|
|
const [usageReserveArea, setUsageReserveArea] = useState('1');
|
|
|
|
const [usageReserveArea, setUsageReserveArea] = useState('1');
|
|
|
|
const [selectedRowKeys, setSelectedRowKeys] = useState([]);
|
|
|
|
const [selectedRowKeys, setSelectedRowKeys] = useState([]);
|
|
|
|
const [allRowKeys, setAllRowKeys] = useState([]);
|
|
|
|
const [selectedRowKeys1, setSelectedRowKeys1] = useState([]);
|
|
|
|
|
|
|
|
const [selectedData, setSelectedData] = useState();
|
|
|
|
|
|
|
|
|
|
|
|
useEffect(() => {
|
|
|
|
useEffect(() => {
|
|
|
|
initForm()
|
|
|
|
initForm()
|
|
|
|
}, [])
|
|
|
|
}, [])
|
|
|
|
|
|
|
|
|
|
|
|
const columns: any = [
|
|
|
|
const columns: any = [
|
|
|
|
{ title: '产品名称', dataIndex: 'productName', key: 'productName', align: 'center' },
|
|
|
|
{
|
|
|
|
{ title: '产品编号', dataIndex: 'productNum', key: 'productNum', align: 'center' },
|
|
|
|
title: '产品名称', dataIndex: 'productName', key: 'productName', align: 'center',
|
|
|
|
{ title: '装配情况', dataIndex: 'name', key: 'name', align: 'center' }
|
|
|
|
render: (text: any) => { return <span>{text || '--'}</span> },
|
|
|
|
|
|
|
|
}, {
|
|
|
|
|
|
|
|
title: '产品编号', dataIndex: 'productNum', key: 'productNum', align: 'center',
|
|
|
|
|
|
|
|
render: (text: any) => { return <span>{text || '--'}</span> },
|
|
|
|
|
|
|
|
}, {
|
|
|
|
|
|
|
|
title: '装配情况', dataIndex: 'assemblySituation', key: 'assemblySituation', align: 'center', render: (text: any) => { return <span>{text || '--'}</span> },
|
|
|
|
|
|
|
|
}
|
|
|
|
]
|
|
|
|
]
|
|
|
|
|
|
|
|
|
|
|
|
const columns1: any = [
|
|
|
|
const columns1: any = [
|
|
|
|
{
|
|
|
|
{
|
|
|
|
title: '序号', key: 'index', align: 'center', width: 80,
|
|
|
|
title: '序号', key: 'index', align: 'center', width: 80,
|
|
|
|
render: (a: any, b: any, c: any) => {
|
|
|
|
render: (a: any, b: any, c: any) => { return <span>{c + 1}</span> },
|
|
|
|
return <span>{c + 1}</span>;
|
|
|
|
}, {
|
|
|
|
},
|
|
|
|
title: '设备名称', dataIndex: 'deviceName', key: 'deviceName', align: 'center',
|
|
|
|
},
|
|
|
|
render: (text: any) => { return <span>{text || '--'}</span> },
|
|
|
|
{ title: '设备名称', dataIndex: 'deviceName', key: 'deviceName', align: 'center' },
|
|
|
|
}, {
|
|
|
|
{ title: '管理实体标识', dataIndex: 'managementFlag', key: 'managementFlag', align: 'center' },
|
|
|
|
title: '管理实体标识', dataIndex: 'managerModelId', key: 'managerModelId', align: 'center',
|
|
|
|
{ title: '310标识', dataIndex: 'distType', key: 'distType', align: 'center' },
|
|
|
|
render: (text: any) => { return <span>{text || '--'}</span> },
|
|
|
|
{ title: '产品名称', dataIndex: 'productName', key: 'productName', align: 'center' },
|
|
|
|
}, {
|
|
|
|
{ title: '产品编号', dataIndex: 'productNum', key: 'productNum', align: 'center' },
|
|
|
|
title: '310标识', dataIndex: 'deviceMarkId', key: 'deviceMarkId', align: 'center',
|
|
|
|
{ title: '使用区/备用区', dataIndex: 'usageReserveArea', key: 'usageReserveArea', align: 'center' },
|
|
|
|
render: (text: any) => { return <span>{text || '--'}</span> },
|
|
|
|
{ title: '分发状态', dataIndex: 'name', key: 'name', align: 'center' },
|
|
|
|
}, {
|
|
|
|
{ title: '安装方式', dataIndex: 'installMethod', key: 'installMethod', align: 'center' },
|
|
|
|
title: '产品名称', dataIndex: 'productName', key: 'productName', align: 'center',
|
|
|
|
{
|
|
|
|
render: (text: any) => { return <span>{text || '--'}</span> },
|
|
|
|
|
|
|
|
}, {
|
|
|
|
|
|
|
|
title: '产品编号', dataIndex: 'productNum', key: 'productNum', align: 'center',
|
|
|
|
|
|
|
|
render: (text: any) => { return <span>{text || '--'}</span> },
|
|
|
|
|
|
|
|
}, {
|
|
|
|
|
|
|
|
title: '使用区/备用区', dataIndex: 'usageReserveArea', key: 'usageReserveArea', align: 'center',
|
|
|
|
|
|
|
|
render: (text: any) => { return <span>{text || '--'}</span> },
|
|
|
|
|
|
|
|
}, {
|
|
|
|
|
|
|
|
title: '分发状态', dataIndex: 'distType', key: 'distType', align: 'center',
|
|
|
|
|
|
|
|
render: (text: any) => { return <span>{text || '--'}</span> },
|
|
|
|
|
|
|
|
}, {
|
|
|
|
|
|
|
|
title: '安装方式', dataIndex: 'installMethod', key: 'installMethod', align: 'center',
|
|
|
|
|
|
|
|
render: (text: any) => { return <span>{text || '--'}</span> },
|
|
|
|
|
|
|
|
}, {
|
|
|
|
title: '启用日期', dataIndex: 'activeDate', key: 'activeDate', align: 'center',
|
|
|
|
title: '启用日期', dataIndex: 'activeDate', key: 'activeDate', align: 'center',
|
|
|
|
render: (text: any) => {
|
|
|
|
render: (text: any) => { return <span>{text || '--'}</span> },
|
|
|
|
return <span>{text || '--'}</span>;
|
|
|
|
}, {
|
|
|
|
},
|
|
|
|
title: '套号', dataIndex: 'setNumber', key: 'setNumber', align: 'center',
|
|
|
|
},
|
|
|
|
render: (text: any) => { return <span>{text || '--'}</span> },
|
|
|
|
{ title: '套号', dataIndex: 'setNumber', key: 'setNumber', align: 'center' },
|
|
|
|
}, {
|
|
|
|
{ title: '载体类型', dataIndex: 'carrierType', key: 'carrierType', align: 'center' },
|
|
|
|
title: '载体类型', dataIndex: 'carrierType', key: 'carrierType', align: 'center',
|
|
|
|
{ title: '输出日期', dataIndex: 'name', key: 'name', align: 'center' },
|
|
|
|
render: (text: any) => { return <span>{text || '--'}</span> },
|
|
|
|
{ title: '协同管理标志', dataIndex: 'name', key: 'name', align: 'center' }
|
|
|
|
}, {
|
|
|
|
|
|
|
|
title: '输出日期', dataIndex: 'name', key: 'name', align: 'center',
|
|
|
|
|
|
|
|
render: (text: any) => { return <span>{text || '--'}</span> },
|
|
|
|
|
|
|
|
}, {
|
|
|
|
|
|
|
|
title: '协同管理标志', dataIndex: 'managementFlag', key: 'managementFlag', align: 'center',
|
|
|
|
|
|
|
|
render: (text: any) => { return <span>{text || '--'}</span> },
|
|
|
|
|
|
|
|
}
|
|
|
|
]
|
|
|
|
]
|
|
|
|
|
|
|
|
|
|
|
|
const formItemSty = { width: 'auto', marginBottom: 20, marginRight: 30 };
|
|
|
|
const formItemSty = { width: 'auto', marginBottom: 20, marginRight: 30 };
|
|
|
|
|
|
|
|
|
|
|
|
const initForm = () => {
|
|
|
|
const initForm = () => {
|
|
|
|
|
|
|
|
form.setFieldsValue({
|
|
|
|
|
|
|
|
keyType: null,
|
|
|
|
|
|
|
|
web: null,
|
|
|
|
|
|
|
|
activeDate: null,
|
|
|
|
|
|
|
|
})
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
const onFinish = () => {
|
|
|
|
const onFinish = () => {
|
|
|
@ -71,33 +104,21 @@ export default function Page() {
|
|
|
|
setSelectedRowKeys([])
|
|
|
|
setSelectedRowKeys([])
|
|
|
|
}, [pageNumber]);
|
|
|
|
}, [pageNumber]);
|
|
|
|
|
|
|
|
|
|
|
|
// 管理系统管理盘数据维护 -- 列表
|
|
|
|
|
|
|
|
const _secretFormatList = () => {
|
|
|
|
|
|
|
|
let res = false
|
|
|
|
|
|
|
|
secretFormatList({ pageNumber: 1, pageSize: 10 }).then((res) => {
|
|
|
|
|
|
|
|
if (res?.result == "success") {
|
|
|
|
|
|
|
|
if (res.data[0].length > 0) { res = true }
|
|
|
|
|
|
|
|
} else {
|
|
|
|
|
|
|
|
message.error(res?.errorMsg);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
})
|
|
|
|
|
|
|
|
return res
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// 获取密钥体列表
|
|
|
|
// 获取密钥体列表
|
|
|
|
const getList = () => {
|
|
|
|
const getList = () => {
|
|
|
|
if (_secretFormatList()) {
|
|
|
|
|
|
|
|
message.info('请先完成管理系统管理盘数据维护--数据导入!')
|
|
|
|
|
|
|
|
return
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
secretList({ pageNumber, pageSize }).then((res) => {
|
|
|
|
secretList({ pageNumber, pageSize }).then((res) => {
|
|
|
|
if (res?.result == "success") {
|
|
|
|
if (res?.result == "success") {
|
|
|
|
res.data[0].list = res.data[0].list.filter((val: any) => { return val?.content != 'PMCS' })
|
|
|
|
res.data[0].list = res.data[0].list.filter((val: any) => {
|
|
|
|
setTotal(res.data[0].total - 1)
|
|
|
|
return (['PT0', 'PT2', 'PT3', 'PT4'].includes(val?.content))
|
|
|
|
|
|
|
|
})
|
|
|
|
|
|
|
|
setTotal(res.data[0].list.length)
|
|
|
|
setTableData(res.data[0].list)
|
|
|
|
setTableData(res.data[0].list)
|
|
|
|
const keys = res.data[0].list.map((item: any) => item?.id);
|
|
|
|
|
|
|
|
setAllRowKeys(keys);
|
|
|
|
let arr: any = []
|
|
|
|
|
|
|
|
arr = res.data[0].list.filter((val: any) => {
|
|
|
|
|
|
|
|
return val?.assemblySituation == '未装配'
|
|
|
|
|
|
|
|
})
|
|
|
|
|
|
|
|
setTableData1([...arr])
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
message.error(res?.errorMsg);
|
|
|
|
message.error(res?.errorMsg);
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -117,6 +138,79 @@ export default function Page() {
|
|
|
|
return current && current < moment().startOf('day');
|
|
|
|
return current && current < moment().startOf('day');
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// 校验是否少了步骤
|
|
|
|
|
|
|
|
const onRules = async () => {
|
|
|
|
|
|
|
|
// 校验管理系统管理盘数据维护列表是否有数据
|
|
|
|
|
|
|
|
let stop = false
|
|
|
|
|
|
|
|
await managerSysDataList({ pageNumber: 1, pageSize: 10 }).then((res) => {
|
|
|
|
|
|
|
|
if (res?.result == "success") {
|
|
|
|
|
|
|
|
if (res.data[0].length == 0) { stop = true }
|
|
|
|
|
|
|
|
} else {
|
|
|
|
|
|
|
|
message.error(res?.errorMsg);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
})
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (stop) {
|
|
|
|
|
|
|
|
message.info('请先完成管理系统管理盘数据维护--数据导入!')
|
|
|
|
|
|
|
|
return
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (selectedRowKeys.length == 0) {
|
|
|
|
|
|
|
|
message.info('请选择一条可装配的密钥体!')
|
|
|
|
|
|
|
|
return
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
form.validateFields().then(() => {
|
|
|
|
|
|
|
|
tableData1.forEach(e => {
|
|
|
|
|
|
|
|
if (e.id == selectedRowKeys[0]) { setSelectedData(e) }
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
setVisibility(true)
|
|
|
|
|
|
|
|
})
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// 过滤可装配列表
|
|
|
|
|
|
|
|
const onchange = () => {
|
|
|
|
|
|
|
|
let info = form.getFieldsValue();
|
|
|
|
|
|
|
|
setSelectedRowKeys([])
|
|
|
|
|
|
|
|
let arr: any = []
|
|
|
|
|
|
|
|
arr = tableData.filter((item) => {
|
|
|
|
|
|
|
|
if (item?.assemblySituation == '已装配') return
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (info?.keyType && info?.web) {
|
|
|
|
|
|
|
|
return (item?.keyType == info?.keyType && item?.web == info?.web)
|
|
|
|
|
|
|
|
} else if (info?.keyType) {
|
|
|
|
|
|
|
|
return item?.keyType == info?.keyType
|
|
|
|
|
|
|
|
} else if (info?.web) {
|
|
|
|
|
|
|
|
return item?.web == info?.web
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
})
|
|
|
|
|
|
|
|
setTableData1([...arr])
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// 提交装配
|
|
|
|
|
|
|
|
const submit = () => {
|
|
|
|
|
|
|
|
const searchParams = new URLSearchParams(location.search);
|
|
|
|
|
|
|
|
const sysType = searchParams.get('sysType');
|
|
|
|
|
|
|
|
let info = form.getFieldsValue();
|
|
|
|
|
|
|
|
const formData = new FormData();
|
|
|
|
|
|
|
|
formData.append('activeDate', info.activeDate.format('YYYY-MM-DD'));
|
|
|
|
|
|
|
|
formData.append('endDate', moment().format('YYYY-MM-DD'));
|
|
|
|
|
|
|
|
formData.append('secretImportId', selectedRowKeys[0]);
|
|
|
|
|
|
|
|
formData.append('sysType', sysTypeStr[sysType]);
|
|
|
|
|
|
|
|
formData.append('type', '1');
|
|
|
|
|
|
|
|
secretKey(formData).then((res) => {
|
|
|
|
|
|
|
|
if (res?.result == "success") {
|
|
|
|
|
|
|
|
initForm()
|
|
|
|
|
|
|
|
onFinish()
|
|
|
|
|
|
|
|
setSelectedRowKeys([])
|
|
|
|
|
|
|
|
message.success('装配成功!')
|
|
|
|
|
|
|
|
setVisibility(false)
|
|
|
|
|
|
|
|
} else {
|
|
|
|
|
|
|
|
message.error(res?.errorMsg);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
})
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
return (
|
|
|
|
return (
|
|
|
|
<div className={`${styles.params_warp}`}>
|
|
|
|
<div className={`${styles.params_warp}`}>
|
|
|
|
<ButtonComp type={'special'} text={'管理密钥装配'} onClick={() => { }} />
|
|
|
|
<ButtonComp type={'special'} text={'管理密钥装配'} onClick={() => { }} />
|
|
|
@ -130,14 +224,20 @@ export default function Page() {
|
|
|
|
|
|
|
|
|
|
|
|
<Form form={form} layout={'inline'} onFinish={onFinish} className='mt20'>
|
|
|
|
<Form form={form} layout={'inline'} onFinish={onFinish} className='mt20'>
|
|
|
|
<Form.Item name="keyType" label="密钥类型" style={formItemSty}>
|
|
|
|
<Form.Item name="keyType" label="密钥类型" style={formItemSty}>
|
|
|
|
<Select style={{ width: 260, marginRight: 16 }} placeholder={'请选择密钥类型'}
|
|
|
|
<Select style={{ width: 260, marginRight: 16 }}
|
|
|
|
|
|
|
|
onChange={(e) => onchange()}
|
|
|
|
|
|
|
|
placeholder={'请选择密钥类型'}
|
|
|
|
|
|
|
|
allowClear
|
|
|
|
options={[
|
|
|
|
options={[
|
|
|
|
{ label: '密钥种类1', value: '密钥种类1' },
|
|
|
|
{ label: '密钥种类1', value: '密钥种类1' },
|
|
|
|
{ label: '密钥种类2', value: '密钥种类2' }
|
|
|
|
{ label: '密钥种类2', value: '密钥种类2' }
|
|
|
|
]} />
|
|
|
|
]} />
|
|
|
|
</Form.Item>
|
|
|
|
</Form.Item>
|
|
|
|
<Form.Item name="keyType" label="所属网络" style={formItemSty}>
|
|
|
|
<Form.Item name="web" label="所属网络" style={formItemSty}>
|
|
|
|
<Select style={{ width: 260, marginRight: 16 }} placeholder={'请选择所属网络'}
|
|
|
|
<Select style={{ width: 260, marginRight: 16 }}
|
|
|
|
|
|
|
|
onChange={(e) => onchange()}
|
|
|
|
|
|
|
|
placeholder={'请选择所属网络'}
|
|
|
|
|
|
|
|
allowClear
|
|
|
|
options={[
|
|
|
|
options={[
|
|
|
|
{ label: '离线', value: '离线' },
|
|
|
|
{ label: '离线', value: '离线' },
|
|
|
|
{ label: '指挥专网', value: '指挥专网' },
|
|
|
|
{ label: '指挥专网', value: '指挥专网' },
|
|
|
@ -145,11 +245,11 @@ export default function Page() {
|
|
|
|
{ label: '资源管理网', value: '资源管理网' }
|
|
|
|
{ label: '资源管理网', value: '资源管理网' }
|
|
|
|
]} />
|
|
|
|
]} />
|
|
|
|
</Form.Item>
|
|
|
|
</Form.Item>
|
|
|
|
<Form.Item name="keyType" label="启用日期" style={formItemSty} rules={[{ required: true, message: '请选择启用日期' }]}>
|
|
|
|
<Form.Item name="activeDate" label="启用日期" style={formItemSty} rules={[{ required: true, message: '请选择启用日期' }]}>
|
|
|
|
<DatePicker
|
|
|
|
<DatePicker
|
|
|
|
style={{ width: 260 }}
|
|
|
|
style={{ width: 260 }}
|
|
|
|
disabledDate={disabledDate}
|
|
|
|
disabledDate={disabledDate}
|
|
|
|
format="YYYY-MM-DD HH:mm" />
|
|
|
|
format="YYYY-MM-DD" />
|
|
|
|
</Form.Item>
|
|
|
|
</Form.Item>
|
|
|
|
</Form>
|
|
|
|
</Form>
|
|
|
|
|
|
|
|
|
|
|
@ -162,16 +262,23 @@ export default function Page() {
|
|
|
|
dataSource={tableData1}
|
|
|
|
dataSource={tableData1}
|
|
|
|
rowKey={(record: any) => record?.id}
|
|
|
|
rowKey={(record: any) => record?.id}
|
|
|
|
rowClassName={rowClassName}
|
|
|
|
rowClassName={rowClassName}
|
|
|
|
|
|
|
|
rowSelection={tableData1.length > 0 ? {
|
|
|
|
|
|
|
|
type: 'radio',
|
|
|
|
|
|
|
|
selectedRowKeys1,
|
|
|
|
|
|
|
|
onChange: (selectedKeys: any) => {
|
|
|
|
|
|
|
|
setSelectedRowKeys1(selectedKeys);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
} : null}
|
|
|
|
/>
|
|
|
|
/>
|
|
|
|
|
|
|
|
|
|
|
|
<div className='flex_jE mt20'>
|
|
|
|
<div className='flex_jE mt20'>
|
|
|
|
<ButtonComp text={'装配'} onClick={() => setVisibility(true)} />
|
|
|
|
<ButtonComp text={'装配'} onClick={() => onRules()} />
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
<div className='mb10 mt30'>管理密钥装配列表</div>
|
|
|
|
<div className='mb10 mt30'>管理密钥装配列表</div>
|
|
|
|
|
|
|
|
|
|
|
|
<Table
|
|
|
|
<Table
|
|
|
|
scroll={tableData.length > 0 ? { y: 41 * 5 } : {}}
|
|
|
|
scroll={tableData.length > 0 ? { y: 41 * 10 } : {}}
|
|
|
|
pagination={false}
|
|
|
|
pagination={false}
|
|
|
|
bordered
|
|
|
|
bordered
|
|
|
|
columns={columns1}
|
|
|
|
columns={columns1}
|
|
|
@ -201,7 +308,14 @@ export default function Page() {
|
|
|
|
|
|
|
|
|
|
|
|
<div className='flex_jE mt20'>
|
|
|
|
<div className='flex_jE mt20'>
|
|
|
|
<ButtonComp type='cancel' style={{ marginRight: 20 }} text={'过滤'} onClick={() => { }} />
|
|
|
|
<ButtonComp type='cancel' style={{ marginRight: 20 }} text={'过滤'} onClick={() => { }} />
|
|
|
|
<ButtonComp type='cancel' style={{ marginRight: 20 }} text={'载体输出'} onClick={() => { }} />
|
|
|
|
<ButtonComp type='cancel' style={{ marginRight: 20 }} text={'载体输出'} onClick={() => {
|
|
|
|
|
|
|
|
if (selectedRowKeys.length == 0) {
|
|
|
|
|
|
|
|
message.info('请在管理密钥装配列表中选择一条数据!');
|
|
|
|
|
|
|
|
return
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
onFinish()
|
|
|
|
|
|
|
|
message.success('载体输出成功!')
|
|
|
|
|
|
|
|
}} />
|
|
|
|
<ButtonComp type='cancel' text={'下载到邮箱'} onClick={() => { }} />
|
|
|
|
<ButtonComp type='cancel' text={'下载到邮箱'} onClick={() => { }} />
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
@ -209,21 +323,22 @@ export default function Page() {
|
|
|
|
title="xx部一体化对称密码管理系统"
|
|
|
|
title="xx部一体化对称密码管理系统"
|
|
|
|
open={visibility}
|
|
|
|
open={visibility}
|
|
|
|
centered
|
|
|
|
centered
|
|
|
|
width={500}
|
|
|
|
width={450}
|
|
|
|
onCancel={() => setVisibility(false)}
|
|
|
|
onCancel={() => setVisibility(false)}
|
|
|
|
footer={null}>
|
|
|
|
footer={null}
|
|
|
|
|
|
|
|
maskClosable={false}>
|
|
|
|
<div>
|
|
|
|
<div>
|
|
|
|
<div className='mb20'>
|
|
|
|
{selectedData && <div className='mb20'>
|
|
|
|
类型判断1:
|
|
|
|
<div className='mb10' style={{ fontWeight: 'bold' }}>装配信息:</div>
|
|
|
|
<div className='ml20'>装配信息:</div>
|
|
|
|
<div className='ml30'>产品名称:{selectedData?.productName} ,</div>
|
|
|
|
<div className='ml20'>产品名称 ZY310,</div>
|
|
|
|
<div className='ml30 mt10 mb10'>产品编号:{selectedData?.productNum} ,</div>
|
|
|
|
<div className='ml20'>产品编号 8151电,</div>
|
|
|
|
<div className='ml30'>启用日期:{form.getFieldValue('activeDate') && form.getFieldValue('activeDate').format('YYYY-MM-DD')}</div>
|
|
|
|
<div className='ml20'>启用日期 20231011</div>
|
|
|
|
</div>}
|
|
|
|
</div>
|
|
|
|
{/* <div>类型判断2: 没有需要装配管理密钥的密码设备!</div> */}
|
|
|
|
<div>类型判断2: 没有需要装配管理密钥的密码设备!</div>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div className='flex_jE mt20'>
|
|
|
|
<div className='flex_jE mt20'>
|
|
|
|
<ButtonComp text={'确定'} onClick={() => { }} />
|
|
|
|
<ButtonComp text={'确定'} style={{ marginRight: 20 }} onClick={() => submit()} />
|
|
|
|
|
|
|
|
<ButtonComp type='cancel' text={'取消'} onClick={() => setVisibility(false)} />
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</Modal>
|
|
|
|
</Modal>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|