| | |
| | | <template v-if="item.status == 1">
|
| | | <view class="line">
|
| | | <view class="la">巡检结果:</view>
|
| | | <view class="val" :class="{ red: item.dealStatus == 1 }">{{ item.dealStatus == 0 ? '正常' : '异常' }}</view>
|
| | | <view class="val" :class="{ red: item.dealStatus == 1 }">{{ item.dealStatus == 0 ? '正常' : item.dealStatus == 1 ? '异常' : '-' }}</view>
|
| | | </view>
|
| | | <view class="line">
|
| | | <view class="la">巡检时间:</view>
|
| | |
| | | },
|
| | | (decodeText, decodeResult) => {
|
| | | if (decodeText) { //这里decodeText就是通过扫描二维码得到的内容
|
| | | this.stopScan(); //关闭扫码功能
|
| | | this.stopScan(); //关闭扫码功能 |
| | | const index = decodeText.indexOf('ywid') |
| | | let pointCode = decodeText.slice(index + 5)
|
| | | getPointRecordByCode({
|
| | | taskId: this.id,
|
| | | pointCode: decodeText
|
| | | pointCode
|
| | | }).then(ress => {
|
| | | if (ress.data) {
|
| | | uni.navigateTo({
|
| | |
| | | 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.flag = new Date().getTime() > time && (this.info.status == 0 || this.info.status == 1 || this.info.status == 2)
|
| | | })
|
| | | ywPatrolTaskRecord({
|
| | | capacity: 999,
|