diff --git a/.DS_Store b/.DS_Store new file mode 100644 index 0000000..47459c4 Binary files /dev/null and b/.DS_Store differ diff --git a/common/util.js b/common/util.js index 89c4967..2e6f35e 100644 --- a/common/util.js +++ b/common/util.js @@ -87,10 +87,15 @@ function getDateStr(today, addDayCount) { console.log(y + "-" + m + "-" + d) return y + "-" + m + "-" + d; } +//非空校验 +const checkNotEmpty = (str) => { + return typeof(str) !== 'undefined' && str !== null && str !== '' ? true : false +} export { formatTime, formatLocation, getDateStr, - dateUtils + dateUtils, + checkNotEmpty } \ No newline at end of file diff --git a/pages.json b/pages.json index 5dac4dd..cda425d 100644 --- a/pages.json +++ b/pages.json @@ -72,6 +72,18 @@ "navigationBarTitleText": "铁路运行数据详情" } }, + { + "path": "pages/railway/runStatus/list", + "style": { + "navigationBarTitleText": "铁路运行情况" + } + }, + { + "path": "pages/railway/runStatus/form", + "style": { + "navigationBarTitleText": "铁路运行情况报送" + } + }, { "path": "pages/roadTransport/transportData/list", "style": { diff --git a/pages/highWay/runData/form.vue b/pages/highWay/runData/form.vue index 0f0c780..3dc008f 100644 --- a/pages/highWay/runData/form.vue +++ b/pages/highWay/runData/form.vue @@ -79,7 +79,7 @@ - + {{item.stationName}} @@ -219,11 +219,11 @@ methods: { //同比环比查询 queryYoYMom() { - // if(this.form.statDate && this.form.statPeriod) { - // this.$request(getApp().globalData.baseUrl + '/api/biz/highwayParentDataController/getYoYMoM?statDate='+this.form.statDate+'&statPeriod='+this.form.statPeriod+'&_t=' + Date.parse(new Date()),{},"GET").then(res => { - // this.yoyMom = res.data; - // }) - // } + if(this.form.statDate && this.form.statPeriod) { + this.$request(getApp().globalData.baseUrl + '/api/biz/highwayParentDataController/getYoYAndMoM?statDate='+this.form.statDate+'&statPeriod='+this.form.statPeriod+'&_t=' + Date.parse(new Date()),{},"GET").then(res => { + this.yoyMom = res.data; + }) + } }, //报送人 queryPerson() { @@ -495,7 +495,7 @@ margin-bottom: 30rpx; .form_item_label { - width: 280rpx; + width: 300rpx; color: #666666; font-size: 26rpx; word-break: break-all; @@ -550,9 +550,14 @@ .station_box { display: flex; flex-wrap: wrap; + justify-content: flex-start; margin-top: 30rpx; .station_item { + flex: 1; + width: calc((100% - 46rpx) / 3); + min-width: calc((100% - 46rpx) / 3); + max-width: calc((100% - 46rpx) / 3); height: 60rpx; color: #666666; line-height: 60rpx; @@ -561,9 +566,8 @@ font-weight: 400; border-radius: 20rpx; border: 1rpx solid #C1C1C1; - padding: 0 20rpx; + text-align: center; margin-bottom: 30rpx; - margin-right: 20rpx; &.active { position: relative; @@ -584,6 +588,9 @@ text-align: center; } } + &.choose{ + border-color: #2D8CF0; + } } } diff --git a/pages/highWay/runData/list.vue b/pages/highWay/runData/list.vue index d5a1e16..c2a9741 100644 --- a/pages/highWay/runData/list.vue +++ b/pages/highWay/runData/list.vue @@ -1,64 +1,17 @@