|
|
|
@ -6,7 +6,8 @@
|
|
|
|
|
<title>添加会员-WeAdmin Frame型后台管理系统-WeAdmin 1.0</title>
|
|
|
|
|
<meta name="renderer" content="webkit">
|
|
|
|
|
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
|
|
|
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=0">
|
|
|
|
|
<meta name="viewport"
|
|
|
|
|
content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=0">
|
|
|
|
|
<link rel="stylesheet" href="../../static/css/font.css">
|
|
|
|
|
<link rel="stylesheet" href="../../static/css/weadmin.css">
|
|
|
|
|
<link rel="stylesheet" href="../../lib/layui/css/layui.css">
|
|
|
|
@ -19,6 +20,7 @@
|
|
|
|
|
.layui-form-label {
|
|
|
|
|
width: 100px !important;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
input[type='text'] {
|
|
|
|
|
width: 320px !important;
|
|
|
|
|
}
|
|
|
|
@ -33,7 +35,8 @@
|
|
|
|
|
<span class="we-red">*</span>菜单名称:
|
|
|
|
|
</label>
|
|
|
|
|
<div class="layui-input-inline ">
|
|
|
|
|
<input type="text" id="name" name="name" lay-verify="required|contentLength" max="64" autocomplete="off" class="layui-input">
|
|
|
|
|
<input type="text" id="name" name="name" lay-verify="required|contentLength" max="64"
|
|
|
|
|
autocomplete="off" class="layui-input">
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="layui-form-item">
|
|
|
|
@ -41,7 +44,8 @@
|
|
|
|
|
<span class="we-red">*</span>url地址:
|
|
|
|
|
</label>
|
|
|
|
|
<div class="layui-input-inline ">
|
|
|
|
|
<input type="text" id="url" name="url" lay-verify="required|contentLength" max="128" autocomplete="off" class="layui-input">
|
|
|
|
|
<input type="text" id="url" name="url" lay-verify="required|contentLength" max="128"
|
|
|
|
|
autocomplete="off" class="layui-input">
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="layui-form-item">
|
|
|
|
@ -49,7 +53,8 @@
|
|
|
|
|
<span class="we-red">*</span>排序号:
|
|
|
|
|
</label>
|
|
|
|
|
<div class="layui-input-inline ">
|
|
|
|
|
<input type="text" id="sort_id" name="sort_id" lay-verify="required|number" autocomplete="off" class="layui-input">
|
|
|
|
|
<input type="text" id="sort_id" name="sort_id" lay-verify="required|number" autocomplete="off"
|
|
|
|
|
class="layui-input">
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="layui-form-item">
|
|
|
|
@ -57,7 +62,8 @@
|
|
|
|
|
<span class="we-red">*</span>描述信息:
|
|
|
|
|
</label>
|
|
|
|
|
<div class="layui-input-inline ">
|
|
|
|
|
<input type="text" id="memo" name="memo" lay-verify="required|contentLength" max="64" autocomplete="off" class="layui-input">
|
|
|
|
|
<input type="text" id="memo" name="memo" lay-verify="required|contentLength" max="64"
|
|
|
|
|
autocomplete="off" class="layui-input">
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="layui-form-item">
|
|
|
|
@ -65,19 +71,18 @@
|
|
|
|
|
<span class="we-red">*</span>可用身份:
|
|
|
|
|
</label>
|
|
|
|
|
<div class="layui-input-item" style="width: 70%;float: left;padding-top:8px;margin-left: -10px">
|
|
|
|
|
<span style="display: inline-block;margin:0 10px 8px 10px"><input type="checkbox" name="chk" title="超级管理员" value="1"></span>
|
|
|
|
|
<span style="display: inline-block;margin:0 10px 8px 10px"><input type="checkbox" name="chk" title="项目申报员" value="2"></span>
|
|
|
|
|
<span style="display: inline-block;margin:0 10px 8px 10px"><input type="checkbox" name="chk" title="一级审核员" value="3"></span>
|
|
|
|
|
<span style="display: inline-block;margin:0 10px 8px 10px"><input type="checkbox" name="chk" lay-filter="chk" title="二级审核员" value="4"></span>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="layui-form-item" id="school" style="display: none">
|
|
|
|
|
<label for="" class="layui-form-label">
|
|
|
|
|
<span class="we-red">*</span>学校管理员:
|
|
|
|
|
</label>
|
|
|
|
|
<div class="layui-input-item" style="width: 70%;float: left;padding-top:8px;margin-left: -10px">
|
|
|
|
|
<span style="display: inline-block;margin:0 10px 8px 10px"><input type="checkbox" lay-filter="school" title="学校管理员" ></span>
|
|
|
|
|
<span style="display: inline-block;margin:0 10px 8px 10px"><input type="checkbox" lay-filter="bureau" title="非学校管理员"></span>
|
|
|
|
|
<span style="display: inline-block;margin:0 10px 8px 10px">
|
|
|
|
|
<input type="checkbox" name="chk" title="超级管理员" value="1">
|
|
|
|
|
</span>
|
|
|
|
|
<span style="display: inline-block;margin:0 10px 8px 10px">
|
|
|
|
|
<input type="checkbox" name="chk" title="项目申报员" value="2">
|
|
|
|
|
</span>
|
|
|
|
|
<span style="display: inline-block;margin:0 10px 8px 10px">
|
|
|
|
|
<input type="checkbox" name="chk" title="一级审核员" value="3">
|
|
|
|
|
</span>
|
|
|
|
|
<span style="display: inline-block;margin:0 10px 8px 10px">
|
|
|
|
|
<input type="checkbox" name="chk" lay-filter="chk" title="二级审核员" value="4">
|
|
|
|
|
</span>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="layui-form-item">
|
|
|
|
@ -105,30 +110,6 @@
|
|
|
|
|
form.render();
|
|
|
|
|
})
|
|
|
|
|
verifyLength();
|
|
|
|
|
var for_school=0;
|
|
|
|
|
var for_bureau=0;
|
|
|
|
|
form.on('checkbox(school)', function(data){
|
|
|
|
|
if(data.elem.checked){
|
|
|
|
|
for_school=1;
|
|
|
|
|
}else{
|
|
|
|
|
for_school=0;
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
form.on('checkbox(bureau)', function(data){
|
|
|
|
|
if(data.elem.checked){
|
|
|
|
|
for_bureau=1;
|
|
|
|
|
}else{
|
|
|
|
|
for_bureau=0;
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
// 点击单位管理员 显示是否学校
|
|
|
|
|
form.on('checkbox(chk)', function(data){
|
|
|
|
|
if(data.elem.checked){
|
|
|
|
|
//$("#school").show();
|
|
|
|
|
}else{
|
|
|
|
|
// $("#school").hide();
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
//监听提交
|
|
|
|
|
form.on('submit(add)', function (data) {
|
|
|
|
@ -142,12 +123,6 @@
|
|
|
|
|
layer.msg("请选择可用身份", {icon: 5})
|
|
|
|
|
return false;
|
|
|
|
|
}
|
|
|
|
|
if($("#school").is(":visible")){
|
|
|
|
|
if(for_school==0&&for_bureau==0){
|
|
|
|
|
layer.msg("请选择是否为学校管理员",{icon:5})
|
|
|
|
|
return false;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
$.ajax({
|
|
|
|
|
type: "POST",
|
|
|
|
@ -161,8 +136,8 @@
|
|
|
|
|
url: f.url,
|
|
|
|
|
memo: f.memo,
|
|
|
|
|
identity_ids: f.chk,
|
|
|
|
|
for_school:for_school,
|
|
|
|
|
for_bureau:for_bureau
|
|
|
|
|
for_school: 1,
|
|
|
|
|
for_bureau: 1
|
|
|
|
|
},
|
|
|
|
|
success: function (data) {
|
|
|
|
|
if (data.success) {
|
|
|
|
@ -179,12 +154,9 @@
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
|
|
|
|
|
return false;
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
});
|
|
|
|
|
</script>
|
|
|
|
|
</body>
|
|
|
|
|
|
|
|
|
|
</html>
|