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.
139 lines
5.2 KiB
139 lines
5.2 KiB
<!DOCTYPE html>
|
|
<html lang="en">
|
|
|
|
<head>
|
|
<meta charset="UTF-8">
|
|
<title></title>
|
|
<link rel="stylesheet" href="./component/pear/css/pear.css" />
|
|
<style>
|
|
.require-star {
|
|
position: absolute;
|
|
width: 3px;
|
|
height: 14px;
|
|
background-color: #ea4335;
|
|
top: 12px;
|
|
right: 8px;
|
|
border-radius: 1.5px;
|
|
}
|
|
|
|
.input-width {
|
|
max-width: 445px
|
|
}
|
|
|
|
.layui-form-select {
|
|
width: 445px;
|
|
}
|
|
</style>
|
|
</head>
|
|
|
|
<body>
|
|
<form class="layui-form" action="">
|
|
<div class="mainBox">
|
|
<div class="main-container">
|
|
<div class="layui-form-item">
|
|
<label class="layui-form-label" style="width: 90px !important;"><span
|
|
class="require-star"></span>学校名称</label>
|
|
<div class="layui-input-block">
|
|
<input type="text" name="org_name" lay-verify="required" autocomplete="off"
|
|
placeholder="请输入学校名称" class="layui-input input-width">
|
|
</div>
|
|
</div>
|
|
<div class="layui-form-item">
|
|
<label class="layui-form-label" style="width: 90px !important;"><span
|
|
class="require-star"></span>派出所</label>
|
|
<div class="layui-input-block">
|
|
<input type="text" name="org_code" lay-verify="required" autocomplete="off" placeholder="请输入派出所"
|
|
class="layui-input input-width">
|
|
</div>
|
|
</div>
|
|
<div class="layui-form-item">
|
|
<label class="layui-form-label" style="width: 90px !important;"><span
|
|
class="require-star"></span>汉字街委</label>
|
|
<div class="layui-input-block">
|
|
<input type="text" name="sort_id" lay-verify="required" autocomplete="off" placeholder="请输入汉字街委"
|
|
class="layui-input input-width">
|
|
</div>
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
<div class="bottom">
|
|
<div class="button-container">
|
|
<button type="submit" class="layui-btn layui-btn-sm" lay-submit="" lay-filter="save">
|
|
<i class="layui-icon layui-icon-ok"></i>
|
|
提交
|
|
</button>
|
|
<button type="button" class="layui-btn layui-btn-primary layui-btn-sm" lay-on="close">
|
|
<i class="layui-icon layui-icon-close"></i>
|
|
取消
|
|
</button>
|
|
</div>
|
|
</div>
|
|
</form>
|
|
<script src="./component/layui/layui.js"></script>
|
|
<script src="./component/pear/pear.js"></script>
|
|
<script>
|
|
layui.use(['form', 'jquery', 'laytpl'], function () {
|
|
|
|
var form = layui.form;
|
|
var $ = layui.jquery;
|
|
var laytpl = layui.laytpl;
|
|
var util = layui.util;
|
|
|
|
var stage = GetQueryString("stage");
|
|
|
|
form.on('submit(save)', function (data) {
|
|
data.field['org_type_id'] = 2;
|
|
data.field['level_id'] = 1;
|
|
data.field['parent_org_id'] = areaId;
|
|
$.ajax({
|
|
url: '/QingLong/organization/addBureau',
|
|
data: data.field,
|
|
type: 'post',
|
|
success: function (result) {
|
|
if (result.success) {
|
|
layer.msg("新增成功!", {
|
|
icon: 1,
|
|
time: 1300
|
|
}, function () {
|
|
parent.layer.close(parent.layer.getFrameIndex(window.name));
|
|
if (stage == 'xx') {
|
|
parent.layui.table.reload("xx-table");
|
|
} else {
|
|
parent.layui.table.reload("cz-table");
|
|
}
|
|
|
|
});
|
|
} else {
|
|
layer.msg(result.message, {
|
|
icon: 2,
|
|
time: 2000
|
|
});
|
|
}
|
|
}
|
|
})
|
|
return false;
|
|
});
|
|
|
|
util.on({
|
|
close: function () {
|
|
parent.layer.close(parent.layer.getFrameIndex(window.name));
|
|
}
|
|
});
|
|
|
|
|
|
function GetQueryString(name, istop) {
|
|
var reg = new RegExp("(^|&)" + name + "=([^&]*)(&|$)", "i");
|
|
var r = window.location.search.substr(1).match(reg);
|
|
if (typeof (istop) != "undefined") r = top.location.search.substr(1).match(reg);
|
|
|
|
if (r != null) return unescape(r[2]);
|
|
return null;
|
|
}
|
|
|
|
});
|
|
</script>
|
|
</body>
|
|
|
|
</html> |