|  |  |  | 
|---|
|  |  |  | </div> | 
|---|
|  |  |  | </div> | 
|---|
|  |  |  | <div class="layui-form-item"> | 
|---|
|  |  |  | <label class="layui-form-label febs-form-item-require">经纬度串:</label> | 
|---|
|  |  |  | <label class="layui-form-label">经纬度串:</label> | 
|---|
|  |  |  | <div class="layui-input-block"> | 
|---|
|  |  |  | <input type="text" id="longlatiarr" name="longlatiarr" lay-verify="required" placeholder="" class="layui-input" readonly> | 
|---|
|  |  |  | <input type="text" id="longlatiarr" name="longlatiarr" class="layui-input" readonly> | 
|---|
|  |  |  | </div> | 
|---|
|  |  |  | </div> | 
|---|
|  |  |  | <div class="layui-form-item febs-hide"> | 
|---|
|  |  |  | 
|---|
|  |  |  | //配送范围回显 | 
|---|
|  |  |  | // var pathPolygon = []; | 
|---|
|  |  |  | let fenceLongLat = leaderInfo.longlatiarr; | 
|---|
|  |  |  | let splitList = []; | 
|---|
|  |  |  | splitList = fenceLongLat.split(';'); | 
|---|
|  |  |  | if(splitList.length > 0){ | 
|---|
|  |  |  | for(let splitIndex = 0;splitIndex < splitList.length-1;splitIndex++){ | 
|---|
|  |  |  | let splitLngLat = splitList[splitIndex].split(','); | 
|---|
|  |  |  | console.log(splitLngLat[0]); | 
|---|
|  |  |  | console.log(splitLngLat[1]); | 
|---|
|  |  |  | let lngLat = new AMap.LngLat(splitLngLat[0],splitLngLat[1]); | 
|---|
|  |  |  | pathPolygon.push(lngLat) | 
|---|
|  |  |  | if(fenceLongLat != '' && fenceLongLat != null){ | 
|---|
|  |  |  | let splitList = []; | 
|---|
|  |  |  | splitList = fenceLongLat.split(';'); | 
|---|
|  |  |  | if(splitList.length > 0){ | 
|---|
|  |  |  | for(let splitIndex = 0;splitIndex < splitList.length-1;splitIndex++){ | 
|---|
|  |  |  | let splitLngLat = splitList[splitIndex].split(','); | 
|---|
|  |  |  | console.log(splitLngLat[0]); | 
|---|
|  |  |  | console.log(splitLngLat[1]); | 
|---|
|  |  |  | let lngLat = new AMap.LngLat(splitLngLat[0],splitLngLat[1]); | 
|---|
|  |  |  | pathPolygon.push(lngLat) | 
|---|
|  |  |  | } | 
|---|
|  |  |  | } | 
|---|
|  |  |  | var polygon = new AMap.Polygon({ | 
|---|
|  |  |  | path: pathPolygon, | 
|---|
|  |  |  | fillColor: '#00B2D5', // 多边形填充颜色 | 
|---|
|  |  |  | fillOpacity : 0.5, // 多边形填充透明度,取值范围 [0,1] ,0表示完全透明,1表示不透明。默认为0.5 | 
|---|
|  |  |  | strokeStyle : 'dashed', // 轮廓线样式,实线:solid,虚线:dashed | 
|---|
|  |  |  | borderWeight: 2, // 线条宽度,默认为 1 | 
|---|
|  |  |  | strokeColor: 'green', // 线条颜色 | 
|---|
|  |  |  | }); | 
|---|
|  |  |  | polygonClear = polygon; | 
|---|
|  |  |  | map.add(polygon); | 
|---|
|  |  |  | } | 
|---|
|  |  |  | var polygon = new AMap.Polygon({ | 
|---|
|  |  |  | path: pathPolygon, | 
|---|
|  |  |  | fillColor: '#00B2D5', // 多边形填充颜色 | 
|---|
|  |  |  | fillOpacity : 0.5, // 多边形填充透明度,取值范围 [0,1] ,0表示完全透明,1表示不透明。默认为0.5 | 
|---|
|  |  |  | strokeStyle : 'dashed', // 轮廓线样式,实线:solid,虚线:dashed | 
|---|
|  |  |  | borderWeight: 2, // 线条宽度,默认为 1 | 
|---|
|  |  |  | strokeColor: 'green', // 线条颜色 | 
|---|
|  |  |  | }); | 
|---|
|  |  |  | polygonClear = polygon; | 
|---|
|  |  |  | map.add(polygon); | 
|---|
|  |  |  |  | 
|---|
|  |  |  | form.val("user-addLeaderFence-form", { | 
|---|
|  |  |  | "id": leaderInfo.id, | 
|---|