From 244d89b41c0e0e995d38f635a126a0959b9ba25b Mon Sep 17 00:00:00 2001 From: wjt <1797368093@qq.com> Date: 星期二, 25 六月 2024 18:16:42 +0800 Subject: [PATCH] 问题处理 --- policy/applyRecord/applyRecord.vue | 40 ++++++++++++++++++++++++++++------------ 1 files changed, 28 insertions(+), 12 deletions(-) diff --git a/policy/applyRecord/applyRecord.vue b/policy/applyRecord/applyRecord.vue index 39f515a..c723980 100644 --- a/policy/applyRecord/applyRecord.vue +++ b/policy/applyRecord/applyRecord.vue @@ -1,17 +1,18 @@ <template> <view class="page-box"> - <u-sticky bgColor="white"> + <u-sticky bgColor="white" :offsetTop="0" style=" position: -webkit-sticky;"> <view class="set-search"> <u-search placeholder="璇疯緭鍏ョ敵璇疯褰曞叧閿瘝 " @search="search" @blur="search" shape="square" :showAction="false"></u-search> </view> <view class="border"></view> - <u-tabs :list="list1" @click="click" :current="current" :scrollable="false" bgColor="white"></u-tabs> + <u-tabs :list="list1" @click="click" :current="current" :scrollable="true" bgColor="white"></u-tabs> </u-sticky> <view class="list"> <view class="list-item" @click="goReport(item.orderId)" v-for="(item,index) in dataList" :key="index"> <view class="top-title"> <text>{{item.enforceReason}}</text> - <text class="status">{{mapStatus[item.orderStatus]}}</text> + <text class="status" v-if="item.checkStatus != -1" :class="{status1: item.orderStatus == 1,status2: item.orderStatus == 2,status3: item.orderStatus == 3,status4: item.orderStatus == 4}">{{mapStatus[item.orderStatus]}}</text> + <text class="status status4" v-else >宸叉嫆缁�</text> </view> <view class="user-info"> <text>{{item.applyUser}}</text> @@ -31,7 +32,6 @@ <text>鐢宠鏃堕棿锛�</text>{{item.applyTime}} </view> </view> - </view> </view> <u-empty v-if="!dataList.length"></u-empty> @@ -47,26 +47,39 @@ current: 0, list1: [{ name: '鍏ㄩ儴', - value: '' + value: {} }, { name: '寰呭鎵�', - value: 1 + value: { + orderStatus: 1, + checkStatus: 0 + } }, { name: '寰呮墽琛�', - value: 2 + value: { + orderStatus: 2 + } }, { name: '寰呬笂鎶�', - value: 3 + value: { + orderStatus: 3 + } }, { name: '宸叉嫆缁�', - value: -1 + value: { + checkStatus: -1 + } }, { name: '宸茬粨鏉�', - value: 4 + value: { + orderStatus: 4 + } }], queryParams: { pageNum: 1, - pageSize: 10 + pageSize: 10, + isAsc: "desc", + orderByColumn: "apply_time" }, total: 1, dataList: [], @@ -102,7 +115,7 @@ this.orderList() }, orderList() { - orderList({...this.queryParams, orderStatus: this.list1[this.current].value}).then(val => { + orderList({...this.queryParams, ...this.list1[this.current].value}).then(val => { this.total = val.data.total this.dataList = [...this.dataList,...val.data.rows] }) @@ -123,4 +136,7 @@ </style> <style lang="scss" scoped> @import "./applyRecord.scss"; + /deep/ .u-sticky{ + position: -webkit-sticky; + } </style> \ No newline at end of file -- Gitblit v1.9.1