修改页面bug

dev201310
jinna 2 years ago
parent bd0a300b3b
commit ca065cee6b
  1. BIN
      .DS_Store
  2. 62
      pages/highWay/runStatusData/form.vue
  3. 1
      pages/home/index.vue
  4. 8
      pages/railway/runStatus/form.vue
  5. 76
      pages/roadTransport/transportData/form.vue
  6. BIN
      static/.DS_Store
  7. BIN
      static/image/.DS_Store
  8. BIN
      static/image/airport.png
  9. BIN
      static/image/bus.png
  10. BIN
      static/image/bus01.png
  11. BIN
      static/image/bus1.png
  12. BIN
      static/image/highway.png
  13. BIN
      static/image/highway01.png
  14. BIN
      static/image/loginBg.png
  15. BIN
      static/image/portShipping.png
  16. BIN
      static/image/railway.png

BIN
.DS_Store vendored

Binary file not shown.

@ -51,14 +51,14 @@
<view class="form_item">
<view class="form_item_label">已处理事故数量</view>
<view class="form_item_input form_input">
<uni-easyinput v-model="form.count1" placeholderStyle="color: #D4D4D4;font-size:28rpx;"
<uni-easyinput v-model="form.processedCount" placeholderStyle="color: #D4D4D4;font-size:28rpx;"
placeholder="请输入" type="number" maxlength="30"></uni-easyinput>
</view>
</view>
<view class="form_item">
<view class="form_item_label">正在处理事故数量</view>
<view class="form_item_input form_input">
<uni-easyinput v-model="form.count2" placeholderStyle="color: #D4D4D4;font-size:28rpx;"
<uni-easyinput v-model="form.processingCount" placeholderStyle="color: #D4D4D4;font-size:28rpx;"
placeholder="请输入" type="number" maxlength="30"></uni-easyinput>
</view>
</view>
@ -330,31 +330,35 @@
"accidentCount": 0,
"congestionCount": 0,
"deceasedCount": 0,
"highwayAccidentDetailDTOS": [{
"accidentContent": "",
"accidentEndTime": "",
"accidentLevel": "",
"accidentStartTime": "",
"additionalNotes": "",
"congestionRange": "",
"disposalStatus": "",
"duration": "",
"higwayNameIndex": "",
"highwayName": "",
"location": "",
}],
"highwayCongestionDetailDTOS": [{
"additionalNotes": "",
"congestionContent": "",
"congestionEndTime": "",
"congestionRange": "",
"congestionStartTime": "",
"disposalStatus": "",
"duration": "",
"higwayNameIndex": "",
"highwayName": "",
"location": "",
}],
"highwayAccidentDetailDTOS": [
// {
// "accidentContent": "",
// "accidentEndTime": "",
// "accidentLevel": "",
// "accidentStartTime": "",
// "additionalNotes": "",
// "congestionRange": "",
// "disposalStatus": "",
// "duration": "",
// "higwayNameIndex": "",
// "highwayName": "",
// "location": "",
// },
],
"highwayCongestionDetailDTOS": [
// {
// "additionalNotes": "",
// "congestionContent": "",
// "congestionEndTime": "",
// "congestionRange": "",
// "congestionStartTime": "",
// "disposalStatus": "",
// "duration": "",
// "higwayNameIndex": "",
// "highwayName": "",
// "location": "",
// },
],
"injuredCount": 0,
"isOpen": 1,
"organizationName": "",
@ -569,7 +573,7 @@
"highwayName": "",
"location": "",
});
this.form.accidentCount = this.form.highwayCongestionDetailDTOS.length;
this.form.accidentCount = this.form.highwayAccidentDetailDTOS.length;
}
},
//
@ -581,7 +585,7 @@
} else {
//
this.form.highwayAccidentDetailDTOS.splice(index, 1);
this.form.accidentCount = this.form.highwayCongestionDetailDTOS.length;
this.form.accidentCount = this.form.highwayAccidentDetailDTOS.length;
}
},
//

@ -53,6 +53,7 @@
if(this.routersData.path.indexOf('/') == '-1'){
this.routersData.path = '/' + this.routersData.path
}
console.log('routerData =====>',this.routersData)
}
},
methods: {

@ -140,8 +140,12 @@
},
//
changeRailway(e) {
this.railwayNameIndex = e.detail.value;
this.form.railwayName = this.stationList[e.detail.value];
console.log('车站选择=======>',typeof(e.detail.value))
console.log('车站列表=======>',this.stationList)
console.log('车站=====>',this.stationList[Number(e.detail.value)])
this.railwayNameIndex = Number(e.detail.value);
this.form.railwayName = this.stationList[Number(e.detail.value)];
this.form.carName = this.stationList[Number(e.detail.value)];
},
//
changeStatPeriod(e) {

@ -55,9 +55,14 @@
<!-- <uni-easyinput v-model="roadData.responsiblePersonId" placeholder="请输入" placeholderStyle="color:#d4d4d4;"></uni-easyinput> -->
<picker :value="peopleIndex" :range="peopleList"
range-key="people" @change="bindPeoChange">
<text class="picker_select"
:style="peopleName?'color:#333;':''">{{peopleName ? peopleName : '请选择'}}</text>
<uni-icons type="right" size="16" color="#D4D4D4"></uni-icons>
<view style="display: flex;align-items: center;">
<view style="display: flex;flex-direction: column;align-items: flex-end;justify-content: center;">
<text class="picker_select">{{!peopleName && !peopleNumber ? ' 请选择' : ''}}</text>
<text class="picker_select" :style="peopleName?'color:#333;':''">{{peopleName ? peopleName : ''}}</text>
<text class="picker_select" :style="peopleNumber?'color:#333;':''">{{peopleNumber ? peopleNumber : ''}}</text>
</view>
<uni-icons type="right" size="16" color="#D4D4D4"></uni-icons>
</view>
</picker>
</view>
</view>
@ -490,7 +495,8 @@ import { calcMom, calcYoy, checkNotEmpty, getDateStr, lastYearDate } from '../..
selectName:'',
selectId1:'',
mobile: getApp().globalData.mobile,
unitName:''
unitName:'',
peopleNumber:'',
}
},
onLoad(options){
@ -516,6 +522,26 @@ import { calcMom, calcYoy, checkNotEmpty, getDateStr, lastYearDate } from '../..
phoneNumber: tel
});
},
getDataDetail(reportPhase,reportUnit,statisticalDate){
this.$request(getApp().globalData.baseUrl + '/api/biz/roadtransport/road/getDetail?reportPhase=' + reportPhase + '&reportUnit=' + reportUnit + '&statisticalDate=' + statisticalDate,{},"GET").then(res =>{
res.data.reportPhase = this.roadData.reportPhase;
res.data.reportingUnitId = this.roadData.reportingUnitId;
res.data.statisticalDate = this.roadData.statisticalDate;
this.roadData = res.data;
console.log('peopleList =====>',this.peopleList)
this.peopleName = ''
this.peopleNumber = ''
if(this.roadData.responsiblePersonId){
let tmp = this.peopleList.find(item => item.id == this.roadData.responsiblePersonId)
this.peopleIndex = this.peopleList.findIndex(item => item.id == this.roadData.responsiblePersonId) <= -1
? '' : this.peopleList.findIndex(item => item.id == this.roadData.responsiblePersonId)
console.log('peopleIndex ===>',this.peopleIndex)
this.peopleName = tmp ? tmp.people.split(',')[0] : ''
this.peopleNumber = tmp ? tmp.people.split(',')[1] : this.roadData.contactNumber
}
this.getRatio();
})
},
//
calcBusNum(){
let capacityShuttle = checkNotEmpty(this.roadData.capacityShuttle) ? parseInt(this.roadData.capacityShuttle) : 0;
@ -594,10 +620,23 @@ import { calcMom, calcYoy, checkNotEmpty, getDateStr, lastYearDate } from '../..
if(this.pageType == 'edit'){
console.log('deptNameList ===>',this.peopleList)
let tmp = this.peopleList.find(item => item.id == this.roadData.responsiblePersonId)
this.peopleIndex = this.peopleList.findIndex(item => item.id == this.roadData.responsiblePersonId) <= -1 ? '' : this.peopleList.findIndex(item => item.id == this.roadData.responsiblePersonId)
this.peopleIndex = this.peopleList.findIndex(item => item.id == this.roadData.responsiblePersonId) <= -1
? '' : this.peopleList.findIndex(item => item.id == this.roadData.responsiblePersonId)
console.log('peopleIndex ===>',this.peopleIndex)
this.peopleName = tmp ? tmp.people : '' + this.roadData.contactNumber
// this.peopleName = tmp ? tmp.people : '' + this.roadData.contactNumber
this.peopleName = tmp ? tmp.people.split(',')[0] : ''
this.peopleNumber = tmp ? tmp.people.split(',')[1] : this.roadData.contactNumber
}else{
console.log('responsiblePersonId =====>',this.roadData.responsiblePersonId)
if(this.roadData.responsiblePersonId){
let tmp = this.peopleList.find(item => item.id == this.roadData.responsiblePersonId)
this.peopleIndex = this.peopleList.findIndex(item => item.id == this.roadData.responsiblePersonId) <= -1
? '' : this.peopleList.findIndex(item => item.id == this.roadData.responsiblePersonId)
console.log('peopleIndex ===>',this.peopleIndex)
// this.peopleName = tmp ? tmp.people : '' + this.roadData.contactNumber
this.peopleName = tmp ? tmp.people.split(',')[0] : ''
this.peopleNumber = tmp ? tmp.people.split(',')[1] : this.roadData.contactNumber
}
}
})
@ -616,7 +655,6 @@ import { calcMom, calcYoy, checkNotEmpty, getDateStr, lastYearDate } from '../..
this.roadData.reportingUnitIdIndex = this.deptNameList.length > 0 ? 0 : '';
this.selectId1 = this.unitId;
this.getRoadTime()
this.getPeople()
}else if(this.pageType == 'edit'){
console.log('reportingUnitId===>',this.roadData.reportingUnitId)
console.log('treeData ==>',this.treeData)
@ -683,7 +721,9 @@ import { calcMom, calcYoy, checkNotEmpty, getDateStr, lastYearDate } from '../..
//
bindDateChange(e) {
this.roadData.statisticalDate = e.detail.value;
this.getRatio()
console.log('统计单位 ======>',this.roadData.reportingUnitId,'统计日期 ======>',this.roadData.statisticalDate,'统计时段=====>',this.roadData.reportPhase)
// this.getRatio()
this.getDataDetail(this.roadData.reportPhase,this.roadData.reportingUnitId,e.detail.value)
},
//
bindPeoChange(e){
@ -691,8 +731,11 @@ import { calcMom, calcYoy, checkNotEmpty, getDateStr, lastYearDate } from '../..
let index = e.target.value //
var selected = this.peopleList[index] //
this.roadData.responsiblePersonId = selected.id;
this.peopleName = selected.people;
this.roadData.contactNumber = this.peopleName.split(',')[1];
// this.peopleName = selected.people;
console.log('selected =====>',selected)
this.roadData.contactNumber = selected.people.split(',')[1];
this.peopleName = selected.people.split(',')[0];
this.peopleNumber = selected.people.split(',')[1];
},
//
confirmRoad(){
@ -715,7 +758,7 @@ import { calcMom, calcYoy, checkNotEmpty, getDateStr, lastYearDate } from '../..
success:(res) =>{
if(res.confirm){
params.isPassengerCountConvert = 0;
console.log(params)
console.log('params =======>',params)
this.$request(getApp().globalData.baseUrl + '/api/biz/roadtransport/road/saveOrUpdate',params,'POST').then(res =>{
if(res.code == 200){
uni.showToast({
@ -786,6 +829,7 @@ import { calcMom, calcYoy, checkNotEmpty, getDateStr, lastYearDate } from '../..
res.data.reportingUnitId = this.roadData.reportingUnitId;
res.data.statisticalDate = this.roadData.statisticalDate;
this.roadData = res.data;
this.getPeople()
})
this.getRatio()
}
@ -819,13 +863,15 @@ import { calcMom, calcYoy, checkNotEmpty, getDateStr, lastYearDate } from '../..
})
},
//
//
bindPickerChange(e){
let index = e.target.value //
var selected = this.roadTime[index] //
this.roadData.reportPhase = selected.dictValue;
this.timeName = selected.dictLabel;
this.getRatio()
// this.getRatio()
console.log('统计单位 ======>',this.roadData.reportingUnitId,'统计日期 ======>',this.roadData.statisticalDate,'统计时段=====>',this.roadData.reportPhase)
this.getDataDetail(this.roadData.reportPhase,this.roadData.reportingUnitId,this.roadData.statisticalDate)
},
formatDigit(data) {
return (data+'').indexOf('.') > -1 && (data+'').substring((data+'').indexOf('.')).length > 2 ? data.toFixed(2) : data;
@ -927,7 +973,7 @@ import { calcMom, calcYoy, checkNotEmpty, getDateStr, lastYearDate } from '../..
.left{
// margin-left: 30rpx;
min-width: 320rpx;
min-width: 300rpx;
color: #666;
font-size: 26rpx;

BIN
static/.DS_Store vendored

Binary file not shown.

Binary file not shown.

Binary file not shown.

Before

Width:  |  Height:  |  Size: 11 KiB

After

Width:  |  Height:  |  Size: 2.9 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 8.8 KiB

After

Width:  |  Height:  |  Size: 2.4 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 8.8 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 14 KiB

After

Width:  |  Height:  |  Size: 4.4 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 10 KiB

After

Width:  |  Height:  |  Size: 3.2 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 229 KiB

After

Width:  |  Height:  |  Size: 109 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 11 KiB

After

Width:  |  Height:  |  Size: 3.0 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 8.2 KiB

After

Width:  |  Height:  |  Size: 2.2 KiB

Loading…
Cancel
Save