mirror of
https://gitee.com/dromara/mayfly-go
synced 2025-11-02 15:30:25 +08:00
fix: 排序导致条件丢失
This commit is contained in:
@@ -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;
|
||||
};
|
||||
|
||||
/**
|
||||
* 导出当前页数据
|
||||
*/
|
||||
|
||||
@@ -311,8 +311,6 @@ const handlerWindowClick = () => {
|
||||
};
|
||||
|
||||
const onRefresh = async () => {
|
||||
// 查询条件置空
|
||||
state.condition = '';
|
||||
state.pageNum = 1;
|
||||
await selectData();
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user