修改地区、字典请求地址。

This commit is contained in:
Renpc-kilig 2021-11-30 17:40:20 +08:00
parent c361576227
commit f1bc985608
16 changed files with 76 additions and 76 deletions

View File

@ -9,7 +9,7 @@ import cn.com.tenlion.systemtask.service.despicableconfigure.IDespicableConfigur
import ink.wgink.common.base.DefaultBaseService; import ink.wgink.common.base.DefaultBaseService;
import ink.wgink.exceptions.UpdateException; import ink.wgink.exceptions.UpdateException;
import ink.wgink.module.dictionary.pojo.dtos.DataDTO; import ink.wgink.module.dictionary.pojo.dtos.DataDTO;
import ink.wgink.module.dictionary.service.IDataService; import ink.wgink.mongo.module.dictionary.service.IMongoDataService;
import ink.wgink.pojo.ListPage; import ink.wgink.pojo.ListPage;
import ink.wgink.pojo.result.SuccessResultList; import ink.wgink.pojo.result.SuccessResultList;
import ink.wgink.util.map.HashMapUtil; import ink.wgink.util.map.HashMapUtil;
@ -35,7 +35,7 @@ public class DespicableConfigureServiceImpl extends DefaultBaseService implement
@Autowired @Autowired
private IDespicableConfigureDao despicableConfigureDao; private IDespicableConfigureDao despicableConfigureDao;
@Autowired @Autowired
private IDataService dataService; private IMongoDataService dataService;
@Override @Override
public void save(DespicableConfigureVO despicableConfigureVO) { public void save(DespicableConfigureVO despicableConfigureVO) {

View File

@ -37,10 +37,8 @@ import ink.wgink.common.base.DefaultBaseService;
import ink.wgink.exceptions.SaveException; import ink.wgink.exceptions.SaveException;
import ink.wgink.exceptions.SearchException; import ink.wgink.exceptions.SearchException;
import ink.wgink.module.dictionary.pojo.dtos.AreaDTO; import ink.wgink.module.dictionary.pojo.dtos.AreaDTO;
import ink.wgink.module.dictionary.pojo.dtos.DataDTO;
import ink.wgink.module.dictionary.service.IAreaService;
import ink.wgink.module.dictionary.service.IDataService;
import ink.wgink.module.oauth2.manager.OAuth2ClientTokenManager; import ink.wgink.module.oauth2.manager.OAuth2ClientTokenManager;
import ink.wgink.mongo.module.dictionary.service.IMongoAreaService;
import ink.wgink.pojo.ListPage; import ink.wgink.pojo.ListPage;
import ink.wgink.pojo.result.SuccessResultData; import ink.wgink.pojo.result.SuccessResultData;
import ink.wgink.pojo.result.SuccessResultList; import ink.wgink.pojo.result.SuccessResultList;
@ -78,7 +76,7 @@ public class DistributeServiceImpl extends DefaultBaseService implements IDistri
@Autowired @Autowired
private ITemplateService templateService; private ITemplateService templateService;
@Autowired @Autowired
private IAreaService areaService; private IMongoAreaService areaService;
@Autowired @Autowired
private IRateService rateService; private IRateService rateService;
@Autowired @Autowired

View File

@ -264,7 +264,7 @@
// 初始化事件分级ID选择 // 初始化事件分级ID选择
function initEventLevelIdSelect() { function initEventLevelIdSelect() {
top.restAjax.get(top.restAjax.path('api/data/listbyparentid/{dataParentId}', ['77b5f275-342b-403b-a737-759357fcae55']), {}, null, function(code, data, args) { top.restAjax.get(top.restAjax.path('api/mongo/data/list-all/parent-id/{dataParentId}', ['77b5f275-342b-403b-a737-759357fcae55']), {}, null, function(code, data, args) {
laytpl(document.getElementById('eventLevelIdSelectTemplate').innerHTML).render(data, function(html) { laytpl(document.getElementById('eventLevelIdSelectTemplate').innerHTML).render(data, function(html) {
document.getElementById('eventLevelIdSelectTemplateBox').innerHTML = html; document.getElementById('eventLevelIdSelectTemplateBox').innerHTML = html;
}); });
@ -276,7 +276,7 @@
// 初始化事件类型ID选择 // 初始化事件类型ID选择
function initEventTypeIdSelect() { function initEventTypeIdSelect() {
top.restAjax.get(top.restAjax.path('api/data/listbyparentid/{dataParentId}', ['0cd4e948-db42-4745-9073-4e8232aa4b02']), {}, null, function(code, data, args) { top.restAjax.get(top.restAjax.path('api/mongo/data/list-all/parent-id/{dataParentId}', ['0cd4e948-db42-4745-9073-4e8232aa4b02']), {}, null, function(code, data, args) {
laytpl(document.getElementById('eventTypeIdSelectTemplate').innerHTML).render(data, function(html) { laytpl(document.getElementById('eventTypeIdSelectTemplate').innerHTML).render(data, function(html) {
document.getElementById('eventTypeIdSelectTemplateBox').innerHTML = html; document.getElementById('eventTypeIdSelectTemplateBox').innerHTML = html;
}); });

View File

@ -161,7 +161,7 @@
], ],
page: false, page: false,
parseData: function(data) { parseData: function(data) {
if(typeof(selectedId) != 'undefined' && selectedId.length > 0) { if(null != selectedId && typeof(selectedId) != 'undefined' && selectedId.length > 0) {
var selectedIdArray = selectedId.split("_"); var selectedIdArray = selectedId.split("_");
for(var i = 0, item; item = data[i++];) { for(var i = 0, item; item = data[i++];) {
for(var j = 0, jItem; jItem = selectedIdArray[j++];) { for(var j = 0, jItem; jItem = selectedIdArray[j++];) {

View File

@ -155,7 +155,7 @@
// 初始化下派执行时间下拉选择 // 初始化下派执行时间下拉选择
function initImplementTimeSelect() { function initImplementTimeSelect() {
top.restAjax.get(top.restAjax.path('api/data/listbyparentid/{dataParentId}', ['3f2b991a-e4b3-430a-89b7-e19f0385b53e']), {}, null, function(code, data, args) { top.restAjax.get(top.restAjax.path('api/mongo/data/list-all/parent-id/{dataParentId}', ['3f2b991a-e4b3-430a-89b7-e19f0385b53e']), {}, null, function(code, data, args) {
laytpl(document.getElementById('implementTimeSelectTemplate').innerHTML).render(data, function(html) { laytpl(document.getElementById('implementTimeSelectTemplate').innerHTML).render(data, function(html) {
document.getElementById('implementTimeSelectTemplateBox').innerHTML = html; document.getElementById('implementTimeSelectTemplateBox').innerHTML = html;
}); });
@ -167,7 +167,7 @@
// 初始化紧急程度下拉选择 // 初始化紧急程度下拉选择
function initUrgentlevelSelect() { function initUrgentlevelSelect() {
top.restAjax.get(top.restAjax.path('api/data/listbyparentid/{dataParentId}', ['203f7283-74a6-4f05-9d5f-c6675b3a69fc']), {}, null, function(code, data, args) { top.restAjax.get(top.restAjax.path('api/mongo/data/list-all/parent-id/{dataParentId}', ['203f7283-74a6-4f05-9d5f-c6675b3a69fc']), {}, null, function(code, data, args) {
laytpl(document.getElementById('urgentlevelSelectTemplate').innerHTML).render(data, function(html) { laytpl(document.getElementById('urgentlevelSelectTemplate').innerHTML).render(data, function(html) {
document.getElementById('urgentlevelSelectTemplateBox').innerHTML = html; document.getElementById('urgentlevelSelectTemplateBox').innerHTML = html;
}); });

View File

@ -160,7 +160,7 @@
} }
function initImplementTimeSelect(selectValue) { function initImplementTimeSelect(selectValue) {
top.restAjax.get(top.restAjax.path('api/data/listbyparentid/{dataParentId}', ['3f2b991a-e4b3-430a-89b7-e19f0385b53e']), {}, null, function(code, data, args) { top.restAjax.get(top.restAjax.path('api/mongo/data/list-all/parent-id/{dataParentId}', ['3f2b991a-e4b3-430a-89b7-e19f0385b53e']), {}, null, function(code, data, args) {
laytpl(document.getElementById('implementTimeSelectTemplate').innerHTML).render(data, function(html) { laytpl(document.getElementById('implementTimeSelectTemplate').innerHTML).render(data, function(html) {
document.getElementById('implementTimeSelectTemplateBox').innerHTML = html; document.getElementById('implementTimeSelectTemplateBox').innerHTML = html;
}); });
@ -175,7 +175,7 @@
} }
function initUrgentlevelSelect(selectValue) { function initUrgentlevelSelect(selectValue) {
top.restAjax.get(top.restAjax.path('api/data/listbyparentid/{dataParentId}', ['203f7283-74a6-4f05-9d5f-c6675b3a69fc']), {}, null, function(code, data, args) { top.restAjax.get(top.restAjax.path('api/mongo/data/list-all/parent-id/{dataParentId}', ['203f7283-74a6-4f05-9d5f-c6675b3a69fc']), {}, null, function(code, data, args) {
laytpl(document.getElementById('urgentlevelSelectTemplate').innerHTML).render(data, function(html) { laytpl(document.getElementById('urgentlevelSelectTemplate').innerHTML).render(data, function(html) {
document.getElementById('urgentlevelSelectTemplateBox').innerHTML = html; document.getElementById('urgentlevelSelectTemplateBox').innerHTML = html;
}); });

View File

@ -93,7 +93,7 @@
// 初始化任务紧急程度下拉选择 // 初始化任务紧急程度下拉选择
function initUrgentLevelSelect() { function initUrgentLevelSelect() {
top.restAjax.get(top.restAjax.path('api/data/listbyparentid/{dataParentId}', ['203f7283-74a6-4f05-9d5f-c6675b3a69fc']), {}, null, function(code, data, args) { top.restAjax.get(top.restAjax.path('api/mongo/data/list-all/parent-id/{dataParentId}', ['203f7283-74a6-4f05-9d5f-c6675b3a69fc']), {}, null, function(code, data, args) {
laytpl(document.getElementById('urgentLevelSelectTemplate').innerHTML).render(data, function(html) { laytpl(document.getElementById('urgentLevelSelectTemplate').innerHTML).render(data, function(html) {
document.getElementById('urgentLevelSelectTemplateBox').innerHTML = html; document.getElementById('urgentLevelSelectTemplateBox').innerHTML = html;
}); });

View File

@ -199,7 +199,7 @@
// 初始化任务紧急程度下拉选择 // 初始化任务紧急程度下拉选择
function initUrgentLevelSelect() { function initUrgentLevelSelect() {
top.restAjax.get(top.restAjax.path('api/data/listbyparentid/{dataParentId}', ['203f7283-74a6-4f05-9d5f-c6675b3a69fc']), {}, null, function(code, data, args) { top.restAjax.get(top.restAjax.path('api/mongo/data/list-all/parent-id/{dataParentId}', ['203f7283-74a6-4f05-9d5f-c6675b3a69fc']), {}, null, function(code, data, args) {
laytpl(document.getElementById('urgentLevelSelectTemplate').innerHTML).render(data, function(html) { laytpl(document.getElementById('urgentLevelSelectTemplate').innerHTML).render(data, function(html) {
document.getElementById('urgentLevelSelectTemplateBox').innerHTML = html; document.getElementById('urgentLevelSelectTemplateBox').innerHTML = html;
}); });

View File

@ -199,7 +199,7 @@
// 初始化任务紧急程度下拉选择 // 初始化任务紧急程度下拉选择
function initUrgentLevelSelect() { function initUrgentLevelSelect() {
top.restAjax.get(top.restAjax.path('api/data/listbyparentid/{dataParentId}', ['203f7283-74a6-4f05-9d5f-c6675b3a69fc']), {}, null, function(code, data, args) { top.restAjax.get(top.restAjax.path('api/mongo/data/list-all/parent-id/{dataParentId}', ['203f7283-74a6-4f05-9d5f-c6675b3a69fc']), {}, null, function(code, data, args) {
laytpl(document.getElementById('urgentLevelSelectTemplate').innerHTML).render(data, function(html) { laytpl(document.getElementById('urgentLevelSelectTemplate').innerHTML).render(data, function(html) {
document.getElementById('urgentLevelSelectTemplateBox').innerHTML = html; document.getElementById('urgentLevelSelectTemplateBox').innerHTML = html;
}); });

View File

@ -182,7 +182,7 @@
// 初始化任务紧急程度下拉选择 // 初始化任务紧急程度下拉选择
function initUrgentLevelSelect() { function initUrgentLevelSelect() {
top.restAjax.get(top.restAjax.path('api/data/listbyparentid/{dataParentId}', ['203f7283-74a6-4f05-9d5f-c6675b3a69fc']), {}, null, function(code, data, args) { top.restAjax.get(top.restAjax.path('api/mongo/data/list-all/parent-id/{dataParentId}', ['203f7283-74a6-4f05-9d5f-c6675b3a69fc']), {}, null, function(code, data, args) {
laytpl(document.getElementById('urgentLevelSelectTemplate').innerHTML).render(data, function(html) { laytpl(document.getElementById('urgentLevelSelectTemplate').innerHTML).render(data, function(html) {
document.getElementById('urgentLevelSelectTemplateBox').innerHTML = html; document.getElementById('urgentLevelSelectTemplateBox').innerHTML = html;
}); });

View File

@ -100,7 +100,7 @@
// 初始化任务紧急程度下拉选择 // 初始化任务紧急程度下拉选择
function initUrgentLevelSelect() { function initUrgentLevelSelect() {
top.restAjax.get(top.restAjax.path('api/data/listbyparentid/{dataParentId}', ['203f7283-74a6-4f05-9d5f-c6675b3a69fc']), {}, null, function(code, data, args) { top.restAjax.get(top.restAjax.path('api/mongo/data/list-all/parent-id/{dataParentId}', ['203f7283-74a6-4f05-9d5f-c6675b3a69fc']), {}, null, function(code, data, args) {
laytpl(document.getElementById('urgentLevelSelectTemplate').innerHTML).render(data, function(html) { laytpl(document.getElementById('urgentLevelSelectTemplate').innerHTML).render(data, function(html) {
document.getElementById('urgentLevelSelectTemplateBox').innerHTML = html; document.getElementById('urgentLevelSelectTemplateBox').innerHTML = html;
}); });

View File

@ -243,7 +243,7 @@
</div> </div>
<!-- 五级区域 --> <!-- 五级区域 -->
<div class="layui-form-item" id="area5Div"> <!--<div class="layui-form-item" id="area5Div">
<label class="layui-form-label" style="width: 150px;">任务五级地区名称</label> <label class="layui-form-label" style="width: 150px;">任务五级地区名称</label>
<input type="hidden" id="taskArea5Id" name="taskArea5Id" class="layui-input" value="" placeholder="请输入任务五级地区ID" maxlength="36"> <input type="hidden" id="taskArea5Id" name="taskArea5Id" class="layui-input" value="" placeholder="请输入任务五级地区ID" maxlength="36">
<input type="hidden" id="taskArea5Code" name="taskArea5Code" class="layui-input" value="" placeholder="请输入任务五级地区编码" maxlength="255"> <input type="hidden" id="taskArea5Code" name="taskArea5Code" class="layui-input" value="" placeholder="请输入任务五级地区编码" maxlength="255">
@ -257,7 +257,7 @@
{{# } }} {{# } }}
</select> </select>
</script> </script>
</div> </div>-->
<div class="layui-form-item"> <div class="layui-form-item">
<label class="layui-form-label">任务地点</label> <label class="layui-form-label">任务地点</label>
@ -461,7 +461,7 @@
// 初始化任务紧急程度下拉选择 // 初始化任务紧急程度下拉选择
function initUrgentLevelSelect() { function initUrgentLevelSelect() {
top.restAjax.get(top.restAjax.path('api/data/listbyparentid/{dataParentId}', ['203f7283-74a6-4f05-9d5f-c6675b3a69fc']), {}, null, function(code, data, args) { top.restAjax.get(top.restAjax.path('api/mongo/data/list-all/parent-id/{dataParentId}', ['203f7283-74a6-4f05-9d5f-c6675b3a69fc']), {}, null, function(code, data, args) {
laytpl(document.getElementById('urgentLevelSelectTemplate').innerHTML).render(data, function(html) { laytpl(document.getElementById('urgentLevelSelectTemplate').innerHTML).render(data, function(html) {
document.getElementById('urgentLevelSelectTemplateBox').innerHTML = html; document.getElementById('urgentLevelSelectTemplateBox').innerHTML = html;
}); });
@ -1282,7 +1282,7 @@
// 初始化任务一级地区下拉选择 // 初始化任务一级地区下拉选择
function initTaskArea1NameSelect() { function initTaskArea1NameSelect() {
top.restAjax.get(top.restAjax.path('api/area/listbyparentid/0', []), {}, null, function(code, data, args) { top.restAjax.get(top.restAjax.path('api/mongo/area/list-all/parent-id/0', []), {}, null, function(code, data, args) {
laytpl(document.getElementById('taskArea1NameSelectTemplate').innerHTML).render(data, function(html) { laytpl(document.getElementById('taskArea1NameSelectTemplate').innerHTML).render(data, function(html) {
document.getElementById('taskArea1NameSelectTemplateBox').innerHTML = html; document.getElementById('taskArea1NameSelectTemplateBox').innerHTML = html;
}); });
@ -1306,7 +1306,7 @@
}); });
form.render('select', 'taskArea2NameSelectTemplateBox'); form.render('select', 'taskArea2NameSelectTemplateBox');
}else { }else {
top.restAjax.get(top.restAjax.path('api/area/listbyparentid/' + value, []), {}, null, function(code, data, args) { top.restAjax.get(top.restAjax.path('api/mongo/area/list-all/parent-id/' + value, []), {}, null, function(code, data, args) {
laytpl(document.getElementById('taskArea2NameSelectTemplate').innerHTML).render(data, function(html) { laytpl(document.getElementById('taskArea2NameSelectTemplate').innerHTML).render(data, function(html) {
document.getElementById('taskArea2NameSelectTemplateBox').innerHTML = html; document.getElementById('taskArea2NameSelectTemplateBox').innerHTML = html;
}); });
@ -1332,7 +1332,7 @@
}); });
form.render('select', 'taskArea3NameSelectTemplateBox'); form.render('select', 'taskArea3NameSelectTemplateBox');
}else { }else {
top.restAjax.get(top.restAjax.path('api/area/listbyparentid/' + value, []), {}, null, function(code, data, args) { top.restAjax.get(top.restAjax.path('api/mongo/area/list-all/parent-id/' + value, []), {}, null, function(code, data, args) {
laytpl(document.getElementById('taskArea3NameSelectTemplate').innerHTML).render(data, function(html) { laytpl(document.getElementById('taskArea3NameSelectTemplate').innerHTML).render(data, function(html) {
document.getElementById('taskArea3NameSelectTemplateBox').innerHTML = html; document.getElementById('taskArea3NameSelectTemplateBox').innerHTML = html;
}); });
@ -1358,7 +1358,7 @@
}); });
form.render('select', 'taskArea4NameSelectTemplateBox'); form.render('select', 'taskArea4NameSelectTemplateBox');
}else { }else {
top.restAjax.get(top.restAjax.path('api/area/listbyparentid/' + value, []), {}, null, function(code, data, args) { top.restAjax.get(top.restAjax.path('api/mongo/area/list-all/parent-id/' + value, []), {}, null, function(code, data, args) {
laytpl(document.getElementById('taskArea4NameSelectTemplate').innerHTML).render(data, function(html) { laytpl(document.getElementById('taskArea4NameSelectTemplate').innerHTML).render(data, function(html) {
document.getElementById('taskArea4NameSelectTemplateBox').innerHTML = html; document.getElementById('taskArea4NameSelectTemplateBox').innerHTML = html;
}); });
@ -1384,7 +1384,7 @@
}); });
form.render('select', 'taskArea5NameSelectTemplateBox'); form.render('select', 'taskArea5NameSelectTemplateBox');
}else { }else {
top.restAjax.get(top.restAjax.path('api/area/listbyparentid/' + value, []), {}, null, function(code, data, args) { top.restAjax.get(top.restAjax.path('api/mongo/area/list-all/parent-id/' + value, []), {}, null, function(code, data, args) {
laytpl(document.getElementById('taskArea5NameSelectTemplate').innerHTML).render(data, function(html) { laytpl(document.getElementById('taskArea5NameSelectTemplate').innerHTML).render(data, function(html) {
document.getElementById('taskArea5NameSelectTemplateBox').innerHTML = html; document.getElementById('taskArea5NameSelectTemplateBox').innerHTML = html;
}); });
@ -1418,7 +1418,7 @@
$('#area3Div').hide(); $('#area3Div').hide();
$('#area4Div').hide(); $('#area4Div').hide();
$('#area5Div').hide(); $('#area5Div').hide();
initTaskArea2NameSelect(data.value); initTaskArea2NameSelect(valueArr[0]);
} }
$("#taskArea2Name").empty(); $("#taskArea2Name").empty();
form.render("select"); form.render("select");
@ -1444,7 +1444,7 @@
$('#area3Div').show(); $('#area3Div').show();
$('#area4Div').hide(); $('#area4Div').hide();
$('#area5Div').hide(); $('#area5Div').hide();
initTaskArea3NameSelect(data.value); initTaskArea3NameSelect(valueArr[0]);
} }
$("#taskArea3Name").empty(); $("#taskArea3Name").empty();
form.render("select"); form.render("select");
@ -1468,7 +1468,7 @@
} }
$('#area4Div').show(); $('#area4Div').show();
$('#area5Div').hide(); $('#area5Div').hide();
initTaskArea4NameSelect(data.value); initTaskArea4NameSelect(valueArr[0]);
} }
$("#taskArea4Name").empty(); $("#taskArea4Name").empty();
form.render("select"); form.render("select");
@ -1490,7 +1490,7 @@
initMap(valueArr[2], valueArr[3]) initMap(valueArr[2], valueArr[3])
} }
$('#area5Div').show(); $('#area5Div').show();
initTaskArea5NameSelect(data.value); initTaskArea5NameSelect(valueArr[0]);
} }
$("#taskArea5Name").empty(); $("#taskArea5Name").empty();
form.render("select"); form.render("select");

View File

@ -191,7 +191,7 @@
</div> </div>
<!-- 五级区域 --> <!-- 五级区域 -->
<div class="layui-form-item" id="area5Div"> <!--<div class="layui-form-item" id="area5Div">
<label class="layui-form-label" style="width: 150px;">任务五级地区名称</label> <label class="layui-form-label" style="width: 150px;">任务五级地区名称</label>
<input type="hidden" id="taskArea5Id" name="taskArea5Id" class="layui-input" value="" placeholder="请输入任务五级地区ID" maxlength="36"> <input type="hidden" id="taskArea5Id" name="taskArea5Id" class="layui-input" value="" placeholder="请输入任务五级地区ID" maxlength="36">
<input type="hidden" id="taskArea5Code" name="taskArea5Code" class="layui-input" value="" placeholder="请输入任务五级地区编码" maxlength="255"> <input type="hidden" id="taskArea5Code" name="taskArea5Code" class="layui-input" value="" placeholder="请输入任务五级地区编码" maxlength="255">
@ -205,7 +205,7 @@
{{# } }} {{# } }}
</select> </select>
</script> </script>
</div> </div>-->
<div class="layui-form-item"> <div class="layui-form-item">
<label class="layui-form-label">任务地点</label> <label class="layui-form-label">任务地点</label>
@ -299,7 +299,7 @@
// 初始化任务紧急程度下拉选择 // 初始化任务紧急程度下拉选择
function initUrgentLevelSelect() { function initUrgentLevelSelect() {
top.restAjax.get(top.restAjax.path('api/data/listbyparentid/{dataParentId}', ['203f7283-74a6-4f05-9d5f-c6675b3a69fc']), {}, null, function(code, data, args) { top.restAjax.get(top.restAjax.path('api/mongo/data/list-all/parent-id/{dataParentId}', ['203f7283-74a6-4f05-9d5f-c6675b3a69fc']), {}, null, function(code, data, args) {
laytpl(document.getElementById('urgentLevelSelectTemplate').innerHTML).render(data, function(html) { laytpl(document.getElementById('urgentLevelSelectTemplate').innerHTML).render(data, function(html) {
document.getElementById('urgentLevelSelectTemplateBox').innerHTML = html; document.getElementById('urgentLevelSelectTemplateBox').innerHTML = html;
}); });
@ -555,7 +555,6 @@
$('#reportCount').val(reportCount); $('#reportCount').val(reportCount);
$('#reportCount').attr('readonly', 'readonly'); $('#reportCount').attr('readonly', 'readonly');
taskRate = data.rateType; taskRate = data.rateType;
alert(taskRate);
}, function(code, data) { }, function(code, data) {
top.dialog.msg(data.msg); top.dialog.msg(data.msg);
}, function() { }, function() {
@ -599,7 +598,7 @@
// 初始化任务一级地区下拉选择 // 初始化任务一级地区下拉选择
function initTaskArea1NameSelect() { function initTaskArea1NameSelect() {
top.restAjax.get(top.restAjax.path('api/area/listbyparentid/0', []), {}, null, function(code, data, args) { top.restAjax.get(top.restAjax.path('api/mongo/area/list-all/parent-id/0', []), {}, null, function(code, data, args) {
laytpl(document.getElementById('taskArea1NameSelectTemplate').innerHTML).render(data, function(html) { laytpl(document.getElementById('taskArea1NameSelectTemplate').innerHTML).render(data, function(html) {
document.getElementById('taskArea1NameSelectTemplateBox').innerHTML = html; document.getElementById('taskArea1NameSelectTemplateBox').innerHTML = html;
}); });
@ -623,7 +622,7 @@
}); });
form.render('select', 'taskArea2NameSelectTemplateBox'); form.render('select', 'taskArea2NameSelectTemplateBox');
}else { }else {
top.restAjax.get(top.restAjax.path('api/area/listbyparentid/' + value, []), {}, null, function(code, data, args) { top.restAjax.get(top.restAjax.path('api/mongo/area/list-all/parent-id/' + value, []), {}, null, function(code, data, args) {
laytpl(document.getElementById('taskArea2NameSelectTemplate').innerHTML).render(data, function(html) { laytpl(document.getElementById('taskArea2NameSelectTemplate').innerHTML).render(data, function(html) {
document.getElementById('taskArea2NameSelectTemplateBox').innerHTML = html; document.getElementById('taskArea2NameSelectTemplateBox').innerHTML = html;
}); });
@ -649,7 +648,7 @@
}); });
form.render('select', 'taskArea3NameSelectTemplateBox'); form.render('select', 'taskArea3NameSelectTemplateBox');
}else { }else {
top.restAjax.get(top.restAjax.path('api/area/listbyparentid/' + value, []), {}, null, function(code, data, args) { top.restAjax.get(top.restAjax.path('api/mongo/area/list-all/parent-id/' + value, []), {}, null, function(code, data, args) {
laytpl(document.getElementById('taskArea3NameSelectTemplate').innerHTML).render(data, function(html) { laytpl(document.getElementById('taskArea3NameSelectTemplate').innerHTML).render(data, function(html) {
document.getElementById('taskArea3NameSelectTemplateBox').innerHTML = html; document.getElementById('taskArea3NameSelectTemplateBox').innerHTML = html;
}); });
@ -675,7 +674,7 @@
}); });
form.render('select', 'taskArea4NameSelectTemplateBox'); form.render('select', 'taskArea4NameSelectTemplateBox');
}else { }else {
top.restAjax.get(top.restAjax.path('api/area/listbyparentid/' + value, []), {}, null, function(code, data, args) { top.restAjax.get(top.restAjax.path('api/mongo/area/list-all/parent-id/' + value, []), {}, null, function(code, data, args) {
laytpl(document.getElementById('taskArea4NameSelectTemplate').innerHTML).render(data, function(html) { laytpl(document.getElementById('taskArea4NameSelectTemplate').innerHTML).render(data, function(html) {
document.getElementById('taskArea4NameSelectTemplateBox').innerHTML = html; document.getElementById('taskArea4NameSelectTemplateBox').innerHTML = html;
}); });
@ -701,7 +700,7 @@
}); });
form.render('select', 'taskArea5NameSelectTemplateBox'); form.render('select', 'taskArea5NameSelectTemplateBox');
}else { }else {
top.restAjax.get(top.restAjax.path('api/area/listbyparentid/' + value, []), {}, null, function(code, data, args) { top.restAjax.get(top.restAjax.path('api/mongo/area/list-all/parent-id/' + value, []), {}, null, function(code, data, args) {
laytpl(document.getElementById('taskArea5NameSelectTemplate').innerHTML).render(data, function(html) { laytpl(document.getElementById('taskArea5NameSelectTemplate').innerHTML).render(data, function(html) {
document.getElementById('taskArea5NameSelectTemplateBox').innerHTML = html; document.getElementById('taskArea5NameSelectTemplateBox').innerHTML = html;
}); });
@ -735,7 +734,7 @@
$('#area3Div').hide(); $('#area3Div').hide();
$('#area4Div').hide(); $('#area4Div').hide();
$('#area5Div').hide(); $('#area5Div').hide();
initTaskArea2NameSelect(data.value); initTaskArea2NameSelect(valueArr[0]);
} }
$("#taskArea2Name").empty(); $("#taskArea2Name").empty();
form.render("select"); form.render("select");
@ -761,7 +760,7 @@
$('#area3Div').show(); $('#area3Div').show();
$('#area4Div').hide(); $('#area4Div').hide();
$('#area5Div').hide(); $('#area5Div').hide();
initTaskArea3NameSelect(data.value); initTaskArea3NameSelect(valueArr[0]);
} }
$("#taskArea3Name").empty(); $("#taskArea3Name").empty();
form.render("select"); form.render("select");
@ -785,7 +784,7 @@
} }
$('#area4Div').show(); $('#area4Div').show();
$('#area5Div').hide(); $('#area5Div').hide();
initTaskArea4NameSelect(data.value); initTaskArea4NameSelect(valueArr[0]);
} }
$("#taskArea4Name").empty(); $("#taskArea4Name").empty();
form.render("select"); form.render("select");
@ -807,7 +806,7 @@
initMap(valueArr[2], valueArr[3]) initMap(valueArr[2], valueArr[3])
} }
$('#area5Div').show(); $('#area5Div').show();
initTaskArea5NameSelect(data.value); initTaskArea5NameSelect(valueArr[0]);
} }
$("#taskArea5Name").empty(); $("#taskArea5Name").empty();
form.render("select"); form.render("select");

View File

@ -243,7 +243,7 @@
</div> </div>
<!-- 五级区域 --> <!-- 五级区域 -->
<div class="layui-form-item" id="area5Div"> <!--<div class="layui-form-item" id="area5Div">
<label class="layui-form-label" style="width: 150px;">任务五级地区名称</label> <label class="layui-form-label" style="width: 150px;">任务五级地区名称</label>
<input type="hidden" id="taskArea5Id" name="taskArea5Id" class="layui-input" value="" placeholder="请输入任务五级地区ID" maxlength="36"> <input type="hidden" id="taskArea5Id" name="taskArea5Id" class="layui-input" value="" placeholder="请输入任务五级地区ID" maxlength="36">
<input type="hidden" id="taskArea5Code" name="taskArea5Code" class="layui-input" value="" placeholder="请输入任务五级地区编码" maxlength="255"> <input type="hidden" id="taskArea5Code" name="taskArea5Code" class="layui-input" value="" placeholder="请输入任务五级地区编码" maxlength="255">
@ -257,7 +257,7 @@
{{# } }} {{# } }}
</select> </select>
</script> </script>
</div> </div>-->
<div class="layui-form-item"> <div class="layui-form-item">
<label class="layui-form-label">任务地点</label> <label class="layui-form-label">任务地点</label>
@ -468,7 +468,7 @@
// 初始化任务紧急程度下拉选择 // 初始化任务紧急程度下拉选择
function initUrgentLevelSelect(selectValue) { function initUrgentLevelSelect(selectValue) {
top.restAjax.get(top.restAjax.path('api/data/listbyparentid/{dataParentId}', ['203f7283-74a6-4f05-9d5f-c6675b3a69fc']), {}, null, function(code, data, args) { top.restAjax.get(top.restAjax.path('api/mongo/data/list-all/parent-id/{dataParentId}', ['203f7283-74a6-4f05-9d5f-c6675b3a69fc']), {}, null, function(code, data, args) {
laytpl(document.getElementById('urgentLevelSelectTemplate').innerHTML).render(data, function(html) { laytpl(document.getElementById('urgentLevelSelectTemplate').innerHTML).render(data, function(html) {
document.getElementById('urgentLevelSelectTemplateBox').innerHTML = html; document.getElementById('urgentLevelSelectTemplateBox').innerHTML = html;
}); });
@ -1364,7 +1364,7 @@
}); });
form.render('select', 'taskArea1NameSelectTemplateBox'); form.render('select', 'taskArea1NameSelectTemplateBox');
}else { }else {
top.restAjax.get(top.restAjax.path('api/area/listbyparentid/0', []), {}, null, function(code, data, args) { top.restAjax.get(top.restAjax.path('api/mongo/area/list-all/parent-id/0', []), {}, null, function(code, data, args) {
laytpl(document.getElementById('taskArea1NameSelectTemplate').innerHTML).render(data, function(html) { laytpl(document.getElementById('taskArea1NameSelectTemplate').innerHTML).render(data, function(html) {
document.getElementById('taskArea1NameSelectTemplateBox').innerHTML = html; document.getElementById('taskArea1NameSelectTemplateBox').innerHTML = html;
}); });
@ -1394,7 +1394,7 @@
}); });
form.render('select', 'taskArea2NameSelectTemplateBox'); form.render('select', 'taskArea2NameSelectTemplateBox');
}else { }else {
top.restAjax.get(top.restAjax.path('api/area/listbyparentid/' + selectValue, []), {}, null, function(code, data, args) { top.restAjax.get(top.restAjax.path('api/mongo/area/list-all/parent-id/' + selectValue, []), {}, null, function(code, data, args) {
laytpl(document.getElementById('taskArea2NameSelectTemplate').innerHTML).render(data, function(html) { laytpl(document.getElementById('taskArea2NameSelectTemplate').innerHTML).render(data, function(html) {
document.getElementById('taskArea2NameSelectTemplateBox').innerHTML = html; document.getElementById('taskArea2NameSelectTemplateBox').innerHTML = html;
}); });
@ -1424,7 +1424,7 @@
}); });
form.render('select', 'taskArea3NameSelectTemplateBox'); form.render('select', 'taskArea3NameSelectTemplateBox');
}else { }else {
top.restAjax.get(top.restAjax.path('api/area/listbyparentid/' + selectValue, []), {}, null, function(code, data, args) { top.restAjax.get(top.restAjax.path('api/mongo/area/list-all/parent-id/' + selectValue, []), {}, null, function(code, data, args) {
laytpl(document.getElementById('taskArea3NameSelectTemplate').innerHTML).render(data, function(html) { laytpl(document.getElementById('taskArea3NameSelectTemplate').innerHTML).render(data, function(html) {
document.getElementById('taskArea3NameSelectTemplateBox').innerHTML = html; document.getElementById('taskArea3NameSelectTemplateBox').innerHTML = html;
}); });
@ -1454,7 +1454,7 @@
}); });
form.render('select', 'taskArea4NameSelectTemplateBox'); form.render('select', 'taskArea4NameSelectTemplateBox');
}else { }else {
top.restAjax.get(top.restAjax.path('api/area/listbyparentid/' + selectValue, []), {}, null, function(code, data, args) { top.restAjax.get(top.restAjax.path('api/mongo/area/list-all/parent-id/' + selectValue, []), {}, null, function(code, data, args) {
laytpl(document.getElementById('taskArea4NameSelectTemplate').innerHTML).render(data, function(html) { laytpl(document.getElementById('taskArea4NameSelectTemplate').innerHTML).render(data, function(html) {
document.getElementById('taskArea4NameSelectTemplateBox').innerHTML = html; document.getElementById('taskArea4NameSelectTemplateBox').innerHTML = html;
}); });
@ -1484,7 +1484,7 @@
}); });
form.render('select', 'taskArea5NameSelectTemplateBox'); form.render('select', 'taskArea5NameSelectTemplateBox');
}else { }else {
top.restAjax.get(top.restAjax.path('api/area/listbyparentid/' + selectValue, []), {}, null, function(code, data, args) { top.restAjax.get(top.restAjax.path('api/mongo/area/list-all/parent-id/' + selectValue, []), {}, null, function(code, data, args) {
laytpl(document.getElementById('taskArea5NameSelectTemplate').innerHTML).render(data, function(html) { laytpl(document.getElementById('taskArea5NameSelectTemplate').innerHTML).render(data, function(html) {
document.getElementById('taskArea5NameSelectTemplateBox').innerHTML = html; document.getElementById('taskArea5NameSelectTemplateBox').innerHTML = html;
}); });
@ -1522,7 +1522,7 @@
$('#area3Div').hide(); $('#area3Div').hide();
$('#area4Div').hide(); $('#area4Div').hide();
$('#area5Div').hide(); $('#area5Div').hide();
initTaskArea2NameSelect(data.value, '', '非空'); initTaskArea2NameSelect(valueArr[0], '', '非空');
} }
$("#taskArea2Name").empty(); $("#taskArea2Name").empty();
form.render("select"); form.render("select");
@ -1548,7 +1548,7 @@
$('#area3Div').show(); $('#area3Div').show();
$('#area4Div').hide(); $('#area4Div').hide();
$('#area5Div').hide(); $('#area5Div').hide();
initTaskArea3NameSelect(data.value, '', '非空'); initTaskArea3NameSelect(valueArr[0], '', '非空');
} }
$("#taskArea3Name").empty(); $("#taskArea3Name").empty();
form.render("select"); form.render("select");
@ -1572,7 +1572,7 @@
} }
$('#area4Div').show(); $('#area4Div').show();
$('#area5Div').hide(); $('#area5Div').hide();
initTaskArea4NameSelect(data.value, '', '非空'); initTaskArea4NameSelect(valueArr[0], '', '非空');
} }
$("#taskArea4Name").empty(); $("#taskArea4Name").empty();
form.render("select"); form.render("select");
@ -1594,7 +1594,7 @@
initMap(valueArr[2], valueArr[3]) initMap(valueArr[2], valueArr[3])
} }
$('#area5Div').show(); $('#area5Div').show();
initTaskArea5NameSelect(data.value, '', '非空'); initTaskArea5NameSelect(valueArr[0], '', '非空');
} }
$("#taskArea5Name").empty(); $("#taskArea5Name").empty();
form.render("select"); form.render("select");
@ -1747,10 +1747,10 @@
var area4Data = data['taskArea4Id'] + ',' + data['taskArea4Code'] + ',' + data['area4Lng'] + ',' + data['area4Lat'] + ',' + data['taskArea4Name']; var area4Data = data['taskArea4Id'] + ',' + data['taskArea4Code'] + ',' + data['area4Lng'] + ',' + data['area4Lat'] + ',' + data['taskArea4Name'];
var area5Data = data['taskArea5Id'] + ',' + data['taskArea5Code'] + ',' + data['area5Lng'] + ',' + data['area5Lat'] + ',' + data['taskArea5Name']; var area5Data = data['taskArea5Id'] + ',' + data['taskArea5Code'] + ',' + data['area5Lng'] + ',' + data['area5Lat'] + ',' + data['taskArea5Name'];
initTaskArea1NameSelect(area1Data, area1Data, area1Data); initTaskArea1NameSelect(area1Data, area1Data, area1Data);
initTaskArea2NameSelect(area1Data, area2Data, area2Data); initTaskArea2NameSelect(data['taskArea1Id'], area2Data, area2Data);
initTaskArea3NameSelect(area2Data, area3Data, area3Data); initTaskArea3NameSelect(data['taskArea2Id'], area3Data, area3Data);
initTaskArea4NameSelect(area3Data, area4Data, area4Data); initTaskArea4NameSelect(data['taskArea3Id'], area4Data, area4Data);
initTaskArea5NameSelect(area4Data, area5Data, area5Data); /*initTaskArea5NameSelect(area4Data, area5Data, area5Data);*/
showHide('area1', data['taskArea1Id']); showHide('area1', data['taskArea1Id']);
showHide('area2', data['taskArea2Id']); showHide('area2', data['taskArea2Id']);
showHide('area3', data['taskArea3Id']); showHide('area3', data['taskArea3Id']);

View File

@ -191,7 +191,7 @@
</div> </div>
<!-- 五级区域 --> <!-- 五级区域 -->
<div class="layui-form-item" id="area5Div"> <!--<div class="layui-form-item" id="area5Div">
<label class="layui-form-label" style="width: 150px;">任务五级地区名称</label> <label class="layui-form-label" style="width: 150px;">任务五级地区名称</label>
<input type="hidden" id="taskArea5Id" name="taskArea5Id" class="layui-input" value="" placeholder="请输入任务五级地区ID" maxlength="36"> <input type="hidden" id="taskArea5Id" name="taskArea5Id" class="layui-input" value="" placeholder="请输入任务五级地区ID" maxlength="36">
<input type="hidden" id="taskArea5Code" name="taskArea5Code" class="layui-input" value="" placeholder="请输入任务五级地区编码" maxlength="255"> <input type="hidden" id="taskArea5Code" name="taskArea5Code" class="layui-input" value="" placeholder="请输入任务五级地区编码" maxlength="255">
@ -205,7 +205,7 @@
{{# } }} {{# } }}
</select> </select>
</script> </script>
</div> </div>-->
<div class="layui-form-item"> <div class="layui-form-item">
<label class="layui-form-label">任务地点</label> <label class="layui-form-label">任务地点</label>
@ -302,7 +302,7 @@
// 初始化任务紧急程度下拉选择 // 初始化任务紧急程度下拉选择
function initUrgentLevelSelect(selectValue) { function initUrgentLevelSelect(selectValue) {
top.restAjax.get(top.restAjax.path('api/data/listbyparentid/{dataParentId}', ['203f7283-74a6-4f05-9d5f-c6675b3a69fc']), {}, null, function(code, data, args) { top.restAjax.get(top.restAjax.path('api/mongo/data/list-all/parent-id/{dataParentId}', ['203f7283-74a6-4f05-9d5f-c6675b3a69fc']), {}, null, function(code, data, args) {
laytpl(document.getElementById('urgentLevelSelectTemplate').innerHTML).render(data, function(html) { laytpl(document.getElementById('urgentLevelSelectTemplate').innerHTML).render(data, function(html) {
document.getElementById('urgentLevelSelectTemplateBox').innerHTML = html; document.getElementById('urgentLevelSelectTemplateBox').innerHTML = html;
}); });
@ -600,7 +600,7 @@
}); });
form.render('select', 'taskArea1NameSelectTemplateBox'); form.render('select', 'taskArea1NameSelectTemplateBox');
}else { }else {
top.restAjax.get(top.restAjax.path('api/area/listbyparentid/0', []), {}, null, function(code, data, args) { top.restAjax.get(top.restAjax.path('api/mongo/area/list-all/parent-id/0', []), {}, null, function(code, data, args) {
laytpl(document.getElementById('taskArea1NameSelectTemplate').innerHTML).render(data, function(html) { laytpl(document.getElementById('taskArea1NameSelectTemplate').innerHTML).render(data, function(html) {
document.getElementById('taskArea1NameSelectTemplateBox').innerHTML = html; document.getElementById('taskArea1NameSelectTemplateBox').innerHTML = html;
}); });
@ -617,6 +617,9 @@
// 初始化任务二级地区下拉选择 // 初始化任务二级地区下拉选择
function initTaskArea2NameSelect(selectValue, value, dataValue) { function initTaskArea2NameSelect(selectValue, value, dataValue) {
console.log(selectValue)
console.log(value)
console.log(dataValue)
if(!dataValue) { if(!dataValue) {
var data = [ var data = [
{ {
@ -630,7 +633,7 @@
}); });
form.render('select', 'taskArea2NameSelectTemplateBox'); form.render('select', 'taskArea2NameSelectTemplateBox');
}else { }else {
top.restAjax.get(top.restAjax.path('api/area/listbyparentid/' + selectValue, []), {}, null, function(code, data, args) { top.restAjax.get(top.restAjax.path('api/mongo/area/list-all/parent-id/' + selectValue, []), {}, null, function(code, data, args) {
laytpl(document.getElementById('taskArea2NameSelectTemplate').innerHTML).render(data, function(html) { laytpl(document.getElementById('taskArea2NameSelectTemplate').innerHTML).render(data, function(html) {
document.getElementById('taskArea2NameSelectTemplateBox').innerHTML = html; document.getElementById('taskArea2NameSelectTemplateBox').innerHTML = html;
}); });
@ -660,7 +663,7 @@
}); });
form.render('select', 'taskArea3NameSelectTemplateBox'); form.render('select', 'taskArea3NameSelectTemplateBox');
}else { }else {
top.restAjax.get(top.restAjax.path('api/area/listbyparentid/' + selectValue, []), {}, null, function(code, data, args) { top.restAjax.get(top.restAjax.path('api/mongo/area/list-all/parent-id/' + selectValue, []), {}, null, function(code, data, args) {
laytpl(document.getElementById('taskArea3NameSelectTemplate').innerHTML).render(data, function(html) { laytpl(document.getElementById('taskArea3NameSelectTemplate').innerHTML).render(data, function(html) {
document.getElementById('taskArea3NameSelectTemplateBox').innerHTML = html; document.getElementById('taskArea3NameSelectTemplateBox').innerHTML = html;
}); });
@ -690,7 +693,7 @@
}); });
form.render('select', 'taskArea4NameSelectTemplateBox'); form.render('select', 'taskArea4NameSelectTemplateBox');
}else { }else {
top.restAjax.get(top.restAjax.path('api/area/listbyparentid/' + selectValue, []), {}, null, function(code, data, args) { top.restAjax.get(top.restAjax.path('api/mongo/area/list-all/parent-id/' + selectValue, []), {}, null, function(code, data, args) {
laytpl(document.getElementById('taskArea4NameSelectTemplate').innerHTML).render(data, function(html) { laytpl(document.getElementById('taskArea4NameSelectTemplate').innerHTML).render(data, function(html) {
document.getElementById('taskArea4NameSelectTemplateBox').innerHTML = html; document.getElementById('taskArea4NameSelectTemplateBox').innerHTML = html;
}); });
@ -720,7 +723,7 @@
}); });
form.render('select', 'taskArea5NameSelectTemplateBox'); form.render('select', 'taskArea5NameSelectTemplateBox');
}else { }else {
top.restAjax.get(top.restAjax.path('api/area/listbyparentid/' + selectValue, []), {}, null, function(code, data, args) { top.restAjax.get(top.restAjax.path('api/mongo/area/list-all/parent-id/' + selectValue, []), {}, null, function(code, data, args) {
laytpl(document.getElementById('taskArea5NameSelectTemplate').innerHTML).render(data, function(html) { laytpl(document.getElementById('taskArea5NameSelectTemplate').innerHTML).render(data, function(html) {
document.getElementById('taskArea5NameSelectTemplateBox').innerHTML = html; document.getElementById('taskArea5NameSelectTemplateBox').innerHTML = html;
}); });
@ -758,7 +761,7 @@
$('#area3Div').hide(); $('#area3Div').hide();
$('#area4Div').hide(); $('#area4Div').hide();
$('#area5Div').hide(); $('#area5Div').hide();
initTaskArea2NameSelect(data.value, '', '非空'); initTaskArea2NameSelect(valueArr[0], '', '非空');
} }
$("#taskArea2Name").empty(); $("#taskArea2Name").empty();
form.render("select"); form.render("select");
@ -784,7 +787,7 @@
$('#area3Div').show(); $('#area3Div').show();
$('#area4Div').hide(); $('#area4Div').hide();
$('#area5Div').hide(); $('#area5Div').hide();
initTaskArea3NameSelect(data.value, '', '非空'); initTaskArea3NameSelect(valueArr[0], '', '非空');
} }
$("#taskArea3Name").empty(); $("#taskArea3Name").empty();
form.render("select"); form.render("select");
@ -808,7 +811,7 @@
} }
$('#area4Div').show(); $('#area4Div').show();
$('#area5Div').hide(); $('#area5Div').hide();
initTaskArea4NameSelect(data.value, '', '非空'); initTaskArea4NameSelect(valueArr[0], '', '非空');
} }
$("#taskArea4Name").empty(); $("#taskArea4Name").empty();
form.render("select"); form.render("select");
@ -830,7 +833,7 @@
initMap(valueArr[2], valueArr[3]) initMap(valueArr[2], valueArr[3])
} }
$('#area5Div').show(); $('#area5Div').show();
initTaskArea5NameSelect(data.value, '', '非空'); initTaskArea5NameSelect(valueArr[0], '', '非空');
} }
$("#taskArea5Name").empty(); $("#taskArea5Name").empty();
form.render("select"); form.render("select");
@ -959,10 +962,10 @@
var area4Data = data['taskArea4Id'] + ',' + data['taskArea4Code'] + ',' + data['area4Lng'] + ',' + data['area4Lat'] + ',' + data['taskArea4Name']; var area4Data = data['taskArea4Id'] + ',' + data['taskArea4Code'] + ',' + data['area4Lng'] + ',' + data['area4Lat'] + ',' + data['taskArea4Name'];
var area5Data = data['taskArea5Id'] + ',' + data['taskArea5Code'] + ',' + data['area5Lng'] + ',' + data['area5Lat'] + ',' + data['taskArea5Name']; var area5Data = data['taskArea5Id'] + ',' + data['taskArea5Code'] + ',' + data['area5Lng'] + ',' + data['area5Lat'] + ',' + data['taskArea5Name'];
initTaskArea1NameSelect(area1Data, area1Data, area1Data); initTaskArea1NameSelect(area1Data, area1Data, area1Data);
initTaskArea2NameSelect(area1Data, area2Data, area2Data); initTaskArea2NameSelect(data['taskArea1Id'], area2Data, area2Data);
initTaskArea3NameSelect(area2Data, area3Data, area3Data); initTaskArea3NameSelect(data['taskArea2Id'], area3Data, area3Data);
initTaskArea4NameSelect(area3Data, area4Data, area4Data); initTaskArea4NameSelect(data['taskArea3Id'], area4Data, area4Data);
initTaskArea5NameSelect(area4Data, area5Data, area5Data); /*initTaskArea5NameSelect(area4Data, area5Data, area5Data);*/
showHide('area1', data['taskArea1Id']); showHide('area1', data['taskArea1Id']);
showHide('area2', data['taskArea2Id']); showHide('area2', data['taskArea2Id']);
showHide('area3', data['taskArea3Id']); showHide('area3', data['taskArea3Id']);

View File

@ -258,7 +258,7 @@
// 初始化任务紧急程度下拉选择 // 初始化任务紧急程度下拉选择
function initUrgentLevelSelect() { function initUrgentLevelSelect() {
top.restAjax.get(top.restAjax.path('api/data/listbyparentid/{dataParentId}', ['203f7283-74a6-4f05-9d5f-c6675b3a69fc']), {}, null, function(code, data, args) { top.restAjax.get(top.restAjax.path('api/mongo/data/list-all/parent-id/{dataParentId}', ['203f7283-74a6-4f05-9d5f-c6675b3a69fc']), {}, null, function(code, data, args) {
laytpl(document.getElementById('urgentLevelSelectTemplate').innerHTML).render(data, function(html) { laytpl(document.getElementById('urgentLevelSelectTemplate').innerHTML).render(data, function(html) {
document.getElementById('urgentLevelSelectTemplateBox').innerHTML = html; document.getElementById('urgentLevelSelectTemplateBox').innerHTML = html;
}); });