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

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

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