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.

928 lines
21 KiB

<!DOCTYPE html>
<html>
<head>
<title>My Page</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="http://code.jquery.com/mobile/1.1.0/jquery.mobile-1.1.0.min.css" />
<script src="http://code.jquery.com/jquery-1.7.1.min.js" type="text/javascript"></script>
<script src="http://code.jquery.com/mobile/1.1.0/jquery.mobile-1.1.0.min.js" type="text/javascript"></script>
<script src="jquery.timers-1.2.js" type="text/javascript"></script>
<script type="text/javascript">
$(document).ready(function(){
// 获取市下的行政区划列表
var hyper001 = {
"access_token": "system_01##20200102030405##a6ce11eab94df48a6ce11eab",
"query_cols": [
],
"query_combinations": "",
"query_conditions": [
200051
],
"query_format": "json",
"query_id": "hyper001",
"query_order": [
],
"query_page": 1,
"query_perpage": 20
}
// 获取市下的单位列表
var hyper002 = {
"access_token": "system_01##20200102030405##a6ce11eab94df48a6ce11eab",
"query_cols": [
],
"query_combinations": "",
"query_conditions": [
200051, 2
],
"query_format": "json",
"query_id": "hyper002",
"query_order": [
],
"query_page": 1,
"query_perpage": 20
}
// 获取区下的单位列表
var hyper003 = {
"access_token": "system_01##20200102030405##a6ce11eab94df48a6ce11eab",
"query_cols": [
],
"query_combinations": "",
"query_conditions": [
310041, 2
],
"query_format": "json",
"query_id": "hyper003",
"query_order": [
],
"query_page": 1,
"query_perpage": 20
}
// 获取单位下的组织机构(部门)树
var hyper004 = {
"access_token": "system_01##20200102030405##a6ce11eab94df48a6ce11eab",
"query_cols": [
],
"query_combinations": "",
"query_conditions": [
200125116
],
"query_format": "json",
"query_id": "hyper004",
"query_order": [
],
"query_page": 1,
"query_perpage": 20
}
// 获取组织机构(部门)下的教师列表
var hyper005 = {
"access_token": "system_01##20200102030405##a6ce11eab94df48a6ce11eab",
"query_cols": [
],
"query_combinations": "",
"query_conditions": [
3
],
"query_format": "json",
"query_id": "hyper005",
"query_order": [
],
"query_page": 1,
"query_perpage": 20
}
// 获取学校的学段列表
var hyper006 = {
"access_token": "system_01##20200102030405##a6ce11eab94df48a6ce11eab",
"query_cols": [
],
"query_combinations": "",
"query_conditions": [
3
],
"query_format": "json",
"query_id": "hyper006",
"query_order": [
],
"query_page": 1,
"query_perpage": 20
}
// 获取学校的入学年份列表
var hyper007 = {
"access_token": "system_01##20200102030405##a6ce11eab94df48a6ce11eab",
"query_cols": [
],
"query_combinations": "",
"query_conditions": [
3
],
"query_format": "json",
"query_id": "hyper007",
"query_order": [
],
"query_page": 1,
"query_perpage": 20
}
// 获取学校的班级列表
var hyper008 = {
"access_token": "system_01##20200102030405##a6ce11eab94df48a6ce11eab",
"query_cols": [
],
"query_combinations": "",
"query_conditions": [
3, 4, 2018
],
"query_format": "json",
"query_id": "hyper008",
"query_order": [
],
"query_page": 1,
"query_perpage": 20
}
// 获取班级下的学生列表
var hyper009 = {
"access_token": "system_01##20200102030405##a6ce11eab94df48a6ce11eab",
"query_cols": [
],
"query_combinations": "",
"query_conditions": [
126440
],
"query_format": "json",
"query_id": "hyper009",
"query_order": [
],
"query_page": 1,
"query_perpage": 20
}
// 获取班级下的家长列表
var hyper010 = {
"access_token": "system_01##20200102030405##a6ce11eab94df48a6ce11eab",
"query_cols": [
],
"query_combinations": "",
"query_conditions": [
126440
],
"query_format": "json",
"query_id": "hyper010",
"query_order": [
],
"query_page": 1,
"query_perpage": 20
}
// 获取单位信息
var hyper011 = {
"access_token": "system_01##20200102030405##a6ce11eab94df48a6ce11eab",
"data_id": "3",
"query_cols": [
],
"query_format": "json",
"query_id": "hyper011"
}
// 获取班级信息
var hyper012 = {
"access_token": "system_01##20200102030405##a6ce11eab94df48a6ce11eab",
"data_id": "126440",
"query_cols": [
],
"query_format": "json",
"query_id": "hyper012"
}
// 获取教师信息
var hyper013 = {
"access_token": "system_01##20200102030405##a6ce11eab94df48a6ce11eab",
"data_id": "69033",
"query_cols": [
],
"query_format": "json",
"query_id": "hyper013"
}
// 获取学生信息
var hyper014 = {
"access_token": "system_01##20200102030405##a6ce11eab94df48a6ce11eab",
"data_id": "86202337",
"query_cols": [
],
"query_format": "json",
"query_id": "hyper014"
}
// 获取人员的所有角色列表
var hyper015 = {
"access_token": "system_01##20200102030405##a6ce11eab94df48a6ce11eab",
"query_cols": [
],
"query_combinations": "",
"query_conditions": [
69033, 7
],
"query_format": "json",
"query_id": "hyper015",
"query_order": [
],
"query_page": 1,
"query_perpage": 20
}
// 获取人员某个业务系统的角色列表
var hyper016 = {
"access_token": "system_01##20200102030405##a6ce11eab94df48a6ce11eab",
"query_cols": [
],
"query_combinations": "",
"query_conditions": [
"COMMON"
],
"query_format": "json",
"query_id": "hyper016",
"query_order": [
],
"query_page": 1,
"query_perpage": 20
}
// 获取人员某个业务系统的功能菜单
var hyper017 = {
"access_token": "system_01##20200102030405##a6ce11eab94df48a6ce11eab",
"query_cols": [
],
"query_combinations": "",
"query_conditions": [
"COMMON", 10
],
"query_format": "json",
"query_id": "hyper017",
"query_order": [
],
"query_page": 1,
"query_perpage": 20
}
// 获取学段信息
var hyper018 = {
"access_token": "system_01##20200102030405##a6ce11eab94df48a6ce11eab",
"query_cols": [
],
"query_combinations": "",
"query_conditions": [
],
"query_format": "json",
"query_id": "hyper018",
"query_order": [
],
"query_page": 1,
"query_perpage": 20
}
// 获取行政区
var hyper019 = {
"access_token": "system_01##20200102030405##a6ce11eab94df48a6ce11eab",
"query_cols": [
],
"query_combinations": "",
"query_conditions": [
],
"query_format": "json",
"query_id": "hyper019",
"query_order": [
],
"query_page": 1,
"query_perpage": 20
}
// 获取行政区
var hyper020 = {
"access_token": "system_01##20200102030405##a6ce11eab94df48a6ce11eab",
"query_cols": [
],
"query_combinations": "",
"query_conditions": [
],
"query_format": "json",
"query_id": "hyper020",
"query_order": [
],
"query_page": 1,
"query_perpage": 20
}
// 获取机构(单位)
var hyper021 = {
"access_token": "system_01##20200102030405##a6ce11eab94df48a6ce11eab",
"query_cols": [
],
"query_combinations": "",
"query_conditions": [
],
"query_format": "json",
"query_id": "hyper021",
"query_order": [
],
"query_page": 1,
"query_perpage": 20
}
// 获取机构(单位)
var hyper022 = {
"access_token": "system_01##20200102030405##a6ce11eab94df48a6ce11eab",
"query_cols": [
],
"query_combinations": "",
"query_conditions": [
],
"query_format": "json",
"query_id": "hyper022",
"query_order": [
],
"query_page": 1,
"query_perpage": 20
}
// 获取学校
var hyper023 = {
"access_token": "system_01##20200102030405##a6ce11eab94df48a6ce11eab",
"query_cols": [
],
"query_combinations": "",
"query_conditions": [
2
],
"query_format": "json",
"query_id": "hyper023",
"query_order": [
],
"query_page": 1,
"query_perpage": 20
}
// 获取学校
var hyper024 = {
"access_token": "system_01##20200102030405##a6ce11eab94df48a6ce11eab",
"query_cols": [
],
"query_combinations": "",
"query_conditions": [
2
],
"query_format": "json",
"query_id": "hyper024",
"query_order": [
],
"query_page": 1,
"query_perpage": 20
}
// 获取部门
var hyper025 = {
"access_token": "system_01##20200102030405##a6ce11eab94df48a6ce11eab",
"query_cols": [
],
"query_combinations": "",
"query_conditions": [
3, 400001
],
"query_format": "json",
"query_id": "hyper025",
"query_order": [
],
"query_page": 1,
"query_perpage": 20
}
// 获取部门
var hyper026 = {
"access_token": "system_01##20200102030405##a6ce11eab94df48a6ce11eab",
"query_cols": [
],
"query_combinations": "",
"query_conditions": [
3, 'f98cfdd5de99440d855aafb24ba47b52'
],
"query_format": "json",
"query_id": "hyper026",
"query_order": [
],
"query_page": 1,
"query_perpage": 20
}
// 获取年级
var hyper027 = {
"access_token": "system_01##20200102030405##a6ce11eab94df48a6ce11eab",
"query_cols": [
],
"query_combinations": "",
"query_conditions": [
400001
],
"query_format": "json",
"query_id": "hyper027",
"query_order": [
],
"query_page": 1,
"query_perpage": 20
}
// 获取年级
var hyper028 = {
"access_token": "system_01##20200102030405##a6ce11eab94df48a6ce11eab",
"query_cols": [
],
"query_combinations": "",
"query_conditions": [
'097D57445AA54AAC958B8649A44ECEA9'
],
"query_format": "json",
"query_id": "hyper028",
"query_order": [
],
"query_page": 1,
"query_perpage": 20
}
// 获取班级
var hyper029 = {
"access_token": "system_01##20200102030405##a6ce11eab94df48a6ce11eab",
"query_cols": [
],
"query_combinations": "",
"query_conditions": [
400001, 2017
],
"query_format": "json",
"query_id": "hyper029",
"query_order": [
],
"query_page": 1,
"query_perpage": 20
}
// 获取班级
var hyper030 = {
"access_token": "system_01##20200102030405##a6ce11eab94df48a6ce11eab",
"query_cols": [
],
"query_combinations": "",
"query_conditions": [
'097D57445AA54AAC958B8649A44ECEA9'
],
"query_format": "json",
"query_id": "hyper030",
"query_order": [
],
"query_page": 1,
"query_perpage": 20
}
// 获取教师(教职工)
var hyper031 = {
"access_token": "system_01##20200102030405##a6ce11eab94df48a6ce11eab",
"query_cols": [
],
"query_combinations": "",
"query_conditions": [
400001, 5
],
"query_format": "json",
"query_id": "hyper031",
"query_order": [
],
"query_page": 1,
"query_perpage": 20
}
// 获取教师(教职工)
var hyper032 = {
"access_token": "system_01##20200102030405##a6ce11eab94df48a6ce11eab",
"query_cols": [
],
"query_combinations": "",
"query_conditions": [
5, '097D57445AA54AAC958B8649A44ECEA9'
],
"query_format": "json",
"query_id": "hyper032",
"query_order": [
],
"query_page": 1,
"query_perpage": 20
}
// 获取学生
var hyper033 = {
"access_token": "system_01##20200102030405##a6ce11eab94df48a6ce11eab",
"query_cols": [
],
"query_combinations": "",
"query_conditions": [
400001
],
"query_format": "json",
"query_id": "hyper033",
"query_order": [
],
"query_page": 1,
"query_perpage": 20
}
// 获取学生
var hyper034 = {
"access_token": "system_01##20200102030405##a6ce11eab94df48a6ce11eab",
"query_cols": [
],
"query_combinations": "",
"query_conditions": [
6, '097D57445AA54AAC958B8649A44ECEA9'
],
"query_format": "json",
"query_id": "hyper034",
"query_order": [
],
"query_page": 1,
"query_perpage": 20
}
// 获取家长
var hyper035 = {
"access_token": "system_01##20200102030405##a6ce11eab94df48a6ce11eab",
"query_cols": [
],
"query_combinations": "",
"query_conditions": [
400001
],
"query_format": "json",
"query_id": "hyper035",
"query_order": [
],
"query_page": 1,
"query_perpage": 20
}
// 获取家长
var hyper036 = {
"access_token": "system_01##20200102030405##a6ce11eab94df48a6ce11eab",
"query_cols": [
],
"query_combinations": "",
"query_conditions": [
7, '097D57445AA54AAC958B8649A44ECEA9'
],
"query_format": "json",
"query_id": "hyper036",
"query_order": [
],
"query_page": 1,
"query_perpage": 20
}
// 获取用户角色
var hyper037 = {
"access_token": "system_01##20200102030405##a6ce11eab94df48a6ce11eab",
"query_cols": [
],
"query_combinations": "",
"query_conditions": [
1, 1
],
"query_format": "json",
"query_id": "hyper037",
"query_order": [
],
"query_page": 1,
"query_perpage": 20
}
// 获取系统角色
var hyper038 = {
"access_token": "system_01##20200102030405##a6ce11eab94df48a6ce11eab",
"query_cols": [
],
"query_combinations": "",
"query_conditions": [
'YPT'
],
"query_format": "json",
"query_id": "hyper038",
"query_order": [
],
"query_page": 1,
"query_perpage": 20
}
// 获取用户角色
var hyper039 = {
"access_token": "system_01##20200102030405##a6ce11eab94df48a6ce11eab",
"query_cols": [
],
"query_combinations": "",
"query_conditions": [
'd704280d17d3480e8e609da36415ce8e'
],
"query_format": "json",
"query_id": "hyper039",
"query_order": [
],
"query_page": 1,
"query_perpage": 20
}
// 获取系统角色
var hyper040 = {
"access_token": "system_01##20200102030405##a6ce11eab94df48a6ce11eab",
"query_cols": [
],
"query_combinations": "",
"query_conditions": [
],
"query_format": "json",
"query_id": "hyper040",
"query_order": [
],
"query_page": 1,
"query_perpage": 20
}
// 获取权限
var hyper041 = {
"access_token": "system_01##20200102030405##a6ce11eab94df48a6ce11eab",
"query_cols": [
],
"query_combinations": "",
"query_conditions": [
'JY', '167, 197'
],
"query_format": "json",
"query_id": "hyper041",
"query_order": [
],
"query_page": 1,
"query_perpage": 20
}
// 获取权限
var hyper042 = {
"access_token": "system_01##20200102030405##a6ce11eab94df48a6ce11eab",
"query_cols": [
],
"query_combinations": "",
"query_conditions": [
"64056dd8421c89e3d0bb8511526a7ace"
],
"query_format": "json",
"query_id": "hyper042",
"query_order": [
],
"query_page": 1,
"query_perpage": 20
}
// 获取权限
var hyper043 = {
"access_token": "system_01##20200102030405##a6ce11eab94df48a6ce11eab",
"query_cols": [
],
"query_combinations": "",
"query_conditions": [
],
"query_format": "json",
"query_id": "hyper043",
"query_order": [
],
"query_page": 1,
"query_perpage": 20
}
// 获取权限
var hyper044 = {
"access_token": "system_01##20200102030405##a6ce11eab94df48a6ce11eab",
"query_cols": [
],
"query_combinations": "",
"query_conditions": [
],
"query_format": "json",
"query_id": "hyper044",
"query_order": [
],
"query_page": 1,
"query_perpage": 20
}
$(".button").click(function () {
var queryIds = $('.query_ids').val()
var queryArr = queryIds.split(",")
var selectedOption = $(".query_ids").find("option:selected");
var func = selectedOption.attr("func")
var requestUrl
//var platform = $("input[type='radio']:checked").val()
var platform
var queryId
$("#show_zone").html("")
for (const elem of queryArr) {
var elems = elem.split(":")
platform = elems[0]
queryId = elems[1]
requestUrl = "http://127.0.0.1:9009/dataex/hyper_" + platform + "/" + func
var jsonStr = JSON.stringify(eval(queryId), null, "\t")
//console.log(platform);
$.ajax({
type : "post",
url: requestUrl,
contentType:"application/json",
dataType: "json",
async: false,
data : JSON.stringify(eval(queryId)),
beforeSend : function(result) {
$("#show_zone").append("<p><strong> 平台 - " + platform + "</strong></p>")
$("#show_zone").append("<p>请求URL: </p>" + requestUrl)
$("#show_zone").append("<p>提交参数: </p>" + jsonStr)
},
//请求成功
success : function(result) {
console.log(result);
$("#show_zone").append("<p>执行结果: </p>" + JSON.stringify(result))
},
//请求失败,包含具体的错误信息
error : function(e){
console.log(e.status);
console.log(e.responseText);
},
complete : function (XMLHttpRequest, textStatus) {
// Do something
}
}).done(function() {
$(".print_box").html("ok!")
});
}
// if (queryId == "hyper011" || queryId == "hyper012" || queryId == "hyper013" || queryId == "hyper014") {
// requestUrl = "http://127.0.0.1:9009/dataex/hyper_" + platform + "/QueryByID"
// } else {
// requestUrl = "http://127.0.0.1:9009/dataex/hyper_" + platform + "/Query"
// }
/*
$.ajax({
type : "post",
url: requestUrl,
contentType:"application/json",
dataType: "json",
data : JSON.stringify(eval(queryId)),
beforeSend : function(result) {
$("#tip_zone").html("<p>提交参数: </p>" + jsonStr)
},
//请求成功
success : function(result) {
console.log(result);
$("#show_zone").html("<p>执行结果: </p>" + JSON.stringify(result), null, "\t")
},
//请求失败,包含具体的错误信息
error : function(e){
console.log(e.status);
console.log(e.responseText);
}
}).done(function() {
$(".print_box").html("ok!")
});
*/
})
});
</script>
</head>
<body>
<div data-role="page">
<div data-role="header">
<h1>基础数据超融合</h1>
</div><!-- /header -->
<div data-role="content">
<div id="container">
<div id="control_zone">
<p class="print_box">Hello world</p>
<select name="query_ids" class="query_ids">
<option value="ypt:hyper001" func="Query">获取市下的行政区划列表</option>
<option value="ypt:hyper002" func="Query">获取市下的单位列表</option>
<option value="ypt:hyper003" func="Query">获取区下的单位列表</option>
<option value="ypt:hyper004" func="Query">获取单位下的组织机构(部门)树</option>
<option value="ypt:hyper005" func="Query">获取组织机构(部门)下的教师列表</option>
<option value="ypt:hyper006" func="Query">获取学校的学段列表</option>
<option value="ypt:hyper007" func="Query">获取学校的入学年份列表</option>
<option value="ypt:hyper008" func="Query">获取学校的班级列表</option>
<option value="ypt:hyper009" func="Query">获取班级下的学生列表</option>
<option value="ypt:hyper010" func="Query">获取班级下的家长列表</option>
<option value="ypt:hyper011" func="QueryByID">获取单位信息</option>
<option value="ypt:hyper012" func="QueryByID">获取班级信息</option>
<option value="ypt:hyper013" func="QueryByID">获取教师信息</option>
<option value="ypt:hyper014" func="QueryByID">获取学生信息</option>
<option value="ypt:hyper015" func="Query">获取人员的所有角色列表</option>
<option value="ypt:hyper016" func="Query">获取人员某个业务系统的角色列表</option>
<option value="ypt:hyper017" func="Query">获取人员某个业务系统的功能菜单</option>
<option value="ypt:hyper018" func="Query">获取学段信息</option>
<option value="ypt:hyper019,xpt:hyper020" func="Query">获取行政区</option>
<option value="ypt:hyper021,xpt:hyper022" func="Query">获取机构(单位)</option>
<option value="ypt:hyper023,xpt:hyper024" func="Query">获取学校</option>
<option value="ypt:hyper025,xpt:hyper026" func="Query">获取部门</option>
<option value="ypt:hyper027,xpt:hyper028" func="Query">获取年级</option>
<option value="ypt:hyper029,xpt:hyper030" func="Query">获取班级</option>
<option value="ypt:hyper031,xpt:hyper032" func="Query">获取教师(教职工)</option>
<option value="ypt:hyper033,xpt:hyper034" func="Query">获取学生</option>
<option value="ypt:hyper035,xpt:hyper036" func="Query">获取家长</option>
<option value="ypt:hyper037,xpt:hyper039" func="Query">获取用户角色</option>
<option value="ypt:hyper038,xpt:hyper040" func="Query">获取系统角色</option>
<option value="ypt:hyper041,xpt:hyper042" func="Query">获取权限</option>
<option value="ypt:hyper043,xpt:hyper044" func="Query">获取系统角色</option>
</select>
<button class="button" type='button'>GET IT !</button>
</div>
<!--<div id="tip_zone"></div>-->
<div id="show_zone"></div>
</div>
</div><!-- /content -->
</div><!-- /page -->
</body>
</html>