| | |
| | | id: '',
|
| | | info: {},
|
| | | list: [],
|
| | | flag: false,
|
| | | flag: false, |
| | | userInfo: uni.getStorageSync('userInfo') || {},
|
| | | statusM: [{
|
| | | color: '#4593f7',
|
| | | name: '待开始'
|
| | |
| | | ywPatrolDetail(id).then(res => {
|
| | | this.info = res.data
|
| | | let time = new Date(res.data.startDate).getTime()
|
| | | console.log('res.data.startDate', new Date().getTime());
|
| | | this.flag = new Date().getTime() > time && (this.info.status == 0 || this.info.status == 1 || this.info.status == 2)
|
| | | console.log('res.data.startDate', new Date().getTime()); |
| | | if(res.data.userIds.indexOf(this.userInfo.id) > -1){ |
| | | this.flag = new Date().getTime() > time && (this.info.status == 0 || this.info.status == 1 || this.info.status == 2) |
| | | }
|
| | | })
|
| | | ywPatrolTaskRecord({
|
| | | capacity: 999,
|