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

widgets.html 9.8KB

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