Commit e25f09c956a8175552ea11b17cf4abb3b2627d91
1 parent
c8fd1693
update...
Showing
1 changed file
with
5 additions
and
4 deletions
src/main/resources/static/real_control_v2/fragments/line_schedule/context_menu/temp_sch/main.html
| ... | ... | @@ -151,18 +151,19 @@ |
| 151 | 151 | default: |
| 152 | 152 | |
| 153 | 153 | var qc_time=upDown==0?information.upTravelTime:information.downTravelTime, |
| 154 | - qc_mileage=upDown==0?information.upMileage:information.downMileage; | |
| 154 | + qc_mileage=upDown==0?information.upMileage:information.downMileage, _type; | |
| 155 | 155 | if(is_normal_sch(f)){ |
| 156 | - bcType='normal'; | |
| 156 | + _type='normal'; | |
| 157 | 157 | mileage=qc_mileage; |
| 158 | 158 | } |
| 159 | 159 | else{ |
| 160 | - bcType='region'; | |
| 160 | + _type='region'; | |
| 161 | 161 | mileage = calcMileage(stationRoutes[upDown], qdzCode, zdzCode); |
| 162 | 162 | } |
| 163 | 163 | |
| 164 | 164 | time = gb_common.mul(gb_common.accDiv(qc_time, qc_mileage), mileage); |
| 165 | - $('[name=bcType]', f).val(bcType); | |
| 165 | + if(bcType!='ldks' && bcType!='major' && bcType!='venting') | |
| 166 | + $('[name=bcType]', f).val(_type); | |
| 166 | 167 | } |
| 167 | 168 | } |
| 168 | 169 | ... | ... |