Commit 96171fa8 authored by wuhao's avatar wuhao 🎯

asder

parent d45398bb
...@@ -187,7 +187,7 @@ const Mtable = (props) => { ...@@ -187,7 +187,7 @@ const Mtable = (props) => {
//调用重新渲染表格 //调用重新渲染表格
useAsyncEffect(async () => { useAsyncEffect(async () => {
await initDrage(); await initDrage();
}, [columns,extraparams, path, activeTabKey, refreshDep]); }, [columns, extraparams, path, activeTabKey, refreshDep]);
//缩放表格 //缩放表格
const handleResize = const handleResize =
...@@ -209,7 +209,7 @@ const Mtable = (props) => { ...@@ -209,7 +209,7 @@ const Mtable = (props) => {
(index) => (index) =>
(e, { size }) => { (e, { size }) => {
e.stopImmediatePropagation(); e.stopImmediatePropagation();
let submitdata = {...valueColumns} ?? {}, let submitdata = { ...valueColumns } ?? {},
curkey = Object.keys(submitdata)[index]; curkey = Object.keys(submitdata)[index];
submitdata[curkey].width = parseInt(size.width); submitdata[curkey].width = parseInt(size.width);
setvalueColumns(submitdata); setvalueColumns(submitdata);
......
...@@ -120,17 +120,30 @@ const Details = (props) => { ...@@ -120,17 +120,30 @@ const Details = (props) => {
} else if (type == "img") { } else if (type == "img") {
return ( return (
<div style={{ display: "flex", flexFlow: "row wrap" }}> <div style={{ display: "flex", flexFlow: "row wrap" }}>
{ {value ? (
value ? Array.isArray(value) && value.length > 0 ? (
Array.isArray(value) && value.length > 0 ? value?.map((el) => {
value?.map(el => { return (
return <Image style={{ margin: '0 10px 0 0' }} src={el?.url} width={30} height={30} key={el?.uid}></Image> <Image
style={{ margin: "0 10px 0 0" }}
src={el?.url}
width={30}
height={30}
key={el?.uid}
></Image>
);
}) })
: ) : (
<Image style={{ margin: '0 10px 0 0' }} src={value} width={itemData.width ?? 30} height={itemData.height ?? 30}></Image> <Image
: style={{ margin: "0 10px 0 0" }}
src={value}
width={itemData.width ?? 30}
height={itemData.height ?? 30}
></Image>
)
) : (
"-" "-"
} )}
</div> </div>
); );
} else if (type == "table") { } else if (type == "table") {
...@@ -187,8 +200,6 @@ const Details = (props) => { ...@@ -187,8 +200,6 @@ const Details = (props) => {
style={{ style={{
flexShrink: 0, flexShrink: 0,
display: `${it.title ? "block" : "none"}`, display: `${it.title ? "block" : "none"}`,
textAlign: "right",
width: 126,
}} }}
> >
{it.title} {it.title}
......
...@@ -375,3 +375,8 @@ table { ...@@ -375,3 +375,8 @@ table {
display: flex !important; display: flex !important;
min-width: 210px !important; min-width: 210px !important;
} }
#large {
*{
font-size: 22px !important;
}
}
\ No newline at end of file
...@@ -725,7 +725,7 @@ const one = { ...@@ -725,7 +725,7 @@ const one = {
noshow: "100%", noshow: "100%",
}, },
{ {
title: "工单二维码", title: "工单条形码",
noshow: true, noshow: true,
key: "qrCodeUrl", key: "qrCodeUrl",
type: "img", type: "img",
......
...@@ -41,8 +41,9 @@ function PrintDom({ totalPath, val, totalParams, totalCard }, ref) { ...@@ -41,8 +41,9 @@ function PrintDom({ totalPath, val, totalParams, totalCard }, ref) {
style={{ style={{
textAlign: "center", textAlign: "center",
width: "100%", width: "100%",
paddingTop: 12, paddingTop: 18,
paddingBottom: 16, paddingBottom: 16,
fontSize: 32,
}} }}
> >
入库工单 入库工单
...@@ -51,8 +52,8 @@ function PrintDom({ totalPath, val, totalParams, totalCard }, ref) { ...@@ -51,8 +52,8 @@ function PrintDom({ totalPath, val, totalParams, totalCard }, ref) {
style={{ style={{
position: "absolute", position: "absolute",
right: 36, right: 36,
top:36, top: 36,
width: 120, width: 300,
height: "auto", height: "auto",
}} }}
src={data?.qrCodeUrl} src={data?.qrCodeUrl}
...@@ -72,7 +73,7 @@ function PrintDom({ totalPath, val, totalParams, totalCard }, ref) { ...@@ -72,7 +73,7 @@ function PrintDom({ totalPath, val, totalParams, totalCard }, ref) {
marginRight: "1%", marginRight: "1%",
marginBottom: 10, marginBottom: 10,
padding: "4px", padding: "4px",
fontSize: 16, fontSize: 20,
overflow: "hidden", overflow: "hidden",
}} }}
> >
...@@ -82,10 +83,11 @@ function PrintDom({ totalPath, val, totalParams, totalCard }, ref) { ...@@ -82,10 +83,11 @@ function PrintDom({ totalPath, val, totalParams, totalCard }, ref) {
); );
})} })}
</div> </div>
<p style={{ margin: 0, padding: "4px 2%", fontSize: 18 }}>
<div style={{ padding: "4px 0", position: "relative" }} id="large">
<div style={{ position: "absolute", top: 0, left: 0 ,zIndex:999,left:"2%",top:16}}>
<b>{totalCard && totalCard[1].cardTitle}</b> <b>{totalCard && totalCard[1].cardTitle}</b>
</p> </div>
<div style={{ margin: 0, padding: "4px 2%", fontSize: 18 }}>
<AutoTable <AutoTable
dataSource={data?.materialList} dataSource={data?.materialList}
x="96%" x="96%"
...@@ -100,7 +102,7 @@ function PrintDom({ totalPath, val, totalParams, totalCard }, ref) { ...@@ -100,7 +102,7 @@ function PrintDom({ totalPath, val, totalParams, totalCard }, ref) {
search: false, search: false,
render: (dom, row) => { render: (dom, row) => {
return ( return (
(row.materieCode ?? "") + " - " + (row.materieName ?? "") (row.materieCode ?? " ") + " - " + (row.materieName ?? "")
); );
}, },
}, },
...@@ -134,6 +136,7 @@ function PrintDom({ totalPath, val, totalParams, totalCard }, ref) { ...@@ -134,6 +136,7 @@ function PrintDom({ totalPath, val, totalParams, totalCard }, ref) {
search: false, search: false,
}, },
]} ]}
bordered={true}
></AutoTable> ></AutoTable>
</div> </div>
</div> </div>
......
...@@ -689,7 +689,7 @@ const one = { ...@@ -689,7 +689,7 @@ const one = {
noshow: "100%", noshow: "100%",
}, },
{ {
title: "工单二维码", title: "工单条形码",
key: "qrCodeUrl", key: "qrCodeUrl",
type: "img", type: "img",
noshow: true, noshow: true,
......
...@@ -41,8 +41,9 @@ function PrintDom({ totalPath, val, totalParams, totalCard }, ref) { ...@@ -41,8 +41,9 @@ function PrintDom({ totalPath, val, totalParams, totalCard }, ref) {
style={{ style={{
textAlign: "center", textAlign: "center",
width: "100%", width: "100%",
paddingTop: 12, paddingTop: 18,
paddingBottom: 16, paddingBottom: 16,
fontSize: 32,
}} }}
> >
出库工单 出库工单
...@@ -51,15 +52,22 @@ function PrintDom({ totalPath, val, totalParams, totalCard }, ref) { ...@@ -51,15 +52,22 @@ function PrintDom({ totalPath, val, totalParams, totalCard }, ref) {
style={{ style={{
position: "absolute", position: "absolute",
right: 36, right: 36,
top:36, top: 28,
width: 120, width: 300,
height: "auto", height: "auto",
}} }}
src={data?.qrCodeUrl} src={data?.qrCodeUrl}
alt="" alt=""
/> />
<div style={{ display: "flex", flexWrap: "wrap", paddingLeft: "2%" }}> <div
style={{
display: "flex",
flexWrap: "wrap",
paddingLeft: "2%",
marginTop: 24,
}}
>
{totalCard && {totalCard &&
totalCard[0].itemData totalCard[0].itemData
.filter((it) => !(it.noshow === true)) .filter((it) => !(it.noshow === true))
...@@ -72,7 +80,7 @@ function PrintDom({ totalPath, val, totalParams, totalCard }, ref) { ...@@ -72,7 +80,7 @@ function PrintDom({ totalPath, val, totalParams, totalCard }, ref) {
marginRight: "1%", marginRight: "1%",
marginBottom: 10, marginBottom: 10,
padding: "4px", padding: "4px",
fontSize: 16, fontSize: 20,
overflow: "hidden", overflow: "hidden",
}} }}
> >
...@@ -82,10 +90,19 @@ function PrintDom({ totalPath, val, totalParams, totalCard }, ref) { ...@@ -82,10 +90,19 @@ function PrintDom({ totalPath, val, totalParams, totalCard }, ref) {
); );
})} })}
</div> </div>
<p style={{ margin: 0, padding: "4px 2%", fontSize: 18 }}> <div style={{ padding: "4px 0", position: "relative" }} id="large">
<div
style={{
position: "absolute",
top: 0,
left: 0,
zIndex: 999,
left: "2%",
top: 16,
}}
>
<b>{totalCard && totalCard[1].cardTitle}</b> <b>{totalCard && totalCard[1].cardTitle}</b>
</p> </div>
<div style={{ margin: 0, padding: "4px 2%", fontSize: 18 }}>
<AutoTable <AutoTable
dataSource={data?.materialList} dataSource={data?.materialList}
x="96%" x="96%"
...@@ -115,8 +132,10 @@ function PrintDom({ totalPath, val, totalParams, totalCard }, ref) { ...@@ -115,8 +132,10 @@ function PrintDom({ totalPath, val, totalParams, totalCard }, ref) {
dataIndex: "productionUnitName", dataIndex: "productionUnitName",
key: "productionUnitName", key: "productionUnitName",
search: false, search: false,
width: 60,
}, },
]} ]}
bordered={true}
></AutoTable> ></AutoTable>
</div> </div>
</div> </div>
......
...@@ -16,7 +16,7 @@ import { ...@@ -16,7 +16,7 @@ import {
Typography, Typography,
} from "antd"; } from "antd";
import { connect, useRequest } from "umi"; import { connect, useRequest } from "umi";
import AutoTable from "@/components/AutoTable"; import AutoTable from "@/components/Tableform/mtable";
import getPrem from "@/utils/getPrem"; //权限判断fn import getPrem from "@/utils/getPrem"; //权限判断fn
import InitForm from "@/components/InitForm"; import InitForm from "@/components/InitForm";
import { doFetch } from "@/utils/doFetch"; import { doFetch } from "@/utils/doFetch";
...@@ -375,6 +375,7 @@ const Formpage = (props) => { ...@@ -375,6 +375,7 @@ const Formpage = (props) => {
} }
}, },
}); });
let extrarender = [ let extrarender = [
<Button <Button
size={"middle"} size={"middle"}
......
import React, { memo, useEffect, useRef, useState, useReducer } from 'react'; import React, { memo, useEffect, useRef, useState, useReducer } from "react";
import { Image, Divider, Menu, Dropdown, Button, Modal, Row, Col, Tooltip, Drawer } from 'antd'; import {
Image,
Divider,
Menu,
Dropdown,
Button,
Modal,
Row,
Col,
Tooltip,
Drawer,
} from "antd";
import { connect, useRequest } from "umi"; import { connect, useRequest } from "umi";
import AutoTable from '@/components/AutoTable'; import AutoTable from "@/components/AutoTable";
import getPrem from '@/utils/getPrem';//权限判断fn import getPrem from "@/utils/getPrem"; //权限判断fn
import { doFetch } from '@/utils/doFetch'; import { doFetch } from "@/utils/doFetch";
import { paBusinessMsgScene, paBusinessMsgOption } from "@/services/platform"; import { paBusinessMsgScene, paBusinessMsgOption } from "@/services/platform";
import { addFields } from "./fields"; import { addFields } from "./fields";
import Formpage from "./Formpage"; import Formpage from "./Formpage";
...@@ -16,11 +27,11 @@ const initState = { ...@@ -16,11 +27,11 @@ const initState = {
totalTitle: "", totalTitle: "",
visible: false, visible: false,
dataSource: {}, dataSource: {},
totalCard: [] totalCard: [],
}, },
shown: false, shown: false,
rowMessage: {} rowMessage: {},
} };
function reducer(state, action) { function reducer(state, action) {
if (action.type == "add") { if (action.type == "add") {
...@@ -30,10 +41,10 @@ function reducer(state, action) { ...@@ -30,10 +41,10 @@ function reducer(state, action) {
fields: action.fields, fields: action.fields,
iftype: { iftype: {
val: "add", val: "add",
title: "新增推送配置" title: "新增推送配置",
}, },
rowMessage: {} rowMessage: {},
} };
} else if (action.type == "close") { } else if (action.type == "close") {
return { return {
...state, ...state,
...@@ -44,10 +55,10 @@ function reducer(state, action) { ...@@ -44,10 +55,10 @@ function reducer(state, action) {
totalTitle: "", totalTitle: "",
visible: false, visible: false,
dataSource: {}, dataSource: {},
totalCard: [] totalCard: [],
}, },
shown: false shown: false,
} };
} else if (action.type == "edit") { } else if (action.type == "edit") {
return { return {
...state, ...state,
...@@ -56,10 +67,10 @@ function reducer(state, action) { ...@@ -56,10 +67,10 @@ function reducer(state, action) {
iftype: { iftype: {
val: "edit", val: "edit",
title: "修改推送配置", title: "修改推送配置",
id: action.rowMessage.id id: action.rowMessage.id,
}, },
rowMessage: action.rowMessage rowMessage: action.rowMessage,
} };
} else if (action.type == "seeDetails") { } else if (action.type == "seeDetails") {
return { return {
...state, ...state,
...@@ -67,20 +78,20 @@ function reducer(state, action) { ...@@ -67,20 +78,20 @@ function reducer(state, action) {
totalTitle: "推送详情", totalTitle: "推送详情",
visible: true, visible: true,
dataSource: { ...action.dataSource }, dataSource: { ...action.dataSource },
totalCard: [...action.totalCard] totalCard: [...action.totalCard],
} },
} };
} else if (action.type == "changeShown") { } else if (action.type == "changeShown") {
return { return {
...state, ...state,
shown: action.shown shown: action.shown,
} };
} }
} }
const Pushdeploy = (props) => { const Pushdeploy = (props) => {
let actionRef = useRef(), ChildRef = null; let actionRef = useRef(),
ChildRef = null;
function reload() { function reload() {
actionRef?.current?.reload(); actionRef?.current?.reload();
ChildRef?.onRefresh(); ChildRef?.onRefresh();
...@@ -89,180 +100,196 @@ const Pushdeploy = (props) => { ...@@ -89,180 +100,196 @@ const Pushdeploy = (props) => {
{ vs, fields, iftype, details, shown, rowMessage } = state, { vs, fields, iftype, details, shown, rowMessage } = state,
columns = [ columns = [
{ {
"title": "推送类型", title: "推送类型",
"dataIndex": "msgSceneName", dataIndex: "msgSceneName",
"key": "businessMsgSceneId", key: "businessMsgSceneId",
"valueType": "select", valueType: "select",
render: (_, row) => { render: (_, row) => {
return <div style={{ padding: '3px 0', overflow: 'hidden', whiteSpace: 'nowrap', textOverflow: 'ellipsis' }}> return (
<div
style={{
padding: "3px 0",
overflow: "hidden",
whiteSpace: "nowrap",
textOverflow: "ellipsis",
}}
>
<Tooltip title={row.msgSceneName}> <Tooltip title={row.msgSceneName}>
<a onClick={() => { <a
onClick={() => {
let commons = [ let commons = [
{ {
"title": "推送类型", title: "推送类型",
"key": "msgSceneName" key: "msgSceneName",
}, },
{ {
"title": "推送方式", title: "推送方式",
"key": "sendMethodName" key: "sendMethodName",
}, },
{ {
"title": "适用类型", title: "适用类型",
"key": "fitFieldName" key: "fitFieldName",
}, },
], table = { ],
"key": "detailList", table = {
key: "detailList",
col: { span: 24 }, col: { span: 24 },
type: "table", type: "table",
columns: [ columns: [
{ {
"title": "推送流程", title: "推送流程",
"dataIndex": "sendProcessName", dataIndex: "sendProcessName",
"key": "sendProcessName", key: "sendProcessName",
"search": false search: false,
}, },
{ {
"title": "推送对象", title: "推送对象",
"dataIndex": "sendToName", dataIndex: "sendToName",
"key": "sendToName", key: "sendToName",
"search": false search: false,
}, },
{ {
"title": "选择对象", title: "选择对象",
"dataIndex": "targetNames", dataIndex: "targetNames",
"key": "targetNames", key: "targetNames",
"search": false search: false,
}, },
{ {
"title": "初始触发时长", title: "初始触发时长",
"dataIndex": "initialTime", dataIndex: "initialTime",
"key": "initialTime", key: "initialTime",
"search": false search: false,
}, },
{ {
"title": "初始触发时长单位", title: "初始触发时长单位",
"dataIndex": "initialUnitName", dataIndex: "initialUnitName",
"key": "initialUnitName", key: "initialUnitName",
"search": false search: false,
}, },
{ {
"title": "间隔时长", title: "间隔时长",
"dataIndex": "intervalTime", dataIndex: "intervalTime",
"key": "intervalTime", key: "intervalTime",
"search": false search: false,
}, },
{ {
"title": "间隔时长单位", title: "间隔时长单位",
"dataIndex": "intervalUnitName", dataIndex: "intervalUnitName",
"key": "intervalUnitName", key: "intervalUnitName",
"search": false search: false,
}, },
{ {
"title": "触发次数", title: "触发次数",
"dataIndex": "sendNum", dataIndex: "sendNum",
"key": "sendNum", key: "sendNum",
"search": false search: false,
} },
] ],
}, },
totalCardsc, totalCardsc,
contentMsg, contentMsg,
fieldMsg; fieldMsg;
contentMsg = { contentMsg = {
"title": "推送内容", title: "推送内容",
"key": "sendContent", key: "sendContent",
col: { span: 24 } col: { span: 24 },
}; };
if (row.fitField == 1) { if (row.fitField == 1) {
fieldMsg = null; fieldMsg = null;
} else { } else {
fieldMsg = { fieldMsg = {
"title": "类型名称", title: "类型名称",
"key": "fieldName" key: "fieldName",
} };
} }
totalCardsc = [ totalCardsc = [
{ {
cardTitle: '推送信息', cardTitle: "推送信息",
itemData: [ itemData: [
...commons, ...commons,
fieldMsg && { ...fieldMsg }, fieldMsg && { ...fieldMsg },
contentMsg && { ...contentMsg }, contentMsg && { ...contentMsg },
] ],
}, },
{ {
cardTitle: '基础配置', cardTitle: "基础配置",
itemData: [ itemData: [{ ...table }],
{ ...table } },
]
}
]; ];
totalCardsc.map(it => { totalCardsc.map((it) => {
let newData = it.itemData.filter(item => item); let newData = it.itemData.filter((item) => item);
it.itemData = [...newData]; it.itemData = [...newData];
}) });
paBusinessMsgOption({ id: row.id }).then(res => { paBusinessMsgOption({ id: row.id }).then((res) => {
if (res.code == "0000") { if (res.code == "0000") {
let data = res?.data?.data || {}; let data = res?.data?.data || {};
dispatch({ type: "seeDetails", totalCard: [...totalCardsc], dataSource: { ...data } }) dispatch({
type: "seeDetails",
totalCard: [...totalCardsc],
dataSource: { ...data },
});
} }
}) });
}}>{row.msgSceneName}</a> }}
>
{row.msgSceneName}
</a>
</Tooltip> </Tooltip>
</div> </div>
);
}, },
options: { options: {
database: paBusinessMsgScene, database: paBusinessMsgScene,
params: {} params: {},
} },
}, },
{ {
"title": "推送方式", title: "推送方式",
"dataIndex": "sendMethodName", dataIndex: "sendMethodName",
"key": "sendMethodName", key: "sendMethodName",
search: false search: false,
}, },
{ {
"title": "适用类型", title: "适用类型",
"dataIndex": "fitFieldName", dataIndex: "fitFieldName",
"key": "fitField", key: "fitField",
"valueType": "select", valueType: "select",
"options": [ options: [
{ {
"label": "全部", label: "全部",
"value": 1 value: 1,
}, },
{ {
"label": "工厂", label: "工厂",
"value": 2 value: 2,
}, },
{ {
"label": "组织", label: "组织",
"value": 3 value: 3,
}, },
{ {
"label": "仓库", label: "仓库",
"value": 4 value: 4,
} },
] ],
}, },
{ {
"title": "类型名称", title: "类型名称",
"dataIndex": "fieldName", dataIndex: "fieldName",
"key": "fieldName" key: "fieldName",
}, },
{ {
"title": "推送内容", title: "推送内容",
"dataIndex": "sendContent", dataIndex: "sendContent",
"key": "sendContent", key: "sendContent",
"search": false search: false,
}, },
{ {
title: '操作', title: "操作",
valueType: 'option', valueType: "option",
width: 150, width: 150,
render: (text, row, _, action) => extraAction(text, row, _, action) render: (text, row, _, action) => extraAction(text, row, _, action),
} },
], ],
{ run, loading } = useRequest(doFetch, { { run, loading } = useRequest(doFetch, {
manual: true, manual: true,
...@@ -272,56 +299,65 @@ const Pushdeploy = (props) => { ...@@ -272,56 +299,65 @@ const Pushdeploy = (props) => {
reload(); reload();
dispatch({ type: "close" }); dispatch({ type: "close" });
} }
} },
}); });
function extraAction(text, record, _, action) { function extraAction(text, record, _, action) {
return ( return (
<div> <div>
{ {getPrem("paBusinessMsgOption_save", action, "修改", () => {
getPrem("paBusinessMsgOption_save", action, "修改", () => { paBusinessMsgOption({ id: record.id }).then((res) => {
paBusinessMsgOption({ id: record.id }).then(res => {
if (res.code == "0000") { if (res.code == "0000") {
let data = res?.data?.data || {}; let data = res?.data?.data || {};
for (let i in addFields) { for (let i in addFields) {
addFields[i].value = data[i] addFields[i].value = data[i];
}
dispatch({ type: "edit", rowMessage: data, fields: addFields })
} }
}) dispatch({ type: "edit", rowMessage: data, fields: addFields });
})
} }
{getPrem("paBusinessMsgOption_save", "ifs") && <Divider type="vertical" />} });
{ })}
getPrem("paBusinessMsgOption_deleteById", action, "删除", null, { {getPrem("paBusinessMsgOption_save", "ifs") && (
<Divider type="vertical" />
)}
{getPrem("paBusinessMsgOption_deleteById", action, "删除", null, {
title: "确认删除该推送配置?", title: "确认删除该推送配置?",
onConfirm: () => { onConfirm: () => {
run({ url: "/ngic-base-business/paBusinessMsgOption/deleteById", params: { id: record.id } }) run({
} url: "/ngic-base-business/paBusinessMsgOption/deleteById",
}) params: { id: record.id },
} });
},
})}
</div> </div>
); );
}; }
function reset() { function reset() {
reload(); reload();
dispatch({ type: "close" }) dispatch({ type: "close" });
} }
let extrarender = ([ let extrarender = [
<Button disabled={!getPrem("paBusinessMsgOption_save", "ifs")} size={"middle"} type="primary" onClick={() => { <Button
disabled={!getPrem("paBusinessMsgOption_save", "ifs")}
size={"middle"}
type="primary"
onClick={() => {
for (let i in addFields) { for (let i in addFields) {
addFields[i].value = null; addFields[i].value = null;
} }
dispatch({ type: "add", fields: addFields }); dispatch({ type: "add", fields: addFields });
}}>新增</Button> }}
]); >
return <div> 新增
</Button>,
];
return (
<div>
<AutoTable <AutoTable
pagetitle={props.route.name} pagetitle={props.route.name}
pageextra={extrarender} pageextra={extrarender}
columns={columns} columns={columns}
bordered={false} bordered={false}
actionRef={actionRef} actionRef={actionRef}
onRef={node => ChildRef = node} onRef={(node) => (ChildRef = node)}
path="/ngic-base-business/paBusinessMsgOption/queryList" path="/ngic-base-business/paBusinessMsgOption/queryList"
></AutoTable> ></AutoTable>
<Drawer <Drawer
...@@ -330,27 +366,33 @@ const Pushdeploy = (props) => { ...@@ -330,27 +366,33 @@ const Pushdeploy = (props) => {
visible={vs} visible={vs}
onClose={() => dispatch({ type: "close" })} onClose={() => dispatch({ type: "close" })}
destroyOnClose={true} destroyOnClose={true}
getContainer={false}
afterVisibleChange={(v) => { afterVisibleChange={(v) => {
dispatch({ type: "changeShown", shown: v }); dispatch({ type: "changeShown", shown: v });
}} }}
style={{ position: "absolute" }}
width="100%" width="100%"
> >
{shown && <Formpage fields={fields} rowMessage={rowMessage} reset={reset} iftypeParent={iftype} />} {shown && (
<Formpage
fields={fields}
rowMessage={rowMessage}
reset={reset}
iftypeParent={iftype}
/>
)}
</Drawer> </Drawer>
<Drawer <Details
{...details}
title={details.totalTitle} title={details.totalTitle}
closable={true}
visible={details.visible}
onClose={() => dispatch({ type: "close" })} onClose={() => dispatch({ type: "close" })}
destroyOnClose={true} getContainer={false}
afterVisibleChange={(v) => { style={{ position: "absolute" }}
dispatch({ type: "changeShown", shown: v }); width={800}
}} ></Details>
width="100%"
className="drawerDetails"
>
{shown && <Details {...details}></Details>}
</Drawer>
</div> </div>
} );
};
export default Pushdeploy; export default Pushdeploy;
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment