chore: 添加多个图片和资源文件
添加了管理后台所需的图片资源、Excel文件、安装程序以及设计相关的图片文件
This commit is contained in:
@@ -0,0 +1,133 @@
|
||||
<!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>
|
||||
<!-- 自动完成 -->
|
||||
<script src="js/autocomplete/jquery-1.4.4.min.js"></script>
|
||||
<script src="js/autocomplete/jquery.autocomplete.js"></script>
|
||||
<link rel="stylesheet" href="js/autocomplete/jquery.autocomplete.css">
|
||||
<!-- /自动完成 -->
|
||||
<script type="text/javascript">
|
||||
$(function(){
|
||||
$('#s_client').autocomplete("./?_m=ajax_autocomplete&_a=dp_client", {
|
||||
dataType: "json",//数据格式
|
||||
max: 100, //列表里的条目数
|
||||
minChars: 0, //自动完成激活之前填入的最小字符
|
||||
width: 300, //提示的宽度,溢出隐藏
|
||||
scrollHeight: 300, //提示的高度,溢出显示滚动条
|
||||
matchContains: true, //包含匹配,就是data参数里的数据,是否只要包含文本框里的数据就显示
|
||||
autoFill: false, //自动填充
|
||||
parse: function (data) {
|
||||
if (!data || data == null || data == "") {
|
||||
alert("无数据");
|
||||
return {};
|
||||
}else{
|
||||
return $.map(data.data, function (row) {
|
||||
return {
|
||||
data:row,value:row.title+'('+row.username+')',result:row.username
|
||||
};
|
||||
});
|
||||
}
|
||||
},
|
||||
formatItem: function(row,i,max) {
|
||||
//提示的显示内容及格式设置
|
||||
return row.title+'('+row.username+')';
|
||||
},
|
||||
formatMatch: function(row, i, max) {
|
||||
return row.title + row.username;
|
||||
},
|
||||
formatResult: function(row) {
|
||||
return row.username;
|
||||
}
|
||||
}).result(function(event,row,formatted){
|
||||
$('#s_client').value=row.username;
|
||||
});
|
||||
});
|
||||
</script>
|
||||
</head>
|
||||
<body>
|
||||
<form class="layui-form" action="./index.php" method="get">
|
||||
<input type="hidden" id="_m" name="_m" value="kh_dp">
|
||||
<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;text-align:center;">客户</label>
|
||||
<div class="layui-input-inline">
|
||||
<input type="text" class="layui-input" id="s_client" name="s_client" title="客户" value="">
|
||||
</div>
|
||||
</div>
|
||||
<div class="layui-form-item">
|
||||
<div class="layui-form-label" style="width:120px;"><input type="checkbox" id="col" name="col" title="选择字段" lay-skin="primary" lay-filter="chk_parent" checked></div>
|
||||
<div class="layui-input-block" id="div_select_col"></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_dp&_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);
|
||||
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