Commit 99a88ca8 authored by zhengke's avatar zhengke

匹配数据

parent 52c7e804
...@@ -3,8 +3,7 @@ ...@@ -3,8 +3,7 @@
<el-input <el-input
v-model="keywords" placeholder="输入关键词检索" v-model="keywords" placeholder="输入关键词检索"
class="input-with-select q-pb-md" clearable class="input-with-select q-pb-md" clearable
@input="SearchCloudInfo" @input="SearchCloudInfo">
>
<template #prefix> <template #prefix>
<IconSearch class="cusor-pointer" @click.stop="searchData"></IconSearch> <IconSearch class="cusor-pointer" @click.stop="searchData"></IconSearch>
</template> </template>
...@@ -85,7 +84,7 @@ ...@@ -85,7 +84,7 @@
const SearchCloudInfo = () => { const SearchCloudInfo = () => {
if(keywords.value){ if(keywords.value){
dataList.value = dataListAll.value.filter(x=>{ dataList.value = dataListAll.value.filter(x=>{
return x.Name .toLowerCase().includes(keywords.value.toLowerCase()) return x.Name.toLowerCase().includes(keywords.value.toLowerCase())
}) })
}else dataList.value = dataListAll.value }else dataList.value = dataListAll.value
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment