From ec9efe8b402ae2d96e3a4def9dc32e960ccb91c5 Mon Sep 17 00:00:00 2001 From: zhangzhen <525765282@qq.com> Date: Fri, 6 Jun 2025 11:52:02 +0800 Subject: [PATCH] 优化下拉表格功能; --- src/components/Common/CommonComponent/index.js | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/src/components/Common/CommonComponent/index.js b/src/components/Common/CommonComponent/index.js index 8e9c8ae..165c71b 100644 --- a/src/components/Common/CommonComponent/index.js +++ b/src/components/Common/CommonComponent/index.js @@ -245,7 +245,16 @@ export default class CommonComponent extends Component { if (this.onExecInstructSet('blur')) return; this.isDropdownFilter = false; - if (this.state.searchValue !== '' && this.props.showConfig.sDropDownType === 'sql' && commonUtils.isEmptyArr(this.props.showConfig.dropDownData)) { + if (commonUtils.isNotEmptyStr(this.props.showConfig.sTableTitleSql) && this.props.showConfig.iVisCount > 1) { + this.setState({ + searchPageNum: 1, + searchTotalPageCount: 1, + searchDropDownData: [], + searchValue: '', + spinState: false, + sActiveDisplay: true, + }); + } else if (this.state.searchValue !== '' && this.props.showConfig.sDropDownType === 'sql' && commonUtils.isEmptyArr(this.props.showConfig.dropDownData)) { if (!this.props.showConfig.bCanInput) { this.handleSelectOptionEvent(''); } -- libgit2 0.22.2