Commit 0742a6bd authored by 田翔's avatar 田翔

fix: 关联表单增加流程名称映射

parent c533d441
{ {
"name": "panda-xform", "name": "panda-xform",
"version": "6.8.6", "version": "6.8.7",
"description": "6.8.6 调用初始化接口", "description": "6.8.7 关联表单增加流程名称映射",
"keywords": [ "keywords": [
"panda-xform" "panda-xform"
], ],
......
...@@ -428,32 +428,33 @@ const AreaTask = (props) => { ...@@ -428,32 +428,33 @@ const AreaTask = (props) => {
return ( return (
<div className={styles.AreaTask}> <div className={styles.AreaTask}>
<div className={styles.areaBox}> <div className={styles.areaBox}>
<div className={styles.areaHeader}> <div className={styles.areaHeader}> {titleShow} </div>
<div className={styles.areaTitle}>{titleShow}:</div> <div className={styles.areaInput}>
<div className={styles.areaInput}> <div style={{ width: '96px', textAlign: 'right' }}>
{ 绘制选择:
!disabled ?
<Input
disabled={disabled}
placeholder={disabled ? (placeholder || '') : (placeholder || '点击绘制区域')}
value={isJson(value) ? '已绘制' : (value ? '已选择' : '')}
addonAfter={disabled ? null : <CompassOutlined style={{ color: 'rgba(0, 0, 0, 0.25)' }} onClick={showMap} />}
style={{ width: '100%' }}
onClick={() => showMap()}
/>
:
<Button
icon={<CompassOutlined style={{ color: value ? '#0092fe' : 'rgba(0, 0, 0, 0.25)' }} />}
onClick={() => {
if (value) {
showMap()
}
}}
>
{value ? '查看区域' : '无区域信息'}
</Button>
}
</div> </div>
{
!disabled ?
<Input
disabled={disabled}
placeholder={disabled ? (placeholder || '') : (placeholder || '点击绘制区域')}
value={isJson(value) ? '已绘制' : (value ? '已选择' : '')}
addonAfter={disabled ? null : <CompassOutlined style={{ color: 'rgba(0, 0, 0, 0.25)' }} onClick={showMap} />}
style={{ flex: 1 }}
onClick={() => showMap()}
/>
:
<Button
icon={<CompassOutlined style={{ color: value ? '#0092fe' : 'rgba(0, 0, 0, 0.25)' }} />}
onClick={() => {
if (value) {
showMap()
}
}}
>
{value ? '查看区域' : '无区域信息'}
</Button>
}
</div> </div>
<div className={styles.areaTable}> <div className={styles.areaTable}>
<Table <Table
......
...@@ -8,19 +8,18 @@ ...@@ -8,19 +8,18 @@
width: 100%; width: 100%;
.areaHeader { .areaHeader {
text-align: center;
}
.areaInput {
width: 32.5%;
display: flex; display: flex;
align-items: center; align-items: center;
.areaTitle {
padding-right: 10px;
}
.areaInput {
flex: 1;
}
} }
.areaTable { .areaTable {
margin-top: 5px;
.@{ant-prefix}-table-thead>tr { .@{ant-prefix}-table-thead>tr {
height: 40px; height: 40px;
......
...@@ -96,15 +96,17 @@ const MappedField = (props) => { ...@@ -96,15 +96,17 @@ const MappedField = (props) => {
showCheckedStrategy showCheckedStrategy
> >
<TreeNode value='内置字段' title='内置字段' disabled> <TreeNode value='内置字段' title='内置字段' disabled>
{['工单编号', '事件编号'].map(s => <TreeNode value={s} title={s} key={s} />)} {['工单编号', '事件编号', '事件名称'].map(s => <TreeNode value={s} title={s} key={s} />)}
</TreeNode> </TreeNode>
<TreeNode value='附加字段' title='附加字段' disabled> <TreeNode value='附加字段' title='附加字段' disabled>
{fromField.map(s => { {
if (['工单编号', '事件编号'].includes(s.name)) { fromField.map(s => {
return null if (['工单编号', '事件编号'].includes(s.name)) {
} return null
return <TreeNode value={s.name} title={s.name} key={s.name} /> }
})} return <TreeNode value={s.name} title={s.name} key={s.name} />
})
}
</TreeNode> </TreeNode>
</TreeSelect> </TreeSelect>
</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