main
张群 2 years ago
parent 37b16b69a6
commit edd56f0c52
  1. 26
      pages.json
  2. 887
      pages/airport/airport-runData/form.vue
  3. 445
      pages/airport/airport-runData/list.vue
  4. 502
      pages/airport/airport-runStatus/form.vue
  5. 445
      pages/airport/airport-runStatus/list.vue
  6. 25
      pages/highWay/runData/form.vue
  7. 33
      pages/home/index.vue
  8. 12
      pages/login/login.vue
  9. 2
      pages/railway/runStatus/form.vue
  10. 8
      pages/water/transportation/form.vue
  11. 22
      pages/water/waterWay/form.vue
  12. BIN
      static/image/.DS_Store
  13. BIN
      static/image/airport01.png
  14. BIN
      static/image/bus01.png
  15. BIN
      static/image/metro01.png
  16. BIN
      static/image/portShipping01.png
  17. BIN
      static/image/railway01.png
  18. BIN
      static/image/roadTransport01.png
  19. BIN
      static/image/water01.png

@ -127,6 +127,32 @@
"navigationBarTitleText": "水运运输情况报送"
}
},
{
"path": "pages/airport/airport-runData/list",
"style": {
"navigationBarTitleText": "机场运行数据",
"enablePullDownRefresh": true
}
},
{
"path": "pages/airport/airport-runData/form",
"style": {
"navigationBarTitleText": "机场运行数据报送"
}
},
{
"path": "pages/airport/airport-runStatus/list",
"style": {
"navigationBarTitleText": "机场运行情况",
"enablePullDownRefresh": true
}
},
{
"path": "pages/airport/airport-runStatus/form",
"style": {
"navigationBarTitleText": "机场运行情况报送"
}
},
{
"path": "pages/roadTransport/transportData/list",
"style": {

@ -0,0 +1,887 @@
<template>
<view class="form_warp">
<view class="form_intro">
<view>如有填报问题请咨询公共服务中心</view>
<view>中心值班电话<text class="tel">66007587</text></view>
</view>
<view class="form_item_box">
<view class="form_item_title">基本信息</view>
<view class="form_item">
<view class="form_item_label">统计日期</view>
<view class="form_item_input picker">
<picker mode="date" :value="form.statDate" @change="bindDateChange">
<text class="picker_select"
:style="form.statDate?'color:#333;':''">{{form.statDate?form.statDate:'请选择'}}</text>
<uni-icons type="right" size="16" color="#D4D4D4"></uni-icons>
</picker>
</view>
</view>
<view class="form_item">
<view class="form_item_label">统计时段</view>
<view class="form_item_input picker">
<picker :value="index" :range="array" range-key="dictLabel" @change="changeStatPeriod">
<text class="picker_select"
:style="index>-1?'color:#333;':''">{{index>-1?array[index].dictLabel:'请选择'}}</text>
<uni-icons type="right" size="16" color="#D4D4D4"></uni-icons>
</picker>
</view>
</view>
</view>
<!-- 国内 -->
<view class="form_item_box" style="margin-top: 30rpx;">
<view class="form_item_li">
<view class="form_item" style="font-size: 30rpx;color:#333;font-weight: bold;">
国内
</view>
<view class="form_item">
<view class="form_item_label">入青航班架次</view>
<view class="form_item_input form_input">
<uni-easyinput @blur="calcYoyMom" v-model="form.inboundFlightsDo" type="number"
placeholderStyle="color: #D4D4D4;font-size:28rpx;" placeholder="请输入" maxlength="20">
</uni-easyinput>
</view>
</view>
<!-- 同比 -->
<view class="form_item_rate">
<view class="rate_item">
<view class="rate_item_label">
入青航班架次环比(%)</view>
<view class="rate_item_input">
{{form.inFlightsMomDo === 0 ? form.inFlightsMomDo : form.inFlightsMomDo ? form.inFlightsMomDo.toFixed(2) : ''}}
</view>
</view>
<view class="line"></view>
<view class="rate_item">
<view class="rate_item_label">入青航班架次同比(%)</view>
<view class="rate_item_input">
{{form.inFlightsYoyDo === 0 ? form.inFlightsYoyDo : form.inFlightsYoyDo ? form.inFlightsYoyDo.toFixed(2) : ''}}
</view>
</view>
</view>
<view class="form_item">
<view class="form_item_label">出青航班架次</view>
<view class="form_item_input form_input">
<uni-easyinput @blur="calcYoyMom" v-model="form.outboundFlightsDo" type="number"
placeholderStyle="color: #D4D4D4;font-size:28rpx;" placeholder="请输入" maxlength="20">
</uni-easyinput>
</view>
</view>
<!-- 同比 -->
<view class="form_item_rate">
<view class="rate_item">
<view class="rate_item_label">
出青航班架次环比(%)</view>
<view class="rate_item_input">
{{form.outFlightsMomDo === 0 ? form.outFlightsMomDo : form.outFlightsMomDo ? form.outFlightsMomDo.toFixed(2) : ''}}
</view>
</view>
<view class="line"></view>
<view class="rate_item">
<view class="rate_item_label">出青航班架次同比(%)</view>
<view class="rate_item_input">
{{form.outFlightsYoyDo === 0 ? form.outFlightsYoyDo : form.outFlightsYoyDo ? form.outFlightsYoyDo.toFixed(2) : ''}}
</view>
</view>
</view>
<view class="form_item">
<view class="form_item_label">入青航班旅客</view>
<view class="form_item_input form_input">
<uni-easyinput @blur="calcYoyMom" v-model="form.inboundPassengersDo" type="number"
placeholderStyle="color: #D4D4D4;font-size:28rpx;" placeholder="请输入" maxlength="20">
</uni-easyinput>
</view>
</view>
<!-- 同比 -->
<view class="form_item_rate">
<view class="rate_item">
<view class="rate_item_label">
入青航班旅客环比(%)</view>
<view class="rate_item_input">
{{form.inPassengersMomDo === 0 ? form.inPassengersMomDo : form.inPassengersMomDo ? form.inPassengersMomDo.toFixed(2) : ''}}
</view>
</view>
<view class="line"></view>
<view class="rate_item">
<view class="rate_item_label">入青航班旅客同比(%)</view>
<view class="rate_item_input">
{{form.inPassengersYoyDo === 0 ? form.inPassengersYoyDo : form.inPassengersYoyDo ? form.inPassengersYoyDo.toFixed(2) : ''}}
</view>
</view>
</view>
<view class="form_item">
<view class="form_item_label">出青航班旅客</view>
<view class="form_item_input form_input">
<uni-easyinput @blur="calcYoyMom" v-model="form.outboundPassengersDo" type="number"
placeholderStyle="color: #D4D4D4;font-size:28rpx;" placeholder="请输入" maxlength="20">
</uni-easyinput>
</view>
</view>
<!-- 同比 -->
<view class="form_item_rate">
<view class="rate_item">
<view class="rate_item_label">
出青航班旅客环比(%)</view>
<view class="rate_item_input">
{{form.outPassengersMomDo === 0 ? form.outPassengersMomDo : form.outPassengersMomDo ? form.outPassengersMomDo.toFixed(2) : ''}}
</view>
</view>
<view class="line"></view>
<view class="rate_item">
<view class="rate_item_label">出青航班旅客同比(%)</view>
<view class="rate_item_input">
{{form.outPassengersYoyDo === 0 ? form.outPassengersYoyDo : form.outPassengersYoyDo ? form.outPassengersYoyDo.toFixed(2) : ''}}
</view>
</view>
</view>
</view>
</view>
<!-- 国际 -->
<view class="form_item_box" style="margin-top: 30rpx;">
<view class="form_item_li">
<view class="form_item" style="font-size: 30rpx;color:#333;font-weight: bold;">
国际
</view>
<view class="form_item">
<view class="form_item_label">入青航班架次</view>
<view class="form_item_input form_input">
<uni-easyinput @blur="calcYoyMom" v-model="form.inboundFlightsIn" type="number"
placeholderStyle="color: #D4D4D4;font-size:28rpx;" placeholder="请输入" maxlength="20">
</uni-easyinput>
</view>
</view>
<!-- 同比 -->
<view class="form_item_rate">
<view class="rate_item">
<view class="rate_item_label">
入青航班架次环比(%)</view>
<view class="rate_item_input">
{{form.inFlightsMomIn === 0 ? form.inFlightsMomIn : form.inFlightsMomIn ? form.inFlightsMomIn.toFixed(2) : ''}}
</view>
</view>
<view class="line"></view>
<view class="rate_item">
<view class="rate_item_label">入青航班架次同比(%)</view>
<view class="rate_item_input">
{{form.inFlightsYoyIn === 0 ? form.inFlightsYoyIn : form.inFlightsYoyIn ? form.inFlightsYoyIn.toFixed(2) : ''}}
</view>
</view>
</view>
<view class="form_item">
<view class="form_item_label">出青航班架次</view>
<view class="form_item_input form_input">
<uni-easyinput @blur="calcYoyMom" v-model="form.outboundFlightsIn" type="number"
placeholderStyle="color: #D4D4D4;font-size:28rpx;" placeholder="请输入" maxlength="20">
</uni-easyinput>
</view>
</view>
<!-- 同比 -->
<view class="form_item_rate">
<view class="rate_item">
<view class="rate_item_label">
出青航班架次环比(%)</view>
<view class="rate_item_input">
{{form.outFlightsMomIn === 0 ? form.outFlightsMomIn : form.outFlightsMomIn ? form.outFlightsMomIn.toFixed(2) : ''}}
</view>
</view>
<view class="line"></view>
<view class="rate_item">
<view class="rate_item_label">出青航班架次同比(%)</view>
<view class="rate_item_input">
{{form.outFlightsYoyIn === 0 ? form.outFlightsYoyIn : form.outFlightsYoyIn ? form.outFlightsYoyIn.toFixed(2) : ''}}
</view>
</view>
</view>
<view class="form_item">
<view class="form_item_label">入青航班旅客</view>
<view class="form_item_input form_input">
<uni-easyinput @blur="calcYoyMom" v-model="form.inboundPassengersIn" type="number"
placeholderStyle="color: #D4D4D4;font-size:28rpx;" placeholder="请输入" maxlength="20">
</uni-easyinput>
</view>
</view>
<!-- 同比 -->
<view class="form_item_rate">
<view class="rate_item">
<view class="rate_item_label">
入青航班旅客环比(%)</view>
<view class="rate_item_input">
{{form.inPassengersMomIn === 0 ? form.inPassengersMomIn : form.inPassengersMomIn ? form.inPassengersMomIn.toFixed(2) : ''}}
</view>
</view>
<view class="line"></view>
<view class="rate_item">
<view class="rate_item_label">入青航班旅客同比(%)</view>
<view class="rate_item_input">
{{form.inPassengersYoyIn === 0 ? form.inPassengersYoyIn : form.inPassengersYoyIn ? form.inPassengersYoyIn.toFixed(2) : ''}}
</view>
</view>
</view>
<view class="form_item">
<view class="form_item_label">出青航班旅客</view>
<view class="form_item_input form_input">
<uni-easyinput @blur="calcYoyMom" v-model="form.outboundPassengersIn" type="number"
placeholderStyle="color: #D4D4D4;font-size:28rpx;" placeholder="请输入" maxlength="20">
</uni-easyinput>
</view>
</view>
<!-- 同比 -->
<view class="form_item_rate">
<view class="rate_item">
<view class="rate_item_label">
出青航班旅客环比(%)</view>
<view class="rate_item_input">
{{form.outPassengersMomIn === 0 ? form.outPassengersMomIn : form.outPassengersMomIn ? form.outPassengersMomIn.toFixed(2) : ''}}
</view>
</view>
<view class="line"></view>
<view class="rate_item">
<view class="rate_item_label">出青航班旅客同比(%)</view>
<view class="rate_item_input">
{{form.outPassengersYoyIn === 0 ? form.outPassengersYoyIn : form.outPassengersYoyIn ? form.outPassengersYoyIn.toFixed(2) : ''}}
</view>
</view>
</view>
</view>
</view>
<!-- 合计 -->
<view class="form_item_box" style="margin-top: 30rpx;">
<view class="form_item_li">
<view class="form_item" style="font-size: 30rpx;color:#333;font-weight: bold;">
合计
</view>
<view class="form_item">
<view class="form_item_label">入青航班架次</view>
<view class="form_item_input form_input">
{{form.inboundFlightsTo}}
</view>
</view>
<!-- 同比 -->
<view class="form_item_rate">
<view class="rate_item">
<view class="rate_item_label">
入青航班架次环比(%)</view>
<view class="rate_item_input">
{{form.inFlightsMomTo === 0 ? form.inFlightsMomTo : form.inFlightsMomTo ? form.inFlightsMomTo.toFixed(2) : ''}}
</view>
</view>
<view class="line"></view>
<view class="rate_item">
<view class="rate_item_label">入青航班架次同比(%)</view>
<view class="rate_item_input">
{{form.inFlightsYoyTo === 0 ? form.inFlightsYoyTo : form.inFlightsYoyTo ? form.inFlightsYoyTo.toFixed(2) : ''}}
</view>
</view>
</view>
<view class="form_item">
<view class="form_item_label">出青航班架次</view>
<view class="form_item_input form_input">
{{form.outboundFlightsTo}}
</view>
</view>
<!-- 同比 -->
<view class="form_item_rate">
<view class="rate_item">
<view class="rate_item_label">
出青航班架次环比(%)</view>
<view class="rate_item_input">
{{form.outFlightsMomTo === 0 ? form.outFlightsMomTo : form.outFlightsMomTo ? form.outFlightsMomTo.toFixed(2) : ''}}
</view>
</view>
<view class="line"></view>
<view class="rate_item">
<view class="rate_item_label">出青航班架次同比(%)</view>
<view class="rate_item_input">
{{form.outFlightsYoyTo === 0 ? form.outFlightsYoyTo : form.outFlightsYoyTo ? form.outFlightsYoyTo.toFixed(2) : ''}}
</view>
</view>
</view>
<view class="form_item">
<view class="form_item_label">入青航班旅客</view>
<view class="form_item_input form_input">
{{form.inboundPassengersTo}}
</view>
</view>
<!-- 同比 -->
<view class="form_item_rate">
<view class="rate_item">
<view class="rate_item_label">
入青航班旅客环比(%)</view>
<view class="rate_item_input">
{{form.inPassengersMomTo === 0 ? form.inPassengersMomTo : form.inPassengersMomTo ? form.inPassengersMomTo.toFixed(2) : ''}}
</view>
</view>
<view class="line"></view>
<view class="rate_item">
<view class="rate_item_label">入青航班旅客同比(%)</view>
<view class="rate_item_input">
{{form.inPassengersYoyTo === 0 ? form.inPassengersYoyTo : form.inPassengersYoyTo ? form.inPassengersYoyTo.toFixed(2) : ''}}
</view>
</view>
</view>
<view class="form_item">
<view class="form_item_label">出青航班旅客</view>
<view class="form_item_input form_input">
{{form.outboundPassengersTo}}
</view>
</view>
<!-- 同比 -->
<view class="form_item_rate">
<view class="rate_item">
<view class="rate_item_label">
出青航班旅客环比(%)</view>
<view class="rate_item_input">
{{form.outPassengersMomTo === 0 ? form.outPassengersMomTo : form.outPassengersMomTo ? form.outPassengersMomTo.toFixed(2) : ''}}
</view>
</view>
<view class="line"></view>
<view class="rate_item">
<view class="rate_item_label">出青航班旅客同比(%)</view>
<view class="rate_item_input">
{{form.outPassengersYoyTo === 0 ? form.outPassengersYoyTo : form.outPassengersYoyTo ? form.outPassengersYoyTo.toFixed(2) : ''}}
</view>
</view>
</view>
</view>
</view>
<!-- 底部按钮 -->
<view class="foot_btn">
<view class="act_btn" @click="doCancel">取消</view>
<view class="act_btn blue" @click="doSubmit">确认</view>
</view>
</view>
</template>
<script>
import {
getDateStr,
checkNotEmpty
} from "../../../common/util.js"
export default {
data() {
return {
form: {
"inFlightsMomDo" : '',//
"inFlightsMomIn" : '',//
"inFlightsMomTo" : '',//
"inFlightsYoyDo" : '',//
"inFlightsYoyIn" : '',//
"inFlightsYoyTo" : '',//
"inPassengersMomDo" : '',//
"inPassengersMomIn" : '',//
"inPassengersMomTo" : '',//
"inPassengersYoyDo" : '',//
"inPassengersYoyIn" : '',//
"inPassengersYoyTo" : '',//
"inboundFlightsDo" : '',//
"inboundFlightsIn" : '',//
"inboundFlightsTo" : '',//
"inboundPassengersDo" : '',//
"inboundPassengersIn" : '',//
"inboundPassengersTo" : '',//
"outFlightsMomDo" : '',//
"outFlightsMomIn" : '',//
"outFlightsMomTo" : '',//
"outFlightsYoyDo" : '',//
"outFlightsYoyIn" : '',//
"outFlightsYoyTo" : '',//
"outPassengersMomDo" : '',//
"outPassengersMomIn" : '',//
"outPassengersMomTo" : '',//
"outPassengersYoyDo" : '',//
"outPassengersYoyIn" : '',//
"outPassengersYoyTo" : '',//
"outboundFlightsDo" : '',//
"outboundFlightsIn" : '',//
"outboundFlightsTo" : '',//
"outboundPassengersDo" : '',//
"outboundPassengersIn" : '',//
"outboundPassengersTo" : '',//
"statDate" : "",
"statPeriod" : ""
}, //form
array: [], //
index: 2, //,0-24
userInfo: {},
pageType: '',
yoyMom: {}
}
},
onLoad(options) {
this.userInfo = uni.getStorageSync('userInfo');
if (options.type == 'add') {
this.pageType = 'add';
let now = new Date();
this.form.affiliatedUnit = this.userInfo.organizationName ? this.userInfo.organizationName : '';
this.form.statDate = getDateStr(now, -1); //
this.queryTime(); //
} else if(options.item) {
this.form = JSON.parse(options.item);
this.queryTime();
} else if (options.id) {
this.$request(getApp().globalData.baseUrl + '/api/biz/watertransportRunData/find/' + options.id, {}, "GET")
.then(
res => {
this.form = res.data;
this.queryTime(); //
});
}
},
methods: {
//
queryYoyMom() {
if (this.form.statDate == '' || this.form.statPeriod == '') {
return;
}
this.$request(getApp().globalData.baseUrl + '/api/biz/airportRunData/getYoYMoM?statDate=' + this
.form
.statDate + '&statPeriod=' + this.form.statPeriod + '&_t=' + Date.parse(new Date()), {}, 'GET')
.then(res => {
this.yoyMom = res.data;
this.calcYoyMom(); //
})
},
//
calcYoyMom() {
console.log('环比同比计算');
let yesterdayData = this.yoyMom.yesterdayData;
let lastYearData = this.yoyMom.lastYearData;
//-
this.form.inFlightsMomDo = !checkNotEmpty(this.form.inboundFlightsDo) ? '' : yesterdayData.inboundFlightsDo === 0 ? 100 : checkNotEmpty(yesterdayData.inboundFlightsDo) ? (parseInt(this.form.inboundFlightsDo) - yesterdayData.inboundFlightsDo) / yesterdayData.inboundFlightsDo * 100 : '';
this.form.inFlightsYoyDo = !checkNotEmpty(this.form.inboundFlightsDo) ? '' : lastYearData.inboundFlightsDo === 0 ? 100 : checkNotEmpty(lastYearData.inboundFlightsDo) ? (parseInt(this.form.inboundFlightsDo) - lastYearData.inboundFlightsDo) / lastYearData.inboundFlightsDo * 100 : '';
this.form.inPassengersMomDo = !checkNotEmpty(this.form.inboundPassengersDo) ? '' : yesterdayData.inboundPassengersDo === 0 ? 100 : checkNotEmpty(yesterdayData.inboundPassengersDo) ? (parseInt(this.form.inboundPassengersDo) - yesterdayData.inboundFlightsDo) / yesterdayData.inboundPassengersDo * 100 : '';
this.form.inPassengersYoyDo = !checkNotEmpty(this.form.inboundPassengersDo) ? '' : lastYearData.inboundPassengersDo === 0 ? 100 : checkNotEmpty(lastYearData.inboundPassengersDo) ? (parseInt(this.form.inboundPassengersDo) - lastYearData.inboundFlightsDo) / lastYearData.inboundPassengersDo * 100 : '';
//-
this.form.outFlightsMomDo = !checkNotEmpty(this.form.outboundFlightsDo) ? '' : yesterdayData.outboundFlightsDo === 0 ? 100 : checkNotEmpty(yesterdayData.outboundFlightsDo) ? (parseInt(this.form.outboundFlightsDo) - yesterdayData.outboundFlightsDo) / yesterdayData.outboundFlightsDo * 100 : '';
this.form.outFlightsYoyDo = !checkNotEmpty(this.form.outboundFlightsDo) ? '' : lastYearData.outboundFlightsDo === 0 ? 100 : checkNotEmpty(lastYearData.outboundFlightsDo) ? (parseInt(this.form.outboundFlightsDo) - lastYearData.outboundFlightsDo) / lastYearData.outboundFlightsDo * 100 : '';
this.form.outPassengersMomDo = !checkNotEmpty(this.form.outboundPassengersDo) ? '' : yesterdayData.outboundPassengersDo === 0 ? 100 : checkNotEmpty(yesterdayData.outboundPassengersDo) ? (parseInt(this.form.outboundPassengersDo) - yesterdayData.outboundPassengersDo) / yesterdayData.outboundPassengersDo * 100 : '';
this.form.outPassengersYoyDo = !checkNotEmpty(this.form.outboundPassengersDo) ? '' : lastYearData.outboundPassengersDo === 0 ? 100 : checkNotEmpty(lastYearData.outboundPassengersDo) ? (parseInt(this.form.outboundPassengersDo) - lastYearData.outboundPassengersDo) / lastYearData.outboundPassengersDo * 100 : '';
//-
this.form.inFlightsMomIn = !checkNotEmpty(this.form.inboundFlightsIn) ? '' : yesterdayData.inboundFlightsIn === 0 ? 100 : checkNotEmpty(yesterdayData.inboundFlightsIn) ? (parseInt(this.form.inboundFlightsIn) - yesterdayData.inboundFlightsIn) / yesterdayData.inboundFlightsIn * 100 : '';
this.form.inFlightsYoyIn = !checkNotEmpty(this.form.inboundFlightsIn) ? '' : lastYearData.inboundFlightsIn === 0 ? 100 : checkNotEmpty(lastYearData.inboundFlightsIn) ? (parseInt(this.form.inboundFlightsIn) - lastYearData.inboundFlightsIn) / lastYearData.inboundFlightsIn * 100 : '';
this.form.inPassengersMomIn = !checkNotEmpty(this.form.inboundPassengersIn) ? '' : yesterdayData.inboundPassengersIn === 0 ? 100 : checkNotEmpty(yesterdayData.inboundPassengersIn) ? (parseInt(this.form.inboundPassengersIn) - yesterdayData.inboundPassengersIn) / yesterdayData.inboundPassengersIn * 100 : '';
this.form.inPassengersYoyIn = !checkNotEmpty(this.form.inboundPassengersIn) ? '' : lastYearData.inboundPassengersIn === 0 ? 100 : checkNotEmpty(lastYearData.inboundPassengersIn) ? (parseInt(this.form.inboundPassengersIn) - lastYearData.inboundPassengersIn) / lastYearData.inboundPassengersIn * 100 : '';
//-
this.form.outFlightsMomIn = !checkNotEmpty(this.form.outboundFlightsIn) ? '' : yesterdayData.outboundFlightsIn === 0 ? 100 : checkNotEmpty(yesterdayData.outboundFlightsIn) ? (parseInt(this.form.outboundFlightsIn) - yesterdayData.outboundFlightsIn) / yesterdayData.outboundFlightsIn * 100 : '';
this.form.outFlightsYoyIn = !checkNotEmpty(this.form.outboundFlightsIn) ? '' : lastYearData.outboundFlightsIn === 0 ? 100 : checkNotEmpty(lastYearData.outboundFlightsIn) ? (parseInt(this.form.outboundFlightsIn) - lastYearData.outboundFlightsIn) / lastYearData.outboundFlightsIn * 100 : '';
this.form.outPassengersMomIn = !checkNotEmpty(this.form.outboundPassengersIn) ? '' : yesterdayData.outboundPassengersIn === 0 ? 100 : checkNotEmpty(yesterdayData.outboundPassengersIn) ? (parseInt(this.form.outboundPassengersIn) - yesterdayData.outboundPassengersIn) / yesterdayData.outboundPassengersIn * 100 : '';
this.form.outPassengersYoyIn = !checkNotEmpty(this.form.outboundPassengersIn) ? '' : lastYearData.outboundPassengersIn === 0 ? 100 : checkNotEmpty(lastYearData.outboundPassengersIn) ? (parseInt(this.form.outboundPassengersIn) - lastYearData.outboundPassengersIn) / lastYearData.outboundPassengersIn * 100 : '';
//-
this.form.inboundFlightsTo = (checkNotEmpty(this.form.inboundFlightsDo) ? parseInt(this.form.inboundFlightsDo) : 0) + (checkNotEmpty(this.form.inboundFlightsIn) ? parseInt(this.form.inboundFlightsIn) : 0);//-
this.form.inboundPassengersTo = (checkNotEmpty(this.form.inboundPassengersDo) ? parseInt(this.form.inboundPassengersDo) : 0) + (checkNotEmpty(this.form.inboundPassengersIn) ? parseInt(this.form.inboundPassengersIn) : 0);//-
this.form.inFlightsMomTo = !checkNotEmpty(this.form.inboundFlightsTo) ? '' : yesterdayData.inboundFlightsTo === 0 ? 100 : checkNotEmpty(yesterdayData.inboundFlightsTo) ? (parseInt(this.form.inboundFlightsTo) - yesterdayData.inboundFlightsTo) / yesterdayData.inboundFlightsTo * 100 : '';
this.form.inFlightsYoyTo = !checkNotEmpty(this.form.inboundFlightsTo) ? '' : lastYearData.inboundFlightsTo === 0 ? 100 : checkNotEmpty(lastYearData.inboundFlightsTo) ? (parseInt(this.form.inboundFlightsTo) - lastYearData.inboundFlightsTo) / lastYearData.inboundFlightsTo * 100 : '';
this.form.inPassengersMomTo = !checkNotEmpty(this.form.inboundPassengersTo) ? '' : yesterdayData.inboundPassengersTo === 0 ? 100 : checkNotEmpty(yesterdayData.inboundPassengersTo) ? (parseInt(this.form.inboundPassengersTo) - yesterdayData.inboundPassengersTo) / yesterdayData.inboundPassengersTo * 100 : '';
this.form.inPassengersYoyTo = !checkNotEmpty(this.form.inboundPassengersTo) ? '' : lastYearData.inboundPassengersTo === 0 ? 100 : checkNotEmpty(lastYearData.inboundPassengersTo) ? (parseInt(this.form.inboundPassengersTo) - lastYearData.inboundPassengersTo) / lastYearData.inboundPassengersTo * 100 : '';
//-
this.form.outboundFlightsTo = (checkNotEmpty(this.form.outboundFlightsDo) ? parseInt(this.form.outboundFlightsDo) : 0) + (checkNotEmpty(this.form.outboundFlightsIn) ? parseInt(this.form.outboundFlightsIn) : 0);//-
this.form.outboundPassengersTo = (checkNotEmpty(this.form.outboundPassengersDo) ? parseInt(this.form.outboundPassengersDo) : 0) + (checkNotEmpty(this.form.outboundPassengersIn) ? parseInt(this.form.outboundPassengersIn) : 0);//-
this.form.outFlightsMomTo = !checkNotEmpty(this.form.outboundFlightsTo) ? '' : yesterdayData.outboundFlightsTo === 0 ? 100 : checkNotEmpty(yesterdayData.outboundFlightsTo) ? (parseInt(this.form.outboundFlightsTo) - yesterdayData.outboundFlightsTo) / yesterdayData.outboundFlightsTo * 100 : '';
this.form.outFlightsYoyTo = !checkNotEmpty(this.form.outboundFlightsTo) ? '' : lastYearData.outboundFlightsTo === 0 ? 100 : checkNotEmpty(lastYearData.outboundFlightsTo) ? (parseInt(this.form.outboundFlightsTo) - lastYearData.outboundFlightsTo) / lastYearData.outboundFlightsTo * 100 : '';
this.form.outPassengersMomTo = !checkNotEmpty(this.form.outboundPassengersTo) ? '' : yesterdayData.outboundPassengersTo === 0 ? 100 : checkNotEmpty(yesterdayData.outboundPassengersTo) ? (parseInt(this.form.outboundPassengersTo) - yesterdayData.outboundPassengersTo) / yesterdayData.outboundPassengersTo * 100 : '';
this.form.outPassengersYoyTo = !checkNotEmpty(this.form.outboundPassengersTo) ? '' : lastYearData.outboundPassengersTo === 0 ? 100 : checkNotEmpty(lastYearData.outboundPassengersTo) ? (parseInt(this.form.outboundPassengersTo) - lastYearData.outboundPassengersTo) / lastYearData.outboundPassengersTo * 100 : '';
},
//
changeStatPeriod(e) {
this.index = e.detail.value;
this.form.statPeriod = this.array[e.detail.value].dictValue;
console.log('change 时段', this.form);
this.queryYoyMom();
},
//
doCancel() {
uni.navigateBack();
},
//
bindDateChange(e) {
this.form.statDate = e.detail.value;
this.queryYoyMom();
},
//
queryTime() {
this.$request(getApp().globalData.baseUrl + '/api/dict/dictList?dictType=airport_time' + '&_t=' + Date
.parse(
new Date()), {}, 'GET').then(res => {
this.array = res.data;
if (this.pageType == 'add') {
let now = new Date();
//11:00-13:30 0-12
let dateStr = getDateStr(now, 0);
if (new Date(dateStr + ' 11:00').getTime() < new Date().getTime() && new Date().getTime() <
new Date(dateStr +
' 13:30').getTime()) {
this.form.statPeriod = '0012';
this.index = this.array.findIndex(item => item.dictValue == '0012');
} else {
this.form.statPeriod = '03'; //0-24
this.index = this.array.findIndex(item => item.dictValue == '03');
}
} else {
this.index = this.array.findIndex(item => item.dictValue == this.form.statPeriod);
}
this.queryYoyMom();
})
},
//
doSubmit() {
if (!checkNotEmpty(this.form.statDate) || !checkNotEmpty(this.form.statPeriod)) {
uni.showToast({
title: '报送日期和时段不能为空',
icon: 'none'
})
return;
}
if (!checkNotEmpty(this.form.inboundFlightsDo) || !checkNotEmpty(this.form.outboundFlightsDo)) {
uni.showToast({
title: '国内入青/出青航班架次不能为空',
icon: 'none'
})
return;
}
if (!checkNotEmpty(this.form.inboundPassengersDo) || !checkNotEmpty(this.form.outboundPassengersDo)) {
uni.showToast({
title: '国内入青/出青旅客不能为空',
icon: 'none'
})
return;
}
if (!checkNotEmpty(this.form.inPassengersYoyIn) || !checkNotEmpty(this.form.outboundFlightsIn)) {
uni.showToast({
title: '国际入青/出青航班架次不能为空',
icon: 'none'
})
return;
}
if (!checkNotEmpty(this.form.inboundPassengersIn) || !checkNotEmpty(this.form.outboundPassengersIn)) {
uni.showToast({
title: '国际入青/出青旅客不能为空',
icon: 'none'
})
return;
}
uni.showModal({
title: '提示',
content: this.form.id == undefined ? '您确认提交该条报送数据?' : '您确认将该条数据进行修改?',
success: (res) => {
if (res.confirm) {
this.submitForm();
}
}
})
},
submitForm() {
uni.showLoading({
title: '提交中...',
mask: true
})
this.$request(getApp().globalData.baseUrl + '/api/biz/airportRunData/saveOrUpdate', this.form,
'POST').then(res => {
uni.hideLoading();
if (res.code == 200) {
uni.showToast({
title: '报送提交成功',
icon: 'none',
success: () => {
if (this.form.id == undefined) {
setTimeout(() => {
uni.redirectTo({
url: '/pages/airport/airport-runData/list'
})
}, 300)
} else {
uni.navigateBack();
}
}
})
}
}).catch(() => {
uni.hideLoading();
})
},
}
}
</script>
<style lang="scss" scoped>
.form_warp {
padding: 30rpx 30rpx 195rpx;
.form_intro {
color: #666;
font-size: 26rpx;
font-family: PingFang SC-Bold, PingFang SC;
line-height: 48rpx;
text-align: center;
margin-bottom: 20rpx;
.tel {
color: #2D8CF0;
font-weight: bold;
}
}
.form_item_box {
padding: 30rpx 20rpx 30rpx 30rpx;
background-color: #fff;
border-radius: 30rpx;
//
.form_item_rate {
background: #F6F6F6;
border: 1px solid #F6F6F6;
padding: 30rpx;
margin-bottom: 30rpx;
border-radius: 30rpx;
.line {
height: 1px;
background-color: #dfdfdf;
margin: 30rpx 0;
}
.rate_item {
display: flex;
justify-content: space-between;
font-size: 24rpx;
font-family: PingFang SC-Regular, PingFang SC;
font-weight: 400;
.rate_item_label {
color: #666;
font-size: 24rpx;
}
.rate_item_input {
color: #333;
font-size: 28rpx;
}
}
&.danger {
background-color: #FEF6F3;
border-color: #F0622D;
}
}
.form_item_title {
color: #333;
line-height: 42rpx;
font-size: 30rpx;
font-family: PingFang SC-Bold, PingFang SC;
font-weight: bold;
margin-bottom: 30rpx;
}
.form_item_remark {
margin-bottom: 30rpx;
.form_item_label {
color: #333333;
line-height: 42rpx;
font-size: 30rpx;
font-family: PingFang SC-Bold, PingFang SC;
font-weight: bold;
margin-bottom: 30rpx;
}
}
.form_item {
display: flex;
align-items: center;
justify-content: space-between;
line-height: 37rpx;
font-family: PingFang SC-Regular, PingFang SC;
font-weight: 400;
margin-bottom: 30rpx;
.form_item_label {
width: 260rpx;
color: #666666;
font-size: 26rpx;
word-break: break-all;
}
.form_item_input {
color: #333;
text-align: right;
word-break: break-all;
&.picker {
flex: 1;
// display: flex;
// justify-content: space-between;
// /deep/ picker {
// flex: 1;
// }
.picker_select {
color: #D4D4D4;
font-size: 28rpx;
font-family: PingFang SC-Regular, PingFang SC;
font-weight: 400;
text-align: right;
}
}
//
&.text {
color: #333333;
line-height: 40rpx;
font-size: 28rpx;
font-family: PingFang SC-Regular, PingFang SC;
font-weight: 400;
}
//
&.form_input {
/deep/ .is-input-border {
border: 0 !important;
.uni-easyinput__content-input {
height: 35rpx !important;
text-align: right;
}
}
/deep/ .uni-date-x--border {
border: 0 !important;
.uni-date__x-input {
// height: 35rpx !important;
text-align: right;
}
}
}
}
}
}
}
//
.station_box {
display: flex;
flex-wrap: wrap;
margin-top: 40rpx;
.station_item {
height: 60rpx;
color: #666666;
line-height: 60rpx;
font-size: 26rpx;
font-family: PingFang SC-Regular, PingFang SC;
font-weight: 400;
border-radius: 20rpx;
border: 1rpx solid #C1C1C1;
padding: 0 20rpx;
margin-bottom: 40rpx;
margin-right: 20rpx;
&.active {
position: relative;
color: #1ECE5F;
border-color: #1ECE5F;
background: #EBFAF2;
.tag {
position: absolute;
top: 0;
right: 0;
width: 34rpx;
height: 23rpx;
background: #1ECE5F;
border-radius: 0rpx 20rpx 0rpx 5rpx;
text-align: center;
}
}
}
}
.foot_btn {
position: fixed;
left: 0;
right: 0;
bottom: 0;
display: flex;
justify-content: space-between;
padding: 40rpx 30rpx;
background-color: #f5f5f5;
z-index: 11;
.act_btn {
width: 329rpx;
height: 90rpx;
color: #666666;
font-size: 28rpx;
line-height: 90rpx;
font-family: PingFang SC-Regular, PingFang SC;
font-weight: 400;
text-align: center;
background: #F6F6F6;
border-radius: 100rpx;
border: 1rpx solid #C1C1C1;
&.blue {
color: #fff;
background: #2D8CF0;
border-color: #2D8CF0;
}
}
}
//
.line {
height: 1px;
background-color: #E1E1E1;
}
.add_btn {
height: 90rpx;
line-height: 90rpx;
color: #2D8CF0;
font-size: 28rpx;
font-family: PingFang SC-Regular, PingFang SC;
font-weight: 400;
text-align: center;
background: #ECF5FF;
border-radius: 30rpx;
border: 2rpx solid #2D8CF0;
margin-top: 30rpx;
}
.tab_box {
display: flex;
justify-content: space-around;
.tab_nav {
color: #999999;
line-height: 42rpx;
font-size: 30rpx;
font-family: PingFang SC-Regular, PingFang SC;
font-weight: 400;
padding-bottom: 25rpx;
&.active {
position: relative;
color: #2D8CF0;
font-weight: bold;
&::after {
position: absolute;
content: '';
left: 50%;
bottom: 0;
width: 74rpx;
height: 6rpx;
background: #2D8CF0;
border-radius: 100rpx;
margin-left: -37rpx;
}
}
}
}
button {
background-color: #007aff;
color: #ffffff;
}
</style>

@ -0,0 +1,445 @@
<template>
<view class="page">
<view class="list_box" v-for="(item,index) in data" :key="index" @click="goPage('/pages/airport/airport-runData/form', item)">
<view class="list_top">
<view class="unit_tags">报送时间</view>
<view>{{item.statDate || ''}}<text
style="margin-left:16rpx;">{{item.statPeriodValue || ''}}</text></view>
</view>
</view>
<uni-load-more iconType="circle" :status="status" @clickLoadMore="loadMore"
:contentText="contentText"></uni-load-more>
<!-- 筛选 -->
<view class="foot_btn_box">
<view @click="showSearch" class="act_btn btn1"><uni-icons type="search" size="18" color="#2D8CF0"
style="margin-right: 9rpx;"></uni-icons>
</view>
</view>
<!-- 筛选 -->
<uni-popup ref="popup" style="width: 100%;" background-color="none">
<view class="pop_box">
<view class="pop_title">
查询条件
<uni-icons type="closeempty" size="18" color="#666" class="pop_close"></uni-icons>
</view>
<view class="popup-content">
<view class="cont_tit">
统计起止时间
</view>
<view class="time_box">
<uni-datetime-picker v-model="timeRange" type="daterange" />
</view>
<view class="cont_tit picker">
<view>统计时段</view>
<view class="picker_select">
<picker @change="bindPickerChange" :value="index" :range="array" range-key="dictLabel">
<text class="unselect_txt"
:style="index?'color:#333;':''">{{index?array[index].dictLabel:'请选择时段'}}</text>
<uni-icons type="right" size="16" color="#D4D4D4"></uni-icons>
</picker>
</view>
</view>
</view>
<view class="btn_box">
<p class="btn" @click="searchReset">重置</p>
<p class="btn" @click="searchList">确认</p>
</view>
</view>
</uni-popup>
</view>
</template>
<script>
export default {
data() {
return {
data: [],
current: 0,
size: 10,
hasMore: true,
status: '',
query: {
statDateStart: '',
statDateEnd: '',
statPeriod: ''
},
contentText: {
contentdown: "点击查看更多",
contentrefresh: "正在加载...",
contentnomore: "没有更多数据了",
},
timeRange: [], //
array: [], //
index: '', //
}
},
onLoad() {
this.queryTime();
this.loadMore();
},
onUnload() {
this.hasMore = true;
this.data = [];
},
onPullDownRefresh() {
console.log('onPullDownRefresh');
this.data = [];
this.current = 0;
this.hasMore = true;
this.loadMore();
},
methods: {
//
showDetail(index1, index2, flag) {
this.data[index1].highwaySubDataList[index2].show = flag;
},
//
bindPickerChange: function(e) {
console.log('picker发送选择改变,携带值为', e.detail.value)
this.index = e.detail.value
},
//
searchList() {
this.query = {
statDateStart: this.timeRange.length > 0 ? this.timeRange[0] : '',
statDateEnd: this.timeRange.length > 0 ? this.timeRange[1] : '',
statPeriod: this.index != '' && this.index > -1 ? this.array[this.index].dictValue : ''
};
this.data = [];
this.current = 0;
this.hasMore = true;
this.$refs.popup.close();
this.loadMore();
},
//
searchReset() {
this.timeRange = [];
this.query = {
statDateStart: '',
statDateEnd: '',
statPeriod: ''
};
this.index = '';
},
//
showSearch() {
this.$refs.popup.open('bottom');
},
//
queryTime() {
this.$request(getApp().globalData.baseUrl + '/api/dict/dictList?dictType=airport_time' + '&_t=' + Date.parse(
new Date()), {}, 'GET').then(res => {
this.array = res.data;
})
},
loadMore() {
if (this.hasMore) {
this.current = this.current + 1;
this.status = 'loading';
let params = '';
Object.keys(this.query).map(key => {
params = params + '&' + key + '=' + this.query[key]
})
this.$request(getApp().globalData.baseUrl + '/api/biz/airportRunData/list?page=' + this.current +
'&pageSize=' + this.size + '&_t=' + Date.parse(new Date()) + params, {}, 'GET').then(res => {
if (res.code == 200) {
this.data = this.data.concat(res.data.list);
if (res.data.list.length == 0 || res.data.totalCount < this.size) {
this.hasMore = false;
this.status = 'nomore';
} else {
this.status = 'more';
}
uni.stopPullDownRefresh();
} else {
this.status = 'more';
uni.stopPullDownRefresh();
}
}).catch(() => {
this.status = 'more';
uni.stopPullDownRefresh();
})
}
},
//
goPage(url, param) {
if (param) {
uni.navigateTo({
url: url + '?item=' + JSON.stringify(param)
})
} else {
uni.navigateTo({
url: url
})
}
},
}
}
</script>
<style lang="scss" scoped>
.page {
min-height: 100vh;
padding: 30rpx 30rpx 195rpx;
}
.list_box {
background-color: #fff;
border-radius: 30rpx;
margin-bottom: 30rpx;
padding: 30rpx;
.list_top {
display: flex;
.unit_tags {
height: 37rpx;
line-height: 37rpx;
color: #E37616;
font-size: 20rpx;
font-family: PingFang SC-Regular, PingFang SC;
font-weight: 400;
background: #FFF7E4;
border-radius: 10rpx;
border: 1rpx solid #EF9A4F;
padding: 0 11rpx;
margin-right: 16rpx;
}
.unit_name {
color: #333333;
font-size: 30rpx;
font-family: PingFang SC-Bold, PingFang SC;
font-weight: bold;
line-height: 48rpx;
margin-left: 20rpx;
word-break: break-all;
}
}
.report_time {
color: #999999;
font-size: 24rpx;
font-family: PingFang SC-Regular, PingFang SC;
font-weight: 400;
line-height: 48rpx;
text-align: center;
margin-bottom: 30rpx;
}
.list_item_box {
padding: 30rpx 30rpx 0;
background: #F8F8F8;
border-radius: 30rpx;
margin-bottom: 30rpx;
}
.list_item {
display: flex;
align-items: center;
justify-content: space-between;
padding: 0 0 30rpx;
.list_item_label {
width: 320rpx;
color: #666666;
font-size: 26rpx;
font-family: PingFang SC-Regular, PingFang SC;
font-weight: 400;
line-height: 48rpx;
}
.list_item_cnt {
flex: 1;
color: #333333;
font-size: 28rpx;
font-family: PingFang SC-Regular, PingFang SC;
font-weight: 400;
line-height: 48rpx;
text-align: right;
margin-left: 20rpx;
word-break: break-all;
}
}
.list_item_shouqi {
color: #2D8CF0;
font-size: 24rpx;
font-family: PingFang SC-Regular, PingFang SC;
font-weight: 400;
text-align: center;
line-height: 33rpx;
padding-bottom: 30rpx;
.txt {
margin-left: 12rpx;
}
}
.act_btn_box {
display: flex;
flex-direction: row-reverse;
margin: 10rpx 0;
.act_btn {
width: 180rpx;
color: #666666;
font-size: 28rpx;
font-family: PingFang SC-Regular, PingFang SC;
font-weight: 400;
line-height: 70rpx;
background: #FFFFFF;
border-radius: 100rpx;
border: 1rpx solid #C1C1C1;
text-align: center;
&.blue {
color: #fff;
background: #2D8CF0;
border-color: #2D8CF0;
}
}
}
}
.foot_btn_box {
position: fixed;
left: 0;
right: 0;
bottom: 0;
display: flex;
// justify-content: space-around;
background-color: #F8F8F8;
padding: 20rpx 30rpx;
.act_btn {
width: 690rpx;
height: 90rpx;
line-height: 88rpx;
display: flex;
justify-content: center;
color: #FFFFFF;
font-size: 28rpx;
font-family: PingFang SC-Regular, PingFang SC;
font-weight: 400;
background: #2D8CF0;
border-radius: 100rpx;
border: 1rpx solid #2D8CF0;
.txt {
margin-left: 9rpx;
}
&.btn1 {
color: #2D8CF0;
background: #F6F6F6;
}
}
}
.pop_box {
border-radius: 30rpx 30rpx 0 0;
background-color: #fff;
padding: 30rpx;
.pop_title {
color: #333333;
font-size: 32rpx;
font-family: PingFang SC-Bold, PingFang SC;
font-weight: bold;
line-height: 45rpx;
text-align: center;
margin: 20rpx 0;
.pop_close {
float: right;
}
}
.popup-content {
// display: flex;
// flex-direction: column;
.cont_tit {
width: 100%;
color: #333333;
font-size: 26rpx;
font-family: PingFang SC-Bold, PingFang SC;
font-weight: bold;
line-height: 37rpx;
display: flex;
margin-bottom: 40rpx;
&.picker {
display: flex;
justify-content: space-between;
margin: 60rpx 0;
.picker_select {
color: #D4D4D4;
font-size: 28rpx;
font-family: PingFang SC-Regular, PingFang SC;
font-weight: 400;
text-align: right;
}
}
}
.time_box {
width: 690rpx;
margin: 0 auto;
/deep/ .uni-date-x--border {
border-radius: 30rpx;
.uni-date-x {
background: transparent;
.icon-calendar {
padding-left: 20rpx;
}
}
}
/deep/ .uni-date-editor--x .uni-date__icon-clear {
padding-right: 20rpx;
}
}
.picker_box {
width: 690rpx;
margin: 0 auto;
/deep/.input-value-border {
border-radius: 30rpx;
}
}
}
.btn_box {
width: 100%;
height: 120rpx;
display: flex;
margin-top: 20px;
align-items: center;
justify-content: space-between;
.btn {
width: 290rpx;
height: 90rpx;
background: #FFFFFF;
border-radius: 100rpx;
border: 1rpx solid #C1C1C1;
color: #666;
font-size: 28rpx;
line-height: 88rpx;
text-align: center;
&:last-child {
background: #2D8CF0;
color: #FFFFFF;
border-color: #2D8CF0;
}
}
}
}
</style>

@ -0,0 +1,502 @@
<template>
<view class="form_warp">
<view class="form_intro">
<view>如有填报问题请咨询公共服务中心</view>
<view>中心值班电话<text class="tel">66007587</text></view>
</view>
<view class="form_item_box">
<view class="form_item_title">基本信息</view>
<view class="form_item">
<view class="form_item_label">统计日期</view>
<view class="form_item_input picker">
<picker mode="date" :value="form.statDate" @change="bindDateChange">
<text class="picker_select"
:style="form.statDate?'color:#333;':''">{{form.statDate?form.statDate:'请选择'}}</text>
<uni-icons type="right" size="16" color="#D4D4D4"></uni-icons>
</picker>
</view>
</view>
<view class="form_item">
<view class="form_item_label">统计时段</view>
<view class="form_item_input picker">
<picker :value="index" :range="array" range-key="dictLabel" @change="changeStatPeriod">
<text class="picker_select"
:style="index>-1?'color:#333;':''">{{index>-1?array[index].dictLabel:'请选择'}}</text>
<uni-icons type="right" size="16" color="#D4D4D4"></uni-icons>
</picker>
</view>
</view>
</view>
<view class="form_item_box" style="margin-top: 30rpx;">
<!-- 运行情况 -->
<view class="form-item">
运行情况详细包含内容航班延误延误航班名称始发终到延误时长 客流挤压情况延误原因相关处置措施等其他异常
</view>
<view class="form_item_li" v-for="(item,index) in form.listCondition" :key="index">
<view class="form_item_remark">
<view class="form_item"
style="display:flex; justify-content: space-between;font-size: 30rpx;color:#333;font-weight: bold;margin-top: 30rpx;">
运行情况-{{index+1}}
<uni-icons type="trash" color="red" @click="delRow(index)" size="18"></uni-icons>
</view>
<view class="form_item_input form_input">
<uni-easyinput type="textarea" v-model="item.dataDetails"
placeholderStyle="color: #D4D4D4;font-size:28rpx;" placeholder="请输入" maxlength="200">
</uni-easyinput>
</view>
<view class="line" style="margin-top: 30rpx;"></view>
</view>
</view>
<view class="add_btn" @click="addRow()">增行</view>
</view>
<!-- 底部按钮 -->
<view class="foot_btn">
<view class="act_btn" @click="doCancel">取消</view>
<view class="act_btn blue" @click="doSubmit">确认</view>
</view>
</view>
</template>
<script>
import {
getDateStr,
checkNotEmpty
} from "../../../common/util.js"
export default {
data() {
return {
form: {
"children": [{
"dataDetails": ""
}],
"carName": "",
"statDate": "",
"statPeriod": ""
}, //form
array: [], //
index: 2, //,0-24
userInfo: {},
pageType: ''
}
},
onLoad(options) {
this.userInfo = uni.getStorageSync('userInfo');
if (options.type == 'add') {
this.pageType = 'add';
let now = new Date();
this.form.statDate = getDateStr(now, -1); //
this.queryTime(); //
} if (options.item) {
this.form = JSON.parse(options.item);
this.queryTime(); //
} if (options.id) {
this.$request(getApp().globalData.baseUrl+'/api/biz/railwayRunSituation/find//'+options.id,{},"GET").then(res => {
this.form = res.data;
this.queryTime(); //
});
}
},
methods: {
//
addRow() {
this.form.children.push({
dataDetails: ""
});
},
//
delRow(index) {
this.form.children.splice(index, 1);
},
//
changeStatPeriod(e) {
this.index = e.detail.value;
this.form.statPeriod = this.array[e.detail.value].dictValue;
console.log('change 时段', this.form);
},
//
doCancel() {
uni.navigateBack();
},
//
bindDateChange(e) {
this.form.statDate = e.detail.value;
},
//
queryTime() {
this.$request(getApp().globalData.baseUrl + '/api/dict/dictList?dictType=airport_time' + '&_t=' + Date
.parse(
new Date()), {}, 'GET').then(res => {
this.array = res.data;
if(this.pageType == 'add') {
let now = new Date();
//11:00-13:30 0-12
let dateStr = getDateStr(now, 0);
if(new Date(dateStr + ' 11:00').getTime() < new Date().getTime() && new Date().getTime() < new Date(dateStr + ' 13:30').getTime()) {
this.form.statPeriod = '0012';
let idx = this.array.findIndex(item => item.dictValue == '0012');
this.index = idx > -1 ? idx : idx;
}else{
this.form.statPeriod = '03'; //0-24
let idx = this.array.findIndex(item => item.dictValue == '03');
this.index = idx > -1 ? idx : idx;
}
}else{
let idx = this.array.findIndex(item => item.dictValue == this.form.statPeriod);
this.index = idx > -1 ? idx : idx;
}
})
},
//
doSubmit() {
if (!checkNotEmpty(this.form.statDate) || !checkNotEmpty(this.form.statPeriod)) {
uni.showToast({
title: '报送日期和时段不能为空',
icon: 'none'
})
return;
}
let checkList = true;
if (this.form.listCondition.length > 0) {
checkList = this.form.children.every(item => {
return typeof(item.dataDetails) !== 'undefined' && item.dataDetails !== null && item.dataDetails !== '';
})
}
console.log(checkList,this.form)
if (!checkList) {
uni.showToast({
title: '运行情况不能为空',
icon: 'none'
})
return;
}
this.form.children.map((item,index) => {
item.seq = index;
})
uni.showModal({
title: '提示',
content: this.form.id == undefined ? '您确认提交该条报送数据?' : '您确认将该条数据进行修改?',
success: (res) => {
if (res.confirm) {
this.submitForm();
}
}
})
},
submitForm() {
uni.showLoading({
title: '提交中...',
mask: true
})
this.$request(getApp().globalData.baseUrl + '/api/biz/airportRunSituation/saveOrUpdate', this.form,
'POST').then(res => {
uni.hideLoading();
if (res.code == 200) {
uni.showToast({
title: '报送提交成功',
icon: 'none',
success: () => {
if(this.form.id == undefined) {
setTimeout(() => {
uni.redirectTo({
url: '/pages/airport/airport-runStatus/list'
})
}, 300)
}
else {
uni.navigateBack();
}
}
})
}
}).catch(() => {
uni.hideLoading();
})
},
}
}
</script>
<style lang="scss" scoped>
.form_warp {
padding: 30rpx 30rpx 195rpx;
.form_intro {
color: #666;
font-size: 26rpx;
font-family: PingFang SC-Bold, PingFang SC;
line-height: 48rpx;
text-align: center;
margin-bottom: 20rpx;
.tel {
color: #2D8CF0;
font-weight: bold;
}
}
.form_item_box {
padding: 30rpx 20rpx 30rpx 30rpx;
background-color: #fff;
border-radius: 30rpx;
//
.form_item_rate {
background: #F6F6F6;
border: 1px solid #F6F6F6;
padding: 30rpx;
margin-bottom: 30rpx;
border-radius: 30rpx;
.line {
height: 1px;
background-color: #dfdfdf;
margin: 30rpx 0;
}
.rate_item {
display: flex;
justify-content: space-between;
font-size: 24rpx;
font-family: PingFang SC-Regular, PingFang SC;
font-weight: 400;
.rate_item_label {
color: #666;
font-size: 24rpx;
}
.rate_item_input {
color: #333;
font-size: 28rpx;
}
}
&.danger {
background-color: #FEF6F3;
border-color: #F0622D;
}
}
.form_item_title {
color: #333;
line-height: 42rpx;
font-size: 30rpx;
font-family: PingFang SC-Bold, PingFang SC;
font-weight: bold;
margin-bottom: 30rpx;
}
.form_item_remark {
margin-bottom: 30rpx;
.form_item_label {
color: #333333;
line-height: 42rpx;
font-size: 30rpx;
font-family: PingFang SC-Bold, PingFang SC;
font-weight: bold;
margin-bottom: 30rpx;
}
}
.form_item {
display: flex;
align-items: center;
justify-content: space-between;
line-height: 37rpx;
font-family: PingFang SC-Regular, PingFang SC;
font-weight: 400;
margin-bottom: 30rpx;
.form_item_label {
width: 260rpx;
color: #666666;
font-size: 26rpx;
word-break: break-all;
}
.form_item_input {
color: #333;
text-align: right;
word-break: break-all;
&.picker {
flex: 1;
// display: flex;
// justify-content: space-between;
// /deep/ picker {
// flex: 1;
// }
.picker_select {
color: #D4D4D4;
font-size: 28rpx;
font-family: PingFang SC-Regular, PingFang SC;
font-weight: 400;
text-align: right;
}
}
//
&.text {
color: #333333;
line-height: 40rpx;
font-size: 28rpx;
font-family: PingFang SC-Regular, PingFang SC;
font-weight: 400;
}
//
&.form_input {
/deep/ .is-input-border {
border: 0 !important;
.uni-easyinput__content-input {
height: 35rpx !important;
text-align: right;
}
}
/deep/ .uni-date-x--border {
border: 0 !important;
.uni-date__x-input {
// height: 35rpx !important;
text-align: right;
}
}
}
}
}
}
}
//
.station_box {
display: flex;
flex-wrap: wrap;
margin-top: 40rpx;
.station_item {
height: 60rpx;
color: #666666;
line-height: 60rpx;
font-size: 26rpx;
font-family: PingFang SC-Regular, PingFang SC;
font-weight: 400;
border-radius: 20rpx;
border: 1rpx solid #C1C1C1;
padding: 0 20rpx;
margin-bottom: 40rpx;
margin-right: 20rpx;
&.active {
position: relative;
color: #1ECE5F;
border-color: #1ECE5F;
background: #EBFAF2;
.tag {
position: absolute;
top: 0;
right: 0;
width: 34rpx;
height: 23rpx;
background: #1ECE5F;
border-radius: 0rpx 20rpx 0rpx 5rpx;
text-align: center;
}
}
}
}
.foot_btn {
position: fixed;
left: 0;
right: 0;
bottom: 0;
display: flex;
justify-content: space-between;
padding: 40rpx 30rpx;
background-color: #f5f5f5;
z-index: 11;
.act_btn {
width: 329rpx;
height: 90rpx;
color: #666666;
font-size: 28rpx;
line-height: 90rpx;
font-family: PingFang SC-Regular, PingFang SC;
font-weight: 400;
text-align: center;
background: #F6F6F6;
border-radius: 100rpx;
border: 1rpx solid #C1C1C1;
&.blue {
color: #fff;
background: #2D8CF0;
border-color: #2D8CF0;
}
}
}
//
.line {
height: 1px;
background-color: #E1E1E1;
}
.add_btn {
height: 90rpx;
line-height: 90rpx;
color: #2D8CF0;
font-size: 28rpx;
font-family: PingFang SC-Regular, PingFang SC;
font-weight: 400;
text-align: center;
background: #ECF5FF;
border-radius: 30rpx;
border: 2rpx solid #2D8CF0;
margin-top: 30rpx;
}
.tab_box {
display: flex;
justify-content: space-around;
.tab_nav {
color: #999999;
line-height: 42rpx;
font-size: 30rpx;
font-family: PingFang SC-Regular, PingFang SC;
font-weight: 400;
padding-bottom: 25rpx;
&.active {
position: relative;
color: #2D8CF0;
font-weight: bold;
&::after {
position: absolute;
content: '';
left: 50%;
bottom: 0;
width: 74rpx;
height: 6rpx;
background: #2D8CF0;
border-radius: 100rpx;
margin-left: -37rpx;
}
}
}
}
button {
background-color: #007aff;
color: #ffffff;
}
</style>

@ -0,0 +1,445 @@
<template>
<view class="page">
<view class="list_box" v-for="(item,index) in data" :key="index" @click="goPage('/pages/airport/airport-runStatus/form', item)">
<view class="list_top">
<view class="unit_tags">报送时间</view>
<view>{{item.statDate || ''}}<text
style="margin-left:16rpx;">{{item.statPeriodValue || ''}}</text></view>
</view>
</view>
<uni-load-more iconType="circle" :status="status" @clickLoadMore="loadMore"
:contentText="contentText"></uni-load-more>
<!-- 筛选 -->
<view class="foot_btn_box">
<view @click="showSearch" class="act_btn btn1"><uni-icons type="search" size="18" color="#2D8CF0"
style="margin-right: 9rpx;"></uni-icons>
</view>
</view>
<!-- 筛选 -->
<uni-popup ref="popup" style="width: 100%;" background-color="none">
<view class="pop_box">
<view class="pop_title">
查询条件
<uni-icons type="closeempty" size="18" color="#666" class="pop_close"></uni-icons>
</view>
<view class="popup-content">
<view class="cont_tit">
统计起止时间
</view>
<view class="time_box">
<uni-datetime-picker v-model="timeRange" type="daterange" />
</view>
<view class="cont_tit picker">
<view>统计时段</view>
<view class="picker_select">
<picker @change="bindPickerChange" :value="index" :range="array" range-key="dictLabel">
<text class="unselect_txt"
:style="index?'color:#333;':''">{{index?array[index].dictLabel:'请选择时段'}}</text>
<uni-icons type="right" size="16" color="#D4D4D4"></uni-icons>
</picker>
</view>
</view>
</view>
<view class="btn_box">
<p class="btn" @click="searchReset">重置</p>
<p class="btn" @click="searchList">确认</p>
</view>
</view>
</uni-popup>
</view>
</template>
<script>
export default {
data() {
return {
data: [],
current: 0,
size: 10,
hasMore: true,
status: '',
query: {
statDateStart: '',
statDateEnd: '',
statPeriod: ''
},
contentText: {
contentdown: "点击查看更多",
contentrefresh: "正在加载...",
contentnomore: "没有更多数据了",
},
timeRange: [], //
array: [], //
index: '', //
}
},
onLoad() {
this.queryTime();
this.loadMore();
},
onUnload() {
this.hasMore = true;
this.data = [];
},
onPullDownRefresh() {
console.log('onPullDownRefresh');
this.data = [];
this.current = 0;
this.hasMore = true;
this.loadMore();
},
methods: {
//
showDetail(index1, index2, flag) {
this.data[index1].highwaySubDataList[index2].show = flag;
},
//
bindPickerChange: function(e) {
console.log('picker发送选择改变,携带值为', e.detail.value)
this.index = e.detail.value
},
//
searchList() {
this.query = {
statDateStart: this.timeRange.length > 0 ? this.timeRange[0] : '',
statDateEnd: this.timeRange.length > 0 ? this.timeRange[1] : '',
statPeriod: this.index != '' && this.index > -1 ? this.array[this.index].dictValue : ''
};
this.data = [];
this.current = 0;
this.hasMore = true;
this.$refs.popup.close();
this.loadMore();
},
//
searchReset() {
this.timeRange = [];
this.query = {
statDateStart: '',
statDateEnd: '',
statPeriod: ''
};
this.index = '';
},
//
showSearch() {
this.$refs.popup.open('bottom');
},
//
queryTime() {
this.$request(getApp().globalData.baseUrl + '/api/dict/dictList?dictType=airport_time' + '&_t=' + Date.parse(
new Date()), {}, 'GET').then(res => {
this.array = res.data;
})
},
loadMore() {
if (this.hasMore) {
this.current = this.current + 1;
this.status = 'loading';
let params = '';
Object.keys(this.query).map(key => {
params = params + '&' + key + '=' + this.query[key]
})
this.$request(getApp().globalData.baseUrl + '/api/biz/airportRunSituation/list?page=' + this.current +
'&pageSize=' + this.size + '&_t=' + Date.parse(new Date()) + params, {}, 'GET').then(res => {
if (res.code == 200) {
this.data = this.data.concat(res.data.list);
if (res.data.list.length == 0 || res.data.totalCount < this.size) {
this.hasMore = false;
this.status = 'nomore';
} else {
this.status = 'more';
}
uni.stopPullDownRefresh();
} else {
this.status = 'more';
uni.stopPullDownRefresh();
}
}).catch(() => {
this.status = 'more';
uni.stopPullDownRefresh();
})
}
},
//
goPage(url, param) {
if (param) {
uni.navigateTo({
url: url + '?item=' + JSON.stringify(param)
})
} else {
uni.navigateTo({
url: url
})
}
},
}
}
</script>
<style lang="scss" scoped>
.page {
min-height: 100vh;
padding: 30rpx 30rpx 195rpx;
}
.list_box {
background-color: #fff;
border-radius: 30rpx;
margin-bottom: 30rpx;
padding: 30rpx;
.list_top {
display: flex;
.unit_tags {
height: 37rpx;
line-height: 37rpx;
color: #E37616;
font-size: 20rpx;
font-family: PingFang SC-Regular, PingFang SC;
font-weight: 400;
background: #FFF7E4;
border-radius: 10rpx;
border: 1rpx solid #EF9A4F;
padding: 0 11rpx;
margin-right: 16rpx;
}
.unit_name {
color: #333333;
font-size: 30rpx;
font-family: PingFang SC-Bold, PingFang SC;
font-weight: bold;
line-height: 48rpx;
margin-left: 20rpx;
word-break: break-all;
}
}
.report_time {
color: #999999;
font-size: 24rpx;
font-family: PingFang SC-Regular, PingFang SC;
font-weight: 400;
line-height: 48rpx;
text-align: center;
margin-bottom: 30rpx;
}
.list_item_box {
padding: 30rpx 30rpx 0;
background: #F8F8F8;
border-radius: 30rpx;
margin-bottom: 30rpx;
}
.list_item {
display: flex;
align-items: center;
justify-content: space-between;
padding: 0 0 30rpx;
.list_item_label {
width: 320rpx;
color: #666666;
font-size: 26rpx;
font-family: PingFang SC-Regular, PingFang SC;
font-weight: 400;
line-height: 48rpx;
}
.list_item_cnt {
flex: 1;
color: #333333;
font-size: 28rpx;
font-family: PingFang SC-Regular, PingFang SC;
font-weight: 400;
line-height: 48rpx;
text-align: right;
margin-left: 20rpx;
word-break: break-all;
}
}
.list_item_shouqi {
color: #2D8CF0;
font-size: 24rpx;
font-family: PingFang SC-Regular, PingFang SC;
font-weight: 400;
text-align: center;
line-height: 33rpx;
padding-bottom: 30rpx;
.txt {
margin-left: 12rpx;
}
}
.act_btn_box {
display: flex;
flex-direction: row-reverse;
margin: 10rpx 0;
.act_btn {
width: 180rpx;
color: #666666;
font-size: 28rpx;
font-family: PingFang SC-Regular, PingFang SC;
font-weight: 400;
line-height: 70rpx;
background: #FFFFFF;
border-radius: 100rpx;
border: 1rpx solid #C1C1C1;
text-align: center;
&.blue {
color: #fff;
background: #2D8CF0;
border-color: #2D8CF0;
}
}
}
}
.foot_btn_box {
position: fixed;
left: 0;
right: 0;
bottom: 0;
display: flex;
// justify-content: space-around;
background-color: #F8F8F8;
padding: 20rpx 30rpx;
.act_btn {
width: 690rpx;
height: 90rpx;
line-height: 88rpx;
display: flex;
justify-content: center;
color: #FFFFFF;
font-size: 28rpx;
font-family: PingFang SC-Regular, PingFang SC;
font-weight: 400;
background: #2D8CF0;
border-radius: 100rpx;
border: 1rpx solid #2D8CF0;
.txt {
margin-left: 9rpx;
}
&.btn1 {
color: #2D8CF0;
background: #F6F6F6;
}
}
}
.pop_box {
border-radius: 30rpx 30rpx 0 0;
background-color: #fff;
padding: 30rpx;
.pop_title {
color: #333333;
font-size: 32rpx;
font-family: PingFang SC-Bold, PingFang SC;
font-weight: bold;
line-height: 45rpx;
text-align: center;
margin: 20rpx 0;
.pop_close {
float: right;
}
}
.popup-content {
// display: flex;
// flex-direction: column;
.cont_tit {
width: 100%;
color: #333333;
font-size: 26rpx;
font-family: PingFang SC-Bold, PingFang SC;
font-weight: bold;
line-height: 37rpx;
display: flex;
margin-bottom: 40rpx;
&.picker {
display: flex;
justify-content: space-between;
margin: 60rpx 0;
.picker_select {
color: #D4D4D4;
font-size: 28rpx;
font-family: PingFang SC-Regular, PingFang SC;
font-weight: 400;
text-align: right;
}
}
}
.time_box {
width: 690rpx;
margin: 0 auto;
/deep/ .uni-date-x--border {
border-radius: 30rpx;
.uni-date-x {
background: transparent;
.icon-calendar {
padding-left: 20rpx;
}
}
}
/deep/ .uni-date-editor--x .uni-date__icon-clear {
padding-right: 20rpx;
}
}
.picker_box {
width: 690rpx;
margin: 0 auto;
/deep/.input-value-border {
border-radius: 30rpx;
}
}
}
.btn_box {
width: 100%;
height: 120rpx;
display: flex;
margin-top: 20px;
align-items: center;
justify-content: space-between;
.btn {
width: 290rpx;
height: 90rpx;
background: #FFFFFF;
border-radius: 100rpx;
border: 1rpx solid #C1C1C1;
color: #666;
font-size: 28rpx;
line-height: 88rpx;
text-align: center;
&:last-child {
background: #2D8CF0;
color: #FFFFFF;
border-color: #2D8CF0;
}
}
}
}
</style>

@ -8,8 +8,13 @@
<view class="form_item_title">基本信息</view>
<view class="form_item">
<view class="form_item_label">管理单位名称</view>
<view class="form_item_input select">
{{form.organizationName}}
<view class="form_item_input picker">
<picker v-if="pageType == 'add'" :value="form.organizationNameIndex" @change="bindDeptChange">
<text class="picker_select"
:style="form.organizationName?'color:#333;':''">{{form.organizationName?form.organizationName:'请选择'}}</text>
<uni-icons type="right" size="16" color="#D4D4D4"></uni-icons>
</picker>
<text v-else>{{form.organizationName}}</text>
</view>
</view>
<view class="form_item">
@ -249,13 +254,17 @@
userInfo: {},
yoyMom: {}, //
showStaion: false, //
pageType: '',
pageType: '',
deptNameList: [],//
}
},
onLoad(options) {
this.userInfo = uni.getStorageSync('userInfo');
this.userInfo = uni.getStorageSync('userInfo');
let arr = uni.getStorageSync('deptName');
this.deptNameList = checkNotEmpty(arr) ? arr : [];
if (options.type == 'add') {
this.form.organizationName = this.userInfo.organizationName ? this.userInfo.organizationName : '';
this.form.organizationName = this.deptNameList.length > 0 ? this.deptNameList[0] : '';
this.form.organizationNameIndex = this.deptNameList.length > 0 ? 0 : '';
this.pageType = 'add';
let now = new Date();
this.form.statDate = getDateStr(now, -1); //
@ -274,7 +283,11 @@
'GET').then(res => {
this.form = res.data;
this.queryTime();
this.queryStation();
this.queryStation();
if(checkNotEmpty(this.deptNameList)) {
let idx = this.deptNameList.findIndex(item => item = this.form.organizationName);
this.form.organizationNameIndex = idx > -1 ? idx : '';
}
})
},
//

@ -1,5 +1,9 @@
<template>
<view class="highway_home">
<!-- 退出 -->
<view class="act_btn_loginout" @click="doLoginout">
退出
</view>
<view style="text-align: center;">
<image v-if="routersData.name" :src="'../../static/image/' + routersData.name + '01.png'" class="highway_logo"></image>
<view class="home_title">{{routersData.meta.title}}</view>
@ -56,6 +60,21 @@
url: url
})
},
//退
doLoginout() {
uni.showModal({
title: '提示',
content: '您确认要退出当前登录吗?',
success: (res) => {
if(res.confirm) {
uni.clearStorageSync();
uni.reLaunch({
url: '/pages/login/login'
})
}
}
})
},
}
}
</script>
@ -67,11 +86,23 @@
padding: 0 50rpx 50rpx;
background-color: #fff;
overflow: auto;
.act_btn_loginout{
position: absolute;
right: 50rpx;
top: 30rpx;
color: #fff;
width: 100rpx;
font-size: 24rpx;
line-height: 44rpx;
text-align: center;
background-color: #C1C1C1;
border-radius: 30rpx;
}
.highway_logo {
width: 128rpx;
height: 128rpx;
margin: 78rpx auto 0;
margin: 50rpx auto 0;
}
.home_title {

@ -69,6 +69,7 @@
if(res.code == 200) {
uni.setStorageSync('satoken', res.data.satoken);
this.getUserInfo();
this.getDeptName();
this.getRouters();
}
}).catch((err) => {
@ -90,6 +91,15 @@
}).catch(() => {
})
},
//
getDeptName() {
this.$request(getApp().globalData.baseUrl + '/api/user/getDeptName', {}, 'GET').then(res => {
if(res.code == 200) {
// uni.setStorageSync('deptName', res.data);
}
}).catch(() => {
})
},
//
getRouters() {
this.$request(getApp().globalData.baseUrl + '/api/login/getRouters', {}, 'GET').then(res => {
@ -176,6 +186,6 @@
font-family: PingFang SC-Regular, PingFang SC;
border-radius: 100rpx;
text-align: center;
margin: 70rpx auto 107rpx;
margin: 70rpx auto 50rpx;
}
</style>

@ -46,7 +46,7 @@
<view class="form_item_remark">
<view class="form_item"
style="display:flex; justify-content: space-between;font-size: 30rpx;color:#333;font-weight: bold;margin-top: 30rpx;">
序号-{{index+1}}
运行情况-{{index+1}}
<uni-icons type="trash" color="red" @click="delRow(index)" size="18"></uni-icons>
</view>
<view class="form_item_input form_input">

@ -40,17 +40,13 @@
</view>
</view>
</view>
<view class="form_item_box" style="margin-top: 30rpx;">
<view class="form_item"
style="display:flex; justify-content: space-between;font-size: 30rpx;color:#333;font-weight: bold;margin-top: 30rpx;">
事故具体情况
</view>
<view class="form_item_box" style="margin-top: 30rpx;">
<!-- 事故 -->
<view class="form_item_li" v-for="(item,index) in form.listContion"
:key="index">
<view class="form_item"
style="display:flex; justify-content: space-between;font-size: 30rpx;color:#333;font-weight: bold;margin-top: 30rpx;">
事故信息-{{index+1}}
事故具体情况-{{index+1}}
<uni-icons type="trash" color="red" @click="delRow(index)" size="18"></uni-icons>
</view>
<view class="form_item">

@ -181,7 +181,8 @@
this.pageType = 'add';
let now = new Date();
this.form.reportDate = getDateStr(now, -1); //
this.queryTime(); //
this.queryTime(); //
// this.queryLandList();//
} else if (options.item) {
this.form = JSON.parse(options.item);
this.form.bizWaterwayIslandDataSaveOrUpdateDTOList = this.form.bizWaterwayIslandDataVOList;
@ -197,6 +198,20 @@
methods: {
formatdate(date) {
return date.length < 12 ? date + ' 00:00:00' : date;
},
//
queryLandList() {
this.$request(getApp().globalData.baseUrl + '/api/biz/bizWaterwayIslandAuthority/list', {}, 'GET').then(res => {
let arr = [];
res.data.map(item => {
arr.push(item)
})
this.landList = arr;
this.form.bizWaterwayIslandDataSaveOrUpdateDTOList.map(item => {
let idx = this.landList.findIndex(item2 => item2 == item.landName);
item.landNameIndex = idx > -1 ? idx : '';
})
})
},
//
changeLandName(e, index) {
@ -242,10 +257,11 @@
},
//id
queryDetailInfo(id) {
this.$request(getApp().globalData.baseUrl + '/api/biz/watertransportRunSituation/find/' + id, {},
this.$request(getApp().globalData.baseUrl + '/api/biz/waterwayIslandData/getById/' + id, {},
'GET').then(res => {
this.form = res.data;
this.queryTime(); //
this.queryTime(); //
this.queryLandList();
})
},
//

Binary file not shown.

Binary file not shown.

After

Width:  |  Height:  |  Size: 11 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 10 KiB

After

Width:  |  Height:  |  Size: 8.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 10 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 11 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 10 KiB

After

Width:  |  Height:  |  Size: 8.2 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 10 KiB

After

Width:  |  Height:  |  Size: 6.3 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 10 KiB

After

Width:  |  Height:  |  Size: 11 KiB

Loading…
Cancel
Save