Commit b0e9f174 authored by 田翔's avatar 田翔

fix: 关联表单属性调整

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