fzfx.html 33 KB

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