Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.
 
 
 
 
 
 

246 lignes
5.9 KiB

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