Commit b0e9f174 authored by 田翔's avatar 田翔

fix: 关联表单属性调整

parent 83f88930
{ {
"name": "panda-xform", "name": "panda-xform",
"version": "2.2.6", "version": "2.2.7",
"description": "2.2.6: 逻辑调整", "description": "2.2.7: 关联表单属性调整",
"keywords": [ "keywords": [
"panda-xform" "panda-xform"
], ],
......
...@@ -2816,7 +2816,7 @@ const advancedWidgets = [ ...@@ -2816,7 +2816,7 @@ const advancedWidgets = [
type: 'object', type: 'object',
properties: {} properties: {}
}, },
accountName: { '台账名称': {
title: '台账名称', title: '台账名称',
type: 'string', type: 'string',
widget: 'AccountName', widget: 'AccountName',
...@@ -2824,7 +2824,7 @@ const advancedWidgets = [ ...@@ -2824,7 +2824,7 @@ const advancedWidgets = [
labelWidth: 80, labelWidth: 80,
required: true required: true
}, },
mappedField: { '映射字段': {
title: '映射字段', title: '映射字段',
type: 'array', type: 'array',
widget: 'MappedField', widget: 'MappedField',
...@@ -2834,7 +2834,7 @@ const advancedWidgets = [ ...@@ -2834,7 +2834,7 @@ const advancedWidgets = [
default: [], default: [],
dependencies: ['accountName'], dependencies: ['accountName'],
}, },
defaultShow: { '默认显示': {
title: '默认显示', title: '默认显示',
type: 'boolean', type: 'boolean',
widget: 'BooleanSwitch', widget: 'BooleanSwitch',
...@@ -2842,7 +2842,7 @@ const advancedWidgets = [ ...@@ -2842,7 +2842,7 @@ const advancedWidgets = [
displayType: 'row', displayType: 'row',
labelWidth: 80, labelWidth: 80,
}, },
controlShow: { '控制规则': {
title: '控制规则', title: '控制规则',
type: 'string', type: 'string',
displayType: 'row', displayType: 'row',
......
...@@ -125,12 +125,12 @@ export const getWatch = (schema, form, startTime) => { ...@@ -125,12 +125,12 @@ export const getWatch = (schema, form, startTime) => {
let watch = {} let watch = {}
let { relationForm } = form?.getValues() let { relationForm } = form?.getValues()
const configs = relationForm?.configs || [] const configs = relationForm?.configs || []
if (Array.isArray(configs)) { // if (Array.isArray(configs)) {
configs.forEach(v => { // configs.forEach(v => {
v['台账名称'] = v.accountName // v['台账名称'] = v.accountName
v['映射字段'] = v.mappedField // v['映射字段'] = v.mappedField
}) // })
} // }
const AutoCalculate = getRules(schema) const AutoCalculate = getRules(schema)
if (Array.isArray(AutoCalculate)) { if (Array.isArray(AutoCalculate)) {
AutoCalculate.forEach(item => { AutoCalculate.forEach(item => {
......
...@@ -39,7 +39,7 @@ const RelationForm = (props) => { ...@@ -39,7 +39,7 @@ const RelationForm = (props) => {
const codes = window?.pandaXform?.codes || {} const codes = window?.pandaXform?.codes || {}
const { value, onChange, schema, addons } = props const { value, onChange, schema, addons } = props
const { disabled, accountName, defaultShow, controlShow, titleShow, mappedField } = schema const { disabled, '台账名称': accountName, '默认显示': defaultShow, '控制规则': controlShow, titleShow, '映射字段': mappedField } = schema
const [config, setConfig] = useState({ webShowFieldGroup: '', fieldGroup: '' }) const [config, setConfig] = useState({ webShowFieldGroup: '', fieldGroup: '' })
const [dataSource, setDataSource] = useState([]) const [dataSource, setDataSource] = useState([])
const [groupMeta, setGroupMeta] = useState([]) const [groupMeta, setGroupMeta] = useState([])
......
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