|
@@ -2040,8 +2040,9 @@
|
|
|
</div>
|
|
|
<div class="modal-body">
|
|
|
<input class="form-control form-control-sm mb-1" type="text" id="map-name" value="" placeholder="请输入路线名称">
|
|
|
+ <input class="form-control form-control-sm mb-1" type="text" id="map-tips" value="" placeholder="请输入路线标注(可以为空)">
|
|
|
<div id="map-color-select" class="input-group mb-1">
|
|
|
- <input id="map-color" type="text" class="form-control form-control-sm" style="height: 30px" />
|
|
|
+ <input id="map-color" type="text" placeholder="请选择路线颜色" class="form-control form-control-sm" style="height: 30px" />
|
|
|
<span class="input-group-append"><span class="input-group-text colorpicker-input-addon"><i></i></span></span>
|
|
|
</div>
|
|
|
<!--<input class="form-control form-control-sm mb-1" type="text" id="map-color" value="#ff0000" placeholder="请选择路线颜色">-->
|
|
@@ -2196,6 +2197,7 @@
|
|
|
// 加载sjs
|
|
|
const mapInfo = _.find(tenderMapList, { id });
|
|
|
$('#map-name').val(mapInfo.name);
|
|
|
+ $('#map-tips').val(mapInfo.tips);
|
|
|
$('#map-color').val(mapInfo.color);
|
|
|
$('#map-color').attr('value', mapInfo.color);
|
|
|
$('#map-color-select').colorpicker("setValue", mapInfo.color);
|
|
@@ -2432,6 +2434,10 @@
|
|
|
toastr.error('请选择或输入正确的颜色编码');
|
|
|
return;
|
|
|
}
|
|
|
+ if ($('#map-tips').val().length > 255) {
|
|
|
+ toastr.error('路线标注太长啦~');
|
|
|
+ return;
|
|
|
+ }
|
|
|
}
|
|
|
if (!pass) {
|
|
|
const str = wrongRow.join('、');
|
|
@@ -2457,8 +2463,10 @@
|
|
|
id,
|
|
|
name: $('#map-name').val(),
|
|
|
color: $('#map-color').val(),
|
|
|
+ tips: $('#map-tips').val(),
|
|
|
map_json: mapData.length > 0 ? JSON.stringify(mapData) : null,
|
|
|
center: centerPoints.lng !== '' ? JSON.stringify(centerPoints) : null,
|
|
|
+
|
|
|
}
|
|
|
const mapInfo = _.find(tenderMapList, { id });
|
|
|
oneMapData.create_time = mapInfo.create_time;
|