Commit ae17a709 authored by 邓超's avatar 邓超

fix: 修复流程节点测试问题

parent d83c62d1
Pipeline #34268 passed with stages
in 27 minutes 34 seconds
...@@ -78,8 +78,13 @@ const ProcessConfig = props => { ...@@ -78,8 +78,13 @@ const ProcessConfig = props => {
<Radio value={3}>重新处理事件</Radio> <Radio value={3}>重新处理事件</Radio>
</Radio.Group> </Radio.Group>
</Form.Item> </Form.Item>
<Form.Item label="前端页面" name="webPage"> <Form.Item
<Select placeholder="请选择前端页面"> label="前端样式"
name="webPage"
initialValue="多表显示"
rules={[{ required: true, message: '请选择前端样式' }]}
>
<Select placeholder="请选择前端样式">
<Option value="多表显示">多表显示</Option> <Option value="多表显示">多表显示</Option>
<Option value="多表在办显示">多表在办显示</Option> <Option value="多表在办显示">多表在办显示</Option>
<Option value="表堆叠显示">表堆叠显示</Option> <Option value="表堆叠显示">表堆叠显示</Option>
......
...@@ -20,6 +20,7 @@ import { ...@@ -20,6 +20,7 @@ import {
ControlOutlined, ControlOutlined,
DeleteOutlined, DeleteOutlined,
} from '@ant-design/icons'; } from '@ant-design/icons';
import PageContainer from '@/components/BasePageContainer';
import NodeEdit from './flowNodeComponents/NodeEdit'; import NodeEdit from './flowNodeComponents/NodeEdit';
import AuxiliaryView from './flowNodeComponents/AuxiliaryView'; import AuxiliaryView from './flowNodeComponents/AuxiliaryView';
import styles from './flowNode.less'; import styles from './flowNode.less';
...@@ -143,9 +144,14 @@ const FlowNode = () => { ...@@ -143,9 +144,14 @@ const FlowNode = () => {
dataIndex: 'extendTableName', dataIndex: 'extendTableName',
width: 150, width: 150,
align: 'center', align: 'center',
ellipsis: {
showTitle: true,
},
render: text => ( render: text => (
// eslint-disable-next-line react/no-danger <Tooltip placement="topLeft" title={text}>
{/* eslint-disable-next-line react/no-danger */}
<span dangerouslySetInnerHTML={{ __html: text }} /> <span dangerouslySetInnerHTML={{ __html: text }} />
</Tooltip>
), ),
}, },
{ {
...@@ -367,6 +373,7 @@ const FlowNode = () => { ...@@ -367,6 +373,7 @@ const FlowNode = () => {
]; ];
return ( return (
<PageContainer>
<div className={styles.NodeContent}> <div className={styles.NodeContent}>
<div className={styles.header}> <div className={styles.header}>
<div className={styles.nodeTitle}>{flowName}-流程节点配置</div> <div className={styles.nodeTitle}>{flowName}-流程节点配置</div>
...@@ -409,6 +416,7 @@ const FlowNode = () => { ...@@ -409,6 +416,7 @@ const FlowNode = () => {
handleCancel={() => showModal('auxiliaryView', false)} handleCancel={() => showModal('auxiliaryView', false)}
/> />
</div> </div>
</PageContainer>
); );
}; };
......
...@@ -17,6 +17,7 @@ import { ...@@ -17,6 +17,7 @@ import {
notification, notification,
Checkbox, Checkbox,
Button, Button,
message,
} from 'antd'; } from 'antd';
import { PlusOutlined } from '@ant-design/icons'; import { PlusOutlined } from '@ant-design/icons';
import Fieldselection from './nodeEditComponents/Fieldselection'; import Fieldselection from './nodeEditComponents/Fieldselection';
...@@ -89,11 +90,15 @@ const NodeEdit = props => { ...@@ -89,11 +90,15 @@ const NodeEdit = props => {
}; };
// 字段配置 // 字段配置
const deployField = val => { const deployField = val => {
let value = form.getFieldsValue(true);
if (!value.TableName) {
message.error('请先选择表');
return;
}
setFieldName(val); setFieldName(val);
form.validateFields().then(value => {
loadEventFields({ eventTableName: value.TableName }).then(res => { loadEventFields({ eventTableName: value.TableName }).then(res => {
if (res.code === 0) { if (res.code === 0) {
let defaultCheckedList = value[val].split(','); let defaultCheckedList = value[val] ? value[val].split(',') : [];
// 处理数据为树形结构 // 处理数据为树形结构
let keylist = new Set(); let keylist = new Set();
let list = new Map(); let list = new Map();
...@@ -152,7 +157,6 @@ const NodeEdit = props => { ...@@ -152,7 +157,6 @@ const NodeEdit = props => {
}, 0); }, 0);
} }
}); });
});
}; };
// 字段修改后回调函数 // 字段修改后回调函数
const setFiled = val => { const setFiled = val => {
...@@ -161,7 +165,7 @@ const NodeEdit = props => { ...@@ -161,7 +165,7 @@ const NodeEdit = props => {
if (index === val.length - 1) { if (index === val.length - 1) {
Fields = `${Fields + item}`; Fields = `${Fields + item}`;
} else { } else {
Fields = `${Fields + item},`; Fields = `${Fields + item}`;
} }
}); });
let obj = {}; let obj = {};
...@@ -262,6 +266,7 @@ const NodeEdit = props => { ...@@ -262,6 +266,7 @@ const NodeEdit = props => {
<Form.Item <Form.Item
name="RollbackNode" name="RollbackNode"
style={{ marginBottom: 0, width: '100%' }} style={{ marginBottom: 0, width: '100%' }}
initialValue="(上一节点)"
> >
<Select disabled={isDisable} placeholder="请选择回退节点"> <Select disabled={isDisable} placeholder="请选择回退节点">
{backNodes.map(item => ( {backNodes.map(item => (
...@@ -285,20 +290,24 @@ const NodeEdit = props => { ...@@ -285,20 +290,24 @@ const NodeEdit = props => {
<Option value="移交上报人">移交上报人</Option> <Option value="移交上报人">移交上报人</Option>
</Select> </Select>
</Form.Item> </Form.Item>
<Form.Item label="平级移交" name="Transferable"> <Form.Item label="平级移交" name="Transferable" initialValue="0">
<Radio.Group> <Radio.Group>
<Radio value="0"></Radio> <Radio value="0"></Radio>
<Radio value="1"></Radio> <Radio value="1"></Radio>
</Radio.Group> </Radio.Group>
</Form.Item> </Form.Item>
<Form.Item label="显示事件信息" name="EventsInformation"> <Form.Item
label="显示事件信息"
name="EventsInformation"
initialValue="0"
>
<Radio.Group> <Radio.Group>
<Radio value="0"></Radio> <Radio value="0"></Radio>
<Radio value="1"></Radio> <Radio value="1"></Radio>
</Radio.Group> </Radio.Group>
</Form.Item> </Form.Item>
<Form.Item label="工单主表" name="TableName"> <Form.Item label="工单主表" name="TableName">
<Select> <Select placeholder="请选择工单主表">
{eventTable.map(item => ( {eventTable.map(item => (
<Option value={item.Name} key={item.ID}> <Option value={item.Name} key={item.ID}>
{item.Name} {item.Name}
...@@ -309,7 +318,7 @@ const NodeEdit = props => { ...@@ -309,7 +318,7 @@ const NodeEdit = props => {
<Form.Item label="字段编辑"> <Form.Item label="字段编辑">
<div className={styles.filedListItem}> <div className={styles.filedListItem}>
<Form.Item name="Fields" style={{ marginBottom: 0, width: '100%' }}> <Form.Item name="Fields" style={{ marginBottom: 0, width: '100%' }}>
<Input placeholder="请选编辑字段" /> <Input placeholder="请选编辑字段" allowClear />
</Form.Item> </Form.Item>
<Button <Button
type="dashed" type="dashed"
...@@ -326,7 +335,7 @@ const NodeEdit = props => { ...@@ -326,7 +335,7 @@ const NodeEdit = props => {
name="SeeFields" name="SeeFields"
style={{ marginBottom: 0, width: '100%' }} style={{ marginBottom: 0, width: '100%' }}
> >
<Input placeholder="请选择查看字段" /> <Input placeholder="请选择查看字段" allowClear />
</Form.Item> </Form.Item>
<Button <Button
type="dashed" type="dashed"
...@@ -347,7 +356,7 @@ const NodeEdit = props => { ...@@ -347,7 +356,7 @@ const NodeEdit = props => {
<Input placeholder="请配置视图参数" /> <Input placeholder="请配置视图参数" />
</Form.Item> </Form.Item>
<Form.Item label="反馈类型" name="FeedbackName"> <Form.Item label="反馈类型" name="FeedbackName">
<Select placeholder="请选择反馈类型"> <Select placeholder="请选择反馈类型" allowClear>
{backType.map(item => ( {backType.map(item => (
<Option value={item.value} key={item.value}> <Option value={item.value} key={item.value}>
{item.value} {item.value}
......
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