周口人民医院呼叫中心前端

widgets.html 10KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <meta charset="utf-8">
  5. <meta name="viewport" content="width=device-width, initial-scale=1.0">
  6. <script src="./Script/Common/huayi.load.js"></script>
  7. <script src="./Script/Common/huayi.config.js"></script>
  8. <link rel="stylesheet" href="css/widgets/widgets.css" />
  9. <style>
  10. @font-face {
  11. font-family: 'iconfont';
  12. src: url('fonts/iconfont.eot');
  13. /* IE9*/
  14. src: url('fonts/iconfont.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */
  15. url('fonts/iconfont.woff') format('woff'), /* chrome、firefox */
  16. url('fonts/iconfont.ttf') format('truetype'), /* chrome、firefox、opera、Safari, Android, iOS 4.2+*/
  17. url('fonts/iconfont.svg#iconfont') format('svg');
  18. /* iOS 4.1- */
  19. }
  20. .iconfont {
  21. font-family: "iconfont";
  22. font-size: 40px;
  23. font-style: normal;
  24. }
  25. </style>
  26. </head>
  27. <body class="gray-bg">
  28. <div class="wrapper wrapper-content animated fadeInRight">
  29. <div class="row">
  30. <div class="col-sm-3">
  31. <div class="widget style1 bc">
  32. <div class="row row-1">
  33. <div class="col-xs-3 text-center">
  34. <i class="fa iconfont fa-4x-1">&#xe3a2;</i>
  35. <!--<i class="fa iconfont fa-4x bg_black">&#xe3a2;</i>-->
  36. </div>
  37. <div class="mins-left">
  38. <h2 class="size-16 jg min_bottom">医疗随访</h2>
  39. <h2 class="font-bold size-15 min_bottom">99条</h2>
  40. </div>
  41. </div>
  42. </div>
  43. </div>
  44. <div class="col-sm-3">
  45. <div class="widget style1 bc ">
  46. <div class="row row-2">
  47. <div class="col-xs-3">
  48. <i class="fa iconfont fa-4x-2">&#xe3ad;</i>
  49. </div>
  50. <div class="mins-left">
  51. <h2 class="size-16 jg min_bottom">预约咨询</h2>
  52. <h3 class="font-bold size-15 ">66条</h3>
  53. </div>
  54. </div>
  55. </div>
  56. </div>
  57. <div class="col-sm-3">
  58. <div class="widget style1 bc">
  59. <div class="row row-3">
  60. <div class="col-xs-3">
  61. <i class="fa iconfont fa-4x-3">&#xe3a9;</i>
  62. </div>
  63. <div class="mins-left">
  64. <h2 class="size-16 jg min_bottom">科研随访</h2>
  65. <h3 class="font-bold size-15 ">66条</h3>
  66. </div>
  67. </div>
  68. </div>
  69. </div>
  70. <div class="col-sm-3">
  71. <div class="widget style1 bc ">
  72. <div class="row row-4">
  73. <div class="col-xs-3">
  74. <i class="fa iconfont fa-4x-4">&#xe3a8;</i>
  75. </div>
  76. <div class="mins-left">
  77. <h2 class="size-16 jg min_bottom">自助服务</h2>
  78. <h3 class="font-bold size-15 ">66条</h3>
  79. </div>
  80. </div>
  81. </div>
  82. </div>
  83. </div>
  84. <div class="row">
  85. <div class="col-sm-12" style="width: 100%; margin-bottom: 30px;">
  86. <div class="left_box rows num_box">
  87. <!--<b class="rowTitle">工单信息</b>-->
  88. <div id="main1" style="text-align: center; margin-top: 30px; width: 100%; height: 300px;">
  89. <!--<div class="flot-chart-content" id="flot-line-chart" style='height: 300px;'></div>-->
  90. </div>
  91. </div>
  92. </div>
  93. </div>
  94. <div class="row">
  95. <div class="col-sm-4" style=" width: 34%; margin-top: 30px;">
  96. <div class="ibox-content">
  97. <div class="ibox float-e-margins">
  98. <!--<div class="ibox-title border_top padding-left-min">
  99. <div class=" margin-tops">
  100. <h3>去年同月相比<strong> ↑ 4.3%</strong></h3>
  101. <h3 class="size-20">↑ <strong>4.3%</strong></h3>
  102. </div>
  103. </div>-->
  104. <div style="width: 100%;">
  105. <div id="main3" style='height: 200px; width: 80%;'></div>
  106. </div>
  107. </div>
  108. </div>
  109. </div>
  110. <div class="col-sm-4" style=" width: 33%; margin-top: 30px;">
  111. <div class="ibox-content">
  112. <div class="ibox float-e-margins">
  113. <div style="width: 100%;">
  114. <div id="main2" style='height: 200px; width: 100%;'></div>
  115. </div>
  116. </div>
  117. </div>
  118. </div>
  119. <div class="col-sm-4" style=" width: 33%; margin-top: 30px;">
  120. <div class="ibox-content">
  121. <div class="float-e-margins">
  122. <div style="width: 100%;">
  123. <div id="main4" style='height: 220px; width: 100%; margin-top: 20px;'></div>
  124. </div>
  125. </div>
  126. </div>
  127. </div>
  128. </div>
  129. </div>
  130. <script src="./js/jquery-ui-1.10.4.min.js"></script>
  131. <script src="./js/content.min.js?v=1.0.0"></script>
  132. <script src="./js/echarts.common.min.js"></script>
  133. <script src="js/echarts.min.js"></script>
  134. <script src="https://img.hcharts.cn/highcharts/highcharts.js"></script>
  135. <script src="https://img.hcharts.cn/highcharts-plugins/highcharts-zh_CN.js"></script>
  136. <script>
  137. var myChart1 = echarts.init(document.getElementById('main1'));
  138. // 指定图表的配置项和数据
  139. var option1 = {
  140. title: {
  141. text: '医院随访折线图',
  142. x: 'center',
  143. y: 15,
  144. },
  145. xAxis: {
  146. type: 'category',
  147. data: ['星期一', '星期二', '星期三', '星期四', '星期五', '星期六', '星期日']
  148. },
  149. yAxis: {
  150. type: 'value'
  151. },
  152. series: [{
  153. name: '随访量',
  154. data: [40, 30, 50, 80, 100, 80, 110],
  155. type: 'line'
  156. }]
  157. };
  158. // 使用刚指定的配置项和数据显示图表。
  159. myChart1.setOption(option1);
  160. // 图标二
  161. var myChart2 = echarts.init(document.getElementById('main2'));
  162. // 指定图表的配置项和数据
  163. var option2 = {
  164. title: {
  165. text: '各类随访汇总图',
  166. x: 'left'
  167. },
  168. tooltip: {
  169. trigger: 'item',
  170. formatter: "{a} <br/>{b} : {c} ({d}%)"
  171. },
  172. legend: {
  173. x: 'center',
  174. y: 'bottom',
  175. data: ['医疗随访', '预约咨询', '科研随访', '自助服务', '客服工单']
  176. },
  177. // toolbox: {
  178. // show: true,
  179. // feature: {
  180. // mark: {
  181. // show: true
  182. // },
  183. // dataView: {
  184. // show: true,
  185. // readOnly: false
  186. // },
  187. // magicType: {
  188. // show: true,
  189. // type: ['pie', 'funnel']
  190. // },
  191. // restore: {
  192. // show: true
  193. // },
  194. // saveAsImage: {
  195. // show: true
  196. // }
  197. // }
  198. // },
  199. calculable: true,
  200. series: [{
  201. name: '所占百分比',
  202. type: 'pie',
  203. radius: [20, 50],
  204. center: ['50%', '50%'],
  205. roseType: 'radius',
  206. label: {
  207. normal: {
  208. show: false
  209. },
  210. emphasis: {
  211. show: true
  212. }
  213. },
  214. lableLine: {
  215. normal: {
  216. show: false
  217. },
  218. emphasis: {
  219. show: true
  220. }
  221. },
  222. data: [{
  223. value: 5,
  224. name: '医疗随访'
  225. },
  226. {
  227. value: 1,
  228. name: '预约咨询'
  229. },
  230. {
  231. value: 10,
  232. name: '科研随访'
  233. },
  234. {
  235. value: 15,
  236. name: '自助服务'
  237. },
  238. {
  239. value: 20,
  240. name: '医生随访'
  241. },
  242. {
  243. value: 25,
  244. name: '客服工单'
  245. }
  246. ]
  247. }]
  248. };
  249. // 使用刚指定的配置项和数据显示图表。
  250. myChart2.setOption(option2);
  251. // 图3
  252. var myChart3 = echarts.init(document.getElementById('main3'));
  253. // 指定图表的配置项和数据
  254. var option3 = {
  255. title: {
  256. text: '随访总概图'
  257. },
  258. tooltip: {
  259. trigger: 'axis'
  260. },
  261. legend: {
  262. x: 'center',
  263. data: ['某软件', '某主食手机', '某水果手机', '降水量', '蒸发量']
  264. },
  265. radar: [{
  266. indicator: [{
  267. text: '通话次数',
  268. max: 100
  269. },
  270. {
  271. text: '随访次数',
  272. max: 100
  273. },
  274. {
  275. text: '工单数量',
  276. max: 100
  277. },
  278. {
  279. text: '预约次数',
  280. max: 100
  281. },
  282. {
  283. text: '出诊次数',
  284. max: 100
  285. },
  286. {
  287. text: '问卷调查',
  288. max: 100
  289. }
  290. ],
  291. center: ['50%', '55%'],
  292. radius: 60
  293. }],
  294. series: [{
  295. type: 'radar',
  296. tooltip: {
  297. trigger: 'item'
  298. },
  299. itemStyle: {
  300. normal: {
  301. areaStyle: {
  302. type: 'default'
  303. }
  304. }
  305. },
  306. data: [{
  307. value: [60, 73, 85, 40, 30, 50, ],
  308. // name: '某软件'
  309. }]
  310. }]
  311. };
  312. // 使用刚指定的配置项和数据显示图表。
  313. myChart3.setOption(option3);
  314. //图四
  315. // 指定图表的配置项和数据
  316. var myChart4 = echarts.init(document.getElementById('main4'));
  317. var dataAxis = ['1', '2', '3', '4', '5', '6', '7', '8', '9', '10'];
  318. var data = [20, 10, 8, 30, 18, 15, 13, 11, 10, 22];
  319. var yMax = 40;
  320. var dataShadow = [];
  321. for (var i = 0; i < data.length; i++) {
  322. dataShadow.push(yMax);
  323. }
  324. var option4 = {
  325. title: {
  326. text: '近10天出诊车辆随访柱状图',
  327. },
  328. xAxis: {
  329. data: dataAxis,
  330. axisLabel: {
  331. inside: true,
  332. textStyle: {
  333. color: '#fff'
  334. }
  335. },
  336. axisTick: {
  337. show: false
  338. },
  339. axisLine: {
  340. show: false
  341. },
  342. z: 10
  343. },
  344. yAxis: {
  345. axisLine: {
  346. show: false
  347. },
  348. axisTick: {
  349. show: false
  350. },
  351. axisLabel: {
  352. textStyle: {
  353. color: '#999'
  354. }
  355. }
  356. },
  357. dataZoom: [{
  358. type: 'inside'
  359. }],
  360. series: [{ // For shadow
  361. type: 'bar',
  362. itemStyle: {
  363. normal: {
  364. color: 'rgba(0,0,0,0.05)'
  365. }
  366. },
  367. barGap: '-100%',
  368. barCategoryGap: '40%',
  369. data: dataShadow,
  370. animation: false
  371. },
  372. {
  373. type: 'bar',
  374. itemStyle: {
  375. normal: {
  376. color: new echarts.graphic.LinearGradient(
  377. 0, 0, 0, 1, [{
  378. offset: 0,
  379. color: '#83bff6'
  380. },
  381. {
  382. offset: 0.5,
  383. color: '#188df0'
  384. },
  385. {
  386. offset: 1,
  387. color: '#188df0'
  388. }
  389. ]
  390. )
  391. },
  392. emphasis: {
  393. color: new echarts.graphic.LinearGradient(
  394. 0, 0, 0, 1, [{
  395. offset: 0,
  396. color: '#2378f7'
  397. },
  398. {
  399. offset: 0.7,
  400. color: '#2378f7'
  401. },
  402. {
  403. offset: 1,
  404. color: '#83bff6'
  405. }
  406. ]
  407. )
  408. }
  409. },
  410. data: data
  411. }
  412. ]
  413. };
  414. // Enable data zoom when user click bar.
  415. var zoomSize = 10;
  416. myChart4.on('click', function (params) {
  417. console.log(dataAxis[Math.max(params.dataIndex - zoomSize / 2, 0)]);
  418. myChart.dispatchAction({
  419. type: 'dataZoom',
  420. startValue: dataAxis[Math.max(params.dataIndex - zoomSize / 2, 0)],
  421. endValue: dataAxis[Math.min(params.dataIndex + zoomSize / 2, data.length - 1)]
  422. });
  423. });
  424. // 使用刚指定的配置项和数据显示图表。
  425. myChart4.setOption(option4);
  426. </script>
  427. </body>
  428. </html>