fzfx.html 31 KB

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