diff --git a/WebRoot/view/tb/zbdc/examine/examine_area.html b/WebRoot/view/tb/zbdc/examine/examine_area.html index 62e0ce84..28671519 100644 --- a/WebRoot/view/tb/zbdc/examine/examine_area.html +++ b/WebRoot/view/tb/zbdc/examine/examine_area.html @@ -113,34 +113,25 @@ - -
- - -
- -
- - -
@@ -158,23 +149,44 @@ var form = layui.form; var $ = layui.jquery; - var isXX = true; - - $.ajax({ - type: "GET", - async: false, - url: "/QingLong/zbdc/CheckViewByArea", - success: function (res) { - $("#title").html(" " + res.data.name); - $("#a1").html(" " + res.data.check_type_name); - $("#a2").html(" " + res.data.yingtijiao_count); - $("#a3").html(" " + res.data.yitijiao_count); - $("#a4").html(" " + res.data.weitijiao_count); - $("#a5").html(" " + res.data.tuihuiweitijiao_count); - $("#a6").html(" " + res.data.tuihui_commit_count); + initInfo(); + + function initInfo() { + $.ajax({ + type: "GET", + async: false, + url: "/QingLong/zbdc/CheckViewByArea", + success: function (res) { + $("#title").html(" " + res.data.name); + $("#a1").html(res.data.check_type_name); + $("#a2").html(res.data.yingtijiao_count); + $("#a3").html(res.data.yitijiao_count); + $("#a4").html(res.data.weitijiao_count); + $("#a5").html(res.data.tuihuiweitijiao_count); + $("#a6").html(res.data.tuihui_commit_count); + + if (res.data.check_type_id == 0) { + $("#cxsb").hide(); + $("#ckthyy").hide(); + } else if (res.data.check_type_id == 2) { + $("#shangbao").hide(); + $("#cxsb").hide(); + $("#xzthxx").hide(); + $("#ckthyy").hide(); + } else if (res.data.check_type_id == -1) { + $("#shangbao").hide(); + } else if (res.data.check_type_id == 1) { + $("#shangbao").hide(); + $("#cxsb").hide(); + $("#xzthxx").hide(); + $("#ckthyy").hide(); + } + + } + }); + } + - } - }); $("#a3").click(function () { layer.open({ @@ -223,24 +235,35 @@ form.on('submit(save)', function (data) { - $.ajax({ - url: '/QingLong/zbdc/saveSchool', - data: data.field, - type: 'post', - success: function (result) { - if (result.success) { - layer.msg("保存成功!", { - icon: 1, - time: 1300 - }); - } else { - layer.msg(result.message, { - icon: 2, - time: 2000 - }); + + + if ($("#a2").html() == $("#a3").html()) { + $.ajax({ + url: '/QingLong/zbdc/CheckReportSave', + type: 'post', + success: function (result) { + if (result.success) { + layer.msg("上报成功!", { + icon: 1, + time: 1300 + }); + } else { + layer.msg(result.message, { + icon: 2, + time: 2000 + }); + } } - } - }); + }); + } else { + layer.msg("还有未提交的学校,不能上报!", { + icon: 2, + time: 3000 + }); + } + + + return false; }); @@ -255,6 +278,22 @@ return false; }); + + form.on('submit(thyy)', function (data) { + layer.open({ + type: 2, + title: "查看退回原因", + shade: 0.1, + area: ['500px', '260px'], + content: './refuse_reason.html' + }); + return false; + }); + + + window.getInfo = function (data) { + initInfo(); + } }); diff --git a/WebRoot/view/tb/zbdc/examine/examine_search_xx.html b/WebRoot/view/tb/zbdc/examine/examine_search_xx.html index 31b415ff..29e8471c 100644 --- a/WebRoot/view/tb/zbdc/examine/examine_search_xx.html +++ b/WebRoot/view/tb/zbdc/examine/examine_search_xx.html @@ -83,10 +83,10 @@
diff --git a/WebRoot/view/tb/zbdc/examine/refuse_reason.html b/WebRoot/view/tb/zbdc/examine/refuse_reason.html new file mode 100644 index 00000000..f81463e4 --- /dev/null +++ b/WebRoot/view/tb/zbdc/examine/refuse_reason.html @@ -0,0 +1,101 @@ + + + + + + + + + + + + + + +
+ +
+ +
+ 长春市教育技术装备管理员 +
+
+ + +
+ +
+ +
+
+ + +
+ +
+ +
+
+ + +
+ + + + + + + + + + + + \ No newline at end of file diff --git a/WebRoot/view/tb/zbdc/examine/th_school.html b/WebRoot/view/tb/zbdc/examine/th_school.html index 6437395b..26ed473c 100644 --- a/WebRoot/view/tb/zbdc/examine/th_school.html +++ b/WebRoot/view/tb/zbdc/examine/th_school.html @@ -231,7 +231,7 @@ time: 1200 }, function () { parent.layer.close(parent.layer.getFrameIndex(window.name)); - parent.refresh(); + parent.getInfo(); }); } else { layer.msg(result.message, {