Browse Source

fix 小程序-问题处理-时间筛选操作失败

master
巴林闲侠 2 years ago
parent
commit
92586717aa
  1. 10
      weapp/package/troubleshooting/index.js

10
weapp/package/troubleshooting/index.js

@ -3,6 +3,8 @@ import { getPatrolRecordIssueHandle, getStructuresUsers } from "../../utils/getA
import { Request } from "../../common";
const moment = require("../../utils/moment");
let setFilterStartTime = 0
let setFilterEndTime = 0
Page({
/**
@ -123,6 +125,10 @@ Page({
if (timeSelectedUnrealFlag && event.detail == 1640966400000) {
return
}
if(new Date().getTime() - setFilterStartTime < 100){
return
}
setFilterStartTime = new Date().getTime()
this.setData({
startTime: event.detail,
endTime: endTime ? endTime : 1640966400000
@ -134,6 +140,10 @@ Page({
if (timeSelectedUnrealFlag && event.detail == 1640966400000) {
return
}
if(new Date().getTime() - setFilterEndTime < 100){
return
}
setFilterEndTime = new Date().getTime()
this.setData({
startTime: startTime ? startTime : 1640966400000,
endTime: event.detail,

Loading…
Cancel
Save