| | |
| | | } |
| | | }) |
| | | |
| | | let _options = modalTypeOptions[type] |
| | | let _options = JSON.parse(JSON.stringify(modalTypeOptions[type])) |
| | | |
| | | if ((type === 'multiselect' || type === 'select' || type === 'link') && resourceType === '0') { // 选择类型、自定义资源 |
| | | _options = [..._options, 'options', 'quick'] |
| | |
| | | |
| | | openTypeChange = (key, value) => { |
| | | if (key === 'type') { |
| | | let _options = modalTypeOptions[value] |
| | | let _options = JSON.parse(JSON.stringify(modalTypeOptions[value])) |
| | | |
| | | if ((value === 'multiselect' || value === 'select' || value === 'link') && this.state.resourceType === '0') { // 选择类型、自定义资源 |
| | | _options = [..._options, 'options', 'quick'] |
| | |
| | | const { openType } = this.state |
| | | let value = e.target.value |
| | | if (key === 'resourceType') { |
| | | let _options = modalTypeOptions[openType] |
| | | let _options = JSON.parse(JSON.stringify(modalTypeOptions[openType])) |
| | | |
| | | if (value === '0') { |
| | | _options = [..._options, 'options', 'quick'] |