|
|
@@ -247,6 +247,7 @@
|
|
|
:filter="item.field_options.filter || []"
|
|
|
:filtrate="true"
|
|
|
:temp-search="true"
|
|
|
+ @selector-confirm="handleSelectorConfirm"
|
|
|
/>
|
|
|
<!--自定义对话框-->
|
|
|
<ibps-custom-dialog
|
|
|
@@ -271,6 +272,7 @@
|
|
|
:temp-search="true"
|
|
|
:previous-data-template="previousDataTemplate"
|
|
|
@close="handleRenderDialogClose"
|
|
|
+ @selector-confirm="handleSelectorConfirm"
|
|
|
/>
|
|
|
<!-- 关联数据-->
|
|
|
<ibps-link-data
|
|
|
@@ -457,8 +459,34 @@ export default {
|
|
|
methods: {
|
|
|
/**
|
|
|
* 处理回车
|
|
|
+ * 当在搜索表单中输入框中按回车键时触发查询
|
|
|
+ * 参考全局回车键功能,需要keyboardEnterForsearch配置为true时才启用
|
|
|
*/
|
|
|
handleEnter() {
|
|
|
+ // 检查是否启用键盘回车查询功能(通过t_ipcc的setting里的内容)
|
|
|
+ // 参考查询按钮回车键功能的实现
|
|
|
+ const keyboardEnterEnabled = this.setting?.system?.keyboardEnterForsearch === true
|
|
|
+
|
|
|
+ if (!keyboardEnterEnabled) {
|
|
|
+ return // 未启用键盘回车查询功能,直接返回
|
|
|
+ }
|
|
|
+
|
|
|
+ this.$emit('search')
|
|
|
+ },
|
|
|
+ /**
|
|
|
+ * 处理选择器确认事件
|
|
|
+ * 当选择器选择完成后触发查询
|
|
|
+ * 参考回车键功能,需要keyboardEnterForsearch配置为true时才启用
|
|
|
+ */
|
|
|
+ handleSelectorConfirm() {
|
|
|
+ // 检查是否启用键盘回车查询功能(通过t_ipcc的setting里的内容)
|
|
|
+ // 参考查询按钮回车键功能的实现
|
|
|
+ const keyboardEnterEnabled = this.setting?.system?.keyboardEnterForsearch === true
|
|
|
+
|
|
|
+ if (!keyboardEnterEnabled) {
|
|
|
+ return // 未启用键盘回车查询功能,直接返回
|
|
|
+ }
|
|
|
+
|
|
|
this.$emit('search')
|
|
|
},
|
|
|
isArray(value) {
|