fzfx.html 31 KB

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