Commit 60258174 authored by 邓超's avatar 邓超

fix: 工作里编辑器配置,优化流程中心样式

parent 143057cf
Pipeline #66175 passed with stages
......@@ -43,10 +43,13 @@ const WorkflowHomePage = () => {
gsap.registerPlugin(ScrollToPlugin);
getFlowList();
let flowTable = document.querySelector(`.${styles.flowTable}`);
flowTable.addEventListener('scroll', () => {
setFlowTableScroll(flowTable.scrollTop);
});
flowTable.addEventListener('scroll', setScroll);
return () => {
flowTable.removeEventListener('scroll', setScroll);
};
}, []);
useEffect(() => {
clearTimeout(scrollTimer.current);
scrollTimer.current = setTimeout(() => {
......@@ -92,6 +95,10 @@ const WorkflowHomePage = () => {
}, 0);
}
}, [flowList]);
const setScroll = () => {
let flowTable = document.querySelector(`.${styles.flowTable}`);
setFlowTableScroll(flowTable.scrollTop);
};
// 获取所有数据
const getFlowList = () => {
WFGetAllFlow().then(res => {
......
......@@ -322,7 +322,7 @@
display: flex;
width: 100%;
justify-content: space-between;
padding: 0 18px;
padding: 0 20px;
margin-bottom: 8px;
box-sizing: border-box;
}
......
......@@ -363,7 +363,7 @@ const FlowChart = props => {
FlowTimerList: [],
TurnOnCc: 0,
NodeAliasName: '',
Handover: '移交选择人',
TableName: '',
Fields: '',
WebPage: '',
......@@ -395,6 +395,7 @@ const FlowChart = props => {
NodeName: '开始节点',
NodeType: '1',
SerialNo: 0,
Handover: '移交选择人',
...defaultField,
},
{
......@@ -402,6 +403,7 @@ const FlowChart = props => {
NodeName: '普通节点',
NodeType: '0',
SerialNo: 0,
Handover: '移交选择人',
...defaultField,
},
{
......@@ -409,6 +411,7 @@ const FlowChart = props => {
NodeName: '结束节点',
NodeType: '2',
SerialNo: 0,
Handover: '自处理',
...defaultField,
},
]),
......
......@@ -335,7 +335,12 @@ const ConfigNodeMsg = (props, ref) => {
</Form.Item>
<Form.Item label="移交方式" name="Handover">
<Radio.Group>
<Radio value="移交选择人">
<Radio
value="移交选择人"
style={{
display: editMsg.NodeType === '2' ? 'none' : 'flex',
}}
>
<div style={{ display: 'flex', alignItems: 'center' }}>
移交选择人
<Tooltip title="根据人员选择面板,自主选择移交的人员">
......
......@@ -118,7 +118,12 @@ const ConfigOperate = (props, ref) => {
</div>
<Form.Item
valuePropName="checked"
style={{ marginBottom: '0', padding: '2px', borderBottom: '1px solid #ccc' }}
style={{
marginBottom: '0',
padding: '2px',
borderBottom: '1px solid #ccc',
display: editMsg.NodeType === '0' ? 'flex' : 'none',
}}
label={
<div style={{ display: 'flex', alignItems: 'center' }}>
{/* <Tooltip title="开始节点不允许转办">
......@@ -173,9 +178,9 @@ const ConfigOperate = (props, ref) => {
valuePropName="checked"
label={
<div style={{ display: 'flex', alignItems: 'center' }}>
<Tooltip title="结束节点可配置自动关单">
{/* <Tooltip title="结束节点可配置自动关单">
<InfoCircleOutlined style={{ color: '#1890ff', marginRight: '3px' }} />
</Tooltip>
</Tooltip> */}
<span>自动关单</span>
</div>
}
......@@ -231,7 +236,12 @@ const ConfigOperate = (props, ref) => {
</Form.Item>
<Form.Item
valuePropName="checked"
style={{ marginBottom: '0', padding: '2px', borderBottom: '1px solid #ccc' }}
style={{
marginBottom: '0',
padding: '2px',
borderBottom: '1px solid #ccc',
display: editMsg.NodeType === '0' ? 'flex' : 'none',
}}
label="是否发送短信"
name="IsSendMessage"
>
......
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