Commit 6bb090dd8f52cd301a4aeae13167ee4509bc11bd

Authored by 王通
1 parent d238d489

1.进出场判断是否在规划道路行驶,对此路径的规划工具,与站点编辑在一起

src/main/resources/static/pages/base/stationroute/js/stationroute-list-function.js
... ... @@ -81,7 +81,7 @@ var PublicFunctions = function () {
81 81 version = $("#versions").val();
82 82 }
83 83  
84   - debugger
  84 + var status = $($("#versions").find("option:selected")[0]).attr("status");
85 85 if (directionData == 3) {
86 86 // 隐藏上行规划
87 87 $('#upToolsMobal').hide();
... ... @@ -167,7 +167,7 @@ var PublicFunctions = function () {
167 167 WorldsBMap.drawPolyLine(points, route, start[0], end[0]);
168 168 }
169 169 } else {
170   - rootNode.children = [{id: 0, pId: -1, name: '添加路段', text: '添加路段', lineId: id, lineCode: id, versions: version, dir: 3, start: start[0], end: end[0], icon: null, groupType: 3, container : 'pjax-container', enable : true, chaildredType: $($("#versions").find("option:selected")[0]).attr("status") > 0 ? 'addSection' : '', sectionBsectionVector: 'LINESTRING(' + startPoint.bdPoint + ')'}];
  170 + rootNode.children = [{id: 0, pId: -1, name: '添加路段', text: '添加路段', lineId: id, lineCode: id, versions: version, dir: 3, start: start[0], end: end[0], icon: null, groupType: 3, container : 'pjax-container', enable : true, chaildredType: status > 0 ? 'addSection' : '', sectionBsectionVector: 'LINESTRING(' + startPoint.bdPoint + ')'}];
171 171 }
172 172 StationTreeData.inoutInit([rootNode]);
173 173 StationTreeData.inoutreloadeTree([rootNode]);
... ... @@ -197,7 +197,7 @@ var PublicFunctions = function () {
197 197 // 刷新树
198 198 StationTreeData.upreloadeTree(treeDateJson);
199 199 }else {
200   - if ($($("#versions").find("option:selected")[0]).attr("status") > 0) {
  200 + if (status > 0) {
201 201 // 显示上行规划
202 202 $('#upToolsMobal').show();
203 203 }else{
... ... @@ -219,7 +219,7 @@ var PublicFunctions = function () {
219 219 // 跟新树
220 220 StationTreeData.dwonreloadeTree(treeDateJson);
221 221 }else {
222   - if ($($("#versions").find("option:selected")[0]).attr("status") > 0) {
  222 + if (status > 0) {
223 223 // 显示下行规划
224 224 $('#downToolsMobal').show();
225 225 }else{
... ...