排查搜索

main
limingtao 11 months ago
parent 4f55cff1a7
commit 2835a795b4
  1. 5
      components/no-data.vue
  2. 37
      pages/investigation/index.vue

@ -51,8 +51,9 @@ export default {
<style scoped lang="scss"> <style scoped lang="scss">
.Img{ .Img{
width: 512rpx; width: 360rpx;
height: 440rpx; height: 300rpx;
margin: 0 auto; margin: 0 auto;
margin-bottom: 30rpx;
} }
</style> </style>

@ -11,7 +11,13 @@
</template> </template>
</top-title> </top-title>
</view> </view>
<view class="query-form">
<view class="search-box">
<u-search placeholder="请输入名称" v-model="search" actionText="" :showAction="false"
@search="searchData" @clear="searchData"></u-search>
</view>
<view class="tab"> <view class="tab">
<view class="tab-item" :class="tab === 1 ? 'active' : ''" @click='handleTabClick(1)'> <view class="tab-item" :class="tab === 1 ? 'active' : ''" @click='handleTabClick(1)'>
<text>待办</text> <text>待办</text>
<text v-if="showNumber" class="number">{{ totalData.UnderInvestigation }}</text> <text v-if="showNumber" class="number">{{ totalData.UnderInvestigation }}</text>
@ -25,6 +31,9 @@
<text class="number">{{ totalData.InGovernance }}</text> <text class="number">{{ totalData.InGovernance }}</text>
</view> </view>
</view> </view>
</view>
<view class="Content MarginAuto BorderBox"> <view class="Content MarginAuto BorderBox">
<no-data v-if="isEmpty" /> <no-data v-if="isEmpty" />
<view v-else class="List Width100 BorderBox"> <view v-else class="List Width100 BorderBox">
@ -81,6 +90,7 @@
Unconfirmed: 0, Unconfirmed: 0,
}, },
status: '10', status: '10',
search: ''
} }
}, },
@ -92,7 +102,6 @@
onShow() { onShow() {
this.getData() this.getData()
let pageStatus = this.$.getData('pageStatus') let pageStatus = this.$.getData('pageStatus')
console.log(pageStatus)
if (pageStatus == 1) { if (pageStatus == 1) {
this.handleTabClick(1) this.handleTabClick(1)
this.$.setData('pageStatus', '0') this.$.setData('pageStatus', '0')
@ -144,14 +153,20 @@
} }
}) })
}, },
searchData() {
this.page = 1;
this.list = []
this.getList()
},
getList() { getList() {
let datas = { let datas = {
nuserid: this.$.getData('token'), nuserid: this.$.getData('token'),
status: this.status, status: this.status,
} }
this.loadmorestatus = 'loading' this.loadmorestatus = 'loading'
this.$request.globalRequest( this.$request.globalRequest(
`/hiddenDanger/highDanger/getHigDangerDealt?pageNum=${this.page}&pageSize=${10}`, datas, 'POST') `/hiddenDanger/highDanger/getHigDangerDealt?pageNum=${this.page}&pageSize=${10}&search=${this.search}`, datas, 'POST')
.then(res => { .then(res => {
this.loadmorestatus = 'loadmore' this.loadmorestatus = 'loadmore'
uni.stopPullDownRefresh(); uni.stopPullDownRefresh();
@ -272,12 +287,10 @@
background-color: #E68A0B; background-color: #E68A0B;
} }
.tab { .query-form {
display: flex;
align-items: center;
justify-content: space-around;
font-size: 16px; font-size: 16px;
height: 44px; height: 91px;
background: #ffffff; background: #ffffff;
box-shadow: 3px 0px 10px #ccc; box-shadow: 3px 0px 10px #ccc;
color: #666666; color: #666666;
@ -286,6 +299,11 @@
top: calc(var(--status-bar-height) + 88rpx); top: calc(var(--status-bar-height) + 88rpx);
z-index: 10; z-index: 10;
.tab {
display: flex;
align-items: center;
justify-content: space-around;
.tab-item { .tab-item {
position: relative; position: relative;
height: 41px; height: 41px;
@ -308,6 +326,11 @@
} }
} }
.search-box {
padding: 10px 10px 3px;
}
}
.Box { .Box {
padding-top: var(--status-bar-height); padding-top: var(--status-bar-height);

Loading…
Cancel
Save