Commit e112ed28 authored by 田翔's avatar 田翔

fix: 处理站点优化

parent 01b97a89
{ {
"name": "panda-xform", "name": "panda-xform",
"version": "5.9.19", "version": "5.9.20",
"description": "5.9.19 增加参数", "description": "5.9.20 只读修改",
"keywords": [ "keywords": [
"panda-xform" "panda-xform"
], ],
......
...@@ -12,6 +12,7 @@ const ComboBox = (props) => { ...@@ -12,6 +12,7 @@ const ComboBox = (props) => {
const { const {
placeholder, placeholder,
disabled, disabled,
formDisabled,
sourceType, sourceType,
options, options,
dictionary, dictionary,
...@@ -120,7 +121,7 @@ const ComboBox = (props) => { ...@@ -120,7 +121,7 @@ const ComboBox = (props) => {
if (Array.isArray(data)) { if (Array.isArray(data)) {
let values = data.map(v => ({ stationID: v.stationID + '', stationName: v.stationName })) let values = data.map(v => ({ stationID: v.stationID + '', stationName: v.stationName }))
setSite(values) setSite(values)
if (!value && !presetValue && !disabled) { if (!value && !presetValue && !formDisabled) {
onChange(values[0][isStoreID ? 'stationID' : 'stationName']) onChange(values[0][isStoreID ? 'stationID' : 'stationName'])
} }
} else { } else {
......
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