Commit ad6f760d7f429e83e33970305d1650d2c65b364a
1 parent
fd8b2921
1.英文翻译缺漏及bug修复
Showing
29 changed files
with
115 additions
and
77 deletions
pom.xml
src/main/java/com/bsth/controller/SectionController.java
| ... | ... | @@ -62,8 +62,18 @@ public class SectionController extends BaseController<Section, Integer> { |
| 62 | 62 | * @return int <sectionCode路段编码> |
| 63 | 63 | */ |
| 64 | 64 | @RequestMapping(value="doubleName", method = RequestMethod.POST) |
| 65 | - public Map<String, Object> doubleName(@RequestParam Map<String, Object> map) { | |
| 66 | - return sectionService.doubleName(map); | |
| 65 | + public Map<String, Object> doubleName(Section section) { | |
| 66 | + Map<String, Object> result = new HashMap<>(); | |
| 67 | + try { | |
| 68 | + section.setId(sectionRepository.findLatestSectionId() + 1); | |
| 69 | + sectionService.add(section); | |
| 70 | + result.put("status", ResponseCode.SUCCESS); | |
| 71 | + } catch (Exception e) { | |
| 72 | + result.put("status", ResponseCode.ERROR); | |
| 73 | + log.error("", e); | |
| 74 | + } | |
| 75 | + | |
| 76 | + return result; | |
| 67 | 77 | } |
| 68 | 78 | |
| 69 | 79 | @RequestMapping(value="add", method = RequestMethod.POST) | ... | ... |
src/main/java/com/bsth/controller/realcontrol/ServiceDataInterface.java
| ... | ... | @@ -363,4 +363,19 @@ public class ServiceDataInterface { |
| 363 | 363 | |
| 364 | 364 | return result; |
| 365 | 365 | } |
| 366 | + | |
| 367 | + @RequestMapping("/shiftsForDevice") | |
| 368 | + public List<ScheduleRealInfo> shiftsForDevice( | |
| 369 | + @RequestParam String device, | |
| 370 | + @RequestParam String secretKey) { | |
| 371 | + | |
| 372 | + if (StringUtils.isEmpty(secretKey) || !secretKey.equals(SECRE_KEY)) | |
| 373 | + return null; | |
| 374 | + String nbbm = BasicData.deviceId2NbbmMap.get(device); | |
| 375 | + if (nbbm == null) { | |
| 376 | + return null; | |
| 377 | + } | |
| 378 | + | |
| 379 | + return dayOfSchedule.findByNbbm(nbbm); | |
| 380 | + } | |
| 366 | 381 | } | ... | ... |
src/main/resources/application-test.properties
| ... | ... | @@ -14,7 +14,7 @@ spring.jpa.properties.hibernate.dialect= org.hibernate.spatial.dialect.mysql.MyS |
| 14 | 14 | |
| 15 | 15 | #DATABASE |
| 16 | 16 | spring.datasource.driver-class-name= com.mysql.jdbc.Driver |
| 17 | -spring.datasource.url= jdbc:mysql://192.168.168.242/control_pd?useUnicode=true&characterEncoding=utf-8&useSSL=false | |
| 17 | +spring.datasource.url= jdbc:mysql://192.168.168.152/control_dy?useUnicode=true&characterEncoding=utf-8&useSSL=false | |
| 18 | 18 | spring.datasource.username= root |
| 19 | 19 | spring.datasource.password= root2jsp |
| 20 | 20 | spring.datasource.type= com.zaxxer.hikari.HikariDataSource |
| ... | ... | @@ -41,7 +41,7 @@ spring.kafka.consumer.value-deserializer= org.apache.kafka.common.serialization. |
| 41 | 41 | ## gps client data |
| 42 | 42 | http.gps.real.cache.url= http://10.10.150.24:12580/realGps/all |
| 43 | 43 | ## gateway real data |
| 44 | -http.gps.real.url= http://192.170.100.252:8080/transport_server/rtgps/ | |
| 44 | +http.gps.real.url= http://10.10.2.20:8080/transport_server/rtgps/ | |
| 45 | 45 | ## gateway send directive |
| 46 | 46 | ##http.send.directive = http://192.170.100.252:8080/transport_server/message/ |
| 47 | 47 | ## rfid data | ... | ... |
src/main/resources/datatools/config-test.properties
| ... | ... | @@ -5,17 +5,17 @@ datatools.kettle_properties=/datatools/kettle.properties |
| 5 | 5 | |
| 6 | 6 | # 2、上传数据配置信息 |
| 7 | 7 | # 上传文件目录配置(根据不同的环境需要修正) |
| 8 | -datatools.fileupload_dir=/Users/xu/resource/project_code/runtime_temp/bsth_control_u_d_files | |
| 8 | +datatools.fileupload_dir=/home/bsth_control_u_d_files | |
| 9 | 9 | # ktr转换文件,中配置的错误输出目录(根据不同的环境需要修正) |
| 10 | -datatools.trans_errordir=/Users/xu/resource/project_code/runtime_temp/bsth_control_u_d_files/erroroutput | |
| 10 | +datatools.trans_errordir=/home/bsth_control_u_d_files/erroroutput | |
| 11 | 11 | # 临时输出文件目录 |
| 12 | -datatools.trans_tempdir=/Users/xu/resource/project_code/runtime_temp/bsth_control_u_d_files/temp | |
| 12 | +datatools.trans_tempdir=/home/bsth_control_u_d_files/temp | |
| 13 | 13 | # 模版文件目录 |
| 14 | -datatools.trans_templatedir=/Users/xu/resource/project_code/runtime_temp/bsth_control_u_d_files/template | |
| 14 | +datatools.trans_templatedir=/home/bsth_control_u_d_files/template | |
| 15 | 15 | |
| 16 | 16 | # 3、数据导出配置信息 |
| 17 | 17 | # 导出数据文件目录配置(根据不同的环境需要修正) |
| 18 | -datatools.fileoutput_dir=/Users/xu/resource/project_code/runtime_temp/bsth_control_u_d_files | |
| 18 | +datatools.fileoutput_dir=/home/bsth_control_u_d_files | |
| 19 | 19 | |
| 20 | 20 | ##---------------------------- 时刻表数据相关ktr(以下)----------------------------## |
| 21 | 21 | datatools.en_ttinfo_detail_meta_data_for_export=/datatools/ktrs/en/ttinfo-detail-metadata_for_export.ktr | ... | ... |
src/main/resources/message_en_US.properties
| ... | ... | @@ -9,7 +9,7 @@ txt-8=Currently it is a split shift, change the departure time, change the first |
| 9 | 9 | txt-9=Change the departure time, change the first departure time of the specified road sign (the first departure time) |
| 10 | 10 | txt-10=The addition was successful, and the original version of the line has been automatically generated for you. You can view it under the line version information! |
| 11 | 11 | txt-11=Parking lots entered in the system basic information must draw a closed polygon geographic location before they can be included in the options |
| 12 | -txt-12=With 'Polygon Buffer' selected, draw a polygon area after confirming the center point, and then double-click the polygon area to continue the operation. | |
| 12 | +txt-12=With 'Polygon Buffer' selected, draw a polygon area after confirming the center point, and then double-click the polygon area to continue the operation. | |
| 13 | 13 | txt-13=The system generated the line ######{0} when obtaining the station and road section abnormalities! Please contact the administrator or check whether the network connection is abnormal! |
| 14 | 14 | txt-14=Manual drawing: draw the parking lot range on the map manually , then double-click the right mouse button to save |
| 15 | 15 | txt-15=If the deletion fails, the scheduling command may be up to a moment. Wait a few seconds before deleting it.After the shift is deleted, the scheduling instructions will be retained |
| ... | ... | @@ -45,7 +45,7 @@ txt-44=3.The system will automatically fill in the actual departure and arrival |
| 45 | 45 | txt-45=2.After enabling this option, the system will no longer rely on relevant positioning signals to execute shifts |
| 46 | 46 | txt-46=The total number of shift road signs is less than the number of overtime road signs, then ignore the number of other shift road signs |
| 47 | 47 | txt-47=2.Only update the current equipment number of the vehicle, and do not synchronize the historical equipment change records |
| 48 | -txt-48=Tried to open a new window, if you can't see it, it may be blocked by the browser | |
| 48 | +txt-48=Tried to open a new window, if you can't see it, it may be blocked by the browser | |
| 49 | 49 | txt-49=If the "U-turn site" does not exist in the other direction, you need to manually select the second operation starting point |
| 50 | 50 | txt-50=The line ID is missing,Please click back,Re-add line standard information |
| 51 | 51 | txt-51=ID is missing,Please click back,Re-check the line standard information operation |
| ... | ... | @@ -73,8 +73,8 @@ txt-72=The added shift has a time conflict with the preceding and following shif |
| 73 | 73 | txt-73=Remove equipment [<strong style="color: red;">######{0}</strong>] from list? If the device continues to send data to the platform, it will still be included |
| 74 | 74 | txt-74=Timetable name [######{0}].<br/>Abolished schedules will not be included in the shift calculation regardless of whether they are enabled or not! |
| 75 | 75 | txt-75=The server did not return data, please check your input parameters! |
| 76 | -txt-76=2)When the 'Circular Buffer' is selected, double-click the center point after confirming it to continue the operation | |
| 77 | -txt-77=The system cannot generate the stations and sections for this line [######{0}]! Please click back to select other ways to plan' | |
| 76 | +txt-76=2)When the 'Circular Buffer' is selected, double-click the center point after confirming it to continue the operation | |
| 77 | +txt-77=The system cannot generate the stations and sections for this line [######{0}]! Please click back to select other ways to plan' | |
| 78 | 78 | txt-78=The shift switch was successful. After the switch, the delivery time of the shift is 0 minutes, which is meaningless, so delete the changed shift! |
| 79 | 79 | txt-79=The system will no longer receive and display GPS points that are marked as invalid by the device itself. If the device continuously sends invalid points, it is equivalent to being offline. |
| 80 | 80 | txt-80=2.The starting station different from the first selected shift will also be ignored |
| ... | ... | @@ -101,7 +101,7 @@ txt-100=The current first bad shift is the starting point, and adjust the interv |
| 101 | 101 | txt-101=2)Draw new road segments by drawing lines, and add new road segments and road segment routes |
| 102 | 102 | txt-102=Enter the cutting section state, please select the end point of this section! |
| 103 | 103 | txt-103=The section was successfully cut, please select the end point of the next section |
| 104 | -txt-104=<strong>The system has not initialized the downstream stations on the line.</strong>Please click from the above to select any one of the following methods to plan the route's downstream station approach and exit paths. | |
| 104 | +txt-104=<strong>The system has not initialized the downstream stations on the line.</strong>Please click from the above to select any one of the following methods to plan the route's downstream station approach and exit paths. | |
| 105 | 105 | txt-105= |
| 106 | 106 | txt-106=The route was generated successfully. The generated route may have errors.Please click on the road segment first, drag to edit,then double-click to save! |
| 107 | 107 | txt-107=B)Edit original Location: Edit the original location with site information |
| ... | ... | @@ -183,7 +183,7 @@ txt-182=Parking lot location missing,whether to automatically continue to add pa |
| 183 | 183 | txt-183= |
| 184 | 184 | txt-184= |
| 185 | 185 | txt-185= |
| 186 | -txt-186=Access is denied, you don't have this permission! | |
| 186 | +txt-186=Access is denied, you don't have this permission! | |
| 187 | 187 | txt-187= |
| 188 | 188 | txt-188= |
| 189 | 189 | txt-189=No downshift, data cannot be exported! |
| ... | ... | @@ -204,7 +204,7 @@ txt-203=Added scrapped vehicle equipment data error file |
| 204 | 204 | txt-204= |
| 205 | 205 | txt-205= |
| 206 | 206 | txt-206=Statistics of vehicle dispatch rate during morning peak hours on operating routes |
| 207 | -txt-207=No previous station, can't enter data! | |
| 207 | +txt-207=No previous station, can't enter data! | |
| 208 | 208 | txt-208=Export the daily large interval details of the selected route |
| 209 | 209 | txt-209=Please save the section information being edited first |
| 210 | 210 | txt-210= |
| ... | ... | @@ -337,7 +337,7 @@ txt-336=Automatically adjust the interval of subsequent shifts to |
| 337 | 337 | txt-337=I can swallow glass without hurting my body |
| 338 | 338 | txt-338=Generate routes (stations and sections) |
| 339 | 339 | txt-339=Generate route (stations and sections) |
| 340 | -txt-340=Select shift for the previous day's shift | |
| 340 | +txt-340=Select shift for the previous day's shift | |
| 341 | 341 | txt-341=The coordinate points cannot be less than three |
| 342 | 342 | txt-342=Please cancel all the points for cutting sections first |
| 343 | 343 | txt-343=The first vehicle currently selected is the focus |
| ... | ... | @@ -428,7 +428,7 @@ txt-427=The user with login name [######{0}] has been unlocked successfully! |
| 428 | 428 | txt-428=The system does not have the up and down starting and ending stations of this line |
| 429 | 429 | txt-429=Route operation statistics daily report |
| 430 | 430 | txt-430=Full-day operating mileage (km)(Note:The actual operation mileage, actual empty mileage and actual total mileage are include temporary mileage) |
| 431 | -txt-431=Controller's corresponding mapping address, such as:/module | |
| 431 | +txt-431=Controller's corresponding mapping address, such as:/module | |
| 432 | 432 | txt-432=Total working hours: 15 minutes of reporting time + total time from exit to return, plus 10 minutes of re-driving time if there is another exit during this period |
| 433 | 433 | txt-433=Operating vehicle time(Planned operating time/km) |
| 434 | 434 | txt-434= |
| ... | ... | @@ -472,9 +472,9 @@ txt-471=Jingao Company (Fourth Branch) |
| 472 | 472 | txt-472=Calculate expected arrival time and actual arrival time comparison |
| 473 | 473 | txt-473=Off-line overspeed valve: |
| 474 | 474 | txt-474=Save left menu permissions successfully! |
| 475 | -txt-475=User's subordinate roles have problems | |
| 475 | +txt-475=User's subordinate roles have problems | |
| 476 | 476 | txt-476=Simulated trajectory (after) |
| 477 | -txt-477=This route is not available in Baidu Maps can't be systematically planned! | |
| 477 | +txt-477=This route is not available in Baidu Maps can't be systematically planned! | |
| 478 | 478 | txt-478=The same car |
| 479 | 479 | txt-479=Upload failed, route number is 0 |
| 480 | 480 | txt-480=Enter work rest and non-operating working hours |
| ... | ... | @@ -592,7 +592,7 @@ txt-591=Shift vehicle personnel daily statistics |
| 592 | 592 | txt-592=Dispatcher work summary daily |
| 593 | 593 | txt-593=Maximum interval time (seconds) |
| 594 | 594 | txt-594=Maximum interval time (min) |
| 595 | -txt-595=Controller's corresponding mapping symbols, such as: /module | |
| 595 | +txt-595=Controller's corresponding mapping symbols, such as: /module | |
| 596 | 596 | txt-596=Get parking lot location method |
| 597 | 597 | txt-597=Daily statistics of personnel and vehicle changes |
| 598 | 598 | txt-598= |
| ... | ... | @@ -872,7 +872,7 @@ txt-871=Valley maximum departure interval |
| 872 | 872 | txt-872=Equipment message reporting record |
| 873 | 873 | txt-873=Vehicle equipment data migration |
| 874 | 874 | txt-874=Missing parking lot options? |
| 875 | -txt-875=I'm sure it's this shift. | |
| 875 | +txt-875=I'm sure it's this shift. | |
| 876 | 876 | txt-876=Timetable used, total {{$saScpdateCtrl.$$ds.length}} |
| 877 | 877 | txt-877=Confirm remove the today's actual schedule of line [######{0}]? |
| 878 | 878 | txt-878=Rule configuration details |
| ... | ... | @@ -1025,7 +1025,7 @@ txt-1024=Please enter the line name |
| 1025 | 1025 | txt-1025=Failed to generate route! |
| 1026 | 1026 | txt-1026=Connection to server timed out |
| 1027 | 1027 | txt-1027=Route schedule schedule |
| 1028 | -txt-1028=Select shift for the previous day's shift,please select an auto-complete shift. | |
| 1028 | +txt-1028=Select shift for the previous day's shift,please select an auto-complete shift. | |
| 1029 | 1029 | txt-1029=Route on-time rate details |
| 1030 | 1030 | txt-1030=Searching for driver |
| 1031 | 1031 | txt-1031=Route planning completed |
| ... | ... | @@ -1187,7 +1187,7 @@ txt-1186=Shift change and auto-completion |
| 1187 | 1187 | txt-1187=Arrival buffer settings |
| 1188 | 1188 | txt-1188=Clear unselected shifts |
| 1189 | 1189 | txt-1189=Delay mechanism time: |
| 1190 | -txt-1190=Update to the current day's shift schedule | |
| 1190 | +txt-1190=Update to the current day's shift schedule | |
| 1191 | 1191 | txt-1191=Description of the shift format,[1] represents turn over sign,[0] represents rest skip |
| 1192 | 1192 | txt-1192=Initial shift personnel, |
| 1193 | 1193 | txt-1193=Anting Old Street, Hejing Road |
| ... | ... | @@ -1586,7 +1586,7 @@ txt-1585=Issuing the instruction |
| 1586 | 1586 | txt-1586=Intercepted instruction |
| 1587 | 1587 | txt-1587=Start generating data |
| 1588 | 1588 | txt-1588=Please select a branch |
| 1589 | -txt-1589=Which days' GPS data to use | |
| 1589 | +txt-1589=Which days' GPS data to use | |
| 1590 | 1590 | txt-1590=Peak stop gap |
| 1591 | 1591 | txt-1591=Enter new password: |
| 1592 | 1592 | txt-1592=Confirm new password: |
| ... | ... | @@ -2178,7 +2178,7 @@ txt-2177=Data before reorganization |
| 2178 | 2178 | txt-2178=Data after reorganization |
| 2179 | 2179 | txt-2179=Confirm to publish! |
| 2180 | 2180 | txt-2180=Change car to [######{0}] continue operation |
| 2181 | -txt-2181=I'm considering | |
| 2181 | +txt-2181=I'm considering | |
| 2182 | 2182 | txt-2182=Cancel publishing! |
| 2183 | 2183 | txt-2183=Are you sure you want to delete |
| 2184 | 2184 | txt-2184=New equipment number |
| ... | ... | @@ -2187,7 +2187,7 @@ txt-2186=Associated timetable |
| 2187 | 2187 | txt-2187=Cross lines timetable |
| 2188 | 2188 | txt-2188=Branch |
| 2189 | 2189 | txt-2189=Conductor employee number |
| 2190 | -txt-2190=road section serial number | |
| 2190 | +txt-2190=Road section serial: | |
| 2191 | 2191 | txt-2191=Attention!!! Relevant "equipment debugging personnel" and "testing personnel" should not enter line scheduling in master mode. |
| 2192 | 2192 | txt-2192=Revoke the actual arrival time {{jsonArray.old_sdsj}} |
| 2193 | 2193 | txt-2193=Monthly oil storage report |
| ... | ... | @@ -2372,7 +2372,7 @@ txt-2371= |
| 2372 | 2372 | txt-2372=Enter username |
| 2373 | 2373 | txt-2373=Unknown direction |
| 2374 | 2374 | txt-2374=Not yet open |
| 2375 | -txt-2375=Use the new echart to draw pictures, and don't use d3 for now. I will put d3 into a new file later. | |
| 2375 | +txt-2375=Use the new echart to draw pictures, and don't use d3 for now. I will put d3 into a new file later. | |
| 2376 | 2376 | txt-2376=Equipment management |
| 2377 | 2377 | txt-2377=Loading |
| 2378 | 2378 | txt-2378=Phase setting |
| ... | ... | @@ -2991,10 +2991,10 @@ txt-2990=Temporary addition approach |
| 2991 | 2991 | txt-2991=Extra appearance |
| 2992 | 2992 | txt-2992=Click to Dial |
| 2993 | 2993 | txt-2993=Fuel consumption per kilometer |
| 2994 | -txt-2994=Today's hydrogen consumption {{hn}} | |
| 2995 | -txt-2995=Today's electricity consumption {{yh}} | |
| 2994 | +txt-2994=Today's hydrogen consumption {{hn}} | |
| 2995 | +txt-2995=Today's electricity consumption {{yh}} | |
| 2996 | 2996 | txt-2996=Oil filling(L) |
| 2997 | -txt-2997=Today's fuel {{yh}}(L) | |
| 2997 | +txt-2997=Today's fuel {{yh}}(L) | |
| 2998 | 2998 | txt-2998=Fuel filling |
| 2999 | 2999 | txt-2999=Departure delay |
| 3000 | 3000 | txt-3000=Arrival delay |
| ... | ... | @@ -3648,7 +3648,7 @@ txt-3647=(Execute shift that departure time is ######{0}) |
| 3648 | 3648 | txt-3648=Hydrogen consumption |
| 3649 | 3649 | txt-3649=Hydrogen filling amount |
| 3650 | 3650 | txt-3650=Yes |
| 3651 | -txt-3651=Don't understand! | |
| 3651 | +txt-3651=Don't understand! | |
| 3652 | 3652 | txt-3652=Team Six |
| 3653 | 3653 | txt-3653=Team Five |
| 3654 | 3654 | txt-3654=Medium capacity |
| ... | ... | @@ -3663,7 +3663,7 @@ txt-3662= |
| 3663 | 3663 | txt-3663=Executed |
| 3664 | 3664 | txt-3664=Vehicles are adjusted from {{jsonArray.old_nbbm}} to |
| 3665 | 3665 | txt-3665=Extension number |
| 3666 | -txt-3666=I'm sure | |
| 3666 | +txt-3666=I'm sure | |
| 3667 | 3667 | txt-3667=Empty from {{qdzName}} to {{zdzName}} |
| 3668 | 3668 | txt-3668=Exit {{qdzName}} to {{zdzName}} |
| 3669 | 3669 | txt-3669=Shift: |
| ... | ... | @@ -3872,7 +3872,7 @@ txt-3871=User |
| 3872 | 3872 | txt-3872= |
| 3873 | 3873 | txt-3873=Content |
| 3874 | 3874 | txt-3874=Status |
| 3875 | -txt-3875=When the 'Circular Buffer' is selected, double-click the center point after confirming it to continue the operation | |
| 3875 | +txt-3875=When the 'Circular Buffer' is selected, double-click the center point after confirming it to continue the operation | |
| 3876 | 3876 | txt-3876=Reduction |
| 3877 | 3877 | txt-3877=Urea |
| 3878 | 3878 | txt-3878=Name |
| ... | ... | @@ -4348,7 +4348,7 @@ txt-4347=######{0}(######{1}) Timetable details->Delete road sign |
| 4348 | 4348 | txt-4348=######{0}(######{1}) Timetable details->Swap road sign |
| 4349 | 4349 | txt-4349=######{0}(######{1}) Timetable details |
| 4350 | 4350 | txt-4350=######{0}(######{1}) Timetable details->Data import from excel |
| 4351 | -txt-4351=('Departure is exit parking lot' only affects shifts issued by the parking lot configured in the <a href="/pages/base/lineinformation/list.html?no={{conf.line.id}}" target="_blank" style="color: grey;margin: 0 2px;">[Line standard]</a>) | |
| 4351 | +txt-4351=('Departure is exit parking lot' only affects shifts issued by the parking lot configured in the <a href="/pages/base/lineinformation/list.html?no={{conf.line.id}}" target="_blank" style="color: grey;margin: 0 2px;">[Line standard]</a>) | |
| 4352 | 4352 | txt-4352=Timetable analysis(summary) |
| 4353 | 4353 | txt-4353=Arrival and departure details [######{0}] [######{1}] [######{2}] [######{3}] |
| 4354 | 4354 | txt-4354=The actual total mileage includes temporary mileage | ... | ... |
src/main/resources/ms-jdbc.properties
| ... | ... | @@ -3,7 +3,7 @@ |
| 3 | 3 | #ms.mysql.username= root |
| 4 | 4 | #ms.mysql.password= 123456 |
| 5 | 5 | |
| 6 | -ms.mysql.driver= com.mysql.jdbc.Driver | |
| 7 | -ms.mysql.url= jdbc:mysql://192.170.100.63/ms?useUnicode=true&characterEncoding=utf-8 | |
| 8 | -ms.mysql.username= root | |
| 9 | -ms.mysql.password= root2jsp | |
| 10 | 6 | \ No newline at end of file |
| 7 | +ms.mysql.driver= com.mysql.cj.jdbc.Driver | |
| 8 | +ms.mysql.url= jdbc:mysql://10.10.2.20/ms?useUnicode=true&characterEncoding=utf-8&useSSL=false | |
| 9 | +ms.mysql.username= schedule | |
| 10 | +ms.mysql.password= fsodlgjiuigAQF2$9fs9 | |
| 11 | 11 | \ No newline at end of file | ... | ... |
src/main/resources/static/favicon.ico
No preview for this file type
src/main/resources/static/gpsTest/test.html
| ... | ... | @@ -84,7 +84,7 @@ form .item select { |
| 84 | 84 | <script src="/metronic_v4.5.4/plugins/jquery.min.js"></script> |
| 85 | 85 | <script src="/assets/plugins/jquery.serializejson.js"></script> |
| 86 | 86 | <script |
| 87 | - src="//api.map.baidu.com/api?v=2.0&ak=IGGrr4UjwIYzatoCRFKEL8sT"></script> | |
| 87 | + src="//api.map.baidu.com/api?v=2.0&ak=dr4jSsmL7M0b1kbUSVVAO7KbleSUNdpv"></script> | |
| 88 | 88 | <script type="text/javascript" |
| 89 | 89 | src="//api.map.baidu.com/library/DistanceTool/1.2/src/DistanceTool_min.js"></script> |
| 90 | 90 | <!-- moment.js 日期处理类库 --> | ... | ... |
src/main/resources/static/index.html
| ... | ... | @@ -673,7 +673,7 @@ |
| 673 | 673 | <!-- 地图相关 --> |
| 674 | 674 | <!-- 百度 --> |
| 675 | 675 | <script |
| 676 | - src="//api.map.baidu.com/api?v=3.0&ak=IGGrr4UjwIYzatoCRFKEL8sT" | |
| 676 | + src="//api.map.baidu.com/api?v=3.0&ak=dr4jSsmL7M0b1kbUSVVAO7KbleSUNdpv" | |
| 677 | 677 | data-exclude=1></script> |
| 678 | 678 | <script |
| 679 | 679 | src="//api.map.baidu.com/library/TrafficControl/1.4/src/TrafficControl_min.js" | ... | ... |
src/main/resources/static/other/video/video.html
| ... | ... | @@ -230,7 +230,7 @@ |
| 230 | 230 | <!-- 地图相关 --> |
| 231 | 231 | <!-- 百度 --> |
| 232 | 232 | <script |
| 233 | - src="//api.map.baidu.com/api?v=3.0&ak=IGGrr4UjwIYzatoCRFKEL8sT" | |
| 233 | + src="//api.map.baidu.com/api?v=3.0&ak=dr4jSsmL7M0b1kbUSVVAO7KbleSUNdpv" | |
| 234 | 234 | data-exclude=1></script> |
| 235 | 235 | <script |
| 236 | 236 | src="//api.map.baidu.com/library/TrafficControl/1.4/src/TrafficControl_min.js" | ... | ... |
src/main/resources/static/pages/base/carpark/js/add-vmap-world.js
| ... | ... | @@ -5,7 +5,7 @@ var addCarParkVmapWorlds = function() { |
| 5 | 5 | // 设置中心点, |
| 6 | 6 | var CENTER_POINT = {lng : 121.528733,lat : 31.237425}; |
| 7 | 7 | // 百度API Key |
| 8 | - var bdKey = 'IGGrr4UjwIYzatoCRFKEL8sT'; | |
| 8 | + var bdKey = 'dr4jSsmL7M0b1kbUSVVAO7KbleSUNdpv'; | |
| 9 | 9 | // 初始化百度地图 |
| 10 | 10 | mapB = new BMap.Map("addCarParkbmap_basic"); |
| 11 | 11 | //中心点和缩放级别 | ... | ... |
src/main/resources/static/pages/base/carpark/js/carpark-positions-map.js
| ... | ... | @@ -12,7 +12,7 @@ var CarParkPWorldsBMap = function () { |
| 12 | 12 | // 设置中心点, |
| 13 | 13 | var CENTER_POINT = {lng : 121.528733,lat : 31.237425}; |
| 14 | 14 | // 百度API Key |
| 15 | - var bdKey = 'IGGrr4UjwIYzatoCRFKEL8sT'; | |
| 15 | + var bdKey = 'dr4jSsmL7M0b1kbUSVVAO7KbleSUNdpv'; | |
| 16 | 16 | // 初始化百度地图 |
| 17 | 17 | mapValue = new BMap.Map("carParkbmap_basic"); |
| 18 | 18 | //中心点和缩放级别 | ... | ... |
src/main/resources/static/pages/base/section/js/add-vmap-world.js
| ... | ... | @@ -3,7 +3,7 @@ var SectionVmapWorlds = function() { |
| 3 | 3 | var Bmap = { |
| 4 | 4 | init : function() { |
| 5 | 5 | var CENTER_POINT = {lng : 121.528733,lat : 31.237425};// 设置中心点. |
| 6 | - var bdKey = 'IGGrr4UjwIYzatoCRFKEL8sT';// 百度API Key | |
| 6 | + var bdKey = 'dr4jSsmL7M0b1kbUSVVAO7KbleSUNdpv';// 百度API Key | |
| 7 | 7 | mapB = new BMap.Map("sectionBmap_basic");// 初始化百度地图 |
| 8 | 8 | mapB.centerAndZoom(new BMap.Point(CENTER_POINT.lng,CENTER_POINT.lat), 15);//中心点和缩放级别 |
| 9 | 9 | mapB.enableDragging(); //启用地图拖拽事件,默认启用(可不写) | ... | ... |
src/main/resources/static/pages/base/station/js/station-positions-map.js
| ... | ... | @@ -50,7 +50,7 @@ var StationPositionsWorldsBMap = function () { |
| 50 | 50 | }, |
| 51 | 51 | position : function(station, html, opts) { |
| 52 | 52 | // 将视图切换到指定的缩放等级,中心点坐标不变。注意:当有信息窗口在地图上打开时,地图缩放将保证信息窗口所在的坐标位置不动。(自1.2新增) |
| 53 | - mapBValue.setZoom(17); | |
| 53 | + mapBValue.centerAndZoom(station.point, 17); | |
| 54 | 54 | // 创建信息窗口 |
| 55 | 55 | infoWindow = new BMap.InfoWindow(html, opts); |
| 56 | 56 | // 创建点 | ... | ... |
src/main/resources/static/pages/base/stationroute/css/bmap_base.css
src/main/resources/static/pages/base/stationroute/doublename_road.html
| ... | ... | @@ -94,12 +94,12 @@ |
| 94 | 94 | submitHandler : function(f) { |
| 95 | 95 | var data = form.serializeJSON(); |
| 96 | 96 | if(data.sectionrouteCode==i18n('txt-138')) { |
| 97 | - params.sectionrouteCode = ''; | |
| 97 | + params.sectionrouteCode = '100'; | |
| 98 | 98 | } else { |
| 99 | - params.sectionrouteCode = data.sectionrouteCode; | |
| 99 | + params.sectionrouteCode = parseInt(data.sectionrouteCode) + 1; | |
| 100 | 100 | } |
| 101 | 101 | params.versions = properties.versions; |
| 102 | - $.post('/section/doubleName', params, function (res) { | |
| 102 | + $.post('/api/lssectionroute/add', params, function (res) { | |
| 103 | 103 | if(res.status == 'SUCCESS') { |
| 104 | 104 | layer.msg(i18n('txt-3271')); |
| 105 | 105 | } else if (res.status == 'Failure') { | ... | ... |
src/main/resources/static/pages/base/stationroute/js/routes-operation.js
| ... | ... | @@ -959,11 +959,13 @@ var RoutesOperation = (function () { |
| 959 | 959 | }); |
| 960 | 960 | label.addEventListener('click', function () { |
| 961 | 961 | var params = {}; |
| 962 | - params.lineId = startStationRoute.line.id; | |
| 962 | + params['line.id'] = startStationRoute.line.id; | |
| 963 | 963 | params.lineCode = startStationRoute.lineCode; |
| 964 | 964 | params.directions = startStationRoute.directions; |
| 965 | - params.stationRouteBegin = startStationRoute.stationName; | |
| 966 | - params.stationRouteFinish = endStationRoute.stationName; | |
| 965 | + //params.stationRouteBegin = startStationRoute.stationName; | |
| 966 | + //params.stationRouteFinish = endStationRoute.stationName; | |
| 967 | + params.sectionName = `${startStationRoute.stationName}-${endStationRoute.stationName}`; | |
| 968 | + params['section.sectionName'] = params.sectionName; | |
| 967 | 969 | layer.confirm(i18n('txt-3272'), { |
| 968 | 970 | btn : [ i18n('txt-1837'),i18n('txt-3327'),i18n('txt-3869')], icon: 3, title:i18n('txt-3816') |
| 969 | 971 | ,btn3: function(index, layero){ |
| ... | ... | @@ -973,12 +975,17 @@ var RoutesOperation = (function () { |
| 973 | 975 | } |
| 974 | 976 | }, function(index, layero){ |
| 975 | 977 | layer.close(index); |
| 976 | - params.route = $("#routePlanning").val(); | |
| 977 | - i18n4get('doublename_road.html', function (m) { | |
| 978 | - $(pjaxContainer).append(m); | |
| 979 | - $('#doublename_road_modal').trigger('modal.show', [params]); | |
| 980 | - }); | |
| 981 | - operation.editMapStatusRemove(); | |
| 978 | + params['section.bsectionVectorWkt'] = $("#routePlanning").val(); | |
| 979 | + RoutesService.getSectionCode(function (sectionCode) { | |
| 980 | + params['section.id'] = sectionCode; | |
| 981 | + params['section.sectionCode'] = sectionCode; | |
| 982 | + params.sectionCode = sectionCode; | |
| 983 | + i18n4get('doublename_road.html', function (m) { | |
| 984 | + $(pjaxContainer).append(m); | |
| 985 | + $('#doublename_road_modal').trigger('modal.show', [params]); | |
| 986 | + }); | |
| 987 | + operation.editMapStatusRemove(); | |
| 988 | + }) | |
| 982 | 989 | }); |
| 983 | 990 | }); |
| 984 | 991 | // 路径规划 |
| ... | ... | @@ -992,12 +999,15 @@ var RoutesOperation = (function () { |
| 992 | 999 | |
| 993 | 1000 | function searchPolylinesSet(results) { |
| 994 | 1001 | if (transit.getStatus() == BMAP_STATUS_SUCCESS) { |
| 995 | - var sectionArrayList = []; | |
| 1002 | + var sectionArrayList = [], bsectionVector = []; | |
| 996 | 1003 | for (i = 0; i < results.length; i++) { |
| 997 | - sectionArrayList = sectionArrayList.concat(results[i].getPolyline().getPath()); | |
| 1004 | + sectionArrayList = sectionArrayList.concat(results[i].getPath()); | |
| 998 | 1005 | } |
| 999 | 1006 | sectionList = sectionArrayList;//JSON.stringify() |
| 1000 | - $("#routePlanning").val(JSON.stringify(sectionArrayList)); | |
| 1007 | + for (var i = 0;i < sectionArrayList.length;i++) { | |
| 1008 | + bsectionVector.push(sectionArrayList[i].lng + ' ' + sectionArrayList[i].lat); | |
| 1009 | + } | |
| 1010 | + $("#routePlanning").val('LINESTRING(' + bsectionVector.join(',') + ')'); | |
| 1001 | 1011 | var pointMap = new Map(); |
| 1002 | 1012 | pointMap = sectionArrayList[sectionArrayList.length - 1]; |
| 1003 | 1013 | var pointLabel = new BMap.Point(pointMap.lng, pointMap.lat); | ... | ... |
src/main/resources/static/pages/excep/js/map.js
| ... | ... | @@ -24,7 +24,7 @@ var BasicMap = function () { |
| 24 | 24 | var CENTER_POINT = {lng : 121.528733,lat : 31.237425}; |
| 25 | 25 | |
| 26 | 26 | // 百度API Key |
| 27 | - var bdKey = 'IGGrr4UjwIYzatoCRFKEL8sT'; | |
| 27 | + var bdKey = 'dr4jSsmL7M0b1kbUSVVAO7KbleSUNdpv'; | |
| 28 | 28 | |
| 29 | 29 | // 初始化百度地图 |
| 30 | 30 | mapBValue = new BMap.Map("BasicMap"); | ... | ... |
src/main/resources/static/pages/excep/js/outbound-map.js
| ... | ... | @@ -35,7 +35,7 @@ var WorldsBMap = function () { |
| 35 | 35 | var CENTER_POINT = {lng : 121.528733,lat : 31.237425}; |
| 36 | 36 | |
| 37 | 37 | // 百度API Key |
| 38 | - var bdKey = 'IGGrr4UjwIYzatoCRFKEL8sT'; | |
| 38 | + var bdKey = 'dr4jSsmL7M0b1kbUSVVAO7KbleSUNdpv'; | |
| 39 | 39 | |
| 40 | 40 | // 初始化百度地图 |
| 41 | 41 | mapBValue = new BMap.Map("bmap_basic"); | ... | ... |
src/main/resources/static/pages/excep/js/speeding-map.js
| ... | ... | @@ -24,7 +24,7 @@ var SpeedingMap = function () { |
| 24 | 24 | var CENTER_POINT = {lng : 121.528733,lat : 31.237425}; |
| 25 | 25 | |
| 26 | 26 | // 百度API Key |
| 27 | - var bdKey = 'IGGrr4UjwIYzatoCRFKEL8sT'; | |
| 27 | + var bdKey = 'dr4jSsmL7M0b1kbUSVVAO7KbleSUNdpv'; | |
| 28 | 28 | |
| 29 | 29 | // 初始化百度地图 |
| 30 | 30 | mapBValue = new BMap.Map("speedingMap"); | ... | ... |
src/main/resources/static/pages/forms/statement/scheduleDaily.html
| ... | ... | @@ -15,11 +15,14 @@ |
| 15 | 15 | |
| 16 | 16 | .table > tbody + tbody { |
| 17 | 17 | border-top: 1px solid; } |
| 18 | - | |
| 18 | + .table-checkable tr>th:first-child, .table-checkable tr>td:first-child { | |
| 19 | + max-width: 100px; | |
| 20 | + } | |
| 19 | 21 | |
| 20 | 22 | |
| 21 | - #ddrbBody tr> td >span{ | |
| 22 | - word-break: keep-all;white-space:nowrap; | |
| 23 | + #ddrbBody > tr> td >span{ | |
| 24 | + word-break: keep-all;white-space:nowrap; | |
| 25 | + letter-spacing: normal; | |
| 23 | 26 | } |
| 24 | 27 | </style> |
| 25 | 28 | ... | ... |
src/main/resources/static/pages/forms/statement/statisticsDaily.html
src/main/resources/static/pages/mapmonitor/real/js/map_platform_old.js
src/main/resources/static/real_control_v2/alone_page/home/home_wrap.html
| ... | ... | @@ -72,7 +72,7 @@ |
| 72 | 72 | |
| 73 | 73 | |
| 74 | 74 | <!-- 地图相关 --> |
| 75 | -<script src="//api.map.baidu.com/api?v=2.0&ak=IGGrr4UjwIYzatoCRFKEL8sT"></script> | |
| 75 | +<script src="//api.map.baidu.com/api?v=2.0&ak=dr4jSsmL7M0b1kbUSVVAO7KbleSUNdpv"></script> | |
| 76 | 76 | <script src="//api.map.baidu.com/library/TrafficControl/1.4/src/TrafficControl_min.js"></script> |
| 77 | 77 | <script src="/assets/js/baidu//MarkerClusterer.js" merge="plugins"></script> |
| 78 | 78 | <script src="/assets/js/CoordinateConverter.js" merge="plugins"></script> | ... | ... |
src/main/resources/static/real_control_v2/alone_page/map/alone_wrap.html
| ... | ... | @@ -60,7 +60,7 @@ |
| 60 | 60 | <span style="position: absolute;left: calc(50% - 35px);top: calc(45% - 35px);">$$$$$${txt-3431}...</span> |
| 61 | 61 | </div> |
| 62 | 62 | <!-- 地图相关 --> |
| 63 | -<script src="//api.map.baidu.com/api?v=2.0&ak=IGGrr4UjwIYzatoCRFKEL8sT"></script> | |
| 63 | +<script src="//api.map.baidu.com/api?v=2.0&ak=dr4jSsmL7M0b1kbUSVVAO7KbleSUNdpv"></script> | |
| 64 | 64 | <script src="//api.map.baidu.com/library/TrafficControl/1.4/src/TrafficControl_min.js"></script> |
| 65 | 65 | <script src="/assets/js/baidu//MarkerClusterer.js" merge="plugins"></script> |
| 66 | 66 | <script src="/assets/js/CoordinateConverter.js" merge="plugins"></script> | ... | ... |
src/main/resources/static/real_control_v2/fragments/north/nav/history_sch_maintain.html
src/main/resources/static/real_control_v2/main.html
| ... | ... | @@ -110,7 +110,7 @@ |
| 110 | 110 | </script> |
| 111 | 111 | |
| 112 | 112 | <!-- 地图相关 --> |
| 113 | -<script src="//api.map.baidu.com/api?v=2.0&ak=IGGrr4UjwIYzatoCRFKEL8sT"></script> | |
| 113 | +<script src="//api.map.baidu.com/api?v=2.0&ak=dr4jSsmL7M0b1kbUSVVAO7KbleSUNdpv"></script> | |
| 114 | 114 | <script src="//api.map.baidu.com/library/TrafficControl/1.4/src/TrafficControl_min.js"></script> |
| 115 | 115 | <script src="/assets/js/baidu//MarkerClusterer.js" merge="plugins"></script> |
| 116 | 116 | <script src="/assets/js/CoordinateConverter.js" merge="plugins"></script> | ... | ... |
src/main/resources/static/real_control_v2/mapmonitor/fragments/map_config.html
| ... | ... | @@ -4,8 +4,8 @@ |
| 4 | 4 | <div class="uk-form-row"> |
| 5 | 5 | <span class="uk-form-label">$$$$$${txt-4094}</span> |
| 6 | 6 | <div class="uk-form-controls"> |
| 7 | - <label><input type="radio" value="baidu" name="map_type" {{if map_type=='baidu'}}checked{{/if}}> $$$$$${txt-4125}</label> | |
| 8 | - <label><input type="radio" value="gaode" name="map_type" {{if map_type=='gaode'}}checked{{/if}}> $$$$$${txt-4124}</label> | |
| 7 | + <label style="display: none"><input type="radio" value="baidu" name="map_type" {{if map_type=='baidu'}}checked{{/if}}> $$$$$${txt-4125}</label> | |
| 8 | + <label style="display: none"><input type="radio" value="gaode" name="map_type" {{if map_type=='gaode'}}checked{{/if}}> $$$$$${txt-4124}</label> | |
| 9 | 9 | <label><input type="checkbox" name="traffic" {{if traffic}}checked{{/if}}> $$$$$${txt-2410}</label> |
| 10 | 10 | </div> |
| 11 | 11 | </div> | ... | ... |