|
|
@ -1,222 +1,237 @@
|
|
|
|
<!DOCTYPE html>
|
|
|
|
<!DOCTYPE html>
|
|
|
|
<html>
|
|
|
|
<html>
|
|
|
|
|
|
|
|
|
|
|
|
<head>
|
|
|
|
<head>
|
|
|
|
<meta charset="UTF-8">
|
|
|
|
<meta charset="UTF-8">
|
|
|
|
<title>添加会员-WeAdmin Frame型后台管理系统-WeAdmin 1.0</title>
|
|
|
|
<title>添加会员-WeAdmin Frame型后台管理系统-WeAdmin 1.0</title>
|
|
|
|
<meta name="renderer" content="webkit">
|
|
|
|
<meta name="renderer" content="webkit">
|
|
|
|
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
|
|
|
|
<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"
|
|
|
|
<link rel="stylesheet" href="../../static/css/font.css">
|
|
|
|
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/weadmin.css">
|
|
|
|
<link rel="stylesheet" href="../../static/css/font.css">
|
|
|
|
<link rel="stylesheet" href="../../lib/layui/css/layui.css">
|
|
|
|
<link rel="stylesheet" href="../../static/css/weadmin.css">
|
|
|
|
<!-- 让IE8/9支持媒体查询,从而兼容栅格 -->
|
|
|
|
<link rel="stylesheet" href="../../lib/layui/css/layui.css">
|
|
|
|
<!--[if lt IE 9]>
|
|
|
|
<!-- 让IE8/9支持媒体查询,从而兼容栅格 -->
|
|
|
|
<script src="https://cdn.staticfile.org/html5shiv/r29/html5.min.js"></script>
|
|
|
|
<!--[if lt IE 9]>
|
|
|
|
<script src="https://cdn.staticfile.org/respond.js/1.4.2/respond.min.js"></script>
|
|
|
|
<script src="https://cdn.staticfile.org/html5shiv/r29/html5.min.js"></script>
|
|
|
|
<![endif]-->
|
|
|
|
<script src="https://cdn.staticfile.org/respond.js/1.4.2/respond.min.js"></script>
|
|
|
|
<style>
|
|
|
|
<![endif]-->
|
|
|
|
.layui-form-label {
|
|
|
|
<style>
|
|
|
|
width: 90px!important;
|
|
|
|
.layui-form-label {
|
|
|
|
}
|
|
|
|
width: 90px !important;
|
|
|
|
input[type='text'] {
|
|
|
|
}
|
|
|
|
width: 320px!important;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
</style>
|
|
|
|
|
|
|
|
</head>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<body>
|
|
|
|
input[type='text'] {
|
|
|
|
<div class="weadmin-body">
|
|
|
|
width: 320px !important;
|
|
|
|
<form class="layui-form" lay-filter="editForm">
|
|
|
|
}
|
|
|
|
<div class="layui-form-item">
|
|
|
|
</style>
|
|
|
|
<label for="name" class="layui-form-label">
|
|
|
|
</head>
|
|
|
|
<span class="we-red">*</span>菜单名称:
|
|
|
|
|
|
|
|
</label>
|
|
|
|
<body>
|
|
|
|
<div class="layui-input-inline ">
|
|
|
|
<div class="weadmin-body">
|
|
|
|
<input type="text" id="name" name="name" lay-verify="required|contentLength" max="64" autocomplete="off" class="layui-input">
|
|
|
|
<form class="layui-form" lay-filter="editForm">
|
|
|
|
</div>
|
|
|
|
<div class="layui-form-item">
|
|
|
|
</div>
|
|
|
|
<label for="name" class="layui-form-label">
|
|
|
|
<div class="layui-form-item">
|
|
|
|
<span class="we-red">*</span>菜单名称:
|
|
|
|
<label for="url" class="layui-form-label">
|
|
|
|
</label>
|
|
|
|
<span class="we-red">*</span>url地址:
|
|
|
|
<div class="layui-input-inline ">
|
|
|
|
</label>
|
|
|
|
<input type="text" id="name" name="name" lay-verify="required|contentLength" max="64"
|
|
|
|
<div class="layui-input-inline ">
|
|
|
|
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>
|
|
|
|
</div>
|
|
|
|
<div class="layui-form-item">
|
|
|
|
<div class="layui-form-item">
|
|
|
|
<label for="url" class="layui-form-label">
|
|
|
|
<label for="sort_id" class="layui-form-label">
|
|
|
|
<span class="we-red">*</span>url地址:
|
|
|
|
<span class="we-red">*</span>排序号:
|
|
|
|
</label>
|
|
|
|
</label>
|
|
|
|
<div class="layui-input-inline ">
|
|
|
|
<div class="layui-input-inline ">
|
|
|
|
<input type="text" id="url" name="url" lay-verify="required|contentLength" max="128"
|
|
|
|
<input type="text" id="sort_id" name="sort_id" lay-verify="required|number" autocomplete="off" class="layui-input">
|
|
|
|
autocomplete="off" class="layui-input">
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="layui-form-item">
|
|
|
|
<div class="layui-form-item">
|
|
|
|
<label for="memo" class="layui-form-label">
|
|
|
|
<label for="sort_id" class="layui-form-label">
|
|
|
|
<span class="we-red">*</span>描述信息:
|
|
|
|
<span class="we-red">*</span>排序号:
|
|
|
|
</label>
|
|
|
|
</label>
|
|
|
|
<div class="layui-input-inline ">
|
|
|
|
<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="sort_id" name="sort_id" lay-verify="required|number" autocomplete="off"
|
|
|
|
</div>
|
|
|
|
class="layui-input">
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="layui-form-item">
|
|
|
|
</div>
|
|
|
|
<label for="memo" class="layui-form-label">
|
|
|
|
<div class="layui-form-item">
|
|
|
|
<span class="we-red">*</span>可用身份:
|
|
|
|
<label for="memo" class="layui-form-label">
|
|
|
|
</label>
|
|
|
|
<span class="we-red">*</span>描述信息:
|
|
|
|
<div class="layui-input-item" style="width: 70%;float: left;padding-top:8px;margin-left: -10px">
|
|
|
|
</label>
|
|
|
|
<span style="display: inline-block;margin:0 10px 8px 10px"><input type="checkbox" name="chk" title="超级管理员" value="1"></span>
|
|
|
|
<div class="layui-input-inline ">
|
|
|
|
<span style="display: inline-block;margin:0 10px 8px 10px"><input type="checkbox" name="chk" title="项目申报员" value="2"></span>
|
|
|
|
<input type="text" id="memo" name="memo" lay-verify="required|contentLength" max="64"
|
|
|
|
<span style="display: inline-block;margin:0 10px 8px 10px"><input type="checkbox" name="chk" title="一级审核员" value="3"></span>
|
|
|
|
autocomplete="off" class="layui-input">
|
|
|
|
<span style="display: inline-block;margin:0 10px 8px 10px"><input type="checkbox" name="chk" title="二级审核员" lay-filter="chk" value="4"></span>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="layui-form-item">
|
|
|
|
<div class="layui-form-item" id="school" style="display: none">
|
|
|
|
<label for="memo" class="layui-form-label">
|
|
|
|
<label for="" class="layui-form-label">
|
|
|
|
<span class="we-red">*</span>可用身份:
|
|
|
|
<span class="we-red">*</span>学校管理员:
|
|
|
|
</label>
|
|
|
|
</label>
|
|
|
|
<div class="layui-input-item" style="width: 70%;float: left;padding-top:8px;margin-left: -10px">
|
|
|
|
<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">
|
|
|
|
<span style="display: inline-block;margin:0 10px 8px 10px"><input type="checkbox" lay-filter="school" name="school" title="学校管理员" ></span>
|
|
|
|
<input type="checkbox" name="chk" title="超级管理员" value="1">
|
|
|
|
<span style="display: inline-block;margin:0 10px 8px 10px"><input type="checkbox" lay-filter="bureau" name="bureau" title="非学校管理员"></span>
|
|
|
|
</span>
|
|
|
|
</div>
|
|
|
|
<span style="display: inline-block;margin:0 10px 8px 10px">
|
|
|
|
</div>
|
|
|
|
<input type="checkbox" name="chk" title="项目申报员" value="2">
|
|
|
|
<div class="layui-form-item">
|
|
|
|
</span>
|
|
|
|
<label for="" class="layui-form-label">
|
|
|
|
<span style="display: inline-block;margin:0 10px 8px 10px">
|
|
|
|
</label>
|
|
|
|
<input type="checkbox" name="chk" title="一级审核员" value="3">
|
|
|
|
<button class="layui-btn" lay-filter="save" lay-submit="">确定</button>
|
|
|
|
</span>
|
|
|
|
|
|
|
|
<span style="display: inline-block;margin:0 10px 8px 10px">
|
|
|
|
|
|
|
|
<input type="checkbox" name="chk" title="二级审核员" lay-filter="chk" 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" name="school" title="学校管理员">
|
|
|
|
|
|
|
|
</span>
|
|
|
|
|
|
|
|
<span style="display: inline-block;margin:0 10px 8px 10px">
|
|
|
|
|
|
|
|
<input type="checkbox" lay-filter="bureau" name="bureau" title="非学校管理员">
|
|
|
|
|
|
|
|
</span>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="layui-form-item">
|
|
|
|
|
|
|
|
<label for="" class="layui-form-label">
|
|
|
|
|
|
|
|
</label>
|
|
|
|
|
|
|
|
<button class="layui-btn" lay-filter="save" lay-submit="">确定</button>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
</form>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</form>
|
|
|
|
<script src="../../lib/layui/layui.js" charset="utf-8"></script>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<script src="../../lib/layui/layui.js" charset="utf-8"></script>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<script>
|
|
|
|
<script>
|
|
|
|
layui.extend({
|
|
|
|
layui.extend({
|
|
|
|
admin: '{/}../../static/js/admin'
|
|
|
|
admin: '{/}../../static/js/admin'
|
|
|
|
});
|
|
|
|
});
|
|
|
|
layui.use(['form','jquery','admin', 'layer'], function() {
|
|
|
|
layui.use(['form', 'jquery', 'admin', 'layer'], function () {
|
|
|
|
var form = layui.form,
|
|
|
|
var form = layui.form,
|
|
|
|
$ = layui.jquery,
|
|
|
|
$ = layui.jquery,
|
|
|
|
admin = layui.admin,
|
|
|
|
admin = layui.admin,
|
|
|
|
layer = layui.layer;
|
|
|
|
layer = layui.layer;
|
|
|
|
var for_school="";//学校管理员
|
|
|
|
var for_school = "";//学校管理员
|
|
|
|
var for_bureau="";//非学校管理员
|
|
|
|
var for_bureau = "";//非学校管理员
|
|
|
|
var id;
|
|
|
|
var id;
|
|
|
|
$(function () {
|
|
|
|
$(function () {
|
|
|
|
id=GetQueryString("id");
|
|
|
|
id = GetQueryString("id");
|
|
|
|
selectSingle();
|
|
|
|
selectSingle();
|
|
|
|
})
|
|
|
|
})
|
|
|
|
|
|
|
|
|
|
|
|
// 根据id获取信息
|
|
|
|
// 根据id获取信息
|
|
|
|
function selectSingle(){
|
|
|
|
function selectSingle() {
|
|
|
|
$.ajax({
|
|
|
|
$.ajax({
|
|
|
|
url:'/baseService/menu/selectSingle?menu_id='+id,
|
|
|
|
url: '/baseService/menu/selectSingle?menu_id=' + id,
|
|
|
|
type:"GET",
|
|
|
|
type: "GET",
|
|
|
|
dataType:'json',
|
|
|
|
dataType: 'json',
|
|
|
|
success:function(data){
|
|
|
|
success: function (data) {
|
|
|
|
var lis1=data.menu_info[0];
|
|
|
|
var lis1 = data.menu_info[0];
|
|
|
|
form.val('editForm', {
|
|
|
|
form.val('editForm', {
|
|
|
|
name:lis1.menu_name,
|
|
|
|
name: lis1.menu_name,
|
|
|
|
memo:lis1.memo,
|
|
|
|
memo: lis1.memo,
|
|
|
|
sort_id:lis1.sort_id,
|
|
|
|
sort_id: lis1.sort_id,
|
|
|
|
url:lis1.url
|
|
|
|
url: lis1.url
|
|
|
|
});
|
|
|
|
});
|
|
|
|
for_bureau=lis1.for_bureau;
|
|
|
|
for_bureau = lis1.for_bureau;
|
|
|
|
for_school=lis1.for_school;
|
|
|
|
for_school = lis1.for_school;
|
|
|
|
for (var i=0;i<data.identity_info.length;i++){
|
|
|
|
for (var i = 0; i < data.identity_info.length; i++) {
|
|
|
|
$("input[type='checkbox'][value="+data.identity_info[i].identity_id+"]").attr("checked",true);
|
|
|
|
$("input[type='checkbox'][value=" + data.identity_info[i].identity_id + "]").attr("checked", true);
|
|
|
|
if(data.identity_info[i].identity_id==4){
|
|
|
|
if (data.identity_info[i].identity_id == 4) {
|
|
|
|
$("#school").show();
|
|
|
|
$("#school").show();
|
|
|
|
if(lis1.for_school==1){
|
|
|
|
if (lis1.for_school == 1) {
|
|
|
|
$("input[type='checkbox'][name='school']").attr("checked",true);
|
|
|
|
$("input[type='checkbox'][name='school']").attr("checked", true);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if(lis1.for_bureau==1){
|
|
|
|
if (lis1.for_bureau == 1) {
|
|
|
|
$("input[type='checkbox'][name='bureau']").attr("checked",true);
|
|
|
|
$("input[type='checkbox'][name='bureau']").attr("checked", true);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
form.render();
|
|
|
|
form.render();
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
})
|
|
|
|
}
|
|
|
|
}
|
|
|
|
})
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// 选中学校管理员 for_school=1
|
|
|
|
// 选中学校管理员 for_school=1
|
|
|
|
form.on('checkbox(school)', function(data){
|
|
|
|
form.on('checkbox(school)', function (data) {
|
|
|
|
if(data.elem.checked){
|
|
|
|
if (data.elem.checked) {
|
|
|
|
for_school=1;
|
|
|
|
for_school = 1;
|
|
|
|
}else{
|
|
|
|
} else {
|
|
|
|
for_school=0;
|
|
|
|
for_school = 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
// 选中非学校管理员 for_bureau=1
|
|
|
|
|
|
|
|
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();
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
verifyLength();
|
|
|
|
|
|
|
|
//监听提交
|
|
|
|
|
|
|
|
form.on('submit(save)', function(data) {
|
|
|
|
|
|
|
|
var arr=new Array();
|
|
|
|
|
|
|
|
$("input:checkbox[name='chk']:checked").each(function (i) {
|
|
|
|
|
|
|
|
arr[i]=$(this).val();
|
|
|
|
|
|
|
|
})
|
|
|
|
|
|
|
|
data.field.chk=arr.join(",");
|
|
|
|
|
|
|
|
var f=data.field;
|
|
|
|
|
|
|
|
if(f.chk==""){
|
|
|
|
|
|
|
|
layer.msg("请选择可用身份",{icon:5})
|
|
|
|
|
|
|
|
return false;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
if($("#school").is(":visible")){
|
|
|
|
|
|
|
|
if(for_school==0&&for_bureau==0){
|
|
|
|
|
|
|
|
layer.msg("请选择是否为学校管理员",{icon:5})
|
|
|
|
|
|
|
|
return false;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
console.log(f);
|
|
|
|
|
|
|
|
$.ajax({
|
|
|
|
|
|
|
|
url:'/baseService/menu/UpdateMenu',
|
|
|
|
|
|
|
|
type:"POST",
|
|
|
|
|
|
|
|
dataType:'json',
|
|
|
|
|
|
|
|
data:{
|
|
|
|
|
|
|
|
menu_id:id,
|
|
|
|
|
|
|
|
sort_id:f.sort_id,
|
|
|
|
|
|
|
|
menu_name:f.name,
|
|
|
|
|
|
|
|
url:f.url,
|
|
|
|
|
|
|
|
memo:f.memo,
|
|
|
|
|
|
|
|
identity_ids:f.chk,
|
|
|
|
|
|
|
|
for_school:for_school,
|
|
|
|
|
|
|
|
for_bureau:for_bureau
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
success:function(data){
|
|
|
|
|
|
|
|
if(data.success){
|
|
|
|
|
|
|
|
layer.msg("修改成功", {icon: 1,time:1000,shade : [0.5 , '#000' , true]}, function() {
|
|
|
|
|
|
|
|
var index = parent.layer.getFrameIndex(window.name);
|
|
|
|
|
|
|
|
parent.layer.close(index);
|
|
|
|
|
|
|
|
window.parent.treeReload(id);
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
}else{
|
|
|
|
|
|
|
|
layer.alert(data.message,{icon:0})
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
});
|
|
|
|
})
|
|
|
|
// 选中非学校管理员 for_bureau=1
|
|
|
|
|
|
|
|
form.on('checkbox(bureau)', function (data) {
|
|
|
|
return false;
|
|
|
|
if (data.elem.checked) {
|
|
|
|
});
|
|
|
|
for_bureau = 1;
|
|
|
|
|
|
|
|
} else {
|
|
|
|
});
|
|
|
|
for_bureau = 0;
|
|
|
|
</script>
|
|
|
|
}
|
|
|
|
</body>
|
|
|
|
});
|
|
|
|
|
|
|
|
// 点击单位管理员 显示是否学校
|
|
|
|
|
|
|
|
form.on('checkbox(chk)', function (data) {
|
|
|
|
|
|
|
|
if (data.elem.checked) {
|
|
|
|
|
|
|
|
//$("#school").show();
|
|
|
|
|
|
|
|
} else {
|
|
|
|
|
|
|
|
//$("#school").hide();
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
verifyLength();
|
|
|
|
|
|
|
|
//监听提交
|
|
|
|
|
|
|
|
form.on('submit(save)', function (data) {
|
|
|
|
|
|
|
|
var arr = new Array();
|
|
|
|
|
|
|
|
$("input:checkbox[name='chk']:checked").each(function (i) {
|
|
|
|
|
|
|
|
arr[i] = $(this).val();
|
|
|
|
|
|
|
|
})
|
|
|
|
|
|
|
|
data.field.chk = arr.join(",");
|
|
|
|
|
|
|
|
var f = data.field;
|
|
|
|
|
|
|
|
if (f.chk == "") {
|
|
|
|
|
|
|
|
layer.msg("请选择可用身份", {icon: 5})
|
|
|
|
|
|
|
|
return false;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
if ($("#school").is(":visible")) {
|
|
|
|
|
|
|
|
if (for_school == 0 && for_bureau == 0) {
|
|
|
|
|
|
|
|
layer.msg("请选择是否为学校管理员", {icon: 5})
|
|
|
|
|
|
|
|
return false;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
console.log(f);
|
|
|
|
|
|
|
|
$.ajax({
|
|
|
|
|
|
|
|
url: '/baseService/menu/UpdateMenu',
|
|
|
|
|
|
|
|
type: "POST",
|
|
|
|
|
|
|
|
dataType: 'json',
|
|
|
|
|
|
|
|
data: {
|
|
|
|
|
|
|
|
menu_id: id,
|
|
|
|
|
|
|
|
sort_id: f.sort_id,
|
|
|
|
|
|
|
|
menu_name: f.name,
|
|
|
|
|
|
|
|
url: f.url,
|
|
|
|
|
|
|
|
memo: f.memo,
|
|
|
|
|
|
|
|
identity_ids: f.chk,
|
|
|
|
|
|
|
|
for_school: for_school,
|
|
|
|
|
|
|
|
for_bureau: for_bureau
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
success: function (data) {
|
|
|
|
|
|
|
|
if (data.success) {
|
|
|
|
|
|
|
|
layer.msg("修改成功", {icon: 1, time: 1000, shade: [0.5, '#000', true]}, function () {
|
|
|
|
|
|
|
|
var index = parent.layer.getFrameIndex(window.name);
|
|
|
|
|
|
|
|
parent.layer.close(index);
|
|
|
|
|
|
|
|
window.parent.treeReload(id);
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
} else {
|
|
|
|
|
|
|
|
layer.alert(data.message, {icon: 0})
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
})
|
|
|
|
|
|
|
|
return false;
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
</script>
|
|
|
|
|
|
|
|
</body>
|
|
|
|
</html>
|
|
|
|
</html>
|