This commit is contained in:
arraykeys
2019-08-08 17:13:34 +08:00
parent e8e5966a8c
commit f0bf2d5fec
2885 changed files with 1195993 additions and 12 deletions
+369
View File
@@ -0,0 +1,369 @@
html {
overflow-y: hidden;
overflow-x: hidden;
}
html body {
font-family: "Open Sans";
background-color: white;
padding-top: 10px;
font-size: 13px;
padding-bottom: 50px;
}
input.input {
width: 200px
}
input.input-sm {
width: 150px
}
input.input-xs {
width: 150px
}
.popover.confirmation {
width: 150px;
}
a {
text-decoration: none;
cursor: pointer;
}
a:hover {
text-decoration: none;
cursor: pointer;
}
a:hover,
a:focus {
text-decoration: none;
}
th {
text-align: center;
background: #efefef;
}
.panel-heading {
padding: 8px;
border-bottom: 1px solid transparent;
border-top-left-radius: 3px;
border-top-right-radius: 3px;
}
.container-fluid {
padding-right: 6px;
padding-left: 6px;
}
.row {
margin-right: -6px;
margin-left: -6px;
}
.pagebar span a,
.pagebar span {
display: box;
padding: 1px;
margin: 1px;
border: #cccccc solid thin;
font-size: 0.8em;
}
.pagebar span {
border: none;
}
.pagebar span a {
width: 20px;
padding: 1px 5px;
;
margin: 1px;
border: #cccccc solid thin;
}
.pagebar .page_btn_go {
padding: 1px 5px;
;
margin: 1px;
border: #cccccc solid thin;
}
.label.label-warning {
color: white;
}
.col-xs-1,
.col-sm-1,
.col-md-1,
.col-lg-1,
.col-xs-2,
.col-sm-2,
.col-md-2,
.col-lg-2,
.col-xs-3,
.col-sm-3,
.col-md-3,
.col-lg-3,
.col-xs-4,
.col-sm-4,
.col-md-4,
.col-lg-4,
.col-xs-5,
.col-sm-5,
.col-md-5,
.col-lg-5,
.col-xs-6,
.col-sm-6,
.col-md-6,
.col-lg-6,
.col-xs-7,
.col-sm-7,
.col-md-7,
.col-lg-7,
.col-xs-8,
.col-sm-8,
.col-md-8,
.col-lg-8,
.col-xs-9,
.col-sm-9,
.col-md-9,
.col-lg-9,
.col-xs-10,
.col-sm-10,
.col-md-10,
.col-lg-10,
.col-xs-11,
.col-sm-11,
.col-md-11,
.col-lg-11,
.col-xs-12,
.col-sm-12,
.col-md-12,
.col-lg-12 {
padding-right: 6px;
padding-left: 6px;
}
.control-label {
padding-right: 15px;
}
.inline-group {
display: inline-table;
}
.center {
text-align: center;
}
.table {
table-layout: fixed;
}
ul,
li {
font-size: 13px;
/*font-size: 14px;*/
}
th {
background-color: #F5F5F5;
}
.selectator_element {
border-radius: 0;
}
/*width 按百分比*/
.w5p {
width: 5%;
}
.w6p {
width: 6%;
}
.w7p {
width: 7%;
}
.w8p {
width: 8%;
}
.w9p {
width: 9%;
}
.w10p {
width: 10%;
}
.w12p {
width: 12%;
}
.w13p {
width: 13%;
}
.w15p {
width: 15%;
}
.w20p {
width: 20%;
}
.w25p {
width: 25%;
}
.w30p {
width: 30%;
}
.w35p {
width: 35%;
}
.w40p {
width: 40%;
}
.w45p {
width: 45%;
}
.w50p {
width: 50%;
}
.w55p {
width: 55%;
}
.w60p {
width: 60%;
}
.w65p {
width: 65%;
}
.w70p {
width: 70%;
}
.w75p {
width: 75%;
}
.w80p {
width: 80%;
}
.w85p {
width: 85%;
}
.w90p {
width: 90%;
}
.w95p {
width: 95%;
}
.w100p {
width: 100%;
}
/*width 按像素*/
.w10 {
width: 10px;
}
.w20 {
width: 20px;
}
.w30 {
width: 30px;
}
.w40 {
width: 40px;
}
.w50 {
width: 50px;
}
.w100 {
width: 100px;
}
.w150 {
width: 150px;
}
.w160 {
width: 160px;
}
.w170 {
width: 170px;
}
.w180 {
width: 180px;
}
.w190 {
width: 190px;
}
.w200 {
width: 200px;
}
.w240 {
width: 240px;
}
.w260 {
width: 260px;
}
.w280 {
width: 280px;
}
.w300 {
width: 300px;
}
.w400 {
width: 400px;
}
.w500 {
width: 500px;
}
.w600 {
width: 600px;
}
.w700 {
width: 700px;
}
.w800 {
width: 800px;
}
+63
View File
@@ -0,0 +1,63 @@
$(function() {
//select默认值封装
var selects = document.getElementsByTagName("select");
var set_default = function() {
for (var k = 0; k < selects.length; k++) {
var s = selects[k];
var defaultv = s.attributes["default"] ? s.attributes["default"].value : null;
if (defaultv) {
for (var i = 0; i < s.length; i++) {
if (s[i].value == defaultv) {
s[i].selected = true;
break;
}
}
}
}
};
set_default();
window['setSelectDefault'] = set_default;
//修正独立显示的时候,body不能滚动
if (self == top) {
$('html').css({ "overflow-y": 'scroll', "overflow-x": 'hidden' });
}
//bootstrap-confirmation 封装
$('[data-toggle=confirmation]').each(function() {
$(this).attr("data-link", $(this).attr('href')).removeAttr("href");
});
$('[data-toggle=confirmation]').confirmation({
btnOkLabel: '确定',
btnCancelLabel: '取消',
onConfirm: function() {
var $submit = $(this);
var position = $submit.attr("data-placement")
$.ajax({
url: $submit.attr("data-link"),
dataType: 'json',
error: function(jqXHR, textStatus, textErrorThrown) {
$submit.notify("操作失败," + (textStatus + ':' + textErrorThrown), { position: position, className: 'error' });
},
success: function(data, textStatus, jqXHR) {
var text = data.code ? "操作成功" : "操作失败";
var className = data.code ? "success" : "error";
var msg = data.message || text
if (typeof msg == "object") {
msg = JSON.stringify(msg)
}
$submit.notify(msg, { position: position, className: className });
if (data.code) {
if (data.redirect) {
var time = data.redirect.sleep || 300;
setTimeout(function() {
location = data.redirect.url;
}, time);
}
}
},
type: 'GET',
});
return false;
}
});
});
+65
View File
@@ -0,0 +1,65 @@
$(function() {
//ajax表单封装
$("form.ajaxform").submit(function() {
var ajaxPre = window[$(this).attr("ajaxPre")] || function() {
return true;
};
var ajaxSuccess = window[$(this).attr("ajaxSuccess")] || function() {};
var ajaxError = window[$(this).attr("ajaxError")] || function() {};
var ajaxAlways = window[$(this).attr("ajaxAlways")] || function() {};
var isRefresh = $(this).attr("isRefresh") != 'false';
var $submit = $(this).find('[type="submit"]');
$(this).ajaxSubmit({
dataType: 'json',
beforeSubmit: function(arr, $form, options) {
return ajaxPre(arr, $form, options);
},
error: function(jqXHR, textStatus, textErrorThrown) {
ajaxError(jqXHR, textStatus, textErrorThrown);
$submit.notify("操作失败," + (textStatus + ':' + textErrorThrown), { position: "right", className: 'error' });
},
success: function(data, textStatus, jqXHR) {
ajaxSuccess(data, textStatus, jqXHR);
var text = data.code ? "操作成功" : "操作失败";
var className = data.code ? "success" : "error";
var msg = ""
if (typeof data.message == "object") {
for (key in data.message) {
if (data.message.hasOwnProperty(key)) {
msg += key + data.message[key] + "\n";
}
}
} else {
msg = data.message
}
$submit.notify(msg || text, { position: "right", className: className });
if (data.code) {
if (isRefresh && data.redirect) {
var time = data.redirect.sleep || 300;
setTimeout(function() {
location = data.redirect.url;
}, time);
}
}
},
complete: function(jqXHR, textStatus) {
ajaxAlways(jqXHR, textStatus);
},
type: 'POST',
});
return false
});
//图标选择器
$(function() {
try{
$(".icon-selector").iconSelector({
input: '.icon'
});
$('.icon-placeholder').bind('icon:inserted', function(e) {
$('.icon-placeholder-preview').html('<i class="' + this.value + '"></i>');
});
}catch(e){}
});
});