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

fix: 优化

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