mirror of https://gitee.com/karson/fastadmin.git
validator与界面样式调整
parent
6b490f55f7
commit
3fa885c4cd
|
|
@ -25,7 +25,7 @@ define(['jquery', 'bootstrap', 'backend', 'table', 'form'], function ($, undefin
|
|||
sortName: '{%order%}',
|
||||
exportTypes: ['csv', 'excel'],
|
||||
exportOptions: {
|
||||
fileName: '{%controllerUrl%}_' + date.getFullYear() + '-' + date.getMonth() + '-' + date.getDate(),
|
||||
fileName: '{%controllerUrl%}_' + [date.getFullYear(), date.getMonth() + 1, date.getDate()].join('-'),
|
||||
ignoreColumn: [0, 'operate'], //默认不导出第一列(checkbox)与操作(operate)列
|
||||
},
|
||||
columns: [
|
||||
|
|
|
|||
|
|
@ -3,7 +3,7 @@
|
|||
<head>
|
||||
{include file="common/meta" /}
|
||||
</head>
|
||||
<body class="hold-transition skin-green sidebar-mini fixed" id="tabs">
|
||||
<body class="hold-transition skin-blue sidebar-mini fixed /*sidebar-collapse*/" id="tabs">
|
||||
<div class="wrapper">
|
||||
|
||||
<header id="header" class="main-header">
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
@import url("../css/bootstrap.min.css");
|
||||
@import url("../css/fastadmin.min.css");
|
||||
@import url("../css/skins/skin-green.css");
|
||||
@import url("../css/skins/skin-blue.css");
|
||||
@import url("../css/iconfont.css");
|
||||
@import url("../libs/font-awesome/css/font-awesome.min.css");
|
||||
@import url("../libs/toastr/toastr.min.css");
|
||||
|
|
@ -56,7 +56,7 @@ html.ios-fix body {
|
|||
-webkit-overflow-scrolling: touch;
|
||||
}
|
||||
.content {
|
||||
min-height: 500px;
|
||||
min-height: 200px;
|
||||
}
|
||||
#header {
|
||||
background: #fff;
|
||||
|
|
@ -132,7 +132,7 @@ table.table-template {
|
|||
}
|
||||
.sp_container .msg-box {
|
||||
position: absolute;
|
||||
right: 0;
|
||||
left: 0;
|
||||
top: 0;
|
||||
}
|
||||
.toast-top-right-index {
|
||||
|
|
|
|||
|
|
@ -6,7 +6,7 @@ define(['jquery', 'bootstrap', 'toastr', 'layer', 'lang'], function ($, undefine
|
|||
"closeButton": true,
|
||||
"debug": false,
|
||||
"newestOnTop": false,
|
||||
"progressBar": false,
|
||||
"progressBar": true,
|
||||
"positionClass": "toast-top-center",
|
||||
"preventDuplicates": false,
|
||||
"onclick": null,
|
||||
|
|
@ -114,10 +114,10 @@ define(['jquery', 'bootstrap', 'toastr', 'layer', 'lang'], function ($, undefine
|
|||
},
|
||||
//打开一个弹出窗口
|
||||
open: function (url, title, options) {
|
||||
title = title ? title : "";
|
||||
title = options.title ? options.title : (title ? title : "");
|
||||
url = Fast.api.fixurl(url);
|
||||
url = url + (url.indexOf("?") > -1 ? "&" : "?") + "dialog=1";
|
||||
var area = [$(window).width() > 800 ? '800px' : '95%', $(window).height() > 600 ? '600px' : '95%'];
|
||||
var area = [$(window).width() > 1000 ? '1000px' : '95%', $(window).height() > 750 ? '750px' : '95%'];
|
||||
options = $.extend({
|
||||
type: 2,
|
||||
title: title,
|
||||
|
|
|
|||
|
|
@ -12,8 +12,9 @@ define(['jquery', 'bootstrap', 'upload', 'validator'], function ($, undefined, U
|
|||
validClass: 'has-success',
|
||||
invalidClass: 'has-error',
|
||||
bindClassTo: '.form-group',
|
||||
formClass: 'n-default n-bootstrap',
|
||||
msgClass: 'n-right',
|
||||
formClass: 'n-yellow n-bootstrap',
|
||||
msgClass: 'n-top',
|
||||
theme: 'yellow_top',
|
||||
stopOnError: true,
|
||||
display: function (elem) {
|
||||
return $(elem).closest('.form-group').find(".control-label").text().replace(/\:/, '');
|
||||
|
|
|
|||
|
|
@ -6,7 +6,7 @@
|
|||
|
||||
@import url("../css/bootstrap.min.css");
|
||||
@import url("../css/fastadmin.min.css");
|
||||
@import url("../css/skins/skin-green.css");
|
||||
@import url("../css/skins/skin-blue.css");
|
||||
@import url("../css/iconfont.css");
|
||||
@import url("../libs/font-awesome/css/font-awesome.min.css");
|
||||
@import url("../libs/toastr/toastr.min.css");
|
||||
|
|
|
|||
Loading…
Reference in New Issue