| | |
| | | |
| | | <div class="row" style="margin-top: 30px;"> |
| | | <div class="col-sm-4"> |
| | | <h2 style="font-weight: 700;">目的地设置</h2> |
| | | </div> |
| | | </div> |
| | | <div class="row"> |
| | | <div class="col-sm-11"> |
| | | <div class="form-group"> |
| | | <label class="col-sm-2 control-label"></label> |
| | | <div class="col-sm-10"> |
| | | <#button btnCss="info" name="添加目的地" id="addDestinationBtn" icon="fa-plus" clickFun="TLineInfoDlg.openDestinationDialog()"/> |
| | | </div> |
| | | </div> |
| | | <div class="form-group"> |
| | | <label class="col-sm-2 control-label">已添加目的地</label> |
| | | <div class="col-sm-10"> |
| | | <div style="height: 220px; border: 1px solid #e5e6e7;overflow-y: auto;"> |
| | | <table class="table table-striped table-bordered table-hover table-condensed"> |
| | | <thead> |
| | | <tr> |
| | | <th style="text-align: center;">围栏类型</th> |
| | | <th style="text-align: center;">目的地</th> |
| | | <th style="text-align: center;">5座车价格</th> |
| | | <th style="text-align: center;">7座车价格</th> |
| | | <th style="text-align: center;">状态</th> |
| | | <th style="text-align: center;">是否为主要</th> |
| | | <th style="text-align: center;">操作</th> |
| | | </tr> |
| | | </thead> |
| | | <tbody id="destinationValue"> |
| | | @for(obj in lineDestinationList!){ |
| | | <tr class="destinationValueClass"> |
| | | <td style="text-align: center;"> |
| | | <input type="hidden" name="destinationTimeValue" value="${obj.addTime}"> |
| | | <input type="hidden" name="destinationFenceTypeValue" value="${obj.fenceType}"> |
| | | <input type="hidden" name="destinationCoordinateValue" value="${obj.coordinate}"> |
| | | <input type="hidden" name="destinationDefaultPointLonValue" value="${obj.defaultPointLon}"> |
| | | <input type="hidden" name="destinationDefaultPointLatValue" value="${obj.defaultPointLat}"> |
| | | <input type="hidden" name="destinationNameValue" value="${obj.name}"> |
| | | <input type="hidden" name="destinationPrice5Value" value="${obj.price5}"> |
| | | <input type="hidden" name="destinationPrice7Value" value="${obj.price7}"> |
| | | <input type="hidden" name="destinationStateValue" value="${obj.state}"> |
| | | <input type="hidden" name="destinationIsMainValue" value="${obj.isMain}"> |
| | | ${obj.fenceType == 1 ? "圆形围栏" : "多边形围栏"} |
| | | </td> |
| | | <td style="text-align: center;">${obj.name}</td> |
| | | <td style="text-align: center;">${obj.price5}</td> |
| | | <td style="text-align: center;">${obj.price7}</td> |
| | | <td style="text-align: center;">${obj.state == 1 ? "启用" : "关闭"}</td> |
| | | <td style="text-align: center;">${obj.isMain == 1 ? "是" : "否"}</td> |
| | | <td style="text-align: center;"> |
| | | <button type="button" onclick="TLineInfoDlg.editDestination(this)">编辑</button> |
| | | <button type="button" onclick="TLineInfoDlg.deleteDestination(this)">删除</button> |
| | | </td> |
| | | </tr> |
| | | @} |
| | | </tbody> |
| | | </table> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | |
| | | <div id="destinationDialogContent" style="display: none;padding: 20px 20px 0 20px;"> |
| | | <div class="form-horizontal"> |
| | | <input type="hidden" id="destinationEditIndex"> |
| | | <div class="form-group"> |
| | | <label class="col-sm-2 control-label">目的地名称:</label> |
| | | <div class="col-sm-4"> |
| | | <input type="text" class="form-control" id="destinationName" placeholder="请输入"> |
| | | </div> |
| | | <label class="col-sm-2 control-label">围栏类型:</label> |
| | | <div class="col-sm-4" style="display: flex;align-items: center;"> |
| | | <div class="radio radio-info radio-inline"> |
| | | <input type="radio" id="destinationFenceType1" value="1" name="destinationFenceType" checked onclick="TLineInfoDlg.destinationFenceTypeChange(1)"> |
| | | <label for="destinationFenceType1"> 圆形围栏 </label> |
| | | </div> |
| | | <div class="radio radio-success radio-inline"> |
| | | <input type="radio" id="destinationFenceType2" value="2" name="destinationFenceType" onclick="TLineInfoDlg.destinationFenceTypeChange(2)"> |
| | | <label for="destinationFenceType2"> 多边形围栏 </label> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | |
| | | <div class="form-group"> |
| | | <label class="col-sm-2 control-label">目的地围栏:</label> |
| | | <div class="col-sm-10"> |
| | | <div style="margin-bottom: 10px;"> |
| | | <button type="button" class="btn btn-info btn-sm" onclick="TLineInfoDlg.startDrawDestinationFence()">选择围栏</button> |
| | | <button type="button" class="btn btn-default btn-sm" onclick="TLineInfoDlg.clearDestinationFence()">清除围栏</button> |
| | | <button type="button" class="btn btn-default btn-sm" onclick="TLineInfoDlg.selectDestinationDefaultPoint()">选择默认点</button> |
| | | <span id="destinationFenceTip" style="margin-left: 10px;color: #999;"></span> |
| | | </div> |
| | | <div style="margin-bottom: 10px;"> |
| | | <input type="text" class="form-control" id="destinationAddressKeyword" placeholder="输入地址搜索后定位默认点" style="width: 320px;display: inline-block;"> |
| | | <button type="button" class="btn btn-default btn-sm" onclick="TLineInfoDlg.searchDestinationAddress()">搜索</button> |
| | | <span id="destinationDefaultPointText" style="margin-left: 10px;color: #666;"></span> |
| | | </div> |
| | | <div id="destinationMapContainer" style="height: 420px;width: 100%;"></div> |
| | | <input type="hidden" id="destinationCoordinate"> |
| | | <input type="hidden" id="destinationDefaultPointLon"> |
| | | <input type="hidden" id="destinationDefaultPointLat"> |
| | | </div> |
| | | </div> |
| | | |
| | | <div class="form-group"> |
| | | <label class="col-sm-2 control-label">5座车费用:</label> |
| | | <div class="col-sm-4"> |
| | | <input type="text" class="form-control" id="destinationPrice5" placeholder="请输入"> |
| | | </div> |
| | | <label class="col-sm-2 control-label">7座车费用:</label> |
| | | <div class="col-sm-4"> |
| | | <input type="text" class="form-control" id="destinationPrice7" placeholder="请输入"> |
| | | </div> |
| | | </div> |
| | | <div class="form-group"> |
| | | <label class="col-sm-2 control-label">是否主要:</label> |
| | | <div class="col-sm-4" style="display: flex;align-items: center;"> |
| | | <div class="radio radio-info radio-inline"> |
| | | <input type="radio" id="destinationIsMain1" value="1" name="destinationIsMain"> |
| | | <label for="destinationIsMain1"> 是 </label> |
| | | </div> |
| | | <div class="radio radio-success radio-inline"> |
| | | <input type="radio" id="destinationIsMain0" value="0" name="destinationIsMain" checked> |
| | | <label for="destinationIsMain0"> 否 </label> |
| | | </div> |
| | | </div> |
| | | <label class="col-sm-2 control-label">是否启用:</label> |
| | | <div class="col-sm-4" style="display: flex;align-items: center;"> |
| | | <div class="radio radio-info radio-inline"> |
| | | <input type="radio" id="destinationState1" value="1" name="destinationState" checked> |
| | | <label for="destinationState1"> 启用 </label> |
| | | </div> |
| | | <div class="radio radio-success radio-inline"> |
| | | <input type="radio" id="destinationState2" value="2" name="destinationState"> |
| | | <label for="destinationState2"> 关闭 </label> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | |
| | | <div class="row" style="margin-top: 30px;"> |
| | | <div class="col-sm-4"> |
| | | <h2 style="font-weight: 700;">价格设置</h2> |
| | | </div> |
| | | </div> |
| | |
| | | |
| | | </div> |
| | | </div> |
| | | <script type="text/javascript"> |
| | | window._AMapSecurityConfig = { |
| | | securityJsCode: '44c5ee9ad584605d91ca69bfac32c761', |
| | | } |
| | | </script> |
| | | <script src="https://webapi.amap.com/maps?v=1.4.15&key=d3bde6afb050067e1a765a8d1d1f4c54&plugin=AMap.MouseTool,AMap.Autocomplete,AMap.PlaceSearch,AMap.Geocoder"></script> |
| | | <script src="${ctxPath}/static/modular/system/tLine/tLine_info.js"></script> |
| | | <script type="text/javascript"> |
| | | laydate.render({ |