fix: 连接池修复

This commit is contained in:
zongyangleo
2025-05-28 15:34:09 +08:00
parent bcaa4563ac
commit e273ade0b0
6 changed files with 99 additions and 21 deletions

View File

@@ -59,7 +59,6 @@ export default {
docJsonError: 'Document JSON Format Error',
sortParams: 'Sort',
otherParams: 'Other',
previewParams: 'Preview',
closeIndexConfirm: 'This operation will close index [{name}]. Do you want to continue?',
openIndexConfirm: 'This operation will open index [{name}]. Do you want to continue?',
clearCacheConfirm: 'This operation will clear index [{name}] cache. Do you want to continue?',

View File

@@ -58,7 +58,6 @@ export default {
docJsonError: '文档JSON格式错误',
sortParams: '排序',
otherParams: '其他',
previewParams: '预览',
closeIndexConfirm: '将会关闭索引:[{name}]。 确认继续吗?',
openIndexConfirm: '将会打开索引:[{name}]。 确认继续吗?',
clearCacheConfirm: '将会清除索引:[{name}]缓存。 确认继续吗?',

View File

@@ -116,7 +116,6 @@
<template #footer>
<div>
<el-button size="small" @click="onPreviewParam" icon="view">{{ t('es.previewParams') }}</el-button>
<el-button size="small" @click="onClearParam" icon="refresh">{{ t('common.reset') }}</el-button>
<!-- <el-button size="small" @click="onSaveParam" type="primary" icon="check">{{ t('common.save') }}</el-button>-->
@@ -472,7 +471,7 @@ const onSaveParam = () => {
// 保存查询条件
};
const onPreviewParam = () => {
const onSearch = () => {
parseParams();
MonacoEditorBox({
content: JSON.stringify(state.search, null, 2),
@@ -480,7 +479,10 @@ const onPreviewParam = () => {
language: 'json',
width: state.searchBoxWidth,
canChangeLang: false,
options: { wordWrap: 'on', tabSize: 2, readOnly: true }, // 自动换行
options: { wordWrap: 'on', tabSize: 2, readOnly: false }, // 自动换行
confirmFn: (val: string) => {
emit('search', JSON.parse(val));
},
});
};
@@ -572,11 +574,6 @@ const parseParams = () => {
delete state.search['minimum_should_match'];
}
};
const onSearch = () => {
parseParams();
emit('search', state.search);
};
</script>
<style lang="scss" scoped>