Commit ec9efe8b402ae2d96e3a4def9dc32e960ccb91c5
1 parent
c97a2e98
优化下拉表格功能;
Showing
1 changed file
with
10 additions
and
1 deletions
src/components/Common/CommonComponent/index.js
| @@ -245,7 +245,16 @@ export default class CommonComponent extends Component { | @@ -245,7 +245,16 @@ export default class CommonComponent extends Component { | ||
| 245 | if (this.onExecInstructSet('blur')) return; | 245 | if (this.onExecInstructSet('blur')) return; |
| 246 | 246 | ||
| 247 | this.isDropdownFilter = false; | 247 | this.isDropdownFilter = false; |
| 248 | - if (this.state.searchValue !== '' && this.props.showConfig.sDropDownType === 'sql' && commonUtils.isEmptyArr(this.props.showConfig.dropDownData)) { | 248 | + if (commonUtils.isNotEmptyStr(this.props.showConfig.sTableTitleSql) && this.props.showConfig.iVisCount > 1) { |
| 249 | + this.setState({ | ||
| 250 | + searchPageNum: 1, | ||
| 251 | + searchTotalPageCount: 1, | ||
| 252 | + searchDropDownData: [], | ||
| 253 | + searchValue: '', | ||
| 254 | + spinState: false, | ||
| 255 | + sActiveDisplay: true, | ||
| 256 | + }); | ||
| 257 | + } else if (this.state.searchValue !== '' && this.props.showConfig.sDropDownType === 'sql' && commonUtils.isEmptyArr(this.props.showConfig.dropDownData)) { | ||
| 249 | if (!this.props.showConfig.bCanInput) { | 258 | if (!this.props.showConfig.bCanInput) { |
| 250 | this.handleSelectOptionEvent(''); | 259 | this.handleSelectOptionEvent(''); |
| 251 | } | 260 | } |