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

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

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