|
@@ -87,11 +87,12 @@
|
|
|
|
|
|
/***************************** 页面生命周期函数 *****************************/
|
|
|
onShow(() => {
|
|
|
+ // getList()
|
|
|
uni.showLoading({
|
|
|
title: '加载中'
|
|
|
});
|
|
|
quer.value.userId = store.userInfo.userId;
|
|
|
-
|
|
|
+ // quer.value.startTime = startTime.value;
|
|
|
getProcessInspecionList(quer.value).then(res => {
|
|
|
console.log("res", res);
|
|
|
if (res.code == 200) {
|
|
@@ -100,15 +101,42 @@
|
|
|
uni.hideLoading();
|
|
|
// uni.hideLoading();
|
|
|
}
|
|
|
-
|
|
|
});
|
|
|
})
|
|
|
|
|
|
/***************************** 定义了一些方法 *****************************/
|
|
|
|
|
|
+ function getList() {
|
|
|
+ uni.showLoading({
|
|
|
+ title: '加载中'
|
|
|
+ });
|
|
|
+ quer.value.userId = store.userInfo.userId;
|
|
|
+ // quer.value.startTime = startTime.value;
|
|
|
+ getProcessInspecionList(quer.value).then(res => {
|
|
|
+ console.log("res", res);
|
|
|
+ if (res.code == 200) {
|
|
|
+ original.value = res.rows;
|
|
|
+ timeSizer();
|
|
|
+ uni.hideLoading();
|
|
|
+ // uni.hideLoading();
|
|
|
+ }
|
|
|
+ });
|
|
|
+ }
|
|
|
|
|
|
- //时间筛选
|
|
|
+ //时间筛选,暂时注释,使用搜索向
|
|
|
function timeSizer() {
|
|
|
+ // quer.value.startTime = startTime.value;
|
|
|
+ // 显示加载指示器
|
|
|
+ // uni.showLoading();
|
|
|
+ // getProcessInspecionList(quer.value).then(res => {
|
|
|
+ // console.log("res", res);
|
|
|
+ // if (res.code == 200) {
|
|
|
+ // original.value = res.rows;
|
|
|
+ // timeSizer();
|
|
|
+ // uni.hideLoading();
|
|
|
+ // // uni.hideLoading();
|
|
|
+ // }
|
|
|
+ // });
|
|
|
inspecionList.value = filterSameDayItems(original.value, startTime.value);
|
|
|
}
|
|
|
|