From 862b6cf69dc925a6138a7ebf79b782a5d7791202 Mon Sep 17 00:00:00 2001 From: king <18310653075@163.com> Date: 星期五, 03 一月 2020 12:13:52 +0800 Subject: [PATCH] 2020-01-03 --- src/templates/modalconfig/modalform/index.jsx | 6 +++++- 1 files changed, 5 insertions(+), 1 deletions(-) diff --git a/src/templates/modalconfig/modalform/index.jsx b/src/templates/modalconfig/modalform/index.jsx index 6af5adc..90dcbc0 100644 --- a/src/templates/modalconfig/modalform/index.jsx +++ b/src/templates/modalconfig/modalform/index.jsx @@ -33,6 +33,8 @@ _options = [..._options, 'resourceType', 'dataSource', 'valueField', 'valueText', 'orderBy', 'orderType'] } else if (type === 'number') { _options = [..._options, 'decimal'] + } else if (type === 'fileupload') { + _options = ['label', 'field', 'type', 'readonly', 'required'] } if (type === 'select' || type === 'link') { @@ -83,6 +85,8 @@ _options = [..._options, 'resourceType', 'dataSource', 'valueField', 'valueText', 'orderBy', 'orderType'] } else if (value === 'number') { _options = [..._options, 'decimal'] + } else if (value === 'fileupload') { + _options = ['label', 'field', 'type', 'readonly', 'required'] } if (value === 'select' || value === 'link') { @@ -116,7 +120,7 @@ }, () => { this.setState({ formlist: this.state.formlist.map(form => { - if (form.key === 'initval') { + if (form.key === 'initval' && value !== 'fileupload') { form.hidden = false } return form -- Gitblit v1.8.0