From f07b70558d5b84f1070470229037629bc1ace006 Mon Sep 17 00:00:00 2001 From: wjt <1797368093@qq.com> Date: 星期六, 22 六月 2024 14:39:30 +0800 Subject: [PATCH] 接口对接 --- policy/applyRecord/applyRecord.vue | 37 +++++++++++++++++++++++-------------- 1 files changed, 23 insertions(+), 14 deletions(-) diff --git a/policy/applyRecord/applyRecord.vue b/policy/applyRecord/applyRecord.vue index 41a70c4..39f515a 100644 --- a/policy/applyRecord/applyRecord.vue +++ b/policy/applyRecord/applyRecord.vue @@ -8,27 +8,27 @@ <u-tabs :list="list1" @click="click" :current="current" :scrollable="false" bgColor="white"></u-tabs> </u-sticky> <view class="list"> - <view class="list-item" @click="goReport" v-for="(item,index) in dataList" :key="index"> + <view class="list-item" @click="goReport(item.orderId)" v-for="(item,index) in dataList" :key="index"> <view class="top-title"> - <text>24骞�5鏈堢獊鍑绘鏌ユ秷闃插畨鍏�</text> - <text class="status">宸茬粨鏉�</text> + <text>{{item.enforceReason}}</text> + <text class="status">{{mapStatus[item.orderStatus]}}</text> </view> <view class="user-info"> - <text>鐜嬫�濋洦</text> + <text>{{item.applyUser}}</text> <view class="driver"></view> - <text>鎵ф硶涓�澶ч槦</text> + <text>{{item.applyDeptName}}</text> </view> <view class="set-line"> - <text>鎵ф硶瀵硅薄锛�</text>娌冲崡瑙夐啋绉戞妧鏈夐檺鍏徃 + <text>鎵ф硶瀵硅薄锛�</text>{{item.companyName}} </view> <view class="line"></view> <view class="set-flex set-start set-flex-content-between"> <view> <view class="set-line1"> - <text>鎵ф硶鏃堕棿锛�</text>2024-05-12 12:00 + <text>鎵ф硶鏃堕棿锛�</text>{{item.planTime}} </view> <view class="set-line1"> - <text>鐢宠鏃堕棿锛�</text>2024-05-12 12:00:12 + <text>鐢宠鏃堕棿锛�</text>{{item.applyTime}} </view> </view> @@ -69,37 +69,46 @@ pageSize: 10 }, total: 1, - dataList: [] + dataList: [], + mapStatus: { + 1: '寰呭鎵�', + 2: "寰呮墽琛�", + 3: "寰呬笂鎶�", + '-1':"宸叉嫆缁�", + 4: "宸茬粨鏉�" + } } }, - onShow() { + onLoad() { this.orderList() }, onReachBottom() { - if(this.list.length == this.total) { + if(this.dataList.length == this.total) { return } this.queryParams.pageNum++ this.orderList() }, methods: { - goReport() { + goReport(id) { uni.navigateTo({ - url: `/policy/applyRecordDetails/applyRecordDetails` + url: `/policy/applyRecordDetails/applyRecordDetails?id=${id}` }) }, click(e) { + this.dataList = [] this.queryParams.pageNum = 1 this.current = e.index + this.orderList() }, orderList() { orderList({...this.queryParams, orderStatus: this.list1[this.current].value}).then(val => { - // console.log(val.data) this.total = val.data.total this.dataList = [...this.dataList,...val.data.rows] }) }, search(e){ + this.dataList = [] this.queryParams.pageNum =1 this.queryParams.companyName = e this.orderList() -- Gitblit v1.9.1