From e71ff4ad956d89158c4e9d7c20a44ccd970de8be Mon Sep 17 00:00:00 2001 From: zhanghao <774378400@qq.com> Date: Mon, 13 Oct 2025 17:22:49 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E5=A2=9E=E5=8A=A0=E8=AF=AD=E6=96=99?= =?UTF-8?q?=E7=9A=84=E6=90=9C=E7=B4=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/vi/testProject/plan/setting.vue | 52 +++++++++++++++++------ 1 file changed, 40 insertions(+), 12 deletions(-) diff --git a/src/views/vi/testProject/plan/setting.vue b/src/views/vi/testProject/plan/setting.vue index ac2f05e..156f12f 100644 --- a/src/views/vi/testProject/plan/setting.vue +++ b/src/views/vi/testProject/plan/setting.vue @@ -22,6 +22,27 @@ + + + + + + 搜索 + 重置 + + { } }; +const queryParams = ref({ + pageNum: 1, + pageSize: 100000, + type: "TEST", + corpusName: '', + continuous: 1 +}) const getList = () => { if (props.type === "1") { - listCorpus({ - pageNum: 1, - pageSize: 100000, - type: "TEST", - continuous: 1, - }) + queryParams.value.continuous = 1 + listCorpus(queryParams.value) .then((response) => { corpusList.value = response.rows; }) .catch((err) => {}); } else { - getBatchCorpus({ - pageNum: 1, - pageSize: 100000, - type: "TEST", - continuous: 0, - }) + queryParams.value.continuous = 0 + getBatchCorpus(queryParams.value) .then((response) => { corpusList.value = response.rows; }) .catch((err) => {}); } }; + +const resetForm = () => { + queryParams.value.corpusName = '' + getList() +} + const tableRef = ref(); const submitForm = () => { const rows = tableRef.value.getSelectionRows(); selectList.value = rows; open.value = false; emits("updateSelectRows", rows); + resetForm() }; const cancel = () => { open.value = false; + resetForm() }; const getSelectList = (corpusIds) => {