文案修正;铁路运行情况列表查询改为折叠效果

dev201310
zhangqun 2 years ago
parent 8848a17b9a
commit 72e1addf37
  1. 18
      pages/railway/railwayRunData/form.vue
  2. 47
      pages/railway/runStatus/list.vue

@ -40,7 +40,7 @@
</view>
<!-- 汇总统计 进青 -->
<view class="form_item">
<view class="form_item_label">进终到车次统计</view>
<view class="form_item_label">终到车次统计</view>
<view class="form_item_input">
{{form.entranceVehicleCount === 0 ? form.entranceVehicleCount : form.entranceVehicleCount || ''}}
</view>
@ -51,7 +51,7 @@
<view class="rate_item">
<view class="rate_item_label"
:style="checkNotEmpty(form.entranceVehicleCount) && form.entranceVehicleCount === yoyMom.minusDaysEntranceVehicleSum ?'color: #EB4747':''">
终到次统计环比</view>
终到次统计环比</view>
<view class="rate_item_input"
:style="checkNotEmpty(form.entranceVehicleCount) && form.entranceVehicleCount === yoyMom.minusDaysEntranceVehicleSum ?'color: #EB4747':''">
{{formatDigit(form.entranceVehicleCountMom)}}%
@ -59,7 +59,7 @@
</view>
<view class="line"></view>
<view class="rate_item">
<view class="rate_item_label">终到次统计同比</view>
<view class="rate_item_label">终到次统计同比</view>
<view class="rate_item_input">
{{formatDigit(form.entranceVehicleCountYoy)}}%
</view>
@ -72,7 +72,7 @@
</view>
</view>
<view class="form_item">
<view class="form_item_label">进青人统计</view>
<view class="form_item_label">进青人统计</view>
<view class="form_item_input">
{{form.exitVehicleCount === 0 ? form.exitVehicleCount : form.exitVehicleCount || ''}}
</view>
@ -83,7 +83,7 @@
<view class="rate_item">
<view class="rate_item_label"
:style="checkNotEmpty(form.exitVehicleCount) && form.exitVehicleCount === yoyMom.minusDaysExitVehicleSum ?'color: #EB4747':''">
统计环比</view>
统计环比</view>
<view class="rate_item_input"
:style="checkNotEmpty(form.exitVehicleCount) && form.exitVehicleCount === yoyMom.minusDaysExitVehicleSum ?'color: #EB4747':''">
{{formatDigit(form.exitVehicleCountMom)}}%
@ -91,7 +91,7 @@
</view>
<view class="line"></view>
<view class="rate_item">
<view class="rate_item_label">统计同比</view>
<view class="rate_item_label">统计同比</view>
<view class="rate_item_input">
{{formatDigit(form.exitVehicleCountYoy)}}%
</view>
@ -131,7 +131,7 @@
</view>
</view>
<view class="form_item">
<view class="form_item_label">出青人统计</view>
<view class="form_item_label">出青人统计</view>
<view class="form_item_input">
{{form.exitVehicleCount === 0 ? form.exitVehicleCount : form.exitVehicleCount || ''}}
</view>
@ -142,7 +142,7 @@
<view class="rate_item">
<view class="rate_item_label"
:style="checkNotEmpty(form.exitVehicleCount) && form.exitVehicleCount === yoyMom.minusDaysExitVehicleSum ?'color: #EB4747':''">
统计环比</view>
统计环比</view>
<view class="rate_item_input"
:style="checkNotEmpty(form.exitVehicleCount) && form.exitVehicleCount === yoyMom.minusDaysExitVehicleSum ?'color: #EB4747':''">
{{formatDigit(form.exitVehicleCountMom)}}%
@ -150,7 +150,7 @@
</view>
<view class="line"></view>
<view class="rate_item">
<view class="rate_item_label">统计同比</view>
<view class="rate_item_label">统计同比</view>
<view class="rate_item_input">
{{formatDigit(form.exitVehicleCountYoy)}}%
</view>

@ -1,12 +1,18 @@
<template>
<view class="page">
<view class="list_box" v-for="(item,index) in data" :key="index" @click="goPage('/pages/railway/runStatus/form?id='+item.id)">
<view class="list_box" v-for="(item,index) in data" :key="index">
<view class="list_top">
<view class="unit_tags">报送时间</view>
<view class="unit_name">{{item.statDate || ''}}<text
style="margin-left:16rpx;">{{item.statPeriodValue || ''}}</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>
</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>
<view class="unit_station">{{item.carName || ''}}</view>
</view>
<uni-load-more iconType="circle" :status="status" @clickLoadMore="loadMore"
:contentText="contentText"></uni-load-more>
@ -99,9 +105,20 @@
},
methods: {
//
showDetail(index1, index2, flag) {
this.data[index1].highwaySubDataList[index2].show = flag;
showDetail(index1,flag) {
if(flag) {
//
let idx = this.data.findIndex(item => item.show == true);
if(idx > -1) {
this.data[idx].show = false;
}
}
this.data[index1].show = flag;
},
// //
// showDetail(index1, index2, flag) {
// this.data[index1].highwaySubDataList[index2].show = flag;
// },
//
bindPickerChange: function(e) {
console.log('picker发送选择改变,携带值为', e.detail.value)
@ -158,6 +175,9 @@
this.$request(getApp().globalData.baseUrl + '/api/biz/railwayRunSituation/list?page=' + this.current +
'&pageSize=' + this.size + '&_t=' + Date.parse(new Date()) + params, {}, 'GET').then(res => {
if (res.code == 200) {
res.data.list.map(item =>{
item.show = false;
})
this.data = this.data.concat(res.data.list);
if (res.data.list.length == 0 || res.data.totalCount < this.size) {
this.hasMore = false;
@ -222,6 +242,7 @@
}
.unit_name {
flex: 1;
color: #333333;
font-size: 30rpx;
font-family: PingFang SC-Bold, PingFang SC;
@ -230,6 +251,10 @@
margin-left: 20rpx;
word-break: break-all;
}
.unit_arrow{
float: right;
line-height: 48rpx;
}
}
.unit_station {
color: #666;
@ -238,6 +263,20 @@
font-weight: 400;
text-align: right;
}
//
.list_cnt{
border-top: 1rpx solid #F7F0EE;
margin-top: 30rpx;
.list_cnt_item {
color: #666666;
font-size: 30rpx;
line-height: 40rpx;
font-family: Microsoft YaHei-Regular, Microsoft YaHei;
font-weight: 400;
margin-top: 30rpx;
}
}
.report_time {
color: #999999;

Loading…
Cancel
Save