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

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

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