| | |
| | | </view> |
| | | <!-- --> |
| | | <view class="main_list"> |
| | | <view class="item" @click="handleCheck()"> |
| | | <view class="item" @click="handleCheck(1)"> |
| | | <view class="h1">作业中车辆</view> |
| | | <view class="h2"> |
| | | <text v-if="activePlatform.signJobList">{{ |
| | | activePlatform.signJobList.length |
| | | activePlatform.workJobList.length |
| | | }}</text> |
| | | <text class="unit">辆</text> |
| | | </view> |
| | |
| | | mode="" |
| | | ></image> |
| | | </view> |
| | | <view class="item cyan"> |
| | | <view class="item cyan" @click="handleCheck(0)"> |
| | | <view class="h1">已签到车辆</view> |
| | | <view class="h2"> |
| | | <text v-if="activePlatform.workJobList">{{ |
| | | activePlatform.workJobList.length |
| | | activePlatform.signJobList.length |
| | | }}</text> |
| | | <text class="unit">辆</text> |
| | | </view> |
| | |
| | | return { |
| | | activePlatform: {}, |
| | | platformGroupList: [], |
| | | showPlat: false |
| | | showPlat: false, |
| | | jobId: '' |
| | | } |
| | | }, |
| | | onLoad(option) { |
| | | this.jobId = option.jobId |
| | | this.getData(option.jobId || '') |
| | | }, |
| | | methods: { |
| | |
| | | this.activePlatform = this.platformGroupList[index] |
| | | this.showPlat = false |
| | | }, |
| | | handleCheck() { |
| | | uni.navigateTo({ |
| | | url: "/pages/driver/queueUpRecord" |
| | | }) |
| | | handleCheck(type) { |
| | | if(this.jobId){ |
| | | uni.navigateTo({ |
| | | url: `/pages/driver/queueUpRecord?type=${type}&platformId=${this.activePlatform.id}&jobId=${this.jobId}` |
| | | }) |
| | | }else{ |
| | | uni.navigateTo({ |
| | | url: `/pages/driver/queueUpRecord?type=${type}&platformId=${this.activePlatform.id}` |
| | | }) |
| | | } |
| | | |
| | | } |
| | | } |
| | | } |