activity_statistic.html 17 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466
  1. <!DOCTYPE HTML>
  2. <html xmlns:th="http://www.thymeleaf.org"
  3. xmlns:layout="http://www.ultraq.net.nz/thymeleaf/layout"
  4. layout:decorate="~{admin/common/common}">
  5. <head>
  6. <title>活动管理活动统计</title>
  7. <style>
  8. .tabCon {
  9. padding-top: 30px;
  10. }
  11. .highcharts-credits {
  12. display: none;
  13. }
  14. .shaixuan {
  15. margin-top: 20px;
  16. }
  17. .shaixuan .row {
  18. margin-bottom: 20px;
  19. }
  20. </style>
  21. </head>
  22. <body layout:fragment="content">
  23. <div class="page-container">
  24. <div id="tab-system" class="HuiTab">
  25. <div class="tabBar cl">
  26. <span class="aa current">活动热度</span>
  27. <span class="aa">阅读数对比</span>
  28. <span class="aa">报名数对比</span>
  29. <span class="aa">签到数对比</span>
  30. <span class="aa">反馈数对比</span>
  31. <span class="aa">活动趋势对比</span>
  32. </div>
  33. <div>
  34. <div class="tabCon" style="display: block;">
  35. <!--<p>2018年活动热度对比情况<button class="btn btn-primary radius">pdf导出</button></p>-->
  36. <div id="container" style="min-width:700px;height:400px"></div>
  37. <div class="shaixuan">
  38. <div class="row cl">
  39. <label class="form-label col-xs-4 col-sm-2" style="text-align: right"><span>时间维度:</span></label>
  40. <div class="formControls col-xs-8 col-sm-9">
  41. <input type="text" class="input-text" id="start_date" name="start_date" style="width:200px;"/> --
  42. <input type="text" class="input-text" id="end_date" name="end_date" style="width:200px;"/>
  43. </div>
  44. </div>
  45. <div class="row cl">
  46. <label class="form-label col-xs-4 col-sm-2" style="text-align: right"><span>分类对比:</span></label>
  47. <div class="formControls col-xs-8 col-sm-9">
  48. <span class="btn btn-defalut radius">全部分类</span>
  49. <span class="btn btn-defalut radius">类别1</span>
  50. <span class="btn btn-defalut radius">类别2</span>
  51. <span class="btn btn-defalut radius">类别3</span>
  52. <span class="btn btn-defalut radius">类别4</span>
  53. </div>
  54. </div>
  55. <div class="row cl" style="text-align: center">
  56. <span class="btn btn-primary radius">返回</span>
  57. </div>
  58. </div>
  59. </div>
  60. <div class="tabCon">
  61. <div id="container2" style="min-width:700px;height:400px"></div>
  62. <div class="shaixuan">
  63. <div class="row cl">
  64. <label class="form-label col-xs-4 col-sm-2" style="text-align: right"><span>时间维度:</span></label>
  65. <div class="formControls col-xs-8 col-sm-9">
  66. <input type="text" class="input-text" id="start_date" name="start_date" style="width:200px;"/> --
  67. <input type="text" class="input-text" id="end_date" name="end_date" style="width:200px;"/>
  68. </div>
  69. </div>
  70. <div class="row cl" style="text-align: center">
  71. <span class="btn btn-primary radius">返回</span>
  72. </div>
  73. </div>
  74. </div>
  75. <div class="tabCon">
  76. <div id="container3" style="min-width:700px;height:400px"></div>
  77. <div class="shaixuan">
  78. <div class="row cl">
  79. <label class="form-label col-xs-4 col-sm-2" style="text-align: right"><span>时间维度:</span></label>
  80. <div class="formControls col-xs-8 col-sm-9">
  81. <input type="text" class="input-text" id="start_date" name="start_date" style="width:200px;"/> --
  82. <input type="text" class="input-text" id="end_date" name="end_date" style="width:200px;"/>
  83. </div>
  84. </div>
  85. <div class="row cl" style="text-align: center">
  86. <span class="btn btn-primary radius">返回</span>
  87. </div>
  88. </div>
  89. </div>
  90. <div class="tabCon">
  91. <div id="container4" style="min-width:700px;height:400px"></div>
  92. <div class="shaixuan">
  93. <div class="row cl">
  94. <label class="form-label col-xs-4 col-sm-2" style="text-align: right"><span>时间维度:</span></label>
  95. <div class="formControls col-xs-8 col-sm-9">
  96. <input type="text" class="input-text" id="start_date" name="start_date" style="width:200px;"/> --
  97. <input type="text" class="input-text" id="end_date" name="end_date" style="width:200px;"/>
  98. </div>
  99. </div>
  100. <div class="row cl" style="text-align: center">
  101. <span class="btn btn-primary radius">返回</span>
  102. </div>
  103. </div>
  104. </div>
  105. <div class="tabCon">
  106. <div id="container5" style="min-width:700px;height:400px"></div>
  107. <div class="shaixuan">
  108. <div class="row cl">
  109. <label class="form-label col-xs-4 col-sm-2" style="text-align: right"><span>时间维度:</span></label>
  110. <div class="formControls col-xs-8 col-sm-9">
  111. <input type="text" class="input-text" id="start_date" name="start_date" style="width:200px;"/> --
  112. <input type="text" class="input-text" id="end_date" name="end_date" style="width:200px;"/>
  113. </div>
  114. </div>
  115. <div class="row cl" style="text-align: center">
  116. <span class="btn btn-primary radius">返回</span>
  117. </div>
  118. </div>
  119. </div>
  120. <div class="tabCon">
  121. <div id="container6" style="min-width:700px;height:400px"></div>
  122. <div class="shaixuan">
  123. <div class="row cl">
  124. <label class="form-label col-xs-4 col-sm-2" style="text-align: right"><span>时间维度:</span></label>
  125. <div class="formControls col-xs-8 col-sm-9">
  126. <input type="text" class="input-text" id="start_date" name="start_date" style="width:200px;"/> --
  127. <input type="text" class="input-text" id="end_date" name="end_date" style="width:200px;"/>
  128. </div>
  129. </div>
  130. <div class="row cl">
  131. <label class="form-label col-xs-4 col-sm-2" style="text-align: right"><span>活动类别:</span></label>
  132. <div class="formControls col-xs-8 col-sm-9">
  133. <span class="select-box" style="width: 200px;">
  134. <select th:id="type" class="select" th:name="type" >
  135. <option value="">全部类别</option>
  136. <option>类别1</option>
  137. <option>类别2</option>
  138. <option>类别3</option>
  139. </select>
  140. </span>
  141. </div>
  142. </div>
  143. <div class="row cl" style="text-align: center">
  144. <span class="btn btn-primary radius">返回</span>
  145. </div>
  146. </div>
  147. </div>
  148. </div>
  149. </div>
  150. </div>
  151. <script type="text/javascript" th:src="@{/js/lib/highcharts/highcharts.js}"></script>
  152. <script type="text/javascript" th:src="@{/js/lib/highcharts/exporting.js}"></script>
  153. <script>
  154. $(function () {
  155. //活动热度对比
  156. $('#container').highcharts({
  157. chart: {
  158. type: 'column'
  159. },
  160. title: {
  161. text: '2018年活动热度对比情况'
  162. },
  163. // subtitle: {
  164. // text: 'Source: WorldClimate.com'
  165. // },
  166. xAxis: {
  167. categories: [
  168. '类别1',
  169. '类别2',
  170. '类别3',
  171. '类别4'
  172. ]
  173. },
  174. yAxis: {
  175. min: 0,
  176. title: {
  177. text: ''
  178. }
  179. },
  180. tooltip: {
  181. headerFormat: '<span style="font-size:10px">{point.key}</span><table>',
  182. pointFormat: '<tr><td style="color:{series.color};padding:0">{series.name}: </td>' +
  183. '<td style="padding:0"><b>{point.y:.1f} </b></td></tr>',
  184. footerFormat: '</table>',
  185. shared: true,
  186. useHTML: true
  187. },
  188. plotOptions: {
  189. column: {
  190. pointPadding: 0.2,
  191. borderWidth: 0
  192. }
  193. },
  194. series: [{
  195. name: '发布量',
  196. data: [49.9, 71.5, 106.4, 129.2]
  197. }, {
  198. name: '参与量',
  199. data: [42.4, 33.2, 34.5, 39.7]
  200. }]
  201. });
  202. //阅读量对比图
  203. $('#container2').highcharts({
  204. chart: {
  205. type: 'column',
  206. inverted: true
  207. },
  208. title: {
  209. text: '2018年阅读量对比图'
  210. },
  211. // subtitle: {
  212. // text: 'Source: WorldClimate.com'
  213. // },
  214. xAxis: {
  215. categories: [
  216. '活动1',
  217. '活动2',
  218. '活动3',
  219. '活动4',
  220. '活动5',
  221. '活动6'
  222. ]
  223. },
  224. yAxis: {
  225. min: 0,
  226. title: {
  227. text: ''
  228. }
  229. },
  230. tooltip: {
  231. headerFormat: '<span style="font-size:10px">{point.key}</span><table>',
  232. pointFormat: '<tr><td style="color:{series.color};padding:0">{series.name}: </td>' +
  233. '<td style="padding:0"><b>{point.y:.1f} </b></td></tr>',
  234. footerFormat: '</table>',
  235. shared: true,
  236. useHTML: true
  237. },
  238. plotOptions: {
  239. column: {
  240. pointPadding: 0.2,
  241. borderWidth: 0
  242. }
  243. },
  244. series: [{
  245. name: '阅读数',
  246. data: [49.9, 71.5, 106.4, 129.2, 178.9, 45.8]
  247. }]
  248. });
  249. //报名数对比图
  250. $('#container3').highcharts({
  251. chart: {
  252. type: 'column',
  253. inverted: true
  254. },
  255. title: {
  256. text: '2018年报名数对比图'
  257. },
  258. // subtitle: {
  259. // text: 'Source: WorldClimate.com'
  260. // },
  261. xAxis: {
  262. categories: [
  263. '活动1',
  264. '活动2',
  265. '活动3',
  266. '活动4',
  267. '活动5',
  268. '活动6'
  269. ]
  270. },
  271. yAxis: {
  272. min: 0,
  273. title: {
  274. text: ''
  275. }
  276. },
  277. tooltip: {
  278. headerFormat: '<span style="font-size:10px">{point.key}</span><table>',
  279. pointFormat: '<tr><td style="color:{series.color};padding:0">{series.name}: </td>' +
  280. '<td style="padding:0"><b>{point.y:.1f} </b></td></tr>',
  281. footerFormat: '</table>',
  282. shared: true,
  283. useHTML: true
  284. },
  285. plotOptions: {
  286. column: {
  287. pointPadding: 0.2,
  288. borderWidth: 0
  289. }
  290. },
  291. series: [{
  292. name: '报名数',
  293. data: [49.9, 71.5, 106.4, 129.2, 178.9, 45.8]
  294. }]
  295. });
  296. //签到数对比图
  297. $('#container4').highcharts({
  298. chart: {
  299. type: 'column',
  300. inverted: true
  301. },
  302. title: {
  303. text: '2018年签到数对比图'
  304. },
  305. // subtitle: {
  306. // text: 'Source: WorldClimate.com'
  307. // },
  308. xAxis: {
  309. categories: [
  310. '活动1',
  311. '活动2',
  312. '活动3',
  313. '活动4',
  314. '活动5',
  315. '活动6'
  316. ]
  317. },
  318. yAxis: {
  319. min: 0,
  320. title: {
  321. text: ''
  322. }
  323. },
  324. tooltip: {
  325. headerFormat: '<span style="font-size:10px">{point.key}</span><table>',
  326. pointFormat: '<tr><td style="color:{series.color};padding:0">{series.name}: </td>' +
  327. '<td style="padding:0"><b>{point.y:.1f} </b></td></tr>',
  328. footerFormat: '</table>',
  329. shared: true,
  330. useHTML: true
  331. },
  332. plotOptions: {
  333. column: {
  334. pointPadding: 0.2,
  335. borderWidth: 0
  336. }
  337. },
  338. series: [{
  339. name: '签到数',
  340. data: [49.9, 71.5, 106.4, 129.2, 178.9, 45.8]
  341. }]
  342. });
  343. //反馈数对比图
  344. $('#container5').highcharts({
  345. chart: {
  346. type: 'column',
  347. inverted: true
  348. },
  349. title: {
  350. text: '2018年反馈数对比图'
  351. },
  352. // subtitle: {
  353. // text: 'Source: WorldClimate.com'
  354. // },
  355. xAxis: {
  356. categories: [
  357. '活动1',
  358. '活动2',
  359. '活动3',
  360. '活动4',
  361. '活动5',
  362. '活动6'
  363. ]
  364. },
  365. yAxis: {
  366. min: 0,
  367. title: {
  368. text: ''
  369. }
  370. },
  371. tooltip: {
  372. headerFormat: '<span style="font-size:10px">{point.key}</span><table>',
  373. pointFormat: '<tr><td style="color:{series.color};padding:0">{series.name}: </td>' +
  374. '<td style="padding:0"><b>{point.y:.1f} </b></td></tr>',
  375. footerFormat: '</table>',
  376. shared: true,
  377. useHTML: true
  378. },
  379. plotOptions: {
  380. column: {
  381. pointPadding: 0.2,
  382. borderWidth: 0
  383. }
  384. },
  385. series: [{
  386. name: '反馈数',
  387. data: [49.9, 71.5, 106.4, 129.2, 178.9, 45.8]
  388. }]
  389. });
  390. //活动趋势对比图
  391. $('#container6').highcharts({
  392. title: {
  393. text: '2018年活动趋势对比图',
  394. x: -20 //center
  395. },
  396. // subtitle: {
  397. // text: 'Source: WorldClimate.com',
  398. // x: -20
  399. // },
  400. xAxis: {
  401. categories: ['一月', '二月', '三月', '四月', '五月', '六月','七月', '八月', '九月', '十月', '十一月', '十二月']
  402. },
  403. yAxis: {
  404. title: {
  405. text: ''
  406. },
  407. plotLines: [{
  408. value: 0,
  409. width: 1,
  410. color: '#808080'
  411. }]
  412. },
  413. tooltip: {
  414. valueSuffix: ''
  415. },
  416. legend: {
  417. layout: 'vertical',
  418. align: 'right',
  419. verticalAlign: 'middle',
  420. borderWidth: 0
  421. },
  422. series: [{
  423. name: '阅读数',
  424. data: [7.0, 6.9, 9.5, 14.5, 18.2, 21.5, 25.2, 26.5, 23.3, 18.3, 13.9, 9.6]
  425. }, {
  426. name: '报名数',
  427. data: [0.2, 0.8, 5.7, 11.3, 17.0, 22.0, 24.8, 24.1, 20.1, 14.1, 8.6, 2.5]
  428. }, {
  429. name: '签到数',
  430. data: [0.3, 0.6, 3.5, 8.4, 13.5, 17.0, 18.6, 17.9, 14.3, 9.0, 3.9, 1.0]
  431. }, {
  432. name: '反馈数',
  433. data: [3.9, 4.2, 5.7, 8.5, 11.9, 15.2, 17.0, 16.6, 100, 10.3, 6.6, 4.8]
  434. }]
  435. });
  436. // $("#tab-system").Huitab({
  437. // index:0
  438. // });
  439. // tab切换
  440. tabChange(".tabBar",".tabCon");
  441. laydate.render({
  442. elem: '#start_date', //指定元素
  443. min: 0
  444. });
  445. laydate.render({
  446. elem: '#end_date', //指定元素
  447. min: 0
  448. });
  449. })
  450. </script>
  451. </body>
  452. </html>