Commit 412fc2ea authored by 田翔's avatar 田翔

fix: 优化

parent 68d1ac7b
Pipeline #85089 failed with stages
...@@ -3,6 +3,28 @@ import React, { useEffect, useState } from 'react'; ...@@ -3,6 +3,28 @@ import React, { useEffect, useState } from 'react';
import { Form, Modal, Input, message, Button, Select, Tag } from 'antd'; import { Form, Modal, Input, message, Button, Select, Tag } from 'antd';
import ParmarModal from '../../../../workFlow/flowNode/flowNodeComponents/auxiliaryComponents/ParmarModal'; import ParmarModal from '../../../../workFlow/flowNode/flowNodeComponents/auxiliaryComponents/ParmarModal';
import MobileParmarModal from '../../../../workFlow/flowNode/flowNodeComponents/auxiliaryComponents/ParmarModal'; import MobileParmarModal from '../../../../workFlow/flowNode/flowNodeComponents/auxiliaryComponents/ParmarModal';
const WebPages = [
{
lable: 'FeedbackAccount:工单反馈标准视图',
value: 'FeedbackAccount',
type: '标准',
color: 'blue',
},
{
lable: 'GisGatherProjectView:管网采集辅助视图',
value: 'GisGatherProjectView',
type: '专用',
color: 'purple',
},
{
lable: 'CRMProductDetailView:CRM产品调拨辅助视图',
value: 'CRMProductDetailView',
type: '专用',
color: 'purple',
}
]
const { Option } = Select; const { Option } = Select;
const AddView = props => { const AddView = props => {
const { onSubumit, handleCancel, visible, msg, flowNodeId, modalType, title } = props; const { onSubumit, handleCancel, visible, msg, flowNodeId, modalType, title } = props;
...@@ -71,6 +93,7 @@ const AddView = props => { ...@@ -71,6 +93,7 @@ const AddView = props => {
return ( return (
<Modal <Modal
title="流程节点辅助视图配置" title="流程节点辅助视图配置"
width={600}
visible={visible} visible={visible}
onOk={onFinish} onOk={onFinish}
onCancel={handleCancel} onCancel={handleCancel}
...@@ -84,26 +107,23 @@ const AddView = props => { ...@@ -84,26 +107,23 @@ const AddView = props => {
initialValues={{ remember: true }} initialValues={{ remember: true }}
onFieldsChange={changeValue} onFieldsChange={changeValue}
> >
{/* <Form.Item label="流程节点" name="FlowName">
<Input disabled />
</Form.Item> */}
<Form.Item label="前端标签" name="WebLabel"> <Form.Item label="前端标签" name="WebLabel">
<Input placeholder="请输入前端标签" /> <Input placeholder="请输入前端标签" />
</Form.Item> </Form.Item>
<Form.Item label="前端视图" name="WebPage"> <Form.Item label="前端视图" name="WebPage">
<Select placeholder="请输入前端视图" showSearch optionLabelProp="label"> <Select placeholder="请输入前端视图" showSearch optionLabelProp="label">
<Option value="FeedbackAccount" label="FeedbackAccount"> {
<div style={{ marginRight: '6px' }}> WebPages.map(v => {
<Tag color="blue">标准</Tag> return (
FeedbackAccount:工单反馈标准视图 <Option value={v.value} label={v.value}>
</div> <div style={{ marginRight: '6px' }}>
</Option> <Tag color={v.color}>{v.type}</Tag>
<Option value="GisGatherProjectView" label="GisGatherProjectView"> {v.lable}
<div style={{ marginRight: '6px' }}> </div>
<Tag color="purple">专用</Tag> </Option>
GisGatherProjectView:管网采集辅助视图 )
</div> })
</Option> }
</Select> </Select>
</Form.Item> </Form.Item>
<Form.Item <Form.Item
...@@ -138,20 +158,19 @@ const AddView = props => { ...@@ -138,20 +158,19 @@ const AddView = props => {
<Input placeholder="请输入手持标签" /> <Input placeholder="请输入手持标签" />
</Form.Item> </Form.Item>
<Form.Item label="手持视图" name="MobilePage"> <Form.Item label="手持视图" name="MobilePage">
{/* <Input placeholder="请输入手持视图" /> */}
<Select placeholder="请输入手持视图" showSearch optionLabelProp="label"> <Select placeholder="请输入手持视图" showSearch optionLabelProp="label">
<Option value="FeedbackAccount" label="FeedbackAccount"> {
<div style={{ marginRight: '6px' }}> WebPages.map(v => {
<Tag color="blue">标准</Tag> return (
FeedbackAccount:工单反馈标准视图 <Option value={v.value} label={v.value}>
</div> <div style={{ marginRight: '6px' }}>
</Option> <Tag color={v.color}>{v.type}</Tag>
<Option value="GisGatherProjectView" label="GisGatherProjectView"> {v.lable}
<div style={{ marginRight: '6px' }}> </div>
<Tag color="purple">专用</Tag> </Option>
GisGatherProjectView:管网采集辅助视图 )
</div> })
</Option> }
</Select> </Select>
</Form.Item> </Form.Item>
{/* <Form.Item label="手持参数" name="MobileParam"> {/* <Form.Item label="手持参数" name="MobileParam">
......
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