fzfx.html 30 KB

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