bug修改,首页过滤非小程序入口菜单

main
zhangqun 2 years ago
parent 796da7873d
commit 72b7ca39d0
  1. 2
      pages/bus/busDataInfo/list.vue
  2. 4
      pages/highWay/runStatusData/form.vue
  3. 3
      pages/home/home.vue
  4. 10
      pages/railway/railwayRunData/form.vue

@ -6,7 +6,7 @@
<view class="list_item" v-for="(item,index) in listData" :key="index" @click="editItem(item)"> <view class="list_item" v-for="(item,index) in listData" :key="index" @click="editItem(item)">
<view class="list_top"> <view class="list_top">
<view class="unit_tags">报送时间</view> <view class="unit_tags">报送时间</view>
<view class="unit_name">{{item.reportDate || ''}}<text style="margin-left:16rpx;">{{item.statPeriodValue || ''}}</text></view> <view class="unit_name">{{item.reportDate || ''}}<text style="margin-left:16rpx;">{{item.documentStatusValue || ''}}</text></view>
</view> </view>
</view> </view>
</view> </view>

@ -255,7 +255,7 @@
<view class="form_item"> <view class="form_item">
<view class="form_item_label">事故内容</view> <view class="form_item_label">事故内容</view>
<view class="form_item_input form_input"> <view class="form_item_input form_input">
<uni-easyinput v-model="item.congestionContent" <uni-easyinput v-model="item.accidentContent"
placeholderStyle="color: #D4D4D4;font-size:28rpx;" placeholder="请输入" maxlength="50"> placeholderStyle="color: #D4D4D4;font-size:28rpx;" placeholder="请输入" maxlength="50">
</uni-easyinput> </uni-easyinput>
</view> </view>
@ -266,7 +266,7 @@
<picker :value="item.accidentLevelIndex" :range="accidentLevel" range-key="dictLabel" <picker :value="item.accidentLevelIndex" :range="accidentLevel" range-key="dictLabel"
@change="e => changeAccidentLevel(e, 'highwayAccidentDetailDTOS', index)"> @change="e => changeAccidentLevel(e, 'highwayAccidentDetailDTOS', index)">
<text class="picker_select" <text class="picker_select"
:style="item.accidentLevelIndex > -1?'color:#333;':''">{{item.accidentLevelIndex > -1 ? accidentLevel[item.accidentLevelIndex].dictLabel : '请选择'}}</text> :style="item.accidentLevelIndex === 0 || item.accidentLevelIndex ? 'color:#333;':''">{{item.accidentLevelIndex === 0 || item.accidentLevelIndex ? accidentLevel[item.accidentLevelIndex].dictLabel : '请选择'}}</text>
<uni-icons type="right" size="16" color="#D4D4D4"></uni-icons> <uni-icons type="right" size="16" color="#D4D4D4"></uni-icons>
</picker> </picker>
</view> </view>

@ -1,7 +1,7 @@
<template> <template>
<view class="home_warp"> <view class="home_warp">
<view class="home_box"> <view class="home_box">
<view @click="goPage(item)" class="home_item" v-for="(item, index) in routeData" :index="index" :key="index"> <view v-if="filterRoute.indexOf(item.meta.title) > -1" @click="goPage(item)" class="home_item" v-for="(item, index) in routeData" :index="index" :key="index">
<image :src="imgFix + item.name.replace('/','') + '.png'" class="img"></image> <image :src="imgFix + item.name.replace('/','') + '.png'" class="img"></image>
<view class="txt">{{item.meta.title}}</view> <view class="txt">{{item.meta.title}}</view>
</view> </view>
@ -14,6 +14,7 @@
return { return {
imgFix: '/static/image/', imgFix: '/static/image/',
routeData: [], // routeData: [], //
filterRoute:['机场','地铁','道路运输','铁路','水运','高速','港口','公交'],//
} }
}, },
onShow() { onShow() {

@ -254,18 +254,19 @@
}, },
onLoad(options) { onLoad(options) {
this.userInfo = uni.getStorageSync('userInfo'); this.userInfo = uni.getStorageSync('userInfo');
this.queryStation(); //
if (options.type == 'add') { if (options.type == 'add') {
this.pageType = 'add'; this.pageType = 'add';
let now = new Date(); let now = new Date();
this.form.statDate = getDateStr(now, -1); // this.form.statDate = getDateStr(now, -1); //
this.queryTime(); // this.queryTime(); //
this.queryStation();
} else if (options.id) { } else if (options.id) {
this.btnText = '修改并保存'; this.btnText = '修改并保存';
this.$request(getApp().globalData.baseUrl + '/api/biz/railwayRunData/find/' + options.id, {}, "GET").then( this.$request(getApp().globalData.baseUrl + '/api/biz/railwayRunData/find/' + options.id, {}, "GET").then(
res => { res => {
this.form = res.data; this.form = res.data;
this.queryTime(); // this.queryTime(); //
this.queryStation();
}); });
} }
}, },
@ -281,12 +282,12 @@
}, },
// //
queryYoyMom() { queryYoyMom() {
if (this.form.statDate == '' || this.form.statPeriod == '') { if (this.form.statDate == '' || this.form.statPeriod == '' || this.form.railwayName == '') {
return; return;
} }
// let _date = getDateStr(new Date(this.form.statDate), -1); // let _date = getDateStr(new Date(this.form.statDate), -1);
this.$request(getApp().globalData.baseUrl + '/api/biz/railwayRunData/getYoYMoM?statDate=' + this.form this.$request(getApp().globalData.baseUrl + '/api/biz/railwayRunData/getYoYMoM?statDate=' + this.form
.statDate + '&statPeriod=' + this.form.statPeriod + '&_t=' + Date.parse(new Date()), {}, 'GET') .statDate + '&statPeriod=' + this.form.statPeriod + '&railwayName=' + this.form.railwayName + '&_t=' + Date.parse(new Date()), {}, 'GET')
.then(res => { .then(res => {
this.yoyMom = res.data; this.yoyMom = res.data;
this.calcYoyMom(); // this.calcYoyMom(); //
@ -394,12 +395,15 @@
this.form.railwayName = res.data[0]; this.form.railwayName = res.data[0];
this.railwayNameIndex = 0; this.railwayNameIndex = 0;
} }
this.queryYoyMom();
}) })
}, },
// //
changeRailway(e) { changeRailway(e) {
this.railwayNameIndex = e.detail.value; this.railwayNameIndex = e.detail.value;
this.form.railwayName = this.stationList[e.detail.value]; this.form.railwayName = this.stationList[e.detail.value];
this.queryYoyMom();
}, },
// //
changeStatPeriod(e) { changeStatPeriod(e) {

Loading…
Cancel
Save