Commit 821ffaff authored by 田翔's avatar 田翔

fix: 计算规则配置后强行只读

parent 044eaad7
{ {
"name": "panda-xform", "name": "panda-xform",
"version": "2.5.3", "version": "2.5.4",
"description": "2.5.3: 人员选择器分组形态存储ID回显问题", "description": "2.5.4: 计算规则配置后强行只读",
"keywords": [ "keywords": [
"panda-xform" "panda-xform"
], ],
......
This diff is collapsed.
...@@ -101,6 +101,8 @@ const XRender = (props, ref) => { ...@@ -101,6 +101,8 @@ const XRender = (props, ref) => {
mapping={{ mapping={{
object: 'Header', object: 'Header',
}} }}
// scrollToFirstError
// removeHiddenData={false}
widgets={widgets} widgets={widgets}
watch={watch} watch={watch}
onMount={onMount} onMount={onMount}
......
...@@ -338,7 +338,7 @@ const RelationForm = (props) => { ...@@ -338,7 +338,7 @@ const RelationForm = (props) => {
const addClick = () => { const addClick = () => {
if (!localForm.length) { if (!localForm.length) {
return message.error('配置出错!') return message.info('台账添加字段未配置!')
} }
if (addons) { if (addons) {
if (JSON.stringify(schemaGroup) === '{}') { if (JSON.stringify(schemaGroup) === '{}') {
......
...@@ -20,7 +20,7 @@ const fnList = [ ...@@ -20,7 +20,7 @@ const fnList = [
const CalculateRule = (props) => { const CalculateRule = (props) => {
const { value, onChange, addons } = props const { value, onChange, addons } = props
const { tableNameParent } = addons.formData const { tableNameParent, widget } = addons.formData
const [visible, setVisible] = useState(false) const [visible, setVisible] = useState(false)
const [fieldList, setFieldList] = useState([]) const [fieldList, setFieldList] = useState([])
const [rule, setRule] = useState([]) const [rule, setRule] = useState([])
...@@ -77,9 +77,16 @@ const CalculateRule = (props) => { ...@@ -77,9 +77,16 @@ const CalculateRule = (props) => {
addons.setValue('rules', data) addons.setValue('rules', data)
setVisible(false) setVisible(false)
onChange(rule) onChange(rule)
if (widget === 'NumberInput') {
addons.setValue('disabled', true)
}
} else { } else {
message.error(msg) message.error(msg)
} }
} else {
addons.setValue('rules', [])
setVisible(false)
onChange(rule)
} }
} }
......
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