From 5c8860f3cd8921e7eb0da7749628e9dc669b3203 Mon Sep 17 00:00:00 2001 From: king <18310653075@163.com> Date: 星期二, 17 三月 2020 10:19:16 +0800 Subject: [PATCH] 2020-03-17 --- src/templates/ushare/modalform/index.jsx | 22 +++++++++++----------- 1 files changed, 11 insertions(+), 11 deletions(-) diff --git a/src/templates/ushare/modalform/index.jsx b/src/templates/ushare/modalform/index.jsx index 993b39d..cc3aad0 100644 --- a/src/templates/ushare/modalform/index.jsx +++ b/src/templates/ushare/modalform/index.jsx @@ -54,16 +54,16 @@ } }) - let _options = ['label', 'field', 'initval', 'type', 'readonly', 'required', 'hidden', 'readin'] // 榛樿鏄剧ず椤� + let _options = ['label', 'field', 'initval', 'type', 'readonly', 'required', 'hidden', 'readin', 'blacklist'] // 榛樿鏄剧ず椤� if ((type === 'multiselect' || type === 'select' || type === 'link') && resourceType === '0') { // 閫夋嫨绫诲瀷銆佽嚜瀹氫箟璧勬簮 _options = [..._options, 'resourceType', 'options', 'quick'] } else if ((type === 'multiselect' || type === 'select' || type === 'link') && resourceType === '1') { // 閫夋嫨绫诲瀷銆佹暟鎹簮 _options = [..._options, 'resourceType', 'dataSource', 'valueField', 'valueText', 'orderBy', 'orderType', 'database'] } else if (type === 'number') { - _options = ['label', 'field', 'initval', 'type', 'readonly', 'hidden', 'decimal', 'min', 'max', 'readin'] + _options = ['label', 'field', 'initval', 'type', 'readonly', 'hidden', 'decimal', 'min', 'max', 'readin', 'blacklist'] } else if (type === 'fileupload') { - _options = ['label', 'field', 'type', 'readonly', 'required', 'readin', 'fieldlength'] + _options = ['label', 'field', 'type', 'readonly', 'required', 'readin', 'fieldlength', 'blacklist'] } else if (type === 'textarea') { _options = [..._options, 'fieldlength', 'maxRows'] } else if (type === 'text') { @@ -77,9 +77,9 @@ } else if (type === 'link') { // 鍏宠仈绫诲瀷銆佸鍔犲叧鑱斿瓧娈� _options = [..._options, 'setAll', 'linkField'] } else if (type === 'funcvar') { // 璁剧疆涓哄嚱鏁板彉閲忔椂锛屼笉闇�瑕佸叾浠栦俊鎭� - _options = ['label', 'field', 'type'] + _options = ['label', 'field', 'type', 'blacklist'] } else if (type === 'linkMain') { - _options = ['label', 'field', 'type', 'readonly', 'required', 'hidden', 'fieldlength'] + _options = ['label', 'field', 'type', 'readonly', 'required', 'hidden', 'fieldlength', 'blacklist'] } if (type !== 'funcvar' && type !== 'linkMain') { @@ -134,16 +134,16 @@ openTypeChange = (key, value) => { if (key === 'type') { - let _options = ['label', 'field', 'initval', 'type', 'readonly', 'required', 'hidden', 'readin'] + let _options = ['label', 'field', 'initval', 'type', 'readonly', 'required', 'hidden', 'readin', 'blacklist'] if ((value === 'multiselect' || value === 'select' || value === 'link') && this.state.resourceType === '0') { // 閫夋嫨绫诲瀷銆佽嚜瀹氫箟璧勬簮 _options = [..._options, 'resourceType', 'options', 'quick'] } else if ((value === 'multiselect' || value === 'select' || value === 'link') && this.state.resourceType === '1') { // 閫夋嫨绫诲瀷銆佹暟鎹簮 _options = [..._options, 'resourceType', 'dataSource', 'valueField', 'valueText', 'orderBy', 'orderType', 'database'] } else if (value === 'number') { - _options = ['label', 'field', 'initval', 'type', 'readonly', 'hidden', 'decimal', 'min', 'max', 'readin'] + _options = ['label', 'field', 'initval', 'type', 'readonly', 'hidden', 'decimal', 'min', 'max', 'readin', 'blacklist'] } else if (value === 'fileupload') { - _options = ['label', 'field', 'type', 'readonly', 'required', 'readin', 'fieldlength'] + _options = ['label', 'field', 'type', 'readonly', 'required', 'readin', 'fieldlength', 'blacklist'] } else if (value === 'textarea') { _options = [..._options, 'fieldlength', 'maxRows'] } else if (value === 'text') { @@ -157,9 +157,9 @@ } else if (value === 'link') { _options = [..._options, 'setAll', 'linkField'] } else if (value === 'funcvar') { - _options = ['label', 'field', 'type'] + _options = ['label', 'field', 'type', 'blacklist'] } else if (value === 'linkMain') { - _options = ['label', 'field', 'type', 'readonly', 'required', 'hidden', 'fieldlength'] + _options = ['label', 'field', 'type', 'readonly', 'required', 'hidden', 'fieldlength', 'blacklist'] } if (value !== 'funcvar' && value !== 'linkMain') { @@ -267,7 +267,7 @@ const { openType } = this.state let value = e.target.value if (key === 'resourceType') { - let _options = ['label', 'field', 'initval', 'type', 'resourceType', 'readonly', 'required', 'hidden', 'readin'] + let _options = ['label', 'field', 'initval', 'type', 'resourceType', 'readonly', 'required', 'hidden', 'readin', 'blacklist'] if (value === '0') { _options = [..._options, 'options', 'quick'] } else if (value === '1') { -- Gitblit v1.8.0