Commit ad36ad47 authored by 周宏民's avatar 周宏民

feat: 辅助视图添加 公文预览

parent 64e59090
Pipeline #91474 passed with stages
...@@ -28,8 +28,14 @@ const WebPages = [ ...@@ -28,8 +28,14 @@ const WebPages = [
value: 'XGWorkOrderView', value: 'XGWorkOrderView',
type: '专用', type: '专用',
color: 'purple', color: 'purple',
} },
] {
lable: 'OfficialDocumentView:公文预览',
value: 'OfficialDocumentView',
type: '专用',
color: 'purple',
},
];
const { Option } = Select; const { Option } = Select;
const AddView = props => { const AddView = props => {
...@@ -118,18 +124,14 @@ const AddView = props => { ...@@ -118,18 +124,14 @@ const AddView = props => {
</Form.Item> </Form.Item>
<Form.Item label="前端视图" name="WebPage"> <Form.Item label="前端视图" name="WebPage">
<Select placeholder="请输入前端视图" showSearch optionLabelProp="label"> <Select placeholder="请输入前端视图" showSearch optionLabelProp="label">
{ {WebPages.map(v => (
WebPages.map(v => { <Option value={v.value} label={v.value}>
return ( <div style={{ marginRight: '6px' }}>
<Option value={v.value} label={v.value}> <Tag color={v.color}>{v.type}</Tag>
<div style={{ marginRight: '6px' }}> {v.lable}
<Tag color={v.color}>{v.type}</Tag> </div>
{v.lable} </Option>
</div> ))}
</Option>
)
})
}
</Select> </Select>
</Form.Item> </Form.Item>
<Form.Item <Form.Item
...@@ -165,18 +167,14 @@ const AddView = props => { ...@@ -165,18 +167,14 @@ const AddView = props => {
</Form.Item> </Form.Item>
<Form.Item label="手持视图" name="MobilePage"> <Form.Item label="手持视图" name="MobilePage">
<Select placeholder="请输入手持视图" showSearch optionLabelProp="label"> <Select placeholder="请输入手持视图" showSearch optionLabelProp="label">
{ {WebPages.map(v => (
WebPages.map(v => { <Option value={v.value} label={v.value}>
return ( <div style={{ marginRight: '6px' }}>
<Option value={v.value} label={v.value}> <Tag color={v.color}>{v.type}</Tag>
<div style={{ marginRight: '6px' }}> {v.lable}
<Tag color={v.color}>{v.type}</Tag> </div>
{v.lable} </Option>
</div> ))}
</Option>
)
})
}
</Select> </Select>
</Form.Item> </Form.Item>
<Form.Item <Form.Item
......
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