|
|
|
@ -221,69 +221,41 @@
|
|
|
|
|
table = layui.table;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
dtree.renderSelect({
|
|
|
|
|
elem: "#selTree1",
|
|
|
|
|
icon: ["0", "-1"],
|
|
|
|
|
line: true,
|
|
|
|
|
width: "100%", // 指定树的宽度
|
|
|
|
|
data:
|
|
|
|
|
[
|
|
|
|
|
{
|
|
|
|
|
"id": "001",
|
|
|
|
|
"title": "湖南省",
|
|
|
|
|
"last": false,
|
|
|
|
|
"parentId": "0",
|
|
|
|
|
"children": [
|
|
|
|
|
{
|
|
|
|
|
"id": "001001",
|
|
|
|
|
"title": "长沙市",
|
|
|
|
|
"last": true,
|
|
|
|
|
"parentId": "001"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"id": "001002",
|
|
|
|
|
"title": "株洲市",
|
|
|
|
|
"last": true,
|
|
|
|
|
"parentId": "001"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"id": "001003",
|
|
|
|
|
"title": "湘潭市",
|
|
|
|
|
"last": true,
|
|
|
|
|
"parentId": "001"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"id": "001004",
|
|
|
|
|
"title": "衡阳市",
|
|
|
|
|
"last": true,
|
|
|
|
|
"parentId": "001"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"id": "001005",
|
|
|
|
|
"title": "郴州市",
|
|
|
|
|
"last": true,
|
|
|
|
|
"parentId": "001"
|
|
|
|
|
}
|
|
|
|
|
]
|
|
|
|
|
}
|
|
|
|
|
]
|
|
|
|
|
//url: "./asyncTree1.json"
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
var level = GetQueryString('level');
|
|
|
|
|
//点击区划树获取节点level
|
|
|
|
|
var area_id = GetQueryString('area_id');
|
|
|
|
|
var org_id="";
|
|
|
|
|
var bureau_id="";
|
|
|
|
|
if(getcookie().identity_id==4){//单位管理员
|
|
|
|
|
org_id =getcookie().bureau_id;
|
|
|
|
|
bureau_id = org_id;
|
|
|
|
|
$("#super").hide();
|
|
|
|
|
$("#other").show();
|
|
|
|
|
}else{
|
|
|
|
|
org_id = GetQueryString('org_id');
|
|
|
|
|
bureau_id = org_id;
|
|
|
|
|
$("#super").show();
|
|
|
|
|
$("#other").hide();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
dtree.renderSelect({
|
|
|
|
|
elem: "#selTree1",
|
|
|
|
|
icon: ["0", "-1"],
|
|
|
|
|
line: true,
|
|
|
|
|
width: "100%", // 指定树的宽度
|
|
|
|
|
method: "GET",
|
|
|
|
|
url: "/FengHuang/organization/getZyClassSelectTree?bureau_id="+org_id
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
// 绑定节点点击
|
|
|
|
|
dtree.on("node('selTree1')", function (obj) {
|
|
|
|
|
bureau_id = obj.param.nodeId;
|
|
|
|
|
console.log(obj.param.nodeId);
|
|
|
|
|
getClassList();
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
var info=getcookie();
|
|
|
|
|
// 超管 单位管理员 显示教师导入
|
|
|
|
|
if(info.identity_id==1||info.identity_id==4){
|
|
|
|
@ -348,7 +320,7 @@
|
|
|
|
|
$.ajax({
|
|
|
|
|
type: "GET",
|
|
|
|
|
dataType: "json",
|
|
|
|
|
url: '/FengHuang/class/getClassList?bureau_id=' + org_id + '&org_id='+org_id+'&stage_id=' + $("#sel2 option:selected").val() + '&entry_year=' + $("#sel3 option:selected").val() + '&page=1&limit=9999',
|
|
|
|
|
url: '/FengHuang/class/getClassList?bureau_id=' + org_id + '&org_id='+bureau_id+'&stage_id=' + $("#sel2 option:selected").val() + '&entry_year=' + $("#sel3 option:selected").val() + '&page=1&limit=9999',
|
|
|
|
|
success: function (data) {
|
|
|
|
|
if (data.code == 0) {
|
|
|
|
|
var html = template.render('test4', data);
|
|
|
|
|