|
|
|
|
@ -1,17 +1,17 @@ |
|
|
|
|
<template> |
|
|
|
|
<view class="page"> |
|
|
|
|
<view class="list_box" v-for="(item,index) in data" :key="index"> |
|
|
|
|
<view class="list_top"> |
|
|
|
|
<view class="list_top" @click="showDetail(index,!item.show)"> |
|
|
|
|
<view class="unit_tags">报送时间</view> |
|
|
|
|
<view class="unit_name">{{item.statDate || ''}}<text |
|
|
|
|
style="margin-left:16rpx;">{{item.statPeriodValue || ''}}</text></view> |
|
|
|
|
style="margin-left:16rpx;">{{renderTime(item.statPeriod)}}</text></view> |
|
|
|
|
<view class="unit_arrow"> |
|
|
|
|
<uni-icons @click="showDetail(index,false)" v-if="item.show" type="bottom" size="16" color="#666666"></uni-icons> |
|
|
|
|
<uni-icons @click="showDetail(index,true)" v-else type="right" size="16" color="#666666"></uni-icons> |
|
|
|
|
<uni-icons v-if="item.show" type="bottom" size="16" color="#666666"></uni-icons> |
|
|
|
|
<uni-icons v-else type="right" size="16" color="#666666"></uni-icons> |
|
|
|
|
</view> |
|
|
|
|
</view> |
|
|
|
|
<view class="list_cnt" v-if="item.show"> |
|
|
|
|
<view class="list_cnt_item" @click="goPage('/pages/railway/runStatus/form?id='+item.id)">{{item.carName || ''}}</view> |
|
|
|
|
<view v-for="(car,index2) in item.bizRailwayRunSituationTabVOList" :key="index" class="list_cnt_item" @click="goPage('/pages/railway/runStatus/form?id='+car.id)">{{car.carName || ''}}</view> |
|
|
|
|
</view> |
|
|
|
|
</view> |
|
|
|
|
<uni-load-more iconType="circle" :status="status" @clickLoadMore="loadMore" |
|
|
|
|
@ -157,9 +157,14 @@ |
|
|
|
|
closeSearch() { |
|
|
|
|
this.$refs.popup.close(); |
|
|
|
|
}, |
|
|
|
|
//时段文本转换 |
|
|
|
|
renderTime(reportPhase) { |
|
|
|
|
let idx = this.array.findIndex(item => item.dictValue == reportPhase); |
|
|
|
|
return idx > -1 ? this.array[idx].dictLabel : ''; |
|
|
|
|
}, |
|
|
|
|
//时段 |
|
|
|
|
queryTime() { |
|
|
|
|
this.$request(getApp().globalData.baseUrl + '/api/dict/dictList?dictType=airport_time' + '&_t=' + Date.parse( |
|
|
|
|
this.$request(getApp().globalData.baseUrl + '/api/dict/dictList?dictType=railway_time' + '&_t=' + Date.parse( |
|
|
|
|
new Date()), {}, 'GET').then(res => { |
|
|
|
|
this.array = res.data; |
|
|
|
|
}) |
|
|
|
|
@ -172,7 +177,7 @@ |
|
|
|
|
Object.keys(this.query).map(key => { |
|
|
|
|
params = params + '&' + key + '=' + this.query[key] |
|
|
|
|
}) |
|
|
|
|
this.$request(getApp().globalData.baseUrl + '/api/biz/railwayRunSituation/list?page=' + this.current + |
|
|
|
|
this.$request(getApp().globalData.baseUrl + '/api/biz/railwayRunSituation/getTimeList?page=' + this.current + |
|
|
|
|
'&pageSize=' + this.size + '&_t=' + Date.parse(new Date()) + params, {}, 'GET').then(res => { |
|
|
|
|
if (res.code == 200) { |
|
|
|
|
res.data.list.map(item =>{ |
|
|
|
|
|