Commit c2d67f10 authored by 田翔's avatar 田翔

fix: 台账选择器增加SQL报错问题

parent 86eb56ab
{
"name": "panda-xform",
"version": "2.4.3",
"description": "2.4.3: 数值默认值问题",
"version": "2.4.4",
"description": "2.4.4: 台账选择器增加SQL报错问题",
"keywords": [
"panda-xform"
],
......
......@@ -146,6 +146,7 @@ const FormDesigner = (props, ref) => {
},
{
text: '提交',
type: 'primary',
onClick: async (value) => {
const errors = designerRef.current.getErrorFields()
if (errors.length) {
......
......@@ -84,7 +84,7 @@ const AccountSelector = (props) => {
setLoading(true)
let param = {
accountName: accountName,
condition: sql ? window.btoa(encodeURIComponent(condition)) : '',
condition: sql ? window.btoa(encodeURIComponent(sql)) : '',
sortFields: '录入时间',
queryWheres: queryWheres,
...params,
......
import React, { useState, useEffect, useMemo } from 'react'
import { Input } from 'antd'
const TextArea = ({ value, onChange, schema }) => {
const TextArea = (props) => {
const { value, onChange, schema, addons } = props
const { disabled, placeholder, presetValue, maxLength, rows } = schema
useEffect(() => {
onChange(presetValue)
if (addons) {
addons.setValueByPath(addons.dataPath, presetValue)
} else {
onChange(presetValue)
}
}, [presetValue])
const handleChange = (e) => {
onChange(e.target.value)
}
......
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