修改样式

This commit is contained in:
wenc000 2020-03-18 18:28:36 +08:00
parent 11c4cd4020
commit 2dc1fff4cf
3 changed files with 7 additions and 25 deletions

View File

@ -17,7 +17,7 @@
<div class="layui-row layui-col-space15"> <div class="layui-row layui-col-space15">
<div class="layui-col-md2"> <div class="layui-col-md2">
<div class="layui-card"> <div class="layui-card">
<div class="layui-card-body"> <div class="layui-card-body left-tree-wrap">
<div id="leftTreeWrap"> <div id="leftTreeWrap">
<ul id="leftTree" class="ztree"></ul> <ul id="leftTree" class="ztree"></ul>
</div> </div>
@ -54,7 +54,7 @@
// 初始化大小 // 初始化大小
function initSize() { function initSize() {
$('#leftTreeWrap').css({ $('#leftTreeWrap').css({
height: $win.height() - 50, height: $win.height() - 30,
overflow: 'auto' overflow: 'auto'
}); });
$('#listContentWrap').css({ $('#listContentWrap').css({

View File

@ -20,12 +20,6 @@
<div class="layui-inline"> <div class="layui-inline">
<input type="text" id="keywords" class="layui-input search-item" placeholder="输入关键字"> <input type="text" id="keywords" class="layui-input search-item" placeholder="输入关键字">
</div> </div>
<div class="layui-inline">
<input type="text" id="startTime" class="layui-input search-item" placeholder="开始时间" readonly>
</div>
<div class="layui-inline">
<input type="text" id="endTime" class="layui-input search-item" placeholder="结束时间" readonly>
</div>
<button type="button" id="search" class="layui-btn layui-btn-sm"> <button type="button" id="search" class="layui-btn layui-btn-sm">
<i class="fa fa-lg fa-search"></i> 搜索 <i class="fa fa-lg fa-search"></i> 搜索
</button> </button>
@ -108,24 +102,12 @@
url: top.restAjax.path('api/datadictionary/listpagedictionary?parentId={parentId}', [parentId]), url: top.restAjax.path('api/datadictionary/listpagedictionary?parentId={parentId}', [parentId]),
where: { where: {
keywords: $('#keywords').val(), keywords: $('#keywords').val(),
startTime: $('#startTime').val(),
endTime: $('#endTime').val()
}, },
height: $win.height() - 60, height: $win.height() - 60,
}); });
} }
// 初始化日期 // 初始化日期
function initDate() { function initDate() {}
// 日期选择
laydate.render({
elem: '#startTime',
format: 'yyyy-MM-dd'
});
laydate.render({
elem: '#endTime',
format: 'yyyy-MM-dd'
});
}
// 删除 // 删除
function removeData(ids) { function removeData(ids) {
top.dialog.msg(top.dataMessage.delete, { top.dialog.msg(top.dataMessage.delete, {

View File

@ -12,8 +12,8 @@
<link rel="stylesheet" href="assets/layuiadmin/style/admin.css" media="all"> <link rel="stylesheet" href="assets/layuiadmin/style/admin.css" media="all">
</head> </head>
<body> <body>
<div class="layui-fluid layui-anim layui-anim-fadein"> <div class="layui-fluid layui-anim layui-anim-fadein" style="padding: 0px;">
<div class="layui-row layui-col-space15"> <div class="layui-row">
<div class="layui-col-md12"> <div class="layui-col-md12">
<div class="layui-card"> <div class="layui-card">
<div class="layui-card-body"> <div class="layui-card-body">
@ -77,7 +77,7 @@
id: 'dataTable', id: 'dataTable',
url: top.restAjax.path('api/dynamicconfigtable/dynamicconfigform/listpageform/{tableName}', [$('#tableName').val()]), url: top.restAjax.path('api/dynamicconfigtable/dynamicconfigform/listpageform/{tableName}', [$('#tableName').val()]),
width: admin.screen() > 1 ? '100%' : '', width: admin.screen() > 1 ? '100%' : '',
height: $win.height() - 90, height: $win.height() - 60,
limit: 20, limit: 20,
limits: [20, 40, 60, 80, 100, 200], limits: [20, 40, 60, 80, 100, 200],
toolbar: '#headerToolBar', toolbar: '#headerToolBar',
@ -241,7 +241,7 @@
startTime: $('#startTime').val(), startTime: $('#startTime').val(),
endTime: $('#endTime').val() endTime: $('#endTime').val()
}, },
height: $win.height() - 90, height: $win.height() - 60,
}); });
} }
// 初始化日期 // 初始化日期