@@ -26,6 +32,38 @@
+
+
+
+
+
+
+
+
+
+
@@ -57,12 +95,14 @@
base: 'assets/layuiadmin/'
}).extend({
index: 'lib/index'
- }).use(['index', 'table', 'laydate', 'common'], function() {
+ }).use(['index', 'table', 'laydate', 'common','form','laytpl'], function() {
var $ = layui.$;
var $win = $(window);
var table = layui.table;
var admin = layui.admin;
var laydate = layui.laydate;
+ var form = layui.form;
+ var laytpl = layui.laytpl;
var common = layui.common;
var resizeTimeout = null;
var tableUrl = 'api/lrs/listpage';
@@ -160,7 +200,10 @@
where: {
keywords: $('#keywords').val(),
startTime: $('#startTime').val(),
- endTime: $('#endTime').val()
+ endTime: $('#endTime').val(),
+ lrsAreaLevelId:$('#lrsAreaLevelId').val(),
+ lrsSubjectLevelId:$('#lrsSubjectLevelId').val(),
+ lrsPolicyTypeId:$('#lrsPolicyTypeId').val()
},
page: {
curr: currentPage
@@ -202,8 +245,51 @@
}
});
}
+ // 初始化被实施地区层级ID下拉选择
+ function initLrsAreaLevelIdSelect() {
+ top.restAjax.get(top.restAjax.path('api/data/listbyparentid/{dataParentId}', ['adfc5f04-67ce-4d91-a408-1473f75703eb']), {}, null, function(code, data, args) {
+ laytpl(document.getElementById('lrsAreaLevelIdSelectTemplate').innerHTML).render(data, function(html) {
+ document.getElementById('lrsAreaLevelIdSelectTemplateBox').innerHTML = html;
+ });
+ form.render('select', 'lrsAreaLevelIdSelectTemplateBox');
+ }, function(code, data) {
+ top.dialog.msg(data.msg);
+ });
+ }
+
+ // 初始化实施主体等级ID下拉选择
+ function initLrsSubjectLevelIdSelect() {
+ top.restAjax.get(top.restAjax.path('api/data/listbyparentid/{dataParentId}', ['adfc5f04-67ce-4d91-a408-1473f75703eb']), {}, null, function(code, data, args) {
+ laytpl(document.getElementById('lrsSubjectLevelIdSelectTemplate').innerHTML).render(data, function(html) {
+ document.getElementById('lrsSubjectLevelIdSelectTemplateBox').innerHTML = html;
+ });
+ form.render('select', 'lrsSubjectLevelIdSelectTemplateBox');
+ }, function(code, data) {
+ top.dialog.msg(data.msg);
+ });
+ }
+
+ // 初始化政策种类ID下拉选择
+ function initLrsPolicyTypeIdSelect() {
+ top.restAjax.get(top.restAjax.path('api/data/listbyparentid/{dataParentId}', ['25ad1e91-cc50-4615-a24d-a2387fa6de27']), {}, null, function(code, data, args) {
+ laytpl(document.getElementById('lrsPolicyTypeIdSelectTemplate').innerHTML).render(data, function(html) {
+ document.getElementById('lrsPolicyTypeIdSelectTemplateBox').innerHTML = html;
+ });
+ form.render('select', 'lrsPolicyTypeIdSelectTemplateBox');
+ }, function(code, data) {
+ top.dialog.msg(data.msg);
+ });
+ }
+
+ function ininData(){
+ initLrsAreaLevelIdSelect();
+ initLrsSubjectLevelIdSelect();
+ initLrsPolicyTypeIdSelect();
+ }
+
initTable();
initDate();
+ ininData();
// 事件 - 页面变化
$win.on('resize', function() {
clearTimeout(resizeTimeout);
diff --git a/src/main/resources/templates/lrs/update.html b/src/main/resources/templates/lrs/update.html
index b07b6d0..55a838e 100644
--- a/src/main/resources/templates/lrs/update.html
+++ b/src/main/resources/templates/lrs/update.html
@@ -10,6 +10,14 @@
+
diff --git a/src/main/resources/templates/teamuser/list.html b/src/main/resources/templates/teamuser/list.html
index 8a49ece..dde9543 100644
--- a/src/main/resources/templates/teamuser/list.html
+++ b/src/main/resources/templates/teamuser/list.html
@@ -298,7 +298,7 @@
title: false,
closeBtn: 0,
area: ['70%', '70%'],
- shadeClose: true,
+ shadeClose: false,
anim: 2,
content: top.restAjax.path('route/teamuser/search', []),
end: function(index) {