Commit 676f177044eb2f7a74970c718260b628f293c8a7

Authored by 陈鑫涛
2 parents add84847 ec9efe8b

Merge branch 'main' of http://git.xlyprint.cn/zhangz/xlyUmi into main

src/components/Common/CommonComponent/index.js
... ... @@ -245,7 +245,16 @@ export default class CommonComponent extends Component {
245 245 if (this.onExecInstructSet('blur')) return;
246 246  
247 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 258 if (!this.props.showConfig.bCanInput) {
250 259 this.handleSelectOptionEvent('');
251 260 }
... ...