fix: 排序导致条件丢失

This commit is contained in:
meilin.huang
2023-11-29 20:13:29 +08:00
parent e221c2f42e
commit 070c8ac0da
2 changed files with 10 additions and 2 deletions

View File

@@ -106,6 +106,11 @@
</el-auto-resizer>
<el-dialog @close="state.genTxtDialog.visible = false" v-model="state.genTxtDialog.visible" :title="state.genTxtDialog.title" width="1000px">
<template #header>
<div class="mr15" style="display: flex; justify-content: flex-end">
<el-button id="copyValue" @click="copyGenTxt(state.genTxtDialog.txt)" icon="CopyDocument" type="success" size="small">一键复制</el-button>
</div>
</template>
<el-input v-model="state.genTxtDialog.txt" type="textarea" rows="20" />
</el-dialog>
@@ -530,6 +535,11 @@ const onGenerateJson = async () => {
state.genTxtDialog.visible = true;
};
const copyGenTxt = async (txt: string) => {
await copyToClipboard(txt);
state.genTxtDialog.visible = false;
};
/**
* 导出当前页数据
*/

View File

@@ -311,8 +311,6 @@ const handlerWindowClick = () => {
};
const onRefresh = async () => {
// 查询条件置空
state.condition = '';
state.pageNum = 1;
await selectData();
};