Commit 82b25198e01e37ca1ab888c31708af0f897114b0
1 parent
723348c4
统计报表-烂班情况分析表中加入抽减,智能调度优化
Showing
18 changed files
with
102 additions
and
124 deletions
src/main/java/com/bsth/service/impl/BusIntervalServiceImpl.java
| ... | ... | @@ -1970,29 +1970,30 @@ public class BusIntervalServiceImpl implements BusIntervalService { |
| 1970 | 1970 | lzbc_ = 0, dmbc_ = 0, gzbc_ = 0, |
| 1971 | 1971 | jfbc_ = 0, zsbc_ = 0, qrbc_ = 0, |
| 1972 | 1972 | qcbc_ = 0, kxbc_ = 0, qhbc_ = 0, |
| 1973 | - wybc_ = 0, ljpmbc_ = 0, qtbc_ = 0; | |
| 1973 | + wybc_ = 0, ljpmbc_ = 0, qtbc_ = 0,cjbc_ = 0; | |
| 1974 | 1974 | BigDecimal jhlc_ = new BigDecimal("0"), sjlc_ = new BigDecimal("0"), |
| 1975 | 1975 | lzlc_ = new BigDecimal("0"), dmlc_ = new BigDecimal("0"), |
| 1976 | 1976 | gzlc_ = new BigDecimal("0"), jflc_ = new BigDecimal("0"), |
| 1977 | 1977 | zslc_ = new BigDecimal("0"), qrlc_ = new BigDecimal("0"), |
| 1978 | 1978 | qclc_ = new BigDecimal("0"), kxlc_ = new BigDecimal("0"), |
| 1979 | 1979 | qhlc_ = new BigDecimal("0"), wylc_ = new BigDecimal("0"), |
| 1980 | - ljpmlc_ = new BigDecimal("0"), qtlc_ = new BigDecimal("0"); | |
| 1981 | - | |
| 1980 | + ljpmlc_ = new BigDecimal("0"), qtlc_ = new BigDecimal("0"), | |
| 1981 | + cjlc_ = new BigDecimal("0"); | |
| 1982 | 1982 | for(String key : keyList){ |
| 1983 | 1983 | Map<String, Object> tempMap = new HashMap<String, Object>(); |
| 1984 | 1984 | int jhbc = 0, sjbc = 0, |
| 1985 | 1985 | lzbc = 0, dmbc = 0, gzbc = 0, |
| 1986 | 1986 | jfbc = 0, zsbc = 0, qrbc = 0, |
| 1987 | 1987 | qcbc = 0, kxbc = 0, qhbc = 0, |
| 1988 | - wybc = 0, ljpmbc = 0, qtbc = 0; | |
| 1988 | + wybc = 0, ljpmbc = 0, qtbc = 0,cjbc=0; | |
| 1989 | 1989 | BigDecimal jhlc = new BigDecimal("0"), sjlc = new BigDecimal("0"), |
| 1990 | 1990 | lzlc = new BigDecimal("0"), dmlc = new BigDecimal("0"), |
| 1991 | 1991 | gzlc = new BigDecimal("0"), jflc = new BigDecimal("0"), |
| 1992 | 1992 | zslc = new BigDecimal("0"), qrlc = new BigDecimal("0"), |
| 1993 | 1993 | qclc = new BigDecimal("0"), kxlc = new BigDecimal("0"), |
| 1994 | 1994 | qhlc = new BigDecimal("0"), wylc = new BigDecimal("0"), |
| 1995 | - ljpmlc = new BigDecimal("0"), qtlc = new BigDecimal("0"); | |
| 1995 | + ljpmlc = new BigDecimal("0"), qtlc = new BigDecimal("0"), | |
| 1996 | + cjlc = new BigDecimal("0"); | |
| 1996 | 1997 | String companyName = "", subCompanyName = ""; |
| 1997 | 1998 | for(ScheduleRealInfo schedule : keyMap.get(key)){ |
| 1998 | 1999 | if(cts.containsKey(schedule.getId())){ |
| ... | ... | @@ -2061,6 +2062,8 @@ public class BusIntervalServiceImpl implements BusIntervalService { |
| 2061 | 2062 | wybc++; |
| 2062 | 2063 | }else if(schedule.getAdjustExps() != null && schedule.getAdjustExps().indexOf("路救抛锚") != -1){ |
| 2063 | 2064 | ljpmbc++; |
| 2065 | + }else if(schedule.getAdjustExps() != null && schedule.getAdjustExps().indexOf("抽减") != -1){ | |
| 2066 | + cjbc++; | |
| 2064 | 2067 | } else { |
| 2065 | 2068 | qtbc++; |
| 2066 | 2069 | } |
| ... | ... | @@ -2090,9 +2093,9 @@ public class BusIntervalServiceImpl implements BusIntervalService { |
| 2090 | 2093 | qhlc = new BigDecimal(culateService.culateCJLC(keyMap.get(key), "气候")); |
| 2091 | 2094 | wylc = new BigDecimal(culateService.culateCJLC(keyMap.get(key), "援外")); |
| 2092 | 2095 | ljpmlc = new BigDecimal(culateService.culateCJLC(keyMap.get(key), "路救抛锚")); |
| 2096 | + cjlc = new BigDecimal(culateService.culateCJLC(keyMap.get(key), "抽减")); | |
| 2093 | 2097 | qtlc = new BigDecimal(culateService.culateCJLC(keyMap.get(key), "配车")).add( |
| 2094 | 2098 | new BigDecimal(culateService.culateCJLC(keyMap.get(key), "保养"))).add( |
| 2095 | - new BigDecimal(culateService.culateCJLC(keyMap.get(key), "抽减"))).add( | |
| 2096 | 2099 | new BigDecimal(culateService.culateCJLC(keyMap.get(key), "其他"))); |
| 2097 | 2100 | |
| 2098 | 2101 | boolean flag = true; |
| ... | ... | @@ -2146,6 +2149,11 @@ public class BusIntervalServiceImpl implements BusIntervalService { |
| 2146 | 2149 | tempMap.put("ljpmbc", ljpmbc); |
| 2147 | 2150 | tempMap.put("ljpmlc", df.format(ljpmlc.doubleValue())); |
| 2148 | 2151 | tempMap.put("ljpmbfb", df.format(jhbc>0?(double)ljpmbc/jhbc*100:0)+"%"); |
| 2152 | + | |
| 2153 | + tempMap.put("cjbc", cjbc); | |
| 2154 | + tempMap.put("cjlc", df.format(cjlc.doubleValue())); | |
| 2155 | + tempMap.put("cjbfb", df.format(jhbc>0?(double)cjbc/jhbc*100:0)+"%"); | |
| 2156 | + | |
| 2149 | 2157 | tempMap.put("qtbc", qtbc); |
| 2150 | 2158 | tempMap.put("qtlc", df.format(qtlc.doubleValue())); |
| 2151 | 2159 | tempMap.put("qtbfb", df.format(jhbc>0?(double)qtbc/jhbc*100:0)+"%"); |
| ... | ... | @@ -2158,6 +2166,7 @@ public class BusIntervalServiceImpl implements BusIntervalService { |
| 2158 | 2166 | jfbc_ += jfbc; zsbc_ += zsbc; qrbc_ += qrbc; |
| 2159 | 2167 | qcbc_ += qcbc; kxbc_ += kxbc; qhbc_ += qhbc; |
| 2160 | 2168 | wybc_ += wybc; ljpmbc_ += ljpmbc; qtbc_ += qtbc; |
| 2169 | + cjbc_ += cjbc; | |
| 2161 | 2170 | jhlc_ = jhlc_.add(jhlc); sjlc_ = sjlc_.add(sjlc); |
| 2162 | 2171 | lzlc_ = lzlc_.add(lzlc); dmlc_ = dmlc_.add(dmlc); |
| 2163 | 2172 | gzlc_ = gzlc_.add(gzlc); jflc_ = jflc_.add(jflc); |
| ... | ... | @@ -2165,6 +2174,7 @@ public class BusIntervalServiceImpl implements BusIntervalService { |
| 2165 | 2174 | qclc_ = qclc_.add(qclc); kxlc_ = kxlc_.add(kxlc); |
| 2166 | 2175 | qhlc_ = qhlc_.add(qhlc); wylc_ = wylc_.add(wylc); |
| 2167 | 2176 | ljpmlc_ = ljpmlc_.add(ljpmlc); qtlc_ = qtlc_.add(qtlc); |
| 2177 | + cjlc_ = cjlc_.add(cjlc); | |
| 2168 | 2178 | } |
| 2169 | 2179 | |
| 2170 | 2180 | if(resList.size() > 0){ |
| ... | ... | @@ -2216,6 +2226,11 @@ public class BusIntervalServiceImpl implements BusIntervalService { |
| 2216 | 2226 | temp.put("ljpmbc", ljpmbc_); |
| 2217 | 2227 | temp.put("ljpmlc", df.format(ljpmlc_.doubleValue())); |
| 2218 | 2228 | temp.put("ljpmbfb", df.format(jhbc_>0?(double)ljpmbc_/jhbc_*100:0)+"%"); |
| 2229 | + | |
| 2230 | + temp.put("cjbc", cjbc_); | |
| 2231 | + temp.put("cjlc", df.format(cjlc_.doubleValue())); | |
| 2232 | + temp.put("cjbfb", df.format(jhbc_>0?(double)cjbc_/jhbc_*100:0)+"%"); | |
| 2233 | + | |
| 2219 | 2234 | temp.put("qtbc", qtbc_); |
| 2220 | 2235 | temp.put("qtlc", df.format(qtlc_.doubleValue())); |
| 2221 | 2236 | temp.put("qtbfb", df.format(jhbc_>0?(double)qtbc_/jhbc_*100:0)+"%"); |
| ... | ... | @@ -2865,19 +2880,19 @@ public class BusIntervalServiceImpl implements BusIntervalService { |
| 2865 | 2880 | Map.put("remMileage",culateService.culateLbgl(scheduleRealInfos)); |
| 2866 | 2881 | Map.put("addMileage", culateService.culateLjgl(lists)); |
| 2867 | 2882 | Map<String,Double> remmap = culateService.culateLbgl_yy_ks(lists); |
| 2868 | - map.put("remMileage_yy", remmap.get("remMileage_yy")); //营运烂班公里 | |
| 2869 | - map.put("remMileage_ks", remmap.get("remMileage_ks")); //空驶烂班公里 | |
| 2883 | + Map.put("remMileage_yy", remmap.get("remMileage_yy")); //营运烂班公里 | |
| 2884 | + Map.put("remMileage_ks", remmap.get("remMileage_ks")); //空驶烂班公里 | |
| 2870 | 2885 | Map<String,Double> ljmap = culateService.culateLjgl_yy_ks(lists); |
| 2871 | - map.put("addMileage_yy", ljmap.get("addMileage_yy")); //临加烂班公里 | |
| 2872 | - map.put("addMileage_ks", ljmap.get("addMileage_ks")); //临加烂班公里 | |
| 2886 | + Map.put("addMileage_yy", ljmap.get("addMileage_yy")); //临加烂班公里 | |
| 2887 | + Map.put("addMileage_ks", ljmap.get("addMileage_ks")); //临加烂班公里 | |
| 2873 | 2888 | double yygl=Arith.add(culateService.culateSjgl(lists),culateService.culateLjgl(lists)); |
| 2874 | 2889 | Map.put("yygl", yygl); |
| 2875 | 2890 | double ksgl=Arith.add(culateService.culateKsgl(scheduleRealInfos),culateService.culateJccgl(lists)); |
| 2876 | 2891 | Map.put("ksgl",ksgl); |
| 2877 | 2892 | Map.put("realMileage", Arith.add(yygl ,ksgl)); |
| 2878 | 2893 | Map.put("jhbc", culateService.culateJhbc(scheduleRealInfos,"")); |
| 2879 | - Map.put("cjbc", culateService.culateLbbc_yy_ks(scheduleRealInfos)); | |
| 2880 | - Map.put("ljbc", culateService.culateLjbc_yy_ks(lists, "")); | |
| 2894 | + Map.put("cjbc", culateService.culateLbbc(scheduleRealInfos)); | |
| 2895 | + Map.put("ljbc", culateService.culateLjbc(lists, "")); | |
| 2881 | 2896 | int sjbc =culateService.culateLjbc(lists, "")+culateService.culateSjbc(lists, ""); |
| 2882 | 2897 | Map.put("sjbc", sjbc); |
| 2883 | 2898 | ... | ... |
src/main/java/com/bsth/service/realcontrol/ScheduleRealInfoService.java
| ... | ... | @@ -209,4 +209,7 @@ public interface ScheduleRealInfoService extends BaseService<ScheduleRealInfo, L |
| 209 | 209 | Map<String, String> getLevelsByLines(List<String> lines); |
| 210 | 210 | |
| 211 | 211 | List<ScheduleRealInfo> findAllSchDate(String schDate); |
| 212 | + | |
| 213 | + | |
| 214 | + ScheduleRealInfo thissch(Integer ids); | |
| 212 | 215 | } | ... | ... |
src/main/java/com/bsth/service/realcontrol/impl/ScheduleRealInfoServiceImpl.java
| ... | ... | @@ -1142,8 +1142,8 @@ public class ScheduleRealInfoServiceImpl extends BaseServiceImpl<ScheduleRealInf |
| 1142 | 1142 | map.put("ksgl", ksgl); |
| 1143 | 1143 | map.put("realMileage", Arith.add(yygl, ksgl)); |
| 1144 | 1144 | map.put("jhbc", culateMieageService.culateJhbc(scheduleRealInfos, "")); |
| 1145 | - map.put("cjbc", culateMieageService.culateLbbc_yy_ks(scheduleRealInfos)); | |
| 1146 | - map.put("ljbc", culateMieageService.culateLjbc_yy_ks(lists, "")); | |
| 1145 | + map.put("cjbc", culateMieageService.culateLbbc(scheduleRealInfos)); | |
| 1146 | + map.put("ljbc", culateMieageService.culateLjbc(lists, "")); | |
| 1147 | 1147 | int sjbc = culateMieageService.culateLjbc(lists, "") + culateMieageService.culateSjbc(lists, ""); |
| 1148 | 1148 | map.put("sjbc", sjbc); |
| 1149 | 1149 | // map=new HashMap<String,Object>(); |
| ... | ... | @@ -1601,6 +1601,15 @@ public class ScheduleRealInfoServiceImpl extends BaseServiceImpl<ScheduleRealInf |
| 1601 | 1601 | |
| 1602 | 1602 | ScheduleRealInfo sch = dayOfSchedule.get(id); |
| 1603 | 1603 | |
| 1604 | + long time = System.currentTimeMillis();//实际时间+2分钟 | |
| 1605 | + //超过待发时间 实发时间还是null的 | |
| 1606 | + if (sch.getFcsjT() < time){ | |
| 1607 | + return rs; | |
| 1608 | + } | |
| 1609 | + | |
| 1610 | + | |
| 1611 | + | |
| 1612 | + | |
| 1604 | 1613 | LineConfig config = lineConfigData.get(sch.getXlBm()); |
| 1605 | 1614 | //小于线路开始运营时间,则默认跨过24点 |
| 1606 | 1615 | if (fcsjActual.compareTo(config.getStartOpt()) < 0) { |
| ... | ... | @@ -7022,6 +7031,12 @@ public class ScheduleRealInfoServiceImpl extends BaseServiceImpl<ScheduleRealInf |
| 7022 | 7031 | } |
| 7023 | 7032 | }, 0, 10, TimeUnit.MINUTES); |
| 7024 | 7033 | } |
| 7034 | + | |
| 7035 | + | |
| 7036 | + public ScheduleRealInfo thissch(Integer ids){ | |
| 7037 | + return dayOfSchedule.next(dayOfSchedule.get(ids)); | |
| 7038 | + } | |
| 7039 | + | |
| 7025 | 7040 | } |
| 7026 | 7041 | |
| 7027 | 7042 | class AccountMap implements Comparator<Map<String, Object>> { | ... | ... |
src/main/resources/static/pages/forms/mould/lbStatuAnaly.xls
No preview for this file type
src/main/resources/static/pages/forms/statement/lbStatuAnaly.html
| ... | ... | @@ -42,8 +42,9 @@ |
| 42 | 42 | <input class="form-control" type="checkbox" name="reason" style="width: 20px;" value="7" checked="true"/>客稀 |
| 43 | 43 | <input class="form-control" type="checkbox" name="reason" style="width: 20px;" value="8" checked="true"/>气候 |
| 44 | 44 | <input class="form-control" type="checkbox" name="reason" style="width: 20px;" value="9" checked="true"/>援外 |
| 45 | - <input class="form-control" type="checkbox" name="reason" style="width: 20px;" value="9" checked="true"/>路救抛锚 | |
| 46 | - <input class="form-control" type="checkbox" name="reason" style="width: 20px;" value="10" checked="true"/>其他 | |
| 45 | + <input class="form-control" type="checkbox" name="reason" style="width: 20px;" value="10" checked="true"/>路救抛锚 | |
| 46 | + <input class="form-control" type="checkbox" name="reason" style="width: 20px;" value="11" checked="true"/>抽减 | |
| 47 | + <input class="form-control" type="checkbox" name="reason" style="width: 20px;" value="12" checked="true"/>其他 | |
| 47 | 48 | </div> |
| 48 | 49 | <div style="margin-top: 5px"></div> |
| 49 | 50 | <div style="display: inline-block; margin-left: 33px;" id="company1"> |
| ... | ... | @@ -510,7 +511,8 @@ |
| 510 | 511 | {{if reason[8].checked == true}}<th colspan="3">气候</th>{{/if}} |
| 511 | 512 | {{if reason[9].checked == true}}<th colspan="3">援外</th>{{/if}} |
| 512 | 513 | {{if reason[10].checked == true}}<th colspan="3">路救抛锚</th>{{/if}} |
| 513 | - {{if reason[11].checked == true}}<th colspan="3">其他</th>{{/if}} | |
| 514 | + {{if reason[11].checked == true}}<th colspan="3">抽减</th>{{/if}} | |
| 515 | + {{if reason[12].checked == true}}<th colspan="3">其他</th>{{/if}} | |
| 514 | 516 | </tr> |
| 515 | 517 | <tr> |
| 516 | 518 | <th class="hidden"></th> |
| ... | ... | @@ -528,6 +530,7 @@ |
| 528 | 530 | {{if reason[9].checked==true}}<th>烂班班次</th><th>烂班公里</th><th>百分比</th>{{/if}} |
| 529 | 531 | {{if reason[10].checked==true}}<th>烂班班次</th><th>烂班公里</th><th>百分比</th>{{/if}} |
| 530 | 532 | {{if reason[11].checked==true}}<th>烂班班次</th><th>烂班公里</th><th>百分比</th>{{/if}} |
| 533 | + {{if reason[12].checked==true}}<th>烂班班次</th><th>烂班公里</th><th>百分比</th>{{/if}} | |
| 531 | 534 | </tr> |
| 532 | 535 | </thead> |
| 533 | 536 | <tbody> |
| ... | ... | @@ -556,12 +559,13 @@ |
| 556 | 559 | {{if reason[8].checked==true}}<td>{{obj.qhbc}}</td><td>{{obj.qhlc}}</td><td>{{obj.qhbfb}}</td>{{/if}} |
| 557 | 560 | {{if reason[9].checked==true}}<td>{{obj.wybc}}</td><td>{{obj.wylc}}</td><td>{{obj.wybfb}}</td>{{/if}} |
| 558 | 561 | {{if reason[10].checked==true}}<td>{{obj.ljpmbc}}</td><td>{{obj.ljpmlc}}</td><td>{{obj.ljpmbfb}}</td>{{/if}} |
| 559 | - {{if reason[11].checked==true}}<td>{{obj.qtbc}}</td><td>{{obj.qtlc}}</td><td>{{obj.qtbfb}}</td>{{/if}} | |
| 562 | + {{if reason[11].checked==true}}<td>{{obj.cjbc}}</td><td>{{obj.cjlc}}</td><td>{{obj.cjbfb}}</td>{{/if}} | |
| 563 | + {{if reason[12].checked==true}}<td>{{obj.qtbc}}</td><td>{{obj.qtlc}}</td><td>{{obj.qtbfb}}</td>{{/if}} | |
| 560 | 564 | </tr> |
| 561 | 565 | {{/each}} |
| 562 | 566 | {{if list.length == 0}} |
| 563 | 567 | <tr> |
| 564 | - <td colspan="47"><h6 class="muted">没有找到相关数据</h6></td> | |
| 568 | + <td colspan="50"><h6 class="muted">没有找到相关数据</h6></td> | |
| 565 | 569 | </tr> |
| 566 | 570 | {{/if}} |
| 567 | 571 | </tbody> | ... | ... |
src/main/resources/static/real_control_v2/css/main.css
| ... | ... | @@ -2229,14 +2229,12 @@ g.gps-wrap rect.twinkle[updown="1"] { |
| 2229 | 2229 | font-size: 1px; |
| 2230 | 2230 | } |
| 2231 | 2231 | .popup-msg-content{ |
| 2232 | - border-bottom: 1px solid black; | |
| 2233 | - padding-bottom: 5px; | |
| 2234 | - padding-top: 10px; | |
| 2232 | + padding-top: 5px; | |
| 2235 | 2233 | } |
| 2236 | 2234 | |
| 2237 | 2235 | .popup-msg-contents{ |
| 2238 | - | |
| 2239 | - text-align: right ; | |
| 2236 | + padding-top: 10px; | |
| 2237 | + text-align: right; | |
| 2240 | 2238 | } |
| 2241 | 2239 | |
| 2242 | 2240 | .multi_plat_config .timer{ | ... | ... |
src/main/resources/static/real_control_v2/js/zndd/data_zndd.js
| ... | ... | @@ -16,26 +16,21 @@ var gb_dataZndd = (function (){ |
| 16 | 16 | |
| 17 | 17 | var timelist = [],interval; |
| 18 | 18 | var dataMap = new Map(); |
| 19 | - var leftTime = 1000 * 10;//剩余的毫秒数 | |
| 19 | + var leftTime = 1000 * 20;//剩余的毫秒数 | |
| 20 | 20 | var timeType = false |
| 21 | 21 | var sop = function (data) { |
| 22 | - /*//调度智能开关 | |
| 23 | - var storage = window.localStorage; | |
| 24 | - var switchmap = storage.getItem("switchmap") != null ? JSON.parse(storage.getItem("switchmap")) : null; ; //智能调度开关 0 关闭 1 开启 | |
| 25 | - if (switchmap == null){ | |
| 26 | - console.log("智能调度开关未启动!") | |
| 27 | - return; | |
| 28 | - } | |
| 29 | - | |
| 30 | - for (var scp in switchmap){ | |
| 31 | - if (data.type.includes(scp)){ | |
| 32 | - if(switchmap[scp] == 0) | |
| 33 | - return; | |
| 34 | - } | |
| 35 | - }*/ | |
| 36 | 22 | |
| 37 | 23 | //时间格式化 |
| 38 | 24 | data.types = codes[data.type]; |
| 25 | + debugger | |
| 26 | + if (data.type == 'YCSF' && ycsf_sx(data.lineCode) == false){ | |
| 27 | + return | |
| 28 | + } | |
| 29 | + if (data.type == 'SFTZ_1' && ycsf_sx(data.lineCode) == false){ | |
| 30 | + return | |
| 31 | + } | |
| 32 | + | |
| 33 | + | |
| 39 | 34 | var stm = moment(new Date()); |
| 40 | 35 | data.uuid = data.uuid + "uuid";//会出现纯数字 key取不到 |
| 41 | 36 | |
| ... | ... | @@ -60,16 +55,14 @@ var gb_dataZndd = (function (){ |
| 60 | 55 | //$pop.find('.multi_plat_config:lt(' + (len - max) + ')').remove(); |
| 61 | 56 | |
| 62 | 57 | if (!interval){ |
| 63 | - interval = snt(data.type,data.ids); | |
| 58 | + interval = snt(data.ids); | |
| 64 | 59 | } |
| 65 | 60 | timelist.push({ele:data.uuid,time:leftTime}) //自动调度定时器 |
| 66 | 61 | $pop.append(htmlStr); |
| 67 | 62 | var msg ='检测到'+data.lineName+' '+(data.dir==0 ?'上行':'下行') |
| 68 | - +data.datarq+'出现'+data.types+'事件'+'请尽快处理,否则40秒后自动选择最优方案处理。'; | |
| 63 | + +data.datarq+'出现'+data.types+'事件'+'请尽快处理,否则100秒后自动选择最优方案处理。'; | |
| 69 | 64 | |
| 70 | 65 | //gb_tts.audition(msg, 1.2); //语音播报 |
| 71 | - | |
| 72 | - | |
| 73 | 66 | } |
| 74 | 67 | |
| 75 | 68 | |
| ... | ... | @@ -84,7 +77,19 @@ var gb_dataZndd = (function (){ |
| 84 | 77 | $(this).parent().parent().remove(); |
| 85 | 78 | if (close) close = false |
| 86 | 79 | }); |
| 87 | - | |
| 80 | + | |
| 81 | + | |
| 82 | + //1078路,1135路,南临专线,临港4路,浦东111路,浦东74路,临港13路,申港3路,浦东29路,新芦专线 | |
| 83 | + function ycsf_sx(line){ | |
| 84 | + var t =['12101','200828','230308','220826','201012','10636','60033','88814','88818','180926','191221','210821','230311','230329','803111']; | |
| 85 | + debugger | |
| 86 | + for (let lines in t){ | |
| 87 | + if(line == t[lines]) | |
| 88 | + return true; | |
| 89 | + } | |
| 90 | + return false; | |
| 91 | + } | |
| 92 | + | |
| 88 | 93 | |
| 89 | 94 | //撤销实发 |
| 90 | 95 | $pop.on('click', '.colsebc', function () { |
| ... | ... | @@ -117,10 +122,12 @@ var gb_dataZndd = (function (){ |
| 117 | 122 | fcsjActual:that.data('fcsj') |
| 118 | 123 | |
| 119 | 124 | }, function (rs) { |
| 120 | - gb_schedule_table.updateSchedule(rs.ts); | |
| 121 | - notify_succ('实发未发操作成功!'); | |
| 122 | - //calc 应发未发 | |
| 123 | - that.parent().parent().parent().remove(); | |
| 125 | + if(rs.length != 0) { | |
| 126 | + gb_schedule_table.updateSchedule(rs.ts); | |
| 127 | + notify_succ('实发未发操作成功!'); | |
| 128 | + //calc 应发未发 | |
| 129 | + that.parent().parent().parent().remove(); | |
| 130 | + } | |
| 124 | 131 | }); |
| 125 | 132 | }, '确认调整实发'); |
| 126 | 133 | }); |
| ... | ... | @@ -215,15 +222,15 @@ var gb_dataZndd = (function (){ |
| 215 | 222 | |
| 216 | 223 | |
| 217 | 224 | //计时器 |
| 218 | - function snt(type,ids){ | |
| 219 | - return setInterval(function(){leftTimer(type,ids);},1000); //开始倒计时 | |
| 225 | + function snt(ids){ | |
| 226 | + return setInterval(function(){leftTimer(ids);},1000); //开始倒计时 | |
| 220 | 227 | } |
| 221 | 228 | //定时器 |
| 222 | - function leftTimer(type,ids){ | |
| 229 | + function leftTimer(ids){ | |
| 223 | 230 | for(var i = 0;i < timelist.length; i++) { |
| 224 | 231 | getTimerstring(timelist[i].ele,timelist[i].time ? timelist[i].time -= 1000 : 0); |
| 225 | 232 | if (!timelist[i].time){ |
| 226 | - TimeChick(timelist[i].ele,type); | |
| 233 | + TimeChick(timelist[i].ele); | |
| 227 | 234 | $("#"+timelist[i].ele).parent().remove(); |
| 228 | 235 | if (close) close = false |
| 229 | 236 | timelist.splice(i--, 1); |
| ... | ... | @@ -249,13 +256,13 @@ var gb_dataZndd = (function (){ |
| 249 | 256 | } |
| 250 | 257 | |
| 251 | 258 | //定时器自动提交 |
| 252 | - function TimeChick(ele,type){ | |
| 259 | + function TimeChick(ele){ | |
| 253 | 260 | debugger |
| 254 | 261 | var thisall= $("#"+ele).parent(); |
| 255 | 262 | var sch = dataMap.get(thisall.data('uuid')); |
| 256 | - | |
| 257 | 263 | if (thisall.length == 0) return; |
| 258 | 264 | var date = returnDate(thisall); |
| 265 | + var type = date.type; | |
| 259 | 266 | if (date == null) |
| 260 | 267 | return |
| 261 | 268 | if (type == "DJG"){ |
| ... | ... | @@ -269,8 +276,7 @@ var gb_dataZndd = (function (){ |
| 269 | 276 | |
| 270 | 277 | gb_schedule_table.refreshAll(); |
| 271 | 278 | }); |
| 272 | - } | |
| 273 | - if (type == "YCSF"){ | |
| 279 | + }else if (type == "YCSF"){ | |
| 274 | 280 | gb_common.$post('/realSchedule/revokeRealOutgo_zndd', { |
| 275 | 281 | id: sch.sch.id, |
| 276 | 282 | remarks:"_智能调度-异常实发", |
| ... | ... | @@ -278,9 +284,7 @@ var gb_dataZndd = (function (){ |
| 278 | 284 | gb_schedule_table.updateSchedule(rs.ts); |
| 279 | 285 | notify_succ('撤销实发操作成功!'); |
| 280 | 286 | }); |
| 281 | - } | |
| 282 | - | |
| 283 | - if (type == "SFTZ_1"){ | |
| 287 | + } else if (type == "SFTZ_1"){ | |
| 284 | 288 | debugger |
| 285 | 289 | gb_common.$post('/realSchedule/realOutAdjust_zndd', { |
| 286 | 290 | id: sch.sch.id, |
| ... | ... | @@ -290,11 +294,7 @@ var gb_dataZndd = (function (){ |
| 290 | 294 | gb_schedule_table.updateSchedule(rs.ts); |
| 291 | 295 | notify_succ('实发未发操作成功!'); |
| 292 | 296 | }); |
| 293 | - | |
| 294 | - | |
| 295 | - } | |
| 296 | - | |
| 297 | - if (type == "WD"){ | |
| 297 | + } else if (type == "WD"){ | |
| 298 | 298 | /* var minute = 6; |
| 299 | 299 | gb_common.$post_arr('/realSchedule/lateAdjust', {idx: sch.sch.id, minute: minute}, function (rs) { |
| 300 | 300 | console.log('误点调整rs', rs); |
| ... | ... | @@ -316,62 +316,6 @@ var gb_dataZndd = (function (){ |
| 316 | 316 | |
| 317 | 317 | } |
| 318 | 318 | |
| 319 | - //定时器自动提交 | |
| 320 | - function TimeChickConfig(){ | |
| 321 | - var thisall= $('.multi_plat_msg_pop_zndd .multi_plat_config #submitTwo'); | |
| 322 | - var date = returnDate(thisall); | |
| 323 | - date.selctype = $('#configSelect').val(); | |
| 324 | - | |
| 325 | - if (date.selctype == 'X1'){ | |
| 326 | - var data = { | |
| 327 | - lineCode : date.lineCode, | |
| 328 | - enableYjtk : '1' , | |
| 329 | - yjtkStart : '00:00', | |
| 330 | - yjtkEnd : '23:59', | |
| 331 | - upStopMinute : 1, | |
| 332 | - downStopMinute : 1 | |
| 333 | - }; | |
| 334 | - | |
| 335 | - gb_common.$post('/lineConfig/yjtkSet', data, function (rs) { | |
| 336 | - conf = rs.conf; | |
| 337 | - //添加记录 | |
| 338 | - $.post('/znddLogger/znddConfig', date, function(res) { | |
| 339 | - //只有一个 直接删除掉 | |
| 340 | - if(res.status != null){ | |
| 341 | - $('.multi_plat_msg_pop_zndd .multi_plat_config').remove(); | |
| 342 | - notify_succ('已启用随到随发(自动)'); | |
| 343 | - }else { | |
| 344 | - notify_err('随到随发启动失败!(自动)'); | |
| 345 | - } | |
| 346 | - }); | |
| 347 | - }); | |
| 348 | - }else { | |
| 349 | - //添加记录 | |
| 350 | - $.post('/znddLogger/znddConfig', date, function(res) { | |
| 351 | - //只有一个 直接删除掉 | |
| 352 | - if(res.status != null){ | |
| 353 | - notify_succ('班次设定成功!(自动)'); | |
| 354 | - }else { | |
| 355 | - notify_err('班次设定失败!(自动)'); | |
| 356 | - } | |
| 357 | - $('.multi_plat_msg_pop_zndd .multi_plat_config').remove(); | |
| 358 | - if(res.ts && res.ts.length > 0){ | |
| 359 | - gb_schedule_table.updateSchedule(res.ts); | |
| 360 | - var modal = '#schedule-multi-dftz-modal'; | |
| 361 | - UIkit.modal(modal).hide(); | |
| 362 | - notify_succ('待发调整成功'); | |
| 363 | - } | |
| 364 | - }); | |
| 365 | - } | |
| 366 | - | |
| 367 | - | |
| 368 | - | |
| 369 | - //取消定时器 防止二次提交 | |
| 370 | - clearInterval(timeInt); | |
| 371 | - $(".timer").html(""); | |
| 372 | - leftTime = 10 * 1000; | |
| 373 | - } | |
| 374 | - | |
| 375 | 319 | return { |
| 376 | 320 | sop : sop, |
| 377 | 321 | }; | ... | ... |
src/main/resources/static/real_control_v2/main.html
| ... | ... | @@ -283,7 +283,6 @@ |
| 283 | 283 | <span>{{lineName}} {{xlDir ==0 ?'上行':'下行'}} {{clzbh}} {{fcsj}} 出现 {{types}}</span> |
| 284 | 284 | <span style="display:{{type == 'WD'?'':'none'}}"> 。{{sch.remark}}后车辆到站 </span> |
| 285 | 285 | </div> |
| 286 | - <br> | |
| 287 | 286 | <div class="popup-msg-contents" style="display:{{type == 'YCSF'?'':'none'}}"> |
| 288 | 287 | <button class="uk-button uk-button-primary colsebc" data-fcsj="{{fcsj}}" data-clzbh="{{clzbh}}" data-id="{{id}}">取消实发</button> |
| 289 | 288 | </div> | ... | ... |
src/main/resources/static/real_control_v2/zndd/img/DJG.png
0 → 100644
9.26 KB
src/main/resources/static/real_control_v2/zndd/img/SFTZ.png
0 → 100644
8.27 KB
src/main/resources/static/real_control_v2/zndd/img/WD.png
0 → 100644
7.95 KB
src/main/resources/static/real_control_v2/zndd/img/YCSF.png
0 → 100644
7.29 KB
src/main/resources/static/real_control_v2/zndd/img/sftz_0.png
0 → 100644
45 KB
src/main/resources/static/real_control_v2/zndd/img/up.png
0 → 100644
3.38 KB
src/main/resources/static/real_control_v2/zndd/img/up_1.png
0 → 100644
7.87 KB
src/main/resources/static/real_control_v2/zndd/img/wd_0.png
0 → 100644
44.3 KB
src/main/resources/static/real_control_v2/zndd/img/ycsf_0.png
0 → 100644
48 KB
src/main/resources/static/real_control_v2/zndd/type/ycsf.html
| ... | ... | @@ -261,7 +261,7 @@ |
| 261 | 261 | <label class="uk-form-label">检测效率</label> |
| 262 | 262 | <div class="uk-form-controls"> |
| 263 | 263 | <i class="icon-user"></i> |
| 264 | - <input value="80%" disabled> | |
| 264 | + <input value="50%" disabled> | |
| 265 | 265 | </div> |
| 266 | 266 | </div> |
| 267 | 267 | </div> |
| ... | ... | @@ -287,10 +287,10 @@ |
| 287 | 287 | </div> |
| 288 | 288 | <div class="uk-width-1-2"> |
| 289 | 289 | <div class="uk-form-row"> |
| 290 | - <label class="uk-form-label">乘客满意度</label> | |
| 290 | + <label class="uk-form-label">响应速度</label> | |
| 291 | 291 | <div class="uk-form-controls"> |
| 292 | 292 | <i class="icon-user"></i> |
| 293 | - <input value="10%" disabled> | |
| 293 | + <input value="20%" disabled> | |
| 294 | 294 | </div> |
| 295 | 295 | </div> |
| 296 | 296 | </div> | ... | ... |