公路,千张场地,接口调试完成
This commit is contained in:
parent
303327cfae
commit
da3ed2a248
|
|
@ -64,6 +64,7 @@ function setParams(params) {
|
||||||
form.on("submit(formData)", function (data) {
|
form.on("submit(formData)", function (data) {
|
||||||
let formData = data.field;
|
let formData = data.field;
|
||||||
formData.proId = proId;
|
formData.proId = proId;
|
||||||
|
formData.sourceType = "2";
|
||||||
saveData(formData);
|
saveData(formData);
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
@ -83,7 +84,7 @@ function loadTowerOptions() {
|
||||||
options += `<option value="${item.id}">${item.towerName}</option>`;
|
options += `<option value="${item.id}">${item.towerName}</option>`;
|
||||||
});
|
});
|
||||||
$('select[name="towerId"]').html(options);
|
$('select[name="towerId"]').html(options);
|
||||||
$('select[name="highwayTowerId"]').html(options);
|
// $('select[name="highwayTowerId"]').html(options);
|
||||||
form.render("select");
|
form.render("select");
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
@ -151,7 +152,7 @@ function saveData2() {
|
||||||
// 保存数据
|
// 保存数据
|
||||||
function saveData(data) {
|
function saveData(data) {
|
||||||
if (!pointsStr) {
|
if (!pointsStr) {
|
||||||
return layer.msg("请配置索道口、中转口、索道终点经纬度", { icon: 7 });
|
return layer.msg("请配置公路口、中转口、公路终点经纬度", { icon: 7 });
|
||||||
}
|
}
|
||||||
let loadingMsg = layer.msg("数据上传中,请稍候...", {
|
let loadingMsg = layer.msg("数据上传中,请稍候...", {
|
||||||
icon: 16,
|
icon: 16,
|
||||||
|
|
@ -225,8 +226,8 @@ function setLonAndLatData() {
|
||||||
obj.points = pointsStr;
|
obj.points = pointsStr;
|
||||||
openIframeByParamObj2(
|
openIframeByParamObj2(
|
||||||
"setLonAndLatData",
|
"setLonAndLatData",
|
||||||
"配置千张场地、区域经纬度",
|
"配置公路口、中转口、公路终点经纬度",
|
||||||
"../../lineManagement/child/setQzSiteLonAndLat.html",
|
"../../lineManagement/child/setHighwayLonAndLat.html",
|
||||||
"92%",
|
"92%",
|
||||||
"95%",
|
"95%",
|
||||||
obj
|
obj
|
||||||
|
|
|
||||||
|
|
@ -64,6 +64,7 @@ function setParams(params) {
|
||||||
form.on("submit(formData)", function (data) {
|
form.on("submit(formData)", function (data) {
|
||||||
let formData = data.field;
|
let formData = data.field;
|
||||||
formData.proId = proId;
|
formData.proId = proId;
|
||||||
|
formData.sourceType = "3";
|
||||||
saveData(formData);
|
saveData(formData);
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
@ -151,7 +152,7 @@ function saveData2() {
|
||||||
// 保存数据
|
// 保存数据
|
||||||
function saveData(data) {
|
function saveData(data) {
|
||||||
if (!pointsStr) {
|
if (!pointsStr) {
|
||||||
return layer.msg("请配置索道口、中转口、索道终点经纬度", { icon: 7 });
|
return layer.msg("请配置千张场地,区域经纬度信息", { icon: 7 });
|
||||||
}
|
}
|
||||||
let loadingMsg = layer.msg("数据上传中,请稍候...", {
|
let loadingMsg = layer.msg("数据上传中,请稍候...", {
|
||||||
icon: 16,
|
icon: 16,
|
||||||
|
|
@ -225,8 +226,8 @@ function setLonAndLatData() {
|
||||||
obj.points = pointsStr;
|
obj.points = pointsStr;
|
||||||
openIframeByParamObj2(
|
openIframeByParamObj2(
|
||||||
"setLonAndLatData",
|
"setLonAndLatData",
|
||||||
"配置索道口、中转口、索道终点经纬度",
|
"配置千张场地、区域经纬度",
|
||||||
"../../lineManagement/child/setLonAndLat.html",
|
"../../lineManagement/child/setQzSiteLonAndLat.html",
|
||||||
"92%",
|
"92%",
|
||||||
"95%",
|
"95%",
|
||||||
obj
|
obj
|
||||||
|
|
|
||||||
|
|
@ -127,13 +127,13 @@ function initTable(dataList, limit, page) {
|
||||||
align: "center",
|
align: "center",
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
field: "highwayWidth",
|
field: "cablewayWidth",
|
||||||
title: "宽度(m)",
|
title: "宽度(m)",
|
||||||
unresize: true,
|
unresize: true,
|
||||||
align: "center",
|
align: "center",
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
field: "highwayLength",
|
field: "cablewayLength",
|
||||||
title: "长度(m)",
|
title: "长度(m)",
|
||||||
unresize: true,
|
unresize: true,
|
||||||
align: "center",
|
align: "center",
|
||||||
|
|
@ -191,6 +191,7 @@ function getReqParams(page, limit, type) {
|
||||||
limit: limit + "",
|
limit: limit + "",
|
||||||
proId: idParam,
|
proId: idParam,
|
||||||
keyWord: $("#keyWord").val(),
|
keyWord: $("#keyWord").val(),
|
||||||
|
sourceType: "2",
|
||||||
};
|
};
|
||||||
console.log("杆塔管理查询条件", obj);
|
console.log("杆塔管理查询条件", obj);
|
||||||
obj = {
|
obj = {
|
||||||
|
|
@ -223,7 +224,7 @@ function addData(id) {
|
||||||
openIframe2(
|
openIframe2(
|
||||||
"addDataRopeway",
|
"addDataRopeway",
|
||||||
title,
|
title,
|
||||||
"ropewayFormTemp.html",
|
"addAndEditHighway.html",
|
||||||
"1000px",
|
"1000px",
|
||||||
"625px",
|
"625px",
|
||||||
param
|
param
|
||||||
|
|
|
||||||
|
|
@ -121,20 +121,20 @@ function initTable(dataList, limit, page) {
|
||||||
// align: "center",
|
// align: "center",
|
||||||
// },
|
// },
|
||||||
{
|
{
|
||||||
field: "qzSiteName",
|
field: "name",
|
||||||
title: "名称",
|
title: "名称",
|
||||||
unresize: true,
|
unresize: true,
|
||||||
align: "center",
|
align: "center",
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
field: "qzSiteLength",
|
field: "cablewayLength",
|
||||||
title: "长(m)",
|
title: "长度(m)",
|
||||||
unresize: true,
|
unresize: true,
|
||||||
align: "center",
|
align: "center",
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
field: "highwayWidth",
|
field: "cablewayWidth",
|
||||||
title: "宽(m)",
|
title: "宽度(m)",
|
||||||
unresize: true,
|
unresize: true,
|
||||||
align: "center",
|
align: "center",
|
||||||
},
|
},
|
||||||
|
|
@ -192,6 +192,7 @@ function getReqParams(page, limit, type) {
|
||||||
limit: limit + "",
|
limit: limit + "",
|
||||||
proId: idParam,
|
proId: idParam,
|
||||||
keyWord: $("#keyWord").val(),
|
keyWord: $("#keyWord").val(),
|
||||||
|
sourceType: "3",
|
||||||
};
|
};
|
||||||
console.log("杆塔管理查询条件", obj);
|
console.log("杆塔管理查询条件", obj);
|
||||||
obj = {
|
obj = {
|
||||||
|
|
@ -224,7 +225,7 @@ function addData(id) {
|
||||||
openIframe2(
|
openIframe2(
|
||||||
"addDataRopeway",
|
"addDataRopeway",
|
||||||
title,
|
title,
|
||||||
"ropewayFormTemp.html",
|
"addAndEditQzSite.html",
|
||||||
"1000px",
|
"1000px",
|
||||||
"625px",
|
"625px",
|
||||||
param
|
param
|
||||||
|
|
|
||||||
|
|
@ -173,6 +173,7 @@ function getReqParams(page, limit, type) {
|
||||||
limit: limit + "",
|
limit: limit + "",
|
||||||
proId: idParam,
|
proId: idParam,
|
||||||
keyWord: $("#keyWord").val(),
|
keyWord: $("#keyWord").val(),
|
||||||
|
sourceType: "1",
|
||||||
};
|
};
|
||||||
console.log("杆塔管理查询条件", obj);
|
console.log("杆塔管理查询条件", obj);
|
||||||
obj = {
|
obj = {
|
||||||
|
|
|
||||||
|
|
@ -180,13 +180,13 @@ function initMap(list) {
|
||||||
let points = JSON.parse(objParams.points);
|
let points = JSON.parse(objParams.points);
|
||||||
$.each(points, function (i, item) {
|
$.each(points, function (i, item) {
|
||||||
addMarker(item.lng, item.lat);
|
addMarker(item.lng, item.lat);
|
||||||
viewPointLine();
|
|
||||||
});
|
});
|
||||||
|
viewPointLine();
|
||||||
} else {
|
} else {
|
||||||
// 点击地图添加标记
|
// // 点击地图添加标记
|
||||||
map.addEventListener("click", function (e) {
|
// map.addEventListener("click", function (e) {
|
||||||
addMarker(e.latlng.lng, e.latlng.lat);
|
// addMarker(e.latlng.lng, e.latlng.lat);
|
||||||
});
|
// });
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -340,6 +340,8 @@ function viewPointLine() {
|
||||||
map.removeOverlay(polylineView); // 移除旧的折线
|
map.removeOverlay(polylineView); // 移除旧的折线
|
||||||
polylineView = null;
|
polylineView = null;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
console.log("markers", markers);
|
||||||
let points = [];
|
let points = [];
|
||||||
$.each(markers, function (index, item) {
|
$.each(markers, function (index, item) {
|
||||||
points.push(item.point);
|
points.push(item.point);
|
||||||
|
|
|
||||||
|
|
@ -95,7 +95,7 @@
|
||||||
<div class="layui-form-item" style="margin-top: 2%;">
|
<div class="layui-form-item" style="margin-top: 2%;">
|
||||||
<label class="layui-form-label"><span class="required-mark">*</span>公路所在杆塔:</label>
|
<label class="layui-form-label"><span class="required-mark">*</span>公路所在杆塔:</label>
|
||||||
<div class="layui-input-inline">
|
<div class="layui-input-inline">
|
||||||
<select name="highwayTowerId" lay-verify="required" lay-filter="highwayTowerSelect">
|
<select name="towerId" lay-verify="required" lay-filter="towerSelect">
|
||||||
<option value="">选择杆塔</option>
|
<option value="">选择杆塔</option>
|
||||||
</select>
|
</select>
|
||||||
</div>
|
</div>
|
||||||
|
|
@ -103,14 +103,14 @@
|
||||||
<div class="layui-form-item">
|
<div class="layui-form-item">
|
||||||
<label class="layui-form-label"><span class="required-mark">*</span>宽度(m):</label>
|
<label class="layui-form-label"><span class="required-mark">*</span>宽度(m):</label>
|
||||||
<div class="layui-input-inline">
|
<div class="layui-input-inline">
|
||||||
<input type="text" name="highwayWidth" lay-verify="required|number" autocomplete="off"
|
<input type="text" name="cablewayWidth" lay-verify="required|number" autocomplete="off"
|
||||||
placeholder="请输入" class="layui-input" maxlength="10">
|
placeholder="请输入" class="layui-input" maxlength="10">
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="layui-form-item">
|
<div class="layui-form-item">
|
||||||
<label class="layui-form-label"><span class="required-mark">*</span>长度(m):</label>
|
<label class="layui-form-label"><span class="required-mark">*</span>长度(m):</label>
|
||||||
<div class="layui-input-inline">
|
<div class="layui-input-inline">
|
||||||
<input type="text" name="highwayLength" lay-verify="required|number" autocomplete="off"
|
<input type="text" name="cablewayLength" lay-verify="required|number" autocomplete="off"
|
||||||
placeholder="请输入" class="layui-input" maxlength="10">
|
placeholder="请输入" class="layui-input" maxlength="10">
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
||||||
|
|
@ -95,22 +95,21 @@
|
||||||
<div class="layui-form-item" style="margin-top: 2%;">
|
<div class="layui-form-item" style="margin-top: 2%;">
|
||||||
<label class="layui-form-label"><span class="required-mark">*</span>名称:</label>
|
<label class="layui-form-label"><span class="required-mark">*</span>名称:</label>
|
||||||
<div class="layui-input-inline">
|
<div class="layui-input-inline">
|
||||||
<select name="highwayTowerId" lay-verify="required" lay-filter="highwayTowerSelect">
|
<input type="text" name="name" lay-verify="required" autocomplete="off" placeholder="请输入"
|
||||||
<option value="">选择杆塔</option>
|
class="layui-input" maxlength="10">
|
||||||
</select>
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="layui-form-item">
|
<div class="layui-form-item">
|
||||||
<label class="layui-form-label"><span class="required-mark">*</span>长(m):</label>
|
<label class="layui-form-label"><span class="required-mark">*</span>长度(m):</label>
|
||||||
<div class="layui-input-inline">
|
<div class="layui-input-inline">
|
||||||
<input type="text" name="highwayLength" lay-verify="required|number" autocomplete="off"
|
<input type="text" name="cablewayLength" lay-verify="required|number" autocomplete="off"
|
||||||
placeholder="请输入" class="layui-input" maxlength="10">
|
placeholder="请输入" class="layui-input" maxlength="10">
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="layui-form-item">
|
<div class="layui-form-item">
|
||||||
<label class="layui-form-label"><span class="required-mark">*</span>宽(m):</label>
|
<label class="layui-form-label"><span class="required-mark">*</span>宽度(m):</label>
|
||||||
<div class="layui-input-inline">
|
<div class="layui-input-inline">
|
||||||
<input type="text" name="highwayWidth" lay-verify="required|number" autocomplete="off"
|
<input type="text" name="cablewayWidth" lay-verify="required|number" autocomplete="off"
|
||||||
placeholder="请输入" class="layui-input" maxlength="10">
|
placeholder="请输入" class="layui-input" maxlength="10">
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
@ -133,6 +132,6 @@
|
||||||
<script src="../../../../js/ajaxRequest.js"></script>
|
<script src="../../../../js/ajaxRequest.js"></script>
|
||||||
<script src="../../../../js/my/aes.js"></script>
|
<script src="../../../../js/my/aes.js"></script>
|
||||||
<script src="../../../../js/openIframe.js"></script>
|
<script src="../../../../js/openIframe.js"></script>
|
||||||
<script src="../../../../js/basic/lineManagement/child/addAndEditHighway.js"></script>
|
<script src="../../../../js/basic/lineManagement/child/addAndEditQzSite.js"></script>
|
||||||
|
|
||||||
</html>
|
</html>
|
||||||
|
|
@ -23,7 +23,7 @@
|
||||||
<div class="layui-inline" style="padding: 0 0 0 10px;">
|
<div class="layui-inline" style="padding: 0 0 0 10px;">
|
||||||
<div class="layui-input-inline">
|
<div class="layui-input-inline">
|
||||||
<input type="text" id="keyWord" name="keyWord" maxlength="30" class="layui-input"
|
<input type="text" id="keyWord" name="keyWord" maxlength="30" class="layui-input"
|
||||||
autocomplete="off" placeholder="请输入杆塔号">
|
autocomplete="off" placeholder="请输入千张场地名称">
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue