fzfx.html 30 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205
  1. <!DOCTYPE html>
  2. <html lang="zh">
  3. <head>
  4. <meta charset="utf-8">
  5. <title>繁殖综合分析</title>
  6. <link href="css/common.css" rel="stylesheet">
  7. <link href="css/fzfx.css" rel="stylesheet">
  8. <link href="css/scrollBar.css" rel="stylesheet">
  9. <script type="text/javascript" src="js/echarts.min.js"></script>
  10. <script type="text/javascript" src="js/jquery-2.2.4.min.js"></script>
  11. </head>
  12. <body>
  13. <div class="header-wrapper">
  14. <div class="title">
  15. 智能化综合管理平台
  16. <svg version="1.1" width="900" height='100'>
  17. <polygon points="0,0 75,100 114,100 135,82 765,82 786,100 825,100 900,0" style="fill:transparent;stroke:#69F8FE;stroke-width:2" />
  18. </svg>
  19. </div>
  20. <div class="nav-bar">
  21. <a class="item " href="index.html">首页</a>
  22. <a class="item active" href="fzfx.html">生产管理</a>
  23. <a class="item" href="swfk.html">生物防控</a>
  24. <a class="item" href="spjk.html">视频监控</a>
  25. <a class="item" href="hbjc.html">环保监测</a>
  26. </div>
  27. </div>
  28. <div class="grid-wrapper">
  29. <div class="left">
  30. <div class="wrapper left-side-bar">
  31. <div class="tab-t">
  32. <div class="tab-title">母猪存栏</div>
  33. </div>
  34. <div class="calendar">
  35. <div class="tabs" id="calendarTabs">
  36. <div class="tab active">日历</div>
  37. <div class="tab">周历</div>
  38. <div class="tab">月历</div>
  39. </div>
  40. <div id="calendarWrapper">
  41. <div class="calendar-wrapper" style="display: block;">
  42. <div id="calendar-dayly"></div>
  43. </div>
  44. <div class="calendar-wrapper">
  45. <div id="calendar-weekly"></div>
  46. </div>
  47. <div class="calendar-wrapper">
  48. <div id="calendar-monthly"></div>
  49. </div>
  50. </div>
  51. </div>
  52. <div id="chartLeft1">
  53. <div class='chart-tab-t'>
  54. <div class="chart-tab-title">存栏分布</div>
  55. </div>
  56. <div id="chart-clfb"></div>
  57. </div>
  58. <div id="chartLeft2">
  59. <div class='chart-tab-t'>
  60. <div class="chart-tab-title">胎次情况</div>
  61. </div>
  62. <div id="chart-tcqk"></div>
  63. </div>
  64. <div class='left-side-table'>
  65. <table id='table-clfb' border='1' cellpadding='0' cellspacing='0' width="100%">
  66. <thead>
  67. <tr>
  68. <th>区域</th>
  69. <th>单元</th>
  70. <th colspan='4'>数量</th>
  71. </tr>
  72. </thead>
  73. <tbody>
  74. <tr>
  75. <td rowspan='2'>后备舍</td>
  76. <td>单元1</td>
  77. <td colspan='4'>23</td>
  78. </tr>
  79. <tr>
  80. <td>单元2</td>
  81. <td colspan='4'>25</td>
  82. </tr>
  83. <tr>
  84. <td colspan='2'></td>
  85. <td>配种</td>
  86. <td>怀孕</td>
  87. <td>返情</td>
  88. <td>流产</td>
  89. </tr>
  90. <tr>
  91. <td rowspan='4'>配怀舍</td>
  92. <td>单元1</td>
  93. <td>12</td>
  94. <td>32</td>
  95. <td>11</td>
  96. <td>11</td>
  97. </tr>
  98. <tr>
  99. <td>单元2</td>
  100. <td>12</td>
  101. <td>32</td>
  102. <td>11</td>
  103. <td>11</td>
  104. </tr>
  105. <tr>
  106. <td>单元3</td>
  107. <td>12</td>
  108. <td>32</td>
  109. <td>11</td>
  110. <td>11</td>
  111. </tr>
  112. <tr>
  113. <td>单元4</td>
  114. <td>12</td>
  115. <td>32</td>
  116. <td>11</td>
  117. <td>11</td>
  118. </tr>
  119. <tr>
  120. <td colspan='2'></td>
  121. <td>待产</td>
  122. <td>哺乳</td>
  123. <td colspan='2'>断奶</td>
  124. </tr>
  125. <tr>
  126. <td rowspan='5'>分娩舍</td>
  127. <td>单元1</td>
  128. <td>12</td>
  129. <td>32</td>
  130. <td colspan='2'>11</td>
  131. </tr>
  132. <tr>
  133. <td>单元2</td>
  134. <td>12</td>
  135. <td>32</td>
  136. <td colspan='2'>11</td>
  137. </tr>
  138. <tr>
  139. <td>单元3</td>
  140. <td>12</td>
  141. <td>32</td>
  142. <td colspan='2'>11</td>
  143. </tr>
  144. <tr>
  145. <td>单元4</td>
  146. <td>12</td>
  147. <td>32</td>
  148. <td colspan='2'>11</td>
  149. </tr>
  150. <tr>
  151. <td>单元5</td>
  152. <td>12</td>
  153. <td>32</td>
  154. <td colspan='2'>11</td>
  155. </tr>
  156. <tr>
  157. <td>单元4</td>
  158. <td>12</td>
  159. <td>32</td>
  160. <td colspan='2'>11</td>
  161. </tr>
  162. <tr>
  163. <td>单元5</td>
  164. <td>12</td>
  165. <td>32</td>
  166. <td colspan='2'>11</td>
  167. </tr>
  168. <tr>
  169. <td>单元4</td>
  170. <td>12</td>
  171. <td>32</td>
  172. <td colspan='2'>11</td>
  173. </tr>
  174. <tr>
  175. <td>单元5</td>
  176. <td>12</td>
  177. <td>32</td>
  178. <td colspan='2'>11</td>
  179. </tr>
  180. </tbody>
  181. </table>
  182. </div>
  183. </div>
  184. </div>
  185. <div class="center">
  186. <div class="wrapper">
  187. <div class="line1">
  188. <div class="cont">首页</div>
  189. <div class="division"></div>
  190. <div class="cont">2019-3-8</div>
  191. <div class="division"></div>
  192. </div>
  193. <div class="line2">
  194. <div class='wait-finish'>
  195. <img src="images/todo.png" alt="">
  196. <div class='wait-do'>待办</div>
  197. </div>
  198. <div class='cross-line'></div>
  199. <div class="list">
  200. <div class="item">
  201. <span class="title">待配种:</span>
  202. <span class="cont">262头,其中断奶21天未配91头头头头头头头头</span>
  203. </div>
  204. <div class="item">
  205. <span class="title">待配种:</span>
  206. <span class="cont">262头,其中断奶21天未配92头头头头头头头</span>
  207. </div>
  208. <div class="item">
  209. <span class="title">待配种:</span>
  210. <span class="cont">262头,其中断奶21天未配93头头头头头头头</span>
  211. </div>
  212. <div class="item">
  213. <span class="title">待配种:</span>
  214. <span class="cont">262头,其中断奶21天未配94头头头头头头头</span>
  215. </div>
  216. </div>
  217. </div>
  218. <div class="line3">
  219. <div id="chartCenter">
  220. <div class='chart-tab-t'>
  221. <div class="chart-tab-title">月度非生产天数</div>
  222. </div>
  223. <div id='chart-ydfscts'>
  224. </div>
  225. </div>
  226. </div>
  227. </div>
  228. </div>
  229. <div class="right">
  230. <div class="wrapper">
  231. <div class="tab-t">
  232. <div class="tab-title">母猪淘汰</div>
  233. </div>
  234. <div class='charts-content'>
  235. <div id="chartRight1">
  236. <div class='chart-tab-t'>
  237. <div class="chart-tab-title">淘汰分布</div>
  238. </div>
  239. <div id='chart-ttfb'></div>
  240. </div>
  241. <div id="chartRight2">
  242. <div class='chart-tab-t'>
  243. <div class="chart-tab-title">月度淘汰数量</div>
  244. </div>
  245. <div id='chart-ydttsl'></div>
  246. </div>
  247. </div>
  248. </div>
  249. </div>
  250. <div class="bottom">
  251. <div class="wrapper">
  252. <div class="tab-t">
  253. <div class="tab-title">批次配种分娩</div>
  254. </div>
  255. <div class="chartBlock">
  256. <div id="chartBottom1">
  257. <div class='choosebtn'>
  258. <div class="choosepc">
  259. <div class="choose-item">选择批次</div>
  260. <div class="cont"><img alt="" src="images/swtich.png"></div>
  261. </div>
  262. <div class="choosebox">
  263. <div class='box-btns'>
  264. <a href="javascript:;" class="a_demo_two switch-bt-active">批次
  265. </a>
  266. <a href="javascript:;" class="a_demo_two">区域
  267. </a>
  268. </div>
  269. <div class='tab-areas'>
  270. <div id='tab-area1' class="tab-area">
  271. <div class="pc-nums">
  272. <div class="item">
  273. <span class="cont">13245345753</span>
  274. </div>
  275. <div class="item">
  276. <span class="cont">13245345753</span>
  277. </div>
  278. <div class="item">
  279. <span class="cont">13245345753</span>
  280. </div>
  281. <div class="item">
  282. <span class="cont">13245345753</span>
  283. </div>
  284. <div class="item">
  285. <span class="cont">13245345753</span>
  286. </div>
  287. <div class="item">
  288. <span class="cont">13245345753</span>
  289. </div>
  290. <div class="item">
  291. <span class="cont">13245345753</span>
  292. </div>
  293. </div>
  294. </div>
  295. <div id='tab-area2' class="tab-area tabshow">
  296. <div class="select">
  297. <select name="build">
  298. <option value="后备舍">后备舍</option>
  299. <option value="配怀舍">配怀舍</option>
  300. <option value="分娩舍" selected>分娩舍</option>
  301. </select>
  302. </div>
  303. <div class='select-list'>
  304. <div class="item">
  305. <span class="cont">1单元</span>
  306. </div>
  307. <div class="item">
  308. <span class="cont">2单元</span>
  309. </div>
  310. <div class="item">
  311. <span class="cont">3单元</span>
  312. </div>
  313. <div class="item">
  314. <span class="cont">4单元</span>
  315. </div>
  316. <div class="item">
  317. <span class="cont">5单元</span>
  318. </div>
  319. <div class="item">
  320. <span class="cont">6单元</span>
  321. </div>
  322. <div class="item">
  323. <span class="cont">7单元</span>
  324. </div>
  325. </div>
  326. </div>
  327. </div>
  328. </div>
  329. </div>
  330. <div class='chart-tab-t'>
  331. <div class="chart-tab-title">配种分布</div>
  332. </div>
  333. <div id="chart-pzfb1"></div>
  334. <div id="chart-pzfb2"></div>
  335. </div>
  336. <div id="chartBottom2">
  337. <div class='chart-tab-t'>
  338. <div class="chart-tab-title">分娩产仔分布</div>
  339. </div>
  340. <div id="chart-fmczfb1"></div>
  341. <div id="chart-fmczfb2">
  342. </div>
  343. </div>
  344. </div>
  345. </div>
  346. </div>
  347. </div>
  348. <script>
  349. var dom_clfb = document.getElementById("chart-clfb");
  350. var dom_tcqk = document.getElementById("chart-tcqk");
  351. var dom_ydfscts = document.getElementById("chart-ydfscts");
  352. var dom_ttfb = document.getElementById("chart-ttfb");
  353. var dom_ydttsl = document.getElementById("chart-ydttsl");
  354. var dom_pzfb1 = document.getElementById("chart-pzfb1");
  355. var dom_pzfb2 = document.getElementById("chart-pzfb2");
  356. var dom_fmczfb1 = document.getElementById("chart-fmczfb1");
  357. var dom_fmczfb2 = document.getElementById("chart-fmczfb2");
  358. var myChart_clfb = echarts.init(dom_clfb);
  359. var myChart_tcqk = echarts.init(dom_tcqk);
  360. var myChart_ydfscts = echarts.init(dom_ydfscts);
  361. var myChart_ttfb = echarts.init(dom_ttfb);
  362. var myChart_ydttsl = echarts.init(dom_ydttsl);
  363. var myChart_pzfb1 = echarts.init(dom_pzfb1);
  364. var myChart_pzfb2 = echarts.init(dom_pzfb2);
  365. var myChart_fmczfb1 = echarts.init(dom_fmczfb1);
  366. var myChart_fmczfb2 = echarts.init(dom_fmczfb2);
  367. var app = {};
  368. option_clfb = null, option_tcqk = null, option_ydfscts = null, option_ttfb = null, option_ydttsl = null,
  369. option_pzfb1 = null, option_pzfb2 = null, option_fmczfb1 = null, option_fmczfb2 = null;
  370. //存栏分布饼状图
  371. option_clfb = {
  372. tooltip: {
  373. trigger: 'item',
  374. formatter: "{a} <br/>{b}: {c} ({d}%)"
  375. },
  376. series: [{
  377. name: '存栏分布',
  378. type: 'pie',
  379. radius: ['60%', '80%'],
  380. center: ['50%', '55%'],
  381. label: {
  382. show: true,
  383. position: 'outside',
  384. formatter: '{b}:{c}({d}%) ',
  385. textStyle: {
  386. color: '#fff',
  387. fontSize: 14
  388. },
  389. },
  390. data: [{
  391. value: 335,
  392. name: '流返母猪'
  393. },
  394. {
  395. value: 310,
  396. name: '返情母猪'
  397. },
  398. {
  399. value: 234,
  400. name: '配种母猪'
  401. },
  402. {
  403. value: 135,
  404. name: '断奶母猪'
  405. },
  406. {
  407. value: 1048,
  408. name: '怀孕母猪'
  409. },
  410. {
  411. value: 251,
  412. name: '哺乳母猪'
  413. },
  414. {
  415. value: 147,
  416. name: '后备母猪'
  417. },
  418. {
  419. value: 102,
  420. name: '不发情母猪'
  421. }
  422. ]
  423. }]
  424. };
  425. //胎次情况柱状图
  426. option_tcqk = {
  427. tooltip: {
  428. trigger: 'axis'
  429. },
  430. calculable: true,
  431. grid: {
  432. x: 80,
  433. y: 45,
  434. x2: 80,
  435. y2: 30,
  436. },
  437. xAxis: [{
  438. type: 'category',
  439. axisLine: {
  440. show: true,
  441. lineStyle: {
  442. type: 'solid',
  443. color: '#fff', //左边线的颜色
  444. width: '1' //坐标线的宽度
  445. }
  446. },
  447. data: ['1胎次', '2胎次', '3胎次', '4胎次', '5胎次', '6胎次', '7胎次']
  448. }],
  449. yAxis: [{
  450. type: 'value',
  451. axisLine: {
  452. show: true,
  453. lineStyle: {
  454. type: 'solid',
  455. color: '#fff', //左边线的颜色
  456. width: '1' //坐标线的宽度
  457. }
  458. },
  459. splitLine: {
  460. lineStyle: {
  461. type: 'solid',
  462. color: '#1c3860', //左边线的颜色
  463. width: '1' //坐标线的宽度
  464. }
  465. },
  466. }],
  467. series: [{
  468. name: '母猪总数',
  469. type: 'bar',
  470. data: [2, 4, 7, 23, 20, 7, 13],
  471. itemStyle: {
  472. normal: {
  473. color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [{
  474. offset: 0,
  475. color: '#965df2'
  476. }, {
  477. offset: 1,
  478. color: '#efd8ef'
  479. }]),
  480. }
  481. },
  482. },
  483. {
  484. name: '平均分娩数',
  485. type: 'bar',
  486. data: [6, 9, 13, 22, 17, 7, 1],
  487. itemStyle: {
  488. normal: {
  489. color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [{
  490. offset: 0,
  491. color: '#0aafb8'
  492. }, {
  493. offset: 1,
  494. color: '#bfe7e9'
  495. }]),
  496. }
  497. },
  498. }
  499. ]
  500. };
  501. //月度非生产天数柱状图
  502. option_ydfscts = {
  503. color: ['#3398DB'],
  504. tooltip: {
  505. trigger: 'axis',
  506. axisPointer: { // 坐标轴指示器,坐标轴触发有效
  507. type: 'shadow' // 默认为直线,可选为:'line' | 'shadow'
  508. }
  509. },
  510. grid: {
  511. x: 60,
  512. y: 20,
  513. x2: 60,
  514. y2: 30,
  515. },
  516. xAxis: [{
  517. type: 'category',
  518. data: ['2018.01', '2018.02', '2018.03', '2018.04', '2018.05', '2018.06', '2018.07', '2018.08'],
  519. axisTick: {
  520. alignWithLabel: true
  521. },
  522. axisLine: {
  523. show: true,
  524. lineStyle: {
  525. type: 'solid',
  526. color: '#fff', //左边线的颜色
  527. width: '2' //坐标线的宽度
  528. }
  529. },
  530. }],
  531. yAxis: [{
  532. type: 'value',
  533. max: 40,
  534. axisLine: {
  535. show: true,
  536. lineStyle: {
  537. type: 'solid',
  538. color: '#fff', //左边线的颜色
  539. width: '2' //坐标线的宽度
  540. }
  541. },
  542. splitLine: {
  543. lineStyle: {
  544. type: 'solid',
  545. color: '#1c3860', //左边线的颜色
  546. width: '1' //坐标线的宽度
  547. }
  548. }
  549. }],
  550. series: [{
  551. name: '月度非生产天数',
  552. type: 'bar',
  553. barWidth: '60%',
  554. data: [10, 21, 4, 15, 24, 26, 17, 15],
  555. itemStyle: {
  556. normal: {
  557. color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [{
  558. offset: 0,
  559. color: '#1d99eb'
  560. }, {
  561. offset: 1,
  562. color: '#b4d4e9'
  563. }]),
  564. }
  565. },
  566. }]
  567. };
  568. //淘汰分布饼状图
  569. option_ttfb = {
  570. tooltip: {
  571. trigger: 'item',
  572. formatter: "{a} <br/>{b} : {c} ({d}%)"
  573. },
  574. legend: {
  575. orient: 'vertical',
  576. right: 30,
  577. top: 20,
  578. bottom: 20,
  579. data: ['疾病', '死亡', '日龄过大', '胎次过高', '屡配不孕', '分娩低产', '繁殖障碍'],
  580. textStyle: {
  581. color: '#fff',
  582. }
  583. },
  584. series: [{
  585. name: '淘汰分布',
  586. type: 'pie',
  587. radius: '80%',
  588. center: ['40%', '50%'],
  589. data: [{
  590. value: 10,
  591. name: '疾病'
  592. }, {
  593. value: 20,
  594. name: '死亡'
  595. }, {
  596. value: 30,
  597. name: '日龄过大'
  598. }, {
  599. value: 40,
  600. name: '胎次过高'
  601. }, {
  602. value: 33,
  603. name: '屡配不孕'
  604. }, {
  605. value: 12,
  606. name: '分娩低产'
  607. }, {
  608. value: 67,
  609. name: '繁殖障碍'
  610. }],
  611. itemStyle: {
  612. normal: {
  613. label: {
  614. show: true,
  615. position: 'inside',
  616. formatter: '{d}%',
  617. textStyle: {
  618. fontSize: 10
  619. }
  620. },
  621. labelLine: {
  622. show: false
  623. }
  624. },
  625. }
  626. }]
  627. };
  628. //月度淘汰数量
  629. option_ydttsl = {
  630. grid: {
  631. x: 60,
  632. y: 20,
  633. x2: 60,
  634. y2: 30,
  635. containLabel: true
  636. },
  637. xAxis: {
  638. type: 'category',
  639. boundaryGap: false,
  640. data: ['1月', '2月', '3月', '4月', '5月', '6月', '7月', '8月', '9月', '10月', '11月', '12月'],
  641. axisLine: {
  642. show: true,
  643. lineStyle: {
  644. type: 'solid',
  645. color: '#fff', //左边线的颜色
  646. width: '1' //坐标线的宽度
  647. }
  648. },
  649. },
  650. yAxis: {
  651. type: 'value',
  652. axisLine: {
  653. show: true,
  654. lineStyle: {
  655. type: 'solid',
  656. color: '#fff', //左边线的颜色
  657. width: '1' //坐标线的宽度
  658. }
  659. },
  660. splitLine: {
  661. show: false
  662. }
  663. },
  664. series: [{
  665. data: [820, 932, 901, 934, 1290, 1330, 1320, 400, 760, 222, 432, 1000],
  666. itemStyle: {
  667. normal: { //颜色渐变函数 前四个参数分别表示四个位置依次为左、下、右、上
  668. color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [{
  669. offset: 0,
  670. color: '#FF3C38' // 0% 处的颜色
  671. }, {
  672. offset: 0.65,
  673. color: '#EFC3E6' // 65% 处的颜色
  674. }, {
  675. offset: 1,
  676. color: '#d0c4b0' // 100% 处的颜色
  677. }]), //背景渐变色
  678. lineStyle: { // 系列级个性化折线样式
  679. show: false
  680. }
  681. },
  682. emphasis: {
  683. color: '#ffeb3b',
  684. lineStyle: { // 系列级个性化折线样式
  685. width: 2,
  686. type: 'dotted',
  687. color: "#ffeb3b" //折线的颜色
  688. }
  689. }
  690. },
  691. type: 'line',
  692. areaStyle: {}
  693. }]
  694. };
  695. //配种分布1金字塔
  696. var colorA = ['#0050e3', '#0061e4', '#0076e4', '#0084e6', '#0084e6', '#0084e6'];
  697. option_pzfb1 = {
  698. tooltip: {
  699. trigger: 'item',
  700. formatter: "{a} <br/>{b} : {c}%"
  701. },
  702. legend: {
  703. data: ['阳性', '空胎', '返情', '流产', '阴性', '疑似'],
  704. textStyle: {
  705. color: '#fff',
  706. },
  707. bottom: 'bottom'
  708. },
  709. calculable: true,
  710. series: [{
  711. name: '漏斗图',
  712. type: 'funnel',
  713. left: '25%',
  714. top: 0,
  715. //x2: 80,
  716. width: '50%',
  717. // height: {totalHeight} - y - y2,
  718. min: 0,
  719. max: 200,
  720. minSize: '0%',
  721. maxSize: '100%',
  722. sort: 'ascending',
  723. gap: 0,
  724. color: colorA,
  725. label: {
  726. show: true,
  727. position: 'outside',
  728. textStyle: {
  729. color: '#fff',
  730. fontSize: 14
  731. }
  732. },
  733. labelLine: {
  734. length: 10,
  735. lineStyle: {
  736. width: 1,
  737. type: 'solid'
  738. }
  739. },
  740. itemStyle: {
  741. borderColor: '#fff',
  742. borderWidth: 0
  743. },
  744. emphasis: {
  745. label: {
  746. fontSize: 20
  747. }
  748. },
  749. data: [{
  750. value: 120,
  751. name: '阳性'
  752. },
  753. {
  754. value: 100,
  755. name: '空胎'
  756. },
  757. {
  758. value: 80,
  759. name: '返情'
  760. },
  761. {
  762. value: 60,
  763. name: '流产'
  764. },
  765. {
  766. value: 40,
  767. name: '阴性'
  768. },
  769. {
  770. value: 20,
  771. name: '疑似'
  772. }
  773. ]
  774. }]
  775. };
  776. ////配种分布2仪表盘
  777. option_pzfb2 = {
  778. tooltip: {
  779. formatter: "{a} <br/>{c}%"
  780. },
  781. toolbox: {
  782. show: false,
  783. feature: {
  784. restore: {
  785. show: false
  786. },
  787. saveAsImage: {
  788. show: false
  789. }
  790. }
  791. },
  792. series: [{
  793. name: '配种分娩率',
  794. type: 'gauge',
  795. center: ['50%', '50%'],
  796. min: 0,
  797. max: 100,
  798. splitNumber: 10,
  799. radius: '85%',
  800. axisLine: { // 坐标轴线
  801. lineStyle: { // 属性lineStyle控制线条样式
  802. color: [
  803. [0.2, '#ff4500'],
  804. [0.8, '#1e90ff'],
  805. [1, 'lime']
  806. ],
  807. width: 3,
  808. shadowColor: '#fff', //默认透明
  809. shadowBlur: 10
  810. }
  811. },
  812. axisTick: { // 坐标轴小标记
  813. length: 15, // 属性length控制线长
  814. lineStyle: { // 属性lineStyle控制线条样式
  815. color: 'auto'
  816. }
  817. },
  818. splitLine: { // 分隔线
  819. length: 20, // 属性length控制线长
  820. lineStyle: { // 属性lineStyle(详见lineStyle)控制线条样式
  821. color: 'auto'
  822. }
  823. },
  824. axisLabel: { // 坐标轴小标记
  825. textStyle: { // 属性lineStyle控制线条样式
  826. fontSize: 9, //改变仪表盘内刻度数字的大小
  827. //shadowColor : '#000', //默认透明
  828. }
  829. },
  830. pointer: {
  831. width: 3, //指针的宽度
  832. length: "60%", //指针长度,按照半圆半径的百分比
  833. shadowColor: '#ccc', //默认透明
  834. shadowBlur: 5
  835. },
  836. title: {
  837. // 其余属性默认使用全局文本样式,详见TEXTSTYLE
  838. offsetCenter: [0, '65%'],
  839. fontWeight: 'bolder',
  840. fontSize: 12,
  841. color: "#fff",
  842. fontStyle: 'italic'
  843. },
  844. detail: {
  845. fontSize: 12,
  846. // 其余属性默认使用全局文本样式,详见TEXTSTYLE
  847. formatter: function(value) {
  848. value = (value + '').split('.');
  849. value.length < 2 && (value.push('00'));
  850. return ('00' + value[0]).slice(0 - value[0].length) +
  851. '.' + (value[1] + '00').slice(0, 2) + '%';
  852. }
  853. },
  854. textStyle: {
  855. color: "#fff",
  856. fontSize: 12
  857. },
  858. data: [{
  859. value: 75.23,
  860. name: '配种分娩率'
  861. }]
  862. }]
  863. };
  864. //分娩产仔分布1柱状图
  865. var dataAxis = ['健仔', '弱仔', '畸仔', '死胎', '木乃伊'];
  866. var data = [444, 21, 34, 12, 15];
  867. option_fmczfb1 = {
  868. grid: {
  869. x: 45,
  870. y: 25,
  871. x2: 45,
  872. y2: 25,
  873. },
  874. xAxis: {
  875. type: 'category',
  876. data: dataAxis,
  877. axisLabel: {
  878. inside: false,
  879. textStyle: {
  880. color: '#fff',
  881. fontSize: 14
  882. },
  883. },
  884. axisTick: {
  885. show: false
  886. },
  887. axisLine: {
  888. show: true,
  889. lineStyle: {
  890. type: 'solid',
  891. color: '#fff', //左边线的颜色
  892. width: '1' //坐标线的宽度
  893. }
  894. }
  895. },
  896. yAxis: {
  897. axisLabel: {
  898. },
  899. axisLine: {
  900. show: true,
  901. lineStyle: {
  902. type: 'solid',
  903. color: '#fff', //左边线的颜色
  904. width: '1' //坐标线的宽度
  905. }
  906. },
  907. axisTick: {
  908. show: true
  909. },
  910. splitLine: {
  911. lineStyle: {
  912. type: 'solid',
  913. color: '#1c3860', //左边线的颜色
  914. width: '1' //坐标线的宽度
  915. }
  916. }, //网格线
  917. },
  918. series: [{
  919. type: 'pictorialBar',
  920. barWidth: "80%",
  921. barCategoryGap: '30%',
  922. symbol: 'path://M0,10 L10,10 L5,0 L0,10 z',
  923. //symbol: 'path://M0,10 L10,10 C5.5,10 5.5,5 5,0 C4.5,5 4.5,10 0,10 z',
  924. itemStyle: {
  925. normal: {
  926. color: function(params) {
  927. var colorList = ['#fc232e', '#fe9e1a', '#22aeed', '#52e461', '#903397', '#B74AE5', '#0AAF9F', '#E89589',
  928. '#16A085', '#4A235A', '#C39BD3 ', '#F9E79F', '#BA4A00', '#ECF0F1', '#616A6B', '#EAF2F8', '#4A235A',
  929. '#3498DB'
  930. ];
  931. return colorList[params.dataIndex]
  932. },
  933. label: {
  934. show: true, //开启显示
  935. position: 'top', //在上方显示
  936. textStyle: { //数值样式
  937. color: '#fff',
  938. fontSize: 12
  939. }
  940. }
  941. }
  942. },
  943. data: data,
  944. }]
  945. };
  946. //分娩产仔分布1仪表盘
  947. option_fmczfb2 = {
  948. tooltip: {
  949. formatter: "{a} <br/>{c}"
  950. },
  951. toolbox: {
  952. show: false,
  953. feature: {
  954. restore: {
  955. show: false
  956. },
  957. saveAsImage: {
  958. show: false
  959. }
  960. }
  961. },
  962. series: [{
  963. name: '分娩活仔率',
  964. type: 'gauge',
  965. center: ['28%', '50%'],
  966. min: 0,
  967. max: 100,
  968. splitNumber: 10,
  969. radius: '90%',
  970. axisLine: { // 坐标轴线
  971. lineStyle: { // 属性lineStyle控制线条样式
  972. color: [
  973. [0.2, '#ff4500'],
  974. [0.8, '#1e90ff'],
  975. [1, 'lime']
  976. ],
  977. width: 3,
  978. shadowColor: '#fff', //默认透明
  979. shadowBlur: 10
  980. }
  981. },
  982. axisTick: { // 坐标轴小标记
  983. length: 15, // 属性length控制线长
  984. lineStyle: { // 属性lineStyle控制线条样式
  985. color: 'auto'
  986. }
  987. },
  988. splitLine: { // 分隔线
  989. length: 20, // 属性length控制线长
  990. lineStyle: { // 属性lineStyle(详见lineStyle)控制线条样式
  991. color: 'auto'
  992. }
  993. },
  994. axisLabel: { // 坐标轴小标记
  995. textStyle: { // 属性lineStyle控制线条样式
  996. fontSize: 9, //改变仪表盘内刻度数字的大小
  997. //shadowColor : '#000', //默认透明
  998. }
  999. },
  1000. pointer: {
  1001. width: 3, //指针的宽度
  1002. length: "60%", //指针长度,按照半圆半径的百分比
  1003. shadowColor: '#ccc', //默认透明
  1004. shadowBlur: 5
  1005. },
  1006. title: {
  1007. // 其余属性默认使用全局文本样式,详见TEXTSTYLE
  1008. fontWeight: 'bolder',
  1009. fontSize: 12,
  1010. color: "#fff",
  1011. fontStyle: 'italic'
  1012. },
  1013. detail: {
  1014. fontSize: 12,
  1015. // 其余属性默认使用全局文本样式,详见TEXTSTYLE
  1016. formatter: function(value) {
  1017. value = (value + '').split('.');
  1018. value.length < 2 && (value.push('00'));
  1019. return ('00' + value[0]).slice(0 - value[0].length) +
  1020. '.' + (value[1] + '00').slice(0, 2) + '%';
  1021. }
  1022. },
  1023. textStyle: {
  1024. color: "#fff",
  1025. fontSize: 12
  1026. },
  1027. data: [{
  1028. value: 88.23,
  1029. name: '分娩活仔率'
  1030. }]
  1031. },
  1032. {
  1033. name: '窝均活仔数',
  1034. type: 'gauge',
  1035. center: ['65%', '50%'],
  1036. min: 0,
  1037. max: 20,
  1038. splitNumber: 10,
  1039. radius: '90%',
  1040. axisLine: { // 坐标轴线
  1041. lineStyle: { // 属性lineStyle控制线条样式
  1042. color: [
  1043. [0.2, '#ff4500'],
  1044. [0.8, '#1e90ff'],
  1045. [1, 'lime']
  1046. ],
  1047. width: 3,
  1048. shadowColor: '#fff', //默认透明
  1049. shadowBlur: 10
  1050. }
  1051. },
  1052. axisTick: { // 坐标轴小标记
  1053. length: 15, // 属性length控制线长
  1054. lineStyle: { // 属性lineStyle控制线条样式
  1055. color: 'auto'
  1056. }
  1057. },
  1058. splitLine: { // 分隔线
  1059. length: 20, // 属性length控制线长
  1060. lineStyle: { // 属性lineStyle(详见lineStyle)控制线条样式
  1061. color: 'auto'
  1062. }
  1063. },
  1064. axisLabel: { // 坐标轴小标记
  1065. textStyle: { // 属性lineStyle控制线条样式
  1066. fontSize: 9, //改变仪表盘内刻度数字的大小
  1067. //shadowColor : '#000', //默认透明
  1068. }
  1069. },
  1070. pointer: {
  1071. width: 3, //指针的宽度
  1072. length: "60%", //指针长度,按照半圆半径的百分比
  1073. shadowColor: '#ccc', //默认透明
  1074. shadowBlur: 5
  1075. },
  1076. title: {
  1077. // 其余属性默认使用全局文本样式,详见TEXTSTYLE
  1078. fontWeight: 'bolder',
  1079. fontSize: 12,
  1080. color: "#fff",
  1081. fontStyle: 'italic'
  1082. },
  1083. detail: {
  1084. fontSize: 12,
  1085. // 其余属性默认使用全局文本样式,详见TEXTSTYLE
  1086. formatter: function(value) {
  1087. value = (value + '').split('.');
  1088. value.length < 2 && (value.push('00'));
  1089. return ('00' + value[0]).slice(0 - value[0].length) +
  1090. '.' + (value[1] + '00').slice(0, 2);
  1091. }
  1092. },
  1093. textStyle: {
  1094. color: "#fff",
  1095. fontSize: 12
  1096. },
  1097. data: [{
  1098. value: 15.5,
  1099. name: '窝均活仔数'
  1100. }]
  1101. }
  1102. ]
  1103. };
  1104. if (option_clfb && typeof option_clfb === "object") {
  1105. myChart_clfb.setOption(option_clfb, true);
  1106. }
  1107. if (option_tcqk && typeof option_tcqk === "object") {
  1108. myChart_tcqk.setOption(option_tcqk, true);
  1109. }
  1110. if (option_ydfscts && typeof option_ydfscts === "object") {
  1111. myChart_ydfscts.setOption(option_ydfscts, true);
  1112. }
  1113. if (option_ttfb && typeof option_ttfb === "object") {
  1114. myChart_ttfb.setOption(option_ttfb, true);
  1115. }
  1116. if (option_ydttsl && typeof option_ydttsl === "object") {
  1117. myChart_ydttsl.setOption(option_ydttsl, true);
  1118. }
  1119. if (option_pzfb1 && typeof option_pzfb1 === "object") {
  1120. myChart_pzfb1.setOption(option_pzfb1, true);
  1121. }
  1122. if (option_pzfb2 && typeof option_pzfb2 === "object") {
  1123. myChart_pzfb2.setOption(option_pzfb2, true);
  1124. }
  1125. if (option_fmczfb1 && typeof option_fmczfb1 === "object") {
  1126. myChart_fmczfb1.setOption(option_fmczfb1, true);
  1127. }
  1128. if (option_fmczfb2 && typeof option_fmczfb2 === "object") {
  1129. myChart_fmczfb2.setOption(option_fmczfb2, true);
  1130. }
  1131. </script>
  1132. <script src="js/scrollBar.js" type="text/javascript"></script>
  1133. <script>
  1134. $('.line2 .list').scrollBar({
  1135. barWidth: 5, //滚动条的宽度(这里根据需要写数值即可,不设置是10,即默认10px)
  1136. position: "y", //写“x”代表只出水平滚动条,写“y”表示只出垂直滚动条,写“x,y”则出水平和垂直滚动条(只有在内容超出容器时才出现滚动条)
  1137. wheelDis: 15 //滚轮滚动一次向下或向上滚动的距离,默认是15,可根据需要修改数值
  1138. })
  1139. $('#tab-area1 .pc-nums').scrollBar({
  1140. barWidth: 5, //滚动条的宽度(这里根据需要写数值即可,不设置是10,即默认10px)
  1141. position: "y", //写“x”代表只出水平滚动条,写“y”表示只出垂直滚动条,写“x,y”则出水平和垂直滚动条(只有在内容超出容器时才出现滚动条)
  1142. wheelDis: 24 //滚轮滚动一次向下或向上滚动的距离,默认是15,可根据需要修改数值
  1143. })
  1144. $('#tab-area2 .select-list').scrollBar({
  1145. barWidth: 5, //滚动条的宽度(这里根据需要写数值即可,不设置是10,即默认10px)
  1146. position: "y", //写“x”代表只出水平滚动条,写“y”表示只出垂直滚动条,写“x,y”则出水平和垂直滚动条(只有在内容超出容器时才出现滚动条)
  1147. wheelDis: 24 //滚轮滚动一次向下或向上滚动的距离,默认是15,可根据需要修改数值
  1148. })
  1149. </script>
  1150. <script src="js/FlexoCalendar.js" type="text/javascript"></script>
  1151. <script src="js/fzfx.js" type="text/javascript"></script>
  1152. <body>
  1153. </html>