Commit 915168cf authored by 田翔's avatar 田翔

fix: 关联表单行数据修改触发与初始化触发自动计算

parent 740047df
{ {
"name": "panda-xform", "name": "panda-xform",
"version": "3.10.8", "version": "3.10.9",
"description": "3.10.8: 台账选择器形态交互优化", "description": "3.10.9: 关联表单行数据修改触发与初始化触发自动计算",
"keywords": [ "keywords": [
"panda-xform" "panda-xform"
], ],
......
...@@ -124,7 +124,7 @@ const getFieldName = (configs, tableName) => { ...@@ -124,7 +124,7 @@ const getFieldName = (configs, tableName) => {
} }
const formAutomatic = async (params) => { const formAutomatic = async (params) => {
if ((new Date().getTime() - params.startTime) < 2000) return // if ((new Date().getTime() - params.startTime) < 2000) return
let param = { let param = {
tableName: params.tableName, tableName: params.tableName,
filedFormulas: params.filedFormulas, filedFormulas: params.filedFormulas,
......
...@@ -263,7 +263,6 @@ const RelationForm = (props) => { ...@@ -263,7 +263,6 @@ const RelationForm = (props) => {
} }
const getTableData = async (addFieldGroup) => { const getTableData = async (addFieldGroup) => {
console.log('addFieldGroup', addFieldGroup)
if (!addons) return if (!addons) return
let queryWheres = getQueryWheres(addFieldGroup) let queryWheres = getQueryWheres(addFieldGroup)
if (!queryWheres.length) { if (!queryWheres.length) {
...@@ -319,9 +318,8 @@ const RelationForm = (props) => { ...@@ -319,9 +318,8 @@ const RelationForm = (props) => {
} }
setDataSource(array) setDataSource(array)
setTimeout(() => { setTimeout(() => {
onChange(`${array.length}`) onChange(value && value.includes(' ') ? `${array.length}` : `${array.length} `)
}, 0) }, 0)
} else if (formStateStr === '添加') { } else if (formStateStr === '添加') {
let array = [getItem(formValue), ...dataSource] let array = [getItem(formValue), ...dataSource]
setDataSource(array) setDataSource(array)
......
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