Commit 4f92311e93bc9c04b89b7e692562e621078f93c1

Authored by 游瑞烽
1 parent 6a935838

站点信息页面

src/main/resources/static/pages/base/station/edit.html
... ... @@ -52,7 +52,7 @@
52 52 <span class="required"> * </span> 站点路由名称:
53 53 </label>
54 54 <div class="col-md-6">
55   - <input type="text" class="form-control" name="stationRouteName" id="stationRouteNameInput" placeholder="站点路由名称">
  55 + <input type="text" class="form-control" name="stationName" id="stationRouteNameInput" placeholder="站点路由名称">
56 56 </div>
57 57 </div>
58 58 </div>
... ... @@ -246,7 +246,7 @@ $(&#39;#editPoitsions_station_mobal&#39;).on(&#39;editStationMobal_show&#39;, function(e, map,fu
246 246 errorClass : 'help-block help-block-error',
247 247 focusInvalid : false,
248 248 rules : {
249   - 'stationRouteName' : {required : true},// 站点路由名称 必填项
  249 + 'stationName' : {required : true},// 站点路由名称 必填项
250 250 'stationCod': {required : true,},// 站点编码 必填项
251 251 'directions' : {required : true,dirIs : true},// 站点方向 必填项 必填项
252 252 'stationRouteCode' : {isStart : true},// 站点序号
... ...
src/main/resources/static/pages/base/station/js/station-list-edit.js
... ... @@ -49,12 +49,12 @@
49 49 focusInvalid : false,
50 50 rules : {
51 51 'stationName' : {required : true},// 站点路由名称 必填项
52   - 'stationCod': {required : true,},// 站点编码 必填项
  52 + 'stationCod': {required : true},// 站点编码 必填项
53 53 'directions' : {required : true,dirIs : true},// 站点方向 必填项 必填项
54 54 'stationRouteCode' : {isStart : true},// 站点序号
55 55 'bJwpoints' : {required : true},// 经纬度坐标点 必填项
56 56 'shapesType' : {required : true},// 几何图形类型 必填项
57   - 'radius' : {required : true, number : true,},// 圆形半径 必填项
  57 + 'radius' : {number : true},// 圆形半径 必填项
58 58 'destroy' : {required : true},// 是否撤销 必填项
59 59 'toTime' : {number : true},// 到站时间 必须输入合法的数字(负数,小数)。
60 60 'distances' : {number : true},// 到站距离 // 到站距离
... ... @@ -145,13 +145,18 @@
145 145 }
146 146 function setZdlyValue() {
147 147 PositionsPublicFunctions.findUpStationRouteCode(editStation.stationRouteLine,editStation.stationRoutedirections,editStation.stationRouteCode,function(str) {
148   - /* if(str.length>0){
149   - var upStationRouteCode = str[0].stationRouteCode + '_' + str[0].stationRouteMarke + '_' + editStation.stationRoutedirections;
150   - $('#stationrouteSelect').select2('val',upStationRouteCode);
151   - } */
  148 +
152 149 if(str.length>0){
153   - var upStationRouteCode = str[0].stationRouteCode + '_' + editStation.stationRouteStationMark + '_' + editStation.stationRoutedirections;
154   - $('#stationrouteSelect').select2('val',upStationRouteCode);
  150 + // var upStationRouteCode = str[0].stationRouteCode + '_' + editStation.stationRouteStationMark + '_' + editStation.stationRoutedirections;
  151 + // $('#stationrouteSelect').select2('val',upStationRouteCode);
  152 +
  153 + var upStationRouteCode;
  154 + if (editStation.stationRouteStationMark == 'E') {
  155 + upStationRouteCode = str[0].stationRouteCode + '_' + 'E' + '_' + editStation.stationRoutedirections;
  156 + } else{
  157 + upStationRouteCode = str[0].stationRouteCode + '_' + str[0].stationRouteMarke + '_' + editStation.stationRoutedirections;
  158 + }
  159 + $('#stationrouteSelect').select2('val',upStationRouteCode);
155 160 }else {
156 161 $('#stationrouteSelect').select2('val','请选择...');
157 162 }
... ...
src/main/resources/static/pages/base/station/js/station-positions-function.js
... ... @@ -157,11 +157,12 @@ var PositionsPublicFunctions = function () {
157 157 },
158 158 setListEditFrom : function(stationObj) {
159 159 // WGS坐标点图形集合
160   - $('#bPolygonGridInput').val(stationObj.stationBPolyonGrid);
  160 + var stationBPolyonGrid = null;
  161 + if(stationObj.stationBPolyonGrid)
  162 + stationBPolyonGrid = stationObj.stationBPolyonGrid.substring(9, stationObj.stationBPolyonGrid.length -2);
  163 + $('#bPolygonGridInput').val(stationBPolyonGrid);
161 164 // 百度地图经纬度坐标中心点
162 165 $('#bJwpointsInput').val(stationObj.stationJwpoints);
163   - // 图形坐标点集合(百度坐标)
164   -// $('#bPolygonGridInput').val(stationObj.stationGPloyonGrid);
165 166 // 城建坐标x
166 167 $('#xInput').val(stationObj.stationGlonx);
167 168 // 城建坐标y
... ... @@ -183,7 +184,7 @@ var PositionsPublicFunctions = function () {
183 184 // 站点名称
184 185 $('#zdmcInput').val(stationObj.zdmc);
185 186 // 站点路由线路名称
186   - $('#stationRouteNameInput').val(stationObj.stationRouteName);
  187 + $('#stationNameInput').val(stationObj.stationRouteName);
187 188 // 获取站点类型元素设值
188 189 $('#stationMarkSelect').val(stationObj.stationRouteStationMark);
189 190 // 获取站点方向元素设值
... ...
src/main/resources/static/pages/base/stationroute/js/stationroute-list-map.js
... ... @@ -226,7 +226,7 @@ window.WorldsBMap = function () {
226 226 // 信息窗口参数属性
227 227 var opts = {
228 228 // 信息窗口宽度
229   - width: (width < 200 ? 200 : width),
  229 + width: (width < 240 ? 240 : width),
230 230 // 信息窗口高度
231 231 height: shapes=="r" ?330:300,
232 232 // 信息窗位置偏移值。
... ... @@ -417,7 +417,7 @@ window.WorldsBMap = function () {
417 417 // 画多边形
418 418 polygon = new BMap.Polygon(polygonP, {
419 419 // 线条显色
420   - strokeColor: "red",
  420 + strokeColor: "blue",
421 421 // 边线的宽度,以像素为单位。
422 422 strokeWeight: 2,
423 423 // 边线透明度,取值范围0 - 1。
... ...