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.
 
 
 
 
 
 

58 lines
2.0 KiB

  1. /* * 版 本 Learun-ADMS-Ultimate V7.0.0 数字化智慧校园(http://www.learun.cn)
  2. * Copyright (c) 2013-2018 北京泉江科技有限公司
  3. * 创建人:超级管理员
  4. * 日 期:2019-04-23 15:50
  5. * 描 述:问卷管理
  6. */
  7. var refreshGirdData;
  8. var VID = request("VID");
  9. var EmpNo = request("EmpNo");
  10. var LessonNo = request("LessonNo");
  11. var bootstrap = function ($, learun) {
  12. "use strict";
  13. var page = {
  14. init: function () {
  15. $('.warpper').lrscroll();
  16. page.bind();
  17. },
  18. bind: function () {
  19. //单选框
  20. $('.shenInputBox').on('click',
  21. '.inputRadio',
  22. function () {
  23. if (!$(this).hasClass('active')) {
  24. $(this).addClass('active').parents('.shenInputBox').find('.inputRadio').not($(this))
  25. .removeClass('active');
  26. judgeRideo($(this));
  27. }
  28. });
  29. //多选框
  30. $('.inputCheck').click(function () {
  31. if ($(this).hasClass('active')) {
  32. $(this).removeClass('active');
  33. } else {
  34. $(this).addClass('active');
  35. }
  36. judgeRideo($(this));
  37. });
  38. //是否为其他选项判断
  39. function judgeRideo(obj) {
  40. var parents = obj.parents('.signSec2Box');
  41. var inputs = parents.find('.shenInput3');
  42. if (parents.find("i[hasinput='yes']").hasClass('active')) {
  43. inputs.css({ display: 'block' });
  44. } else {
  45. inputs.css({ display: 'none' });
  46. }
  47. }
  48. $('form').find("input.xuanze:checked").each(function (index, element) {
  49. if ($(this).attr("hasinput") == "yes") {
  50. $("#" + $(this).attr("id") + "Other").parents(".shenInput3").css({ display: 'block' });
  51. }
  52. });
  53. }
  54. };
  55. page.init();
  56. }