铁路运输情况

dev201310
张群 2 years ago
parent aa71522191
commit 527adc8649
  1. 4
      App.vue
  2. 1
      pages/bus/busDataInfo/form.vue
  3. 9
      pages/bus/busDataInfo/list.vue
  4. 4
      pages/railway/railwayRunData/form.vue
  5. 19
      pages/railway/runStatus/list.vue

@ -55,8 +55,8 @@
},
globalData: {
// baseUrl: 'http://27.223.104.50:8001',//
baseUrl: 'https://jtxx.qdjtcx.cn:8001',//
// baseUrl: 'http://10.50.3.103:8086',//
// baseUrl: 'https://jtxx.qdjtcx.cn:8001',//
baseUrl: 'http://10.50.3.103:8086',//
mobile: '66007587'
},
methods: {

@ -668,6 +668,7 @@
item.isPassengerCountConvert = 0
})
this.form.bizBusDataBodySaveOrUpdateDTOList = this.form.bizBusDataDetailVOList;
this.form.reportDate = this.form.statDate;
console.log(this.form)
uni.showModal({
title: '提示',

@ -110,12 +110,13 @@
_t:Date.parse(new Date()),
...this.query
}
this.$request(getApp().globalData.baseUrl + '/api/biz/highwayParentDataController/getTimeList',params,"GET").then(res =>{
this.$request(getApp().globalData.baseUrl + '/api/biz/busdata/getTimeList',params,"GET").then(res =>{
console.log(res)
if(res.code == 200){
// res.data.list.map(item =>{
// item.show = false;
// })
res.data.list.map(item =>{
// item.show = false;
item.statDate = item.reportDate;
})
this.listData = this.listData.concat(res.data.list);
if(res.data.list.length == 0 || res.data.list.length < this.pageSize){
this.hasMore = false;

@ -472,6 +472,7 @@
res.data.statPeriod = statPeriod;
this.form = res.data;
this.form.bizRailwayRunDataSaveOrUpdateDTOList = this.form.bizRailwayRunDataVOList;
console.log('============init station ==', this.form)
//
this.$request(getApp().globalData.baseUrl + '/api/biz/railwayRunData/getSummaryDataYoYAndMoM?statDate=' + statDate + '&statPeriod=' + statPeriod + '&_t=' + Date.parse(new Date()), {},
'GET')
@ -594,7 +595,8 @@
"railwayName": item.railwayName,
})
})
}else{
}else{
console.log('init station ==', this.form)
let arr = JSON.parse(JSON.stringify(this.form.bizRailwayDataSaveOrUpdateDTOList));
this.form.bizRailwayDataSaveOrUpdateDTOList = [];
this.stationList.map(item => {

@ -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 =>{

Loading…
Cancel
Save