From 324251864c504609fb1a08152340dd82aef6fa7e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=A4=9C=E7=AC=99=E6=AD=8C?= <2277317060@qq.com> Date: Tue, 14 Feb 2023 15:37:21 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E6=90=9C=E7=B4=A2=E6=8E=A5?= =?UTF-8?q?=E6=94=B6=E5=99=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ruoyi-ui/src/views/basecar/car/index.vue | 21 ++++++++++++++++++--- 1 file changed, 18 insertions(+), 3 deletions(-) diff --git a/ruoyi-ui/src/views/basecar/car/index.vue b/ruoyi-ui/src/views/basecar/car/index.vue index 5c1af2b..81ce12f 100644 --- a/ruoyi-ui/src/views/basecar/car/index.vue +++ b/ruoyi-ui/src/views/basecar/car/index.vue @@ -98,12 +98,13 @@ @pagination="getList" /> - - + + 搜索 + @@ -198,6 +199,10 @@ const total = ref(0); const title = ref(""); // 绑定接收器选择行 const bindValue = ref('') +// 搜索接收器 +const bindInput = ref('') +// 接收器筛选 +const bindList = ref([]) // 搜索参数 const queryParams = ref({ @@ -270,11 +275,20 @@ function handleSelectionChange(selection) { multiple.value = !selection.length; } +// 绑定接收器单选 const bindHandleSelectionChange = (selection) => { bindValue.value = selection console.log(bindValue.value) } +// 搜索接收器 +const bindSearch = () => { + console.log(bindInput.value) + listBaseCar(queryParams.value).then(response => { + bindList.value = response.rows; + }) +} + /** 新增按钮操作 */ function handleAdd() { reset(); @@ -303,6 +317,7 @@ function handleUpdate(row) { function handleBang(row) { // console.log(row.id) bangOpen.value = true; + bindSearch() } /** 提交按钮 */