ll
liukangdong
2024-08-29 986118de12da6830ffb0c86af8e70567352c9bb9
h5/pages/driver/queueUp.vue
@@ -8,11 +8,11 @@
    </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>
@@ -22,11 +22,11 @@
          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>
@@ -55,10 +55,12 @@
    return {
      activePlatform: {},
      platformGroupList: [],
      showPlat: false
      showPlat: false,
         jobId: ''
    }
  },
  onLoad(option) {
      this.jobId = option.jobId
    this.getData(option.jobId || '')
  },
  methods: {
@@ -79,10 +81,17 @@
      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}`
            })
         }
    }
  }
}