@@ -174,12 +177,13 @@
// 选择社区
form.on('select(communityChange)', function(data) {
formObject.communityId = data.value;
- initCommunityBossParentSelect(data.value == '' ? '' : data.value);
+ initCommunityBossParentSelect(data.value);
});
// 初始化上级网格长
function initCommunityBossParentSelect(selectValue) {
- if(typeof (selectValue) === 'undefined' || selectValue == ''){
+ var areaId = $('#areaId').val()
+ if(!areaId){
laytpl(document.getElementById('parentGridTemplate').innerHTML).render([], function(html) {
document.getElementById('parentGridBox').innerHTML = html;
});
@@ -188,15 +192,14 @@
}
top.restAjax.get(top.restAjax.path('api/communityboss/listcommunityboss', []),
{
- areaId: formObject.areaId,
- communityId: selectValue,
+ areaId: areaId,
+ communityId: selectValue ? selectValue : '',
communityBossLevel: communityBossLevel -1
}, null, function(code, data, args) {
laytpl(document.getElementById('parentGridTemplate').innerHTML).render(data, function(html) {
document.getElementById('parentGridBox').innerHTML = html;
});
form.render();
- console.log(data);
}, function(code, data) {
top.dialog.msg(data.msg);
});
diff --git a/src/main/resources/static/route/communityboss/save-level4.html b/src/main/resources/static/route/communityboss/save-level4.html
index b8a2e6f..d810bfb 100644
--- a/src/main/resources/static/route/communityboss/save-level4.html
+++ b/src/main/resources/static/route/communityboss/save-level4.html
@@ -179,24 +179,23 @@
// 初始化上级网格长
function initCommunityBossParentSelect(selectValue) {
- if(typeof (selectValue) === 'undefined' || selectValue == ''){
+ var areaId = $('#areaId').val();
+ if(!areaId) {
laytpl(document.getElementById('parentGridTemplate').innerHTML).render([], function(html) {
document.getElementById('parentGridBox').innerHTML = html;
});
form.render();
return;
}
- top.restAjax.get(top.restAjax.path('api/communityboss/listcommunityboss', []),
- {
- areaId: formObject.areaId,
- communityId: selectValue,
+ top.restAjax.get(top.restAjax.path('api/communityboss/listcommunityboss', []), {
+ areaId: areaId,
+ communityId: selectValue ? selectValue : '',
communityBossLevel: communityBossLevel -1
}, null, function(code, data, args) {
laytpl(document.getElementById('parentGridTemplate').innerHTML).render(data, function(html) {
document.getElementById('parentGridBox').innerHTML = html;
});
form.render();
- console.log(data);
}, function(code, data) {
top.dialog.msg(data.msg);
});
diff --git a/src/main/resources/static/route/communityboss/update-level2.html b/src/main/resources/static/route/communityboss/update-level2.html
new file mode 100644
index 0000000..31f7982
--- /dev/null
+++ b/src/main/resources/static/route/communityboss/update-level2.html
@@ -0,0 +1,277 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/src/main/resources/static/route/communityboss/update-level3.html b/src/main/resources/static/route/communityboss/update-level3.html
new file mode 100644
index 0000000..69d6498
--- /dev/null
+++ b/src/main/resources/static/route/communityboss/update-level3.html
@@ -0,0 +1,288 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/src/main/resources/static/route/communityboss/update-level4.html b/src/main/resources/static/route/communityboss/update-level4.html
index e5eaacf..29dae2d 100644
--- a/src/main/resources/static/route/communityboss/update-level4.html
+++ b/src/main/resources/static/route/communityboss/update-level4.html
@@ -132,12 +132,12 @@
for(var i in data) {
dataFormData[i] = data[i];
}
- formObject.areaId = dataFormData['areaId'];
- formObject.communityId = dataFormData['communityId'];
- initAreaSelect(formObject.areaId);
- initCommunitySelect(formObject.areaId, formObject.communityId);
+ initAreaSelect(dataFormData['areaId'], function() {
+ initCommunitySelect(dataFormData['areaId'], dataFormData['communityId'], function () {
+ initCommunityBossParentSelect(dataFormData['communityId'], dataFormData['communityBossParentId']);
+ });
+ });
form.val('dataForm', dataFormData);
- initCommunityBossParentSelect(formObject.communityId, dataFormData['communityBossParentId']);
form.render();
}, function(code, data) {
top.dialog.msg(data.msg);
@@ -146,13 +146,14 @@
init();
// 初始化街镇
- function initAreaSelect(selectValue) {
+ function initAreaSelect(selectValue, callback) {
top.restAjax.get(top.restAjax.path('api/dict/listdict/9d179f05-3ea0-48f7-853c-d3b7124b791c', []), {}, null, function(code, data, args) {
laytpl(document.getElementById('areaSelectTemplate').innerHTML).render(data, function(html) {
document.getElementById('areaSelectBox').innerHTML = html;
});
- form.val('dataForm', {areaId : selectValue});
+ form.val('dataForm', {areaId: selectValue});
form.render();
+ callback();
}, function(code, data) {
top.dialog.msg(data.msg);
});
@@ -160,15 +161,13 @@
// 选择街道
form.on('select(areaChange)', function(data) {
- formObject.areaId = data.value;
- initCommunitySelect(data.value == '' ? '' : data.value, '');
- formObject.communityId = '';
+ initCommunitySelect(data.value);
initCommunityBossParentSelect('','');
});
// 初始化社区
- function initCommunitySelect(areaId, selectValue) {
- if(typeof (areaId) === 'undefined' || areaId == ''){
+ function initCommunitySelect(areaId, selectValue, callback) {
+ if(!areaId){
laytpl(document.getElementById('communityTemplate').innerHTML).render([], function(html) {
document.getElementById('communityBox').innerHTML = html;
});
@@ -179,8 +178,9 @@
laytpl(document.getElementById('communityTemplate').innerHTML).render(data, function(html) {
document.getElementById('communityBox').innerHTML = html;
});
- form.val('dataForm', {communityId : selectValue});
+ form.val('dataForm', {communityId: selectValue});
form.render();
+ callback();
}, function(code, data) {
top.dialog.msg(data.msg);
});
@@ -189,22 +189,22 @@
// 选择社区
form.on('select(communityChange)', function(data) {
formObject.communityId = data.value;
- initCommunityBossParentSelect(data.value == '' ? '' : data.value, '');
+ initCommunityBossParentSelect(data.value);
});
// 初始化上级网格长
function initCommunityBossParentSelect(communityId, selectValue) {
- if(typeof (communityId) === 'undefined' || communityId == ''){
+ var areaId = $('#areaId').val();
+ if(!areaId){
laytpl(document.getElementById('parentGridTemplate').innerHTML).render([], function(html) {
document.getElementById('parentGridBox').innerHTML = html;
});
form.render();
return;
}
- top.restAjax.get(top.restAjax.path('api/communityboss/listcommunityboss', []),
- {
- areaId: formObject.areaId,
- communityId: communityId,
+ top.restAjax.get(top.restAjax.path('api/communityboss/listcommunityboss', []), {
+ areaId: areaId,
+ communityId: communityId ? communityId : '',
communityBossLevel: communityBossLevel -1
}, null, function(code, data, args) {
laytpl(document.getElementById('parentGridTemplate').innerHTML).render(data, function(html) {
diff --git a/src/main/resources/static/route/reportcase/case_community_assign.html b/src/main/resources/static/route/reportcase/case_community_assign.html
index 829034f..6e3426e 100644
--- a/src/main/resources/static/route/reportcase/case_community_assign.html
+++ b/src/main/resources/static/route/reportcase/case_community_assign.html
@@ -54,8 +54,7 @@
@@ -127,7 +126,7 @@
}
initData();
- $(document).on('click', '#handleUserName', function(){
+ $(document).on('click', '#handleUserName', function() {
selectNPerson();
});
@@ -140,8 +139,8 @@
shadeClose: false,
closeBtn: 1,
shade: 0.3,
- area: ['60%', '90%'],
- content: 'route/reportcase/select-street-person.html?single=false&selectedUserIds=' + handleUserId,
+ area: ['80%', '88%'],
+ content: 'route/reportcase/select-street-person.html?reportCaseId='+ reportCaseId +'&single=false&selectedUserIds=' + handleUserId,
end: function () {
handleUserId = '';
handleUserName = '';
diff --git a/src/main/resources/static/route/reportcase/list_community_assign.html b/src/main/resources/static/route/reportcase/list_community_assign.html
index 6b608fb..469b067 100644
--- a/src/main/resources/static/route/reportcase/list_community_assign.html
+++ b/src/main/resources/static/route/reportcase/list_community_assign.html
@@ -112,19 +112,19 @@
$('#areaId').val(areaId);
$('#areaName').val(areaName);
- layer.open({
- type: 2,
- title: '案件转派',
- closeBtn: 1,
- area: ['50%', '80%'],
- shadeClose: false,
- shade : 0.3,
- anim: 2,
- content: top.restAjax.path('route/reportcase/case_assign.html?reportCaseId=0208cfb8-07fa-478c-8c65-80a944371e04', []),
- end: function() {
- reloadTable();
- }
- });
+ // layer.open({
+ // type: 2,
+ // title: '案件转派',
+ // closeBtn: 1,
+ // area: ['50%', '80%'],
+ // shadeClose: false,
+ // shade : 0.3,
+ // anim: 2,
+ // content: top.restAjax.path('route/reportcase/case_assign.html?reportCaseId=0208cfb8-07fa-478c-8c65-80a944371e04', []),
+ // end: function() {
+ // reloadTable();
+ // }
+ // });
// 初始化表格
function initTable() {
diff --git a/src/main/resources/static/route/reportcase/select-street-person.html b/src/main/resources/static/route/reportcase/select-street-person.html
index 20adc39..7dec1cd 100644
--- a/src/main/resources/static/route/reportcase/select-street-person.html
+++ b/src/main/resources/static/route/reportcase/select-street-person.html
@@ -22,6 +22,12 @@
background-color: #009688;
border-color: #009688;
}
+ .dept-selector .selector-tree .selector-tree-wrapper {
+ overflow: auto;
+ }
+ .list-group {
+ margin-bottom: 0;
+ }
@@ -64,6 +70,7 @@
var hrefParams = top.restAjax.params(window.location.href);
var selectedUserIds = hrefParams.selectedUserIds;
var reportCaseId = hrefParams.reportCaseId;
+ var $win = $(window);
if(typeof (selectedUserIds) === 'undefined'){
selectedUserIds = '';
}
@@ -78,6 +85,10 @@
$(function() {
$('#app').fadeTo(1000, 1);
+ $('#users').css({
+ height: ($win.height() - 158) +'px',
+ overflow: 'auto'
+ })
initThree();
initSelectedUsers();
top.dialog.dialogData.selectedDepartmentUsers = null;
@@ -141,7 +152,7 @@
} else {
avatarDom = '