chore: 添加多个图片和资源文件
添加了管理后台所需的图片资源、Excel文件、安装程序以及设计相关的图片文件
This commit is contained in:
@@ -0,0 +1,96 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta name="renderer" content="webkit">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
|
||||
<title>导出excel-e订通后台</title>
|
||||
<link rel="stylesheet" href="layuiadmin/layui/css/layui.css">
|
||||
<link rel="stylesheet" href="index.css">
|
||||
<script src="layuiadmin/layui/layui.js"></script>
|
||||
<script src="js/function.js"></script>
|
||||
</head>
|
||||
<body>
|
||||
<form class="layui-form" action="./index.php" method="get">
|
||||
<input type="hidden" id="_m" name="_m" value="kh">
|
||||
<input type="hidden" id="_a" name="_a" value="export_do">
|
||||
<div style style="padding:4px;">
|
||||
<div class="layui-form-item"></div>
|
||||
<div class="layui-form-item">
|
||||
<label class="layui-form-label" style="width:120px;"><input type="checkbox" name="col" title="选择字段" lay-skin="primary" lay-filter="chk_parent" checked></label>
|
||||
<div class="layui-input-block" id="div_select_col"></div>
|
||||
</div>
|
||||
<div class="layui-form-item">
|
||||
<label class="layui-form-label" style="width:120px;">颜色选项</label>
|
||||
<div class="layui-input-block" id="div_color_select"></div>
|
||||
</div>
|
||||
<div class="layui-form-item">
|
||||
<label class="layui-form-label"></label>
|
||||
<div class="layui-input-inline">
|
||||
<button id="form1_submit" class="layui-btn layui-btn-normal" lay-submit lay-filter="form1_submit" style="font-weight:bold;"> 导 出 </button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
<script>
|
||||
layui.use(['form','layer','jquery'],function(){
|
||||
var form = layui.form,
|
||||
layer = parent.layer === undefined ? layui.layer : top.layer,
|
||||
laydate = layui.laydate,
|
||||
$ = layui.jquery;
|
||||
//初始化
|
||||
var url="./?_m=kh&_a=export";
|
||||
$.ajax(
|
||||
{
|
||||
url:url,
|
||||
contentType: "application/json",
|
||||
method: 'POST',
|
||||
success: function (res) {
|
||||
var json_data=$.parseJSON(res);
|
||||
//alert(JSON.stringify(json_data));
|
||||
//加载选择字段的内容
|
||||
var html1='';
|
||||
for(var j=0;j<json_data.col.length;j++){
|
||||
html1+='<input type="checkbox" name="col_'+json_data.col[j].k+'" lay-skin="primary" title="'+json_data.col[j].t+'" checked /> ';
|
||||
}
|
||||
$("#div_select_col").html(html1);
|
||||
//加载颜色选项的内容
|
||||
var html1='';
|
||||
for(var j=0;j<json_data.color_select.length;j++){
|
||||
html1+='<input type="radio" name="color_select" value="'+json_data.color_select[j].k+'" title="'+json_data.color_select[j].t+'" ';
|
||||
if(j==0)
|
||||
html1+='checked ';
|
||||
html1+='/>';
|
||||
}
|
||||
$("#div_color_select").html(html1);
|
||||
form.render();
|
||||
//二级菜单权限一键勾选
|
||||
form.on("checkbox(chk_parent)", function(obj){
|
||||
//当前元素
|
||||
var ele1 = obj.othis;
|
||||
var obj1=ele1.parent().parent().find('input');
|
||||
for(var i=0;i<obj1.length;i++){
|
||||
if(i>0){
|
||||
obj1[i].checked=obj1[0].checked;
|
||||
}
|
||||
}
|
||||
form.render();
|
||||
});
|
||||
},
|
||||
error: function () {
|
||||
layui.layer.msg("与服务器通信失败!");
|
||||
}
|
||||
}
|
||||
);
|
||||
//提交
|
||||
form.on("submit(form1_submit)",function(data){
|
||||
//弹出loading
|
||||
//alert(JSON.stringify(data.field));
|
||||
var index = layer.load(2, {time: 2*1000});
|
||||
//提交
|
||||
return true;
|
||||
})
|
||||
})
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user