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.
135 lines
5.1 KiB
135 lines
5.1 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: 455px
|
|
}
|
|
|
|
.layui-form-select {
|
|
width: 455px;
|
|
}
|
|
</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: 100px !important;"><span
|
|
class="require-star"></span>原学校名称</label>
|
|
<div class="layui-input-block">
|
|
<input type="text" disabled id="original_school_name" name="original_school_name" class="layui-input input-width">
|
|
</div>
|
|
</div>
|
|
<div class="layui-form-item">
|
|
<label class="layui-form-label" style="width: 100px !important;"><span
|
|
class="require-star"></span>匹配学校名称</label>
|
|
<div class="layui-input-block" style="margin-left: 130px !important;" id="schoolListView">
|
|
</div>
|
|
<script id="schoolLisScript" type="text/html">
|
|
<select lay-search="" id="schoolListSelect" name="organization_name" lay-verify="required">
|
|
<option value="">搜索学校名称</option>
|
|
{{# layui.each(d.data, function(index, item){ }}
|
|
<option value="{{item.organization_name}}">{{item.organization_name}}</option>
|
|
{{# }); }}
|
|
</select>
|
|
</script>
|
|
</div>
|
|
</div>
|
|
|
|
</div>
|
|
<div class="bottom">
|
|
<div class="button-container">
|
|
<button type="submit" class="pear-btn pear-btn-primary pear-btn-sm" lay-submit="" lay-filter="save">
|
|
<i class="layui-icon layui-icon-ok"></i>
|
|
提交
|
|
</button>
|
|
</div>
|
|
</div>
|
|
</form>
|
|
<script src="../../component/layui/layui.js"></script>
|
|
<script src="../../component/pear/pear.js"></script>
|
|
<script src="../../component/pear/base64.js"></script>
|
|
<script>
|
|
layui.use(['form', 'jquery'], function () {
|
|
var form = layui.form;
|
|
var $ = layui.jquery;
|
|
var laytpl = layui.laytpl;
|
|
|
|
var original_school_name = Base64.decode(GetQueryString("o_name"));
|
|
|
|
$("#original_school_name").val(original_school_name);
|
|
|
|
$.ajax({
|
|
type: "GET",
|
|
dataType: "json",
|
|
url: "/dsBase/yx/getStandardSchoolList",
|
|
success: function (data) {
|
|
var schoolLisTpl = schoolLisScript.innerHTML,
|
|
schoolLisView = document.getElementById('schoolListView');
|
|
laytpl(schoolLisTpl).render(data, function (html) {
|
|
schoolLisView.innerHTML = html;
|
|
});
|
|
|
|
form.render();
|
|
}
|
|
});
|
|
|
|
form.on('submit(save)', function (data) {
|
|
$.ajax({
|
|
url: '/dsBase/yx/saveHandMatchSchoolName',
|
|
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));
|
|
parent.layui.table.reload("dataTable");
|
|
});
|
|
} else {
|
|
layer.msg(result.message, {
|
|
icon: 2,
|
|
time: 2000
|
|
});
|
|
}
|
|
}
|
|
})
|
|
return false;
|
|
});
|
|
|
|
|
|
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>
|
|
<script>
|
|
</script>
|
|
</body>
|
|
|
|
</html> |