You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
151 lines
4.9 KiB
151 lines
4.9 KiB
<!DOCTYPE html>
|
|
<html>
|
|
|
|
<head>
|
|
<meta charset="utf-8">
|
|
<meta name="renderer" content="webkit">
|
|
<meta name="referrer" content="always">
|
|
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
|
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
|
<title> </title>
|
|
{% load static %}
|
|
{% block js %}
|
|
<link rel="stylesheet" href="{% static 'layuiadmin/layui/css/layui.css' %}" media="all">
|
|
<link rel="stylesheet" href="{% static 'layuiadmin/style/admin.css' %}" media="all">
|
|
<link rel="stylesheet" href="{% static 'layuiadmin/style/common.css' %}" media="all">
|
|
<link href="{% static 'css/font-awesome.css' %}" rel="stylesheet">
|
|
<!-- 全局js -->
|
|
<script src="{% static 'Scripts/jquery-1.10.2.min.js' %}"></script>
|
|
<!-- <script src="{% static 'js/jquery.min.js' %}"></script> -->
|
|
<script src="{% static 'layuiadmin/layui/layui.all.js' %}"></script>
|
|
<script src="{% static 'layuiadmin/lib/extend/xm-select.js' %}"></script>
|
|
<!-- 自定义js -->
|
|
<script src="{% static 'js/utilsBZP.js' %}"></script>
|
|
<!-- jQuery Form -->
|
|
<script src="{% static 'js/plugins/form/jquery.form.min.js' %}"></script>
|
|
<script src="{% static 'js/md5.js' %}"></script>
|
|
<link href="{% static 'css/animate.css' %}" rel="stylesheet">
|
|
|
|
<!-- 导入阿里巴巴矢量图标css -->
|
|
<link rel="stylesheet" href="{% static 'css/plugins/icon/iconfont.css' %}">
|
|
<script>
|
|
var staticPath="{% static '/' %}";
|
|
layui.config({
|
|
base: '../../static/layuiadmin/' //静态资源所在路径
|
|
,shade: [0.9, '#000']
|
|
}).extend({
|
|
index: 'lib/index' //主入口模块
|
|
})
|
|
$(function(){
|
|
|
|
$(".layui-xmselect").each(function(){
|
|
var that=this;
|
|
var queryOption={
|
|
el:'#'+$(that).prop("id"),
|
|
name:$(that).prop("id"),
|
|
data:[],
|
|
radio: true,
|
|
clickClose: true,
|
|
model: {
|
|
label: {
|
|
type: 'text',
|
|
text: {
|
|
//左边拼接的字符
|
|
left: '',
|
|
//右边拼接的字符
|
|
right: '',
|
|
//中间的分隔符
|
|
separator: ', ',
|
|
},
|
|
}
|
|
},
|
|
};
|
|
var fullOption=JSON.parse($(this).attr("lay-data"));
|
|
var option= $.extend(fullOption,queryOption);
|
|
var xmSlectObject=xmSelect.render(option);
|
|
if(option.url!="")
|
|
{
|
|
$.get(option.url,function(data){
|
|
xmSlectObject.update({
|
|
data: data,
|
|
autoRow: true,
|
|
})
|
|
});
|
|
}
|
|
});
|
|
});
|
|
</script>
|
|
{% endblock %}
|
|
<style>
|
|
body .layer-skin{border-radius:5px;}
|
|
body .layer-skin .layui-layer-title{border-radius:5px 5px 0 0;}
|
|
/* .layui-table tbody tr:hover {background-color: #009688!important;color: #FFF !important;} */
|
|
.layui-table, .layui-table-view {
|
|
border-radius: 3px !important
|
|
}
|
|
.layui-layer-iframe .layui-layer-btn{
|
|
border-top: 1px solid #efeaea !important;
|
|
}
|
|
.refresh-animation {
|
|
|
|
-webkit-animation: rotate 1.2s linear infinite;
|
|
/*Safari and Chrome*/
|
|
}
|
|
|
|
@keyframes rotate {
|
|
0% {
|
|
transform: rotate(0deg);
|
|
-ms-transform: rotate(0deg);
|
|
/* IE 9 */
|
|
-moz-transform: rotate(0deg);
|
|
/* Firefox */
|
|
-o-transform: rotate(0deg);
|
|
}
|
|
|
|
100% {
|
|
transform: rotate(360deg);
|
|
-ms-transform: rotate(360deg);
|
|
/* IE 9 */
|
|
-moz-transform: rotate(360deg);
|
|
/* Firefox */
|
|
-o-transform: rotate(360deg);
|
|
}
|
|
}
|
|
|
|
@-webkit-keyframes rotate {
|
|
0% {
|
|
-moz-transform: rotate(0deg);
|
|
}
|
|
|
|
100% {
|
|
-moz-transform: rotate(360deg);
|
|
}
|
|
}
|
|
</style>
|
|
{% block css_ %}
|
|
|
|
{% endblock %}
|
|
<!-- <script>
|
|
document.oncontextmenu=new Function('return false'); // 禁用谷歌浏览器鼠标右键
|
|
</script> -->
|
|
</head>
|
|
|
|
|
|
<body class="gray-bg">
|
|
|
|
{% block content %}
|
|
|
|
{% endblock %}
|
|
<script>
|
|
// 通用js方法
|
|
function format_sqlAlchemy_date(params) {
|
|
if (params) {
|
|
return params.replace('T', ' ')
|
|
}
|
|
}
|
|
</script>
|
|
</body>
|
|
|
|
|
|
|
|
</html> |