diff --git a/atune/web/src/api/atune.ts b/atune/web/src/api/atune.ts index 286fc9eee56c7cacebd06bdd9b0c11e0be262627..ba885ed044654469bb777aa6190e3de74969ae56 100644 --- a/atune/web/src/api/atune.ts +++ b/atune/web/src/api/atune.ts @@ -43,3 +43,12 @@ export function deleteTune(data: object) { data, }); } + +// 高级搜索模板列表分页 +export function searchTune(data: object) { + return request({ + url: '/plugin/atune/search', + method: 'get', + params: data, + }); +} diff --git a/atune/web/src/components/atuneList.vue b/atune/web/src/components/atuneList.vue index 8bf249ec13ba8af8cd41296fd14c51f289a03e03..109c6590bd38153f7ed5b60c9ddb22482fb55490 100644 --- a/atune/web/src/components/atuneList.vue +++ b/atune/web/src/components/atuneList.vue @@ -16,8 +16,8 @@ diff --git a/atune/web/src/views/Home.vue b/atune/web/src/views/Home.vue index f6da6abd6fe346d1b8e61b7da5efbdb9b49c0934..506438d4f635f71096ffa0ae5560f9c26e10eb05 100644 --- a/atune/web/src/views/Home.vue +++ b/atune/web/src/views/Home.vue @@ -12,13 +12,15 @@

调优模板

- - 搜索 + + 搜索 删除
- + +
@@ -38,6 +40,8 @@ import atuneTemplete from '@/components/atuneTemplete.vue' const atuneTree = ref([]); const selectedNodeData = ref(""); +const searchTuneName = ref("") +const searchTune = ref(false) const showDialog = ref(false); const selectedRows = ref([] as Atune[]) const refreshData = ref(false); @@ -61,9 +65,16 @@ const handleSelectionChange = (selected_Rows: any) => { selectedRows.value = selected_Rows; } +// 刷新 const handleDataUpdated = () => { refreshData.value = !refreshData.value; }; + +// 搜索 +const handleSearch = () => { + searchTune.value = !searchTune.value; +}; + // 删除 const handleDelete = () => { ElMessageBox.confirm('确定要删除吗?', '提示', {