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

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

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