设备添加搜索功能

This commit is contained in:
xiaofajia 2024-12-14 16:22:19 +08:00
parent f4a03ab1ba
commit 66064942ff
2 changed files with 36 additions and 2 deletions

View File

@ -15,7 +15,7 @@
<view class="searchContent">
<view class="t-input">
<uni-icons type="search" color="#BCBCBC" size="22"></uni-icons>
<input type="text" v-model="fileName" placeholder="请输入手机号.....">
<input type="text" v-model="fileName" placeholder="请输入文件名称.....">
</view>
<view class="sou" @click="getlist()">搜索</view>
</view>

View File

@ -12,6 +12,14 @@
<view class="t-you"></view>
</view>
<view class="searchContent">
<view class="t-input">
<uni-icons type="search" color="#BCBCBC" size="22"></uni-icons>
<input type="text" v-model="equName" placeholder="请输入设备名称.....">
</view>
<view class="sou" @click="getlistindex()">搜索</view>
</view>
<view class="cont">
<view @click="goadd('add')" style="width: 100%; display: flex; justify-content: center;background:white; margin: 10px 0px; box-sizing: border-box; padding: 10px;font-weight: bold;border-radius: 8px;">
@ -80,6 +88,7 @@ import code from '../../uni_modules/uview-ui/libs/config/props/code';
pageSize: 20,//
totalPages: 0,//
deleteid:'',
equName: null
}
},
@ -144,7 +153,8 @@ import code from '../../uni_modules/uview-ui/libs/config/props/code';
data: {
partnerId:this.partnerId,
pageSize:this.pageSize,
pageNum:this.pageNum
pageNum:this.pageNum,
equName: this.equName
}
})
// this.arrlist = res.rows
@ -421,4 +431,28 @@ import code from '../../uni_modules/uview-ui/libs/config/props/code';
.box-left{
margin-right: 10px;
}
.t-input{
width: 75%;
height: 36px;
background: #F0F0F0;
border-radius: 50px;
box-sizing: border-box;
padding: 0 15px;
display: flex;
align-items: center;
}
.sou{
width: 10%;
margin-left: 5px;
display: flex;
justify-content: center;
align-items: center;
}
.searchContent{
display: flex;
justify-content: center;
}
</style>