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.
 
 
 
 
 
 

249 rivejä
6.4 KiB

  1. var inSec3Row = $('.inSec3Row');
  2. var layer = null;
  3. layui.use('form', function() {
  4. layer = layui.layer;
  5. let form = layui.form;
  6. // form.render()
  7. //监听select选择 专业总览
  8. form.on('select', function(data) {
  9. //console.log(data);
  10. });
  11. });
  12. $(window).load(function() {
  13. //监测页面变化
  14. resizes()
  15. setTimeout(function() {
  16. resizes()
  17. }, 0)
  18. //导航栏
  19. $(".headModeList li").eq(0).removeClass("active");
  20. $(".headModeList li").eq(1).addClass("active");
  21. $(".headModeList li").eq(2).removeClass("active");
  22. $(".headModeTxt").find('span').html($(".headModeList li").eq(1).find('a').html());
  23. //右侧菜单显示隐藏
  24. $('.index_sec2').on('click', '.inSecLeftCon', function () {
  25. var ind = $(this).index();
  26. var parents = $(this).parents('.index_sec2');
  27. if (ind == 3) {
  28. parents.find('.inSec2TabBox').removeClass('active').eq(1).addClass('active').end().end().find('.inSec2Con').removeClass('active').eq(1).addClass('active').end().end().find('.inSec2Con')
  29. } else {
  30. parents.find('.inSec2TabBox').removeClass('active').eq(0).addClass('active').end().end().find('.inSec2Con').removeClass('active').eq(0).addClass('active').end().end().find('.inSec2Llist li').removeClass('active').eq(ind).addClass('active').end().end().find('.inSec3WorkBox').css('display', 'none').eq(ind).fadeIn();
  31. }
  32. parents.addClass('active')
  33. $('.indexSec3Box').css('paddingRight', '445px')
  34. }).on('click', '.aRight', function () {
  35. var parents = $(this).parents('.index_sec2');
  36. parents.removeClass('active');
  37. $('.indexSec3Box').css('paddingRight', '0')
  38. })
  39. //右侧tab切换
  40. $('.inSec2Tab').on('click', '.inSec2TabBox', function () {
  41. var ind = $(this).index();
  42. $(this).addClass('active').siblings().removeClass('active');
  43. $('.indexSec2Box .inSec2Con').removeClass('active').eq(ind).addClass('active');
  44. })
  45. //办公事项
  46. $('.inSec3Con').on('click', '.workList li', function() {
  47. if ($(this).hasClass('active')) return;
  48. var ind = $(this).index();
  49. $(this).addClass('active').siblings().removeClass('active').parents('.inSec3Con').find('.inSec3WorkBox').css(
  50. 'display', 'none').eq(ind).fadeIn();
  51. })
  52. //任务
  53. $('.inSec2Con').on('click', '.inSec2Llist li', function () {
  54. if ($(this).hasClass('active')) return;
  55. var ind = $(this).index();
  56. $(this).addClass('active').siblings().removeClass('active').parents('.inSec2Con').find('.inSec3WorkBox').css(
  57. 'display', 'none').eq(ind).fadeIn();
  58. }).on('click', '.indexSec2Li i', function (e) {
  59. //消息移除
  60. //阻止默认浏览器动作(W3C)
  61. if (e && e.preventDefault) {
  62. e.preventDefault();
  63. } else { //IE中阻止函数器默认动作的方式
  64. window.e.returnValue = false;
  65. }
  66. e.stopPropagation();
  67. var parents = $(this).parents('.indexSec2Li');
  68. parents.animate({ opacity: 0.2, left: '80%' }, 300, function () {
  69. parents.remove()
  70. })
  71. })
  72. //办公业务流量
  73. //serviceEchart()
  74. //专业总览
  75. //majorEchart()
  76. }).resize(function() {
  77. resizes()
  78. })
  79. function resizes() {
  80. }
  81. //专业总览
  82. //function majorEchart() {
  83. // var myChart5 = echarts.init(document.getElementById('major'));
  84. // option = {
  85. // tooltip: {
  86. // trigger: 'item',
  87. // formatter: '{b} : {c}'
  88. // },
  89. // series: [{
  90. // name: '专业学生',
  91. // type: 'pie',
  92. // radius: [60, 75],
  93. // center: ['50%', '50%'],
  94. // label: {
  95. // // show: true
  96. // show: false
  97. // },
  98. // color: ['#6C5CEA', '#57C5F5', '#E7C900', '#FF9C95', '#59D078', '#C97FEF', '#ECBD02', '#DF59B8', '#F6685E',
  99. // '#00E7B9', '#7A74F1', '#4A9ADE', '#33F0E5', '#ECBD02', '#DF59B8'
  100. // ],
  101. // // hoverAnimation: false,
  102. // data: [{
  103. // value: 10,
  104. // name: '物理',
  105. // },
  106. // {
  107. // value: 5,
  108. // name: '数学',
  109. // },
  110. // {
  111. // value: 15,
  112. // name: '化学',
  113. // },
  114. // {
  115. // value: 15,
  116. // name: '历史',
  117. // },
  118. // {
  119. // value: 5,
  120. // name: '医学',
  121. // },
  122. // {
  123. // value: 15,
  124. // name: '计算机',
  125. // },
  126. // {
  127. // value: 15,
  128. // name: '矿业',
  129. // }
  130. // ]
  131. // }, {
  132. // name: '班级总数',
  133. // type: 'pie',
  134. // radius: [50, 65],
  135. // center: ['17%', '50%'],
  136. // label: {
  137. // // show: true
  138. // show: false
  139. // },
  140. // color: ['#59D078', '#57C5F5', '#E7C900'],
  141. // // hoverAnimation: false,
  142. // data: [{
  143. // value: 10,
  144. // name: '班级总数',
  145. // }]
  146. // }, {
  147. // name: '专业教室',
  148. // type: 'pie',
  149. // radius: [50, 65],
  150. // center: ['83%', '50%'],
  151. // label: {
  152. // // show: true
  153. // show: false
  154. // },
  155. // color: ['#3E49E2', '#677BF5', '#67A0F5', '#E7C900'],
  156. // // hoverAnimation: false,
  157. // data: [{
  158. // value: 10,
  159. // name: '教室1',
  160. // }, {
  161. // value: 5,
  162. // name: '教室2',
  163. // }, {
  164. // value: 20,
  165. // name: '教室3',
  166. // }, {
  167. // value: 30,
  168. // name: '教室4',
  169. // }]
  170. // }, ]
  171. // };
  172. // // 使用刚指定的配置项和数据显示图表。
  173. // myChart5.setOption(option);
  174. // window.addEventListener("resize", function() {
  175. // myChart5.resize();
  176. // });
  177. //}
  178. //办公业务流量
  179. //function serviceEchart() {
  180. // // 基于准备好的dom,初始化echarts实例
  181. // myChart2 = echarts.init(document.getElementById('serviceEchart'));
  182. // option = {
  183. // tooltip: {
  184. // trigger: 'axis'
  185. // },
  186. // color: ['#CB0005', '#EF9116', '#466AD2', '#7408A6', '#0CB5C4', '#DEBC03', '#0BB56C', '#CB1FA1'],
  187. // legend: {
  188. // data: ['语文'],
  189. // icon: "circle",
  190. // itemWidth: 7,
  191. // right: '40px',
  192. // top: '20px'
  193. // },
  194. // grid: {
  195. // left: '3%',
  196. // right: '3%',
  197. // bottom: '3%',
  198. // top: '23%',
  199. // containLabel: true
  200. // },
  201. // xAxis: {
  202. // type: 'category',
  203. // name: '星期',
  204. // boundaryGap: false,
  205. // data: ['周一', '周二', '周三', '周四', '周五', '周六', '周日'],
  206. // formatter: function(params) {
  207. // console.log(params)
  208. // // return params[0].name + ' : ' + params[0].value + ' 小时';
  209. // },
  210. // },
  211. // yAxis: {
  212. // type: 'value',
  213. // name: '办公量',
  214. // },
  215. // series: [{
  216. // name: '办公量',
  217. // type: 'line',
  218. // stack: '总量',
  219. // // lineStyle: {
  220. // // color: '#000'
  221. // // },
  222. // data: [120, 132, 101, 134, 90, 230, 210]
  223. // }]
  224. // };
  225. // // 使用刚指定的配置项和数据显示图表。
  226. // myChart2.setOption(option);
  227. // window.addEventListener("resize", function() {
  228. // myChart2.resize();
  229. // });
  230. //}