From 2835a795b4b8c78ab2405f9d53192a5db4d28580 Mon Sep 17 00:00:00 2001 From: limingtao <@ming_tao_li> Date: Wed, 24 Jul 2024 15:19:40 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8E=92=E6=9F=A5=E6=90=9C=E7=B4=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- components/no-data.vue | 5 +- pages/investigation/index.vue | 105 +++++++++++++++++++++------------- 2 files changed, 67 insertions(+), 43 deletions(-) diff --git a/components/no-data.vue b/components/no-data.vue index 762447a..b3cc468 100644 --- a/components/no-data.vue +++ b/components/no-data.vue @@ -51,8 +51,9 @@ export default { diff --git a/pages/investigation/index.vue b/pages/investigation/index.vue index e28c99f..169faa9 100644 --- a/pages/investigation/index.vue +++ b/pages/investigation/index.vue @@ -11,19 +11,28 @@ - - - 待办 - {{ totalData.UnderInvestigation }} + + + - - - 已完成 - {{ totalData.InGovernance }} + + + + 待办 + {{ totalData.UnderInvestigation }} + + + + 已完成 + {{ totalData.InGovernance }} + + + @@ -81,6 +90,7 @@ Unconfirmed: 0, }, status: '10', + search: '' } }, @@ -92,13 +102,12 @@ onShow() { this.getData() let pageStatus = this.$.getData('pageStatus') - console.log(pageStatus) - if(pageStatus == 1){ + if (pageStatus == 1) { this.handleTabClick(1) - this.$.setData('pageStatus','0') - } else if(pageStatus == 3) { + this.$.setData('pageStatus', '0') + } else if (pageStatus == 3) { this.handleTabClick(3) - this.$.setData('pageStatus','0') + this.$.setData('pageStatus', '0') } else { this.handleTabClick(1) } @@ -120,9 +129,9 @@ case 1: this.status = '10'; break; - // case 2: - // this.status = '20'; - // break; + // case 2: + // this.status = '20'; + // break; case 3: this.status = '20'; break; @@ -144,14 +153,20 @@ } }) }, + searchData() { + this.page = 1; + this.list = [] + this.getList() + }, getList() { let datas = { nuserid: this.$.getData('token'), status: this.status, + } this.loadmorestatus = 'loading' 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 => { this.loadmorestatus = 'loadmore' uni.stopPullDownRefresh(); @@ -176,7 +191,7 @@ }, handleClick(row) { console.log(row) - if(this.tab === 1) { + if (this.tab === 1) { this.$.open('/pages/map/index?businessId=' + row.businessId) } }, @@ -185,7 +200,7 @@ // this.$.open(even) }, }, - onReady() {}, + onReady() { }, // 页面卸载 onUnload() { @@ -272,12 +287,10 @@ background-color: #E68A0B; } - .tab { - display: flex; - align-items: center; - justify-content: space-around; + .query-form { + font-size: 16px; - height: 44px; + height: 91px; background: #ffffff; box-shadow: 3px 0px 10px #ccc; color: #666666; @@ -286,26 +299,36 @@ top: calc(var(--status-bar-height) + 88rpx); z-index: 10; - .tab-item { - position: relative; - height: 41px; - line-height: 41px; - padding: 0 30rpx 0 30rpx; - border-bottom: 3px solid #fff; + .tab { display: flex; align-items: center; + justify-content: space-around; - &.active { - color: rgb(60, 109, 195); - border-color: rgb(60, 109, 195); - } + .tab-item { + position: relative; + height: 41px; + line-height: 41px; + padding: 0 30rpx 0 30rpx; + border-bottom: 3px solid #fff; + display: flex; + align-items: center; + + &.active { + color: rgb(60, 109, 195); + border-color: rgb(60, 109, 195); + } - .number { - font-weight: bold; - font-size: 18px; - margin-left: 10rpx; + .number { + font-weight: bold; + font-size: 18px; + margin-left: 10rpx; + } } } + + .search-box { + padding: 10px 10px 3px; + } } .Box {