|
|
@@ -19,7 +19,7 @@
|
|
19
|
19
|
<uni-list>
|
|
20
|
20
|
<!-- to 属性携带参数跳转详情页面-->
|
|
21
|
21
|
<uni-list-item direction="column" link v-for="(item, index) in listData" :key="index"
|
|
22
|
|
- :to="'/pages/myTask/workOrderList/workOrderDetail/workOrderDetail?wid='+item.F_WorkOrderId>
|
|
|
22
|
+ :to="'/pages/myTask/workOrderList/workOrderDetail/workOrderDetail?wid='+item.F_WorkOrderId">
|
|
23
|
23
|
<!-- 通过header插槽定义列表的标题 -->
|
|
24
|
24
|
<template v-slot:header>
|
|
25
|
25
|
<view class="uni-title">{{item.F_ComTitle}}</view>
|
|
|
@@ -179,12 +179,17 @@
|
|
179
|
179
|
},
|
|
180
|
180
|
}
|
|
181
|
181
|
}
|
|
|
182
|
+
|
|
|
183
|
+ uni.showLoading({
|
|
|
184
|
+ title: '加载中'
|
|
|
185
|
+ });
|
|
182
|
186
|
|
|
183
|
187
|
let url = this.urlData.url
|
|
184
|
188
|
this.$http
|
|
185
|
189
|
.get(url, params)
|
|
186
|
190
|
.then((response) => {
|
|
187
|
191
|
if (response.state.toLowerCase() === "success") {
|
|
|
192
|
+ uni.hideLoading();
|
|
188
|
193
|
let data = response.rows
|
|
189
|
194
|
uni.stopPullDownRefresh();
|
|
190
|
195
|
this.listData = this.listData.concat(data)
|
|
|
@@ -198,6 +203,7 @@
|
|
198
|
203
|
})
|
|
199
|
204
|
.catch((e) => {
|
|
200
|
205
|
console.log(e)
|
|
|
206
|
+ uni.hideLoading();
|
|
201
|
207
|
})
|
|
202
|
208
|
},
|
|
203
|
209
|
workOrderIdClick(value) {
|