123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254 |
- <!DOCTYPE html>
- <html lang="zh">
- <head>
- <meta charset="utf-8">
- <title>繁殖综合分析</title>
- <link href="css/common.css" rel="stylesheet">
- <link href="css/fzfx.css" rel="stylesheet">
- <link href="css/scrollBar.css" rel="stylesheet">
- <script type="text/javascript" src="js/echarts.min.js"></script>
- <script type="text/javascript" src="js/jquery-2.2.4.min.js"></script>
- </head>
- <body>
- <div class="header-wrapper">
- <div class="title">
- 智能化综合管理平台
- <svg version="1.1" width="900" height='100'>
- <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" />
- </svg>
- </div>
- <div class="nav-bar">
- <a class="item " href="index.html">首页</a>
- <a class="item active" href="fzfx.html">生产管理</a>
- <a class="item" href="swfk.html">生物防控</a>
- <a class="item" href="spjk.html">视频监控</a>
- <a class="item" href="hbjc.html">环保监测</a>
- </div>
- </div>
- <div class="grid-wrapper">
- <div class="left">
- <div class="wrapper left-side-bar">
- <div class="tab-t">
- <div class="tab-title">母猪存栏</div>
- </div>
- <!-- <div class="calendar">
- <div class="tabs" id="calendarTabs">
- <div class="tab active">日历</div>
- <div class="tab">周历</div>
- <div class="tab">月历</div>
- </div>
- <div id="calendarWrapper">
- <div class="calendar-wrapper" style="display: block;">
- <div id="calendar-dayly"></div>
- </div>
- <div class="calendar-wrapper">
- <div id="calendar-weekly"></div>
- </div>
- <div class="calendar-wrapper">
- <div id="calendar-monthly"></div>
- </div>
- </div>
- </div> -->
- <div id="chartLeft1">
- <div class='chart-tab-t'>
- <div class="chart-tab-title">存栏分布</div>
- </div>
- <div id="chart-clfb"></div>
- </div>
- <div id="chartLeft2">
- <div class='chart-tab-t'>
- <div class="chart-tab-title">胎次情况</div>
- </div>
- <div id="chart-tcqk"></div>
- </div>
- <div id="chartLeft3">
- <div class='chart-tab-t'>
- <div class="chart-tab-title">各阶段仔猪存栏</div>
- </div>
- <div id="chart-gjdzzcl"></div>
- </div>
- <div class='left-side-table'>
- <table id='table-clfb' border='1' cellpadding='0' cellspacing='0' width="100%">
- <thead>
- <tr>
- <th>区域</th>
- <th>单元</th>
- <th colspan='4'>数量</th>
- </tr>
- </thead>
- <tbody>
- <tr>
- <td rowspan='2'>后备舍</td>
- <td>单元1</td>
- <td colspan='4'>23</td>
- </tr>
- <tr>
- <td>单元2</td>
- <td colspan='4'>25</td>
- </tr>
- <tr>
- <td colspan='2'></td>
- <td>配种</td>
- <td>怀孕</td>
- <td>返情</td>
- <td>流产</td>
- </tr>
- <tr>
- <td rowspan='4'>配怀舍</td>
- <td>单元1</td>
- <td>12</td>
- <td>32</td>
- <td>11</td>
- <td>11</td>
- </tr>
- <tr>
- <td>单元2</td>
- <td>12</td>
- <td>32</td>
- <td>11</td>
- <td>11</td>
- </tr>
- <tr>
- <td>单元3</td>
- <td>12</td>
- <td>32</td>
- <td>11</td>
- <td>11</td>
- </tr>
- <tr>
- <td>单元4</td>
- <td>12</td>
- <td>32</td>
- <td>11</td>
- <td>11</td>
- </tr>
- <tr>
- <td colspan='2'></td>
- <td>待产</td>
- <td>哺乳</td>
- <td colspan='2'>断奶</td>
- </tr>
- <tr>
- <td rowspan='5'>分娩舍</td>
- <td>单元1</td>
- <td>12</td>
- <td>32</td>
- <td colspan='2'>11</td>
- </tr>
- <tr>
- <td>单元2</td>
- <td>12</td>
- <td>32</td>
- <td colspan='2'>11</td>
- </tr>
- <tr>
- <td>单元3</td>
- <td>12</td>
- <td>32</td>
- <td colspan='2'>11</td>
- </tr>
- <tr>
- <td>单元4</td>
- <td>12</td>
- <td>32</td>
- <td colspan='2'>11</td>
- </tr>
- <tr>
- <td>单元5</td>
- <td>12</td>
- <td>32</td>
- <td colspan='2'>11</td>
- </tr>
- <tr>
- <td>单元4</td>
- <td>12</td>
- <td>32</td>
- <td colspan='2'>11</td>
- </tr>
- <tr>
- <td>单元5</td>
- <td>12</td>
- <td>32</td>
- <td colspan='2'>11</td>
- </tr>
- <tr>
- <td>单元4</td>
- <td>12</td>
- <td>32</td>
- <td colspan='2'>11</td>
- </tr>
- <tr>
- <td>单元5</td>
- <td>12</td>
- <td>32</td>
- <td colspan='2'>11</td>
- </tr>
- </tbody>
- </table>
- </div>
- </div>
- </div>
- <div class="center">
- <div class="wrapper">
- <div class="line1">
- <div class="cont">首页</div>
- <div class="division"></div>
- <div class="cont">2019-3-8</div>
- <div class="division"></div>
- </div>
- <div class="line2">
- <div class="top">
- <span class="cell">
- <span class="title">存栏量:</span>
- <span class="content">4897只</span>
- </span>
- <span class="cell">
- <span class="title">产总仔:</span>
- <span class="content">858只</span>
- </span>
- <span class="cell">
- <span class="title">百斤龄:</span>
- <span class="content">84天</span>
- </span>
- </div>
- </div>
- <div class="line3">
- <div id="chartCenter">
- <div class='chart-tab-t'>
- <div class="chart-tab-title">
- <div class="ln-Dropdown ydfscts" id="ln-Dropdown">
- <i class="ln-Dropdown-text">月度非生产天数</i> <i>▽</i>
- <ul class="ln-Dropdown-content ydfscts" id="ln-Dropdown-content">
- <li class="ln-Dropdown-item" value="1">周度非生产天数</li>
- <li class="ln-Dropdown-item" value="2">月度非生产天数</li>
- </ul>
- </div>
- </div>
- </div>
- <div id='chart-ydfscts'>
- </div>
- </div>
- </div>
- </div>
- </div>
- <div class="right">
- <div class="wrapper">
- <div class="tab-t">
- <div class="tab-title">母猪淘汰</div>
- </div>
- <div class='charts-content'>
- <div id="chartRight1">
- <div class='chart-tab-t'>
- <div class="chart-tab-title">淘汰分布</div>
- </div>
- <div id='chart-ttfb'></div>
- </div>
- <div id="chartRight2">
- <div class='chart-tab-t'>
- <div class="chart-tab-title">月度淘汰数量</div>
- </div>
- <div id='chart-ydttsl'></div>
- </div>
- </div>
- </div>
- </div>
- <div class="bottom">
- <div class="wrapper">
- <div class="tab-t">
- <div class="tab-title">批次配种分娩
- <div class="ln-Dropdown charts3" id="ln-Dropdown" style="margin-left:100px;font-size:16px;">
- <i class="ln-Dropdown-text">月数据</i> <i>▽</i>
- <ul class="ln-Dropdown-content charts3" id="ln-Dropdown-content">
- <li class="ln-Dropdown-item" value="1">周数据</li>
- <li class="ln-Dropdown-item" value="2">月数据</li>
- </ul>
- </div>
- </div>
- </div>
- <div class="chartBlock">
- <div class="bottom_left">
- <div id="chart-rfql"></div>
- <div id='chart-fql'></div>
- </div>
- <div class="bottom_middle">
- <div id="chart-rstl"></div>
- <div id='chart-stl'></div>
- </div>
- <div class="bottom_righy">
- <div id="chart-rpml"></div>
- <div id='chart-pml'></div>
- </div>
- </div>
- </div>
- </div>
- </div>
- <script>
- var dom_clfb = document.getElementById("chart-clfb");
- var dom_tcqk = document.getElementById("chart-tcqk");
- var dom_gjdzzcl = document.getElementById("chart-gjdzzcl");
- var dom_ydfscts = document.getElementById("chart-ydfscts");
- var dom_ttfb = document.getElementById("chart-ttfb");
- var dom_ydttsl = document.getElementById("chart-ydttsl");
- var dom_rfql = document.getElementById("chart-rfql");
- var dom_fql = document.getElementById("chart-fql");
- var dom_rstl = document.getElementById("chart-rstl");
- var dom_stl = document.getElementById("chart-stl");
- var dom_rpml = document.getElementById("chart-rpml");
- var dom_pml = document.getElementById("chart-pml");
- var myChart_clfb = echarts.init(dom_clfb);
- var myChart_tcqk = echarts.init(dom_tcqk);
- var myChart_gjdzzcl = echarts.init(dom_gjdzzcl);
- var myChart_ydfscts = echarts.init(dom_ydfscts);
- var myChart_ttfb = echarts.init(dom_ttfb);
- var myChart_ydttsl = echarts.init(dom_ydttsl);
- var myChart_rfql = echarts.init(dom_rfql);
- var myChart_fql = echarts.init(dom_fql);
- var myChart_rstl = echarts.init(dom_rstl);
- var myChart_stl = echarts.init(dom_stl);
- var myChart_rpml = echarts.init(dom_rpml);
- var myChart_pml = echarts.init(dom_pml);
- var app = {};
- var option_clfb = null, option_tcqk = null, option_gjdzzcl = null, option_ydfscts = null, option_ttfb = null, option_ydttsl = null,
- option_rfql = null, option_fql = null, option_rstl = null, option_stl = null, option_rpml = null, option_pml = null;
- // 存栏分布饼状图
- option_clfb = {
- tooltip: {
- trigger: 'item',
- formatter: "{a} <br/>{b}: {c} ({d}%)"
- },
- color: ['#5CD9FF', '#56DB63', '#F0E465', '#B9FF82', '#FA75AB', '#BAA3F0', '#FFBDA6', '#FFA1FE'],
- series: [{
- name: '存栏分布',
- type: 'pie',
- radius: ['60%', '80%'],
- center: ['50%', '55%'],
- label: {
- show: true,
- position: 'outside',
- formatter: '{b}:{c}({d}%) ',
- textStyle: {
- color: '#fff',
- fontSize: 14
- },
- },
- data: [{
- value: 335,
- name: '流返母猪'
- },
- {
- value: 310,
- name: '返情母猪'
- },
- {
- value: 234,
- name: '配种母猪'
- },
- {
- value: 135,
- name: '断奶母猪'
- },
- {
- value: 1048,
- name: '怀孕母猪'
- },
- {
- value: 251,
- name: '哺乳母猪'
- },
- {
- value: 147,
- name: '后备母猪'
- },
- {
- value: 102,
- name: '不发情母猪'
- }
- ]
- }]
- };
- // 胎次情况柱状图
- option_tcqk = {
- tooltip: {
- trigger: 'axis',
- axisPointer: { // 坐标轴指示器,坐标轴触发有效
- type: 'shadow' // 默认为直线,可选为:'line' | 'shadow'
- }
- },
- calculable: true,
- grid: {
- x: 80,
- y: 45,
- x2: 80,
- y2: 30,
- },
- xAxis: [{
- type: 'category',
- axisLine: {
- show: true,
- lineStyle: {
- type: 'solid',
- color: '#fff', //左边线的颜色
- width: '1' //坐标线的宽度
- }
- },
- data: ['1胎次', '2胎次', '3胎次', '4胎次', '5胎次', '6胎次', '7胎次']
- }],
- yAxis: [{
- type: 'value',
- axisLine: {
- show: true,
- lineStyle: {
- type: 'solid',
- color: '#fff', //左边线的颜色
- width: '1' //坐标线的宽度
- }
- },
- splitLine: {
- lineStyle: {
- type: 'solid',
- color: '#1c3860', //左边线的颜色
- width: '1' //坐标线的宽度
- }
- },
- }],
- series: [{
- name: '母猪总数',
- type: 'bar',
- data: [2, 4, 7, 23, 20, 7, 13],
- itemStyle: {
- normal: {
- color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [{
- offset: 0,
- color: '#965df2'
- }, {
- offset: 1,
- color: '#efd8ef'
- }]),
- }
- },
- },
- {
- name: '平均分娩数',
- type: 'bar',
- data: [6, 9, 13, 22, 17, 7, 1],
- itemStyle: {
- normal: {
- color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [{
- offset: 0,
- color: '#0aafb8'
- }, {
- offset: 1,
- color: '#bfe7e9'
- }]),
- }
- },
- }
- ]
- };
- option_gjdzzcl = {
- tooltip: {
- trigger: 'item',
- formatter: "{a} <br/>{b} : {c}%"
- },
- legend: {
- data: ['哺乳', '断奶', '育肥'],
- textStyle: {
- color: '#fff',
- },
- bottom: 'bottom'
- },
- calculable: true,
- series: [{
- name: '漏斗图',
- type: 'funnel',
- left: '25%',
- top: 0,
- //x2: 80,
- width: '50%',
- // height: {totalHeight} - y - y2,
- min: 0,
- max: 200,
- minSize: '0%',
- maxSize: '100%',
- sort: 'ascending',
- gap: 0,
- color: ['#6595FC', '#57CFD9', '#6CF0A3', '#87DB63', '#FAF450'],
- label: {
- show: true,
- position: 'outside',
- textStyle: {
- color: '#fff',
- fontSize: 16
- }
- },
- labelLine: {
- length: 10,
- lineStyle: {
- width: 1,
- type: 'solid'
- }
- },
- itemStyle: {
- borderColor: '#fff',
- borderWidth: 0
- },
- emphasis: {
- label: {
- fontSize: 20
- }
- },
- data: [
- {
- value: 60,
- name: '哺乳'
- },
- {
- value: 40,
- name: '断奶'
- },
- {
- value: 20,
- name: '育肥'
- }]
- }]
- };
- // 月度非生产天数柱状图
- option_ydfscts = {
- color: ['#3398DB'],
- tooltip: {
- trigger: 'axis',
- axisPointer: { // 坐标轴指示器,坐标轴触发有效
- type: 'shadow' // 默认为直线,可选为:'line' | 'shadow'
- }
- },
- grid: {
- x: 60,
- y: 20,
- x2: 60,
- y2: 30,
- },
- xAxis: [{
- type: 'category',
- data: ['2018.01', '2018.02', '2018.03', '2018.04', '2018.05', '2018.06', '2018.07', '2018.08'],
- axisTick: {
- alignWithLabel: true
- },
- axisLine: {
- show: true,
- lineStyle: {
- type: 'solid',
- color: '#fff', //左边线的颜色
- width: '2' //坐标线的宽度
- }
- },
- }],
- yAxis: [{
- type: 'value',
- max: 40,
- axisLine: {
- show: true,
- lineStyle: {
- type: 'solid',
- color: '#fff', //左边线的颜色
- width: '2' //坐标线的宽度
- }
- },
- splitLine: {
- lineStyle: {
- type: 'solid',
- color: '#1c3860', //左边线的颜色
- width: '1' //坐标线的宽度
- }
- }
- }],
- series: [{
- name: '月度非生产天数',
- type: 'bar',
- barWidth: '60%',
- data: [10, 21, 4, 15, 24, 26, 17, 15],
- itemStyle: {
- normal: {
- color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [{
- offset: 0,
- color: '#1d99eb'
- }, {
- offset: 1,
- color: '#b4d4e9'
- }]),
- }
- },
- }]
- };
- // 淘汰分布饼状图
- option_ttfb = {
- tooltip: {
- trigger: 'item',
- formatter: "{a} <br/>{b} : {c} ({d}%)"
- },
- color: ['#EEC5A9', '#FFC67D', '#FF905C', '#A3B6F0', '#FA9FFF', '#87D0E8', '#E582E8'],
- legend: {
- orient: 'vertical',
- right: 30,
- top: 20,
- bottom: 20,
- data: ['疾病', '死亡', '日龄过大', '胎次过高', '屡配不孕', '分娩低产', '繁殖障碍'],
- textStyle: {
- color: '#fff',
- }
- },
- series: [{
- name: '淘汰分布',
- type: 'pie',
- radius: '80%',
- center: ['40%', '50%'],
- radius: ['0%', '100%'],
- data: [{
- value: 19,
- name: '疾病'
- }, {
- value: 20,
- name: '死亡'
- }, {
- value: 30,
- name: '日龄过大'
- }, {
- value: 40,
- name: '胎次过高'
- }, {
- value: 33,
- name: '屡配不孕'
- }, {
- value: 22,
- name: '分娩低产'
- }, {
- value: 37,
- name: '繁殖障碍'
- }],
- itemStyle: {
- normal: {
- label: {
- show: true,
- position: 'inside',
- formatter: '{d}%',
- textStyle: {
- fontSize: 10
- }
- },
- labelLine: {
- show: false
- }
- },
- }
- }]
- };
- // 月度淘汰数量
- option_ydttsl = {
- grid: {
- x: 60,
- y: 20,
- x2: 60,
- y2: 30,
- containLabel: true
- },
- xAxis: {
- type: 'category',
- boundaryGap: false,
- data: ['1月', '2月', '3月', '4月', '5月', '6月', '7月', '8月', '9月', '10月', '11月', '12月'],
- axisLine: {
- show: true,
- lineStyle: {
- type: 'solid',
- color: '#fff', //左边线的颜色
- width: '1' //坐标线的宽度
- }
- },
- },
- yAxis: {
- type: 'value',
- axisLine: {
- show: true,
- lineStyle: {
- type: 'solid',
- color: '#fff', //左边线的颜色
- width: '1' //坐标线的宽度
- }
- },
- splitLine: {
- show: false
- }
- },
- series: [{
- data: [820, 932, 901, 934, 1290, 1330, 1320, 400, 760, 222, 432, 1000],
- itemStyle: {
- normal: { //颜色渐变函数 前四个参数分别表示四个位置依次为左、下、右、上
- color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [{
- offset: 0,
- color: '#E195F5' // 0% 处的颜色
- }, {
- offset: 0.65,
- color: '#AC9BF5' // 65% 处的颜色
- }, {
- offset: 1,
- color: '#A1C8FF' // 100% 处的颜色
- }]), //背景渐变色
- lineStyle: { // 系列级个性化折线样式
- show: false
- }
- },
- emphasis: {
- color: '#ffeb3b',
- lineStyle: { // 系列级个性化折线样式
- width: 2,
- type: 'dotted',
- color: "#ffeb3b" //折线的颜色
- }
- }
- },
- type: 'line',
- areaStyle: {}
- }]
- };
- // 日返青率 仪表盘
- option_rfql = {
- tooltip: {
- formatter: "{a} <br/>{c}%"
- },
- toolbox: {
- show: false,
- feature: {
- restore: {
- show: false
- },
- saveAsImage: {
- show: false
- }
- }
- },
- series: [{
- type: 'gauge',
- center: ['50%', '50%'],
- min: 0,
- max: 100,
- splitNumber: 10,
- radius: '85%',
- axisLine: { // 坐标轴线
- lineStyle: { // 属性lineStyle控制线条样式
- color: [
- [0.2, '#ff4500'],
- [0.6, '#FF9536'],
- [0.8, '#1e90ff'],
- [1, '#23DE30']
- ],
- width: 3,
- shadowColor: '#fff', //默认透明
- shadowBlur: 10
- }
- },
- axisTick: { // 坐标轴小标记
- length: 15, // 属性length控制线长
- lineStyle: { // 属性lineStyle控制线条样式
- color: 'auto'
- }
- },
- splitLine: { // 分隔线
- length: 20, // 属性length控制线长
- lineStyle: { // 属性lineStyle(详见lineStyle)控制线条样式
- color: 'auto'
- }
- },
- axisLabel: { // 坐标轴小标记
- textStyle: { // 属性lineStyle控制线条样式
- fontSize: 9, //改变仪表盘内刻度数字的大小
- // shadowColor : '#000', //默认透明
- }
- },
- pointer: {
- width: 3, //指针的宽度
- length: "60%", //指针长度,按照半圆半径的百分比
- shadowColor: '#ccc', //默认透明
- shadowBlur: 5
- },
- title: {
- // 其余属性默认使用全局文本样式,详见TEXTSTYLE
- offsetCenter: [0, '65%'],
- fontWeight: 'bolder',
- fontSize: 12,
- color: "#fff",
- fontStyle: 'italic'
- },
- detail: {
- fontSize: 12,
- // 其余属性默认使用全局文本样式,详见TEXTSTYLE
- formatter: function (value) {
- value = (value + '').split('.');
- value.length < 2 && (value.push('00'));
- return ('00' + value[0]).slice(0 - value[0].length) +
- '.' + (value[1] + '00').slice(0, 2) + '%';
- }
- },
- textStyle: {
- color: "#fff",
- fontSize: 12
- },
- data: [{
- value: 55.66,
- name: '日返青率'
- }]
- }]
- };
- // 返青率
- option_fql = {
- title: {
- text: '返青率',
- textStyle: {
- color: '#fff',
- },
- left: 'center'
- },
- tooltip: {
- trigger: 'axis',
- axisPointer: { // 坐标轴指示器,坐标轴触发有效
- type: 'line' // 默认为直线,可选为:'line' | 'shadow'
- }
- },
- grid: {
- x: 20,
- y: 20,
- x2: 35,
- y2: 20,
- containLabel: true
- },
- color: ['#7BDFF2'],
- xAxis: {
- type: 'category',
- boundaryGap: false,
- data: ['1月', '2月', '3月', '4月', '5月', '6月', '7月', '8月', '9月', '10月', '11月', '12月'],
- axisLine: {
- show: true,
- lineStyle: {
- type: 'solid',
- color: '#fff', //左边线的颜色
- width: '1' //坐标线的宽度
- }
- }
- },
- yAxis: {
- type: 'value',
- axisLabel: {
- formatter: '{value} %'
- },
- axisLine: {
- show: true,
- lineStyle: {
- type: 'solid',
- color: '#fff', //左边线的颜色
- width: '1' //坐标线的宽度
- }
- },
- scale: true,
- min: (val) => {
- return Math.floor(val.min * 0.95)
- },
-
- splitLine: {
- show: false
- }
- },
- series: [{
- data: [89, 85.25, 92.48, 87.75, 89.22, 89.79, 91.68, 87.48, 87.99, 91.56, 88.68, 87.66],
- type: 'line',
- markLine: {
- data: [{ type: "average", name: "平均值" }]
- }
- }]
- };
- // 日受胎率 仪表盘
- option_rstl = {
- tooltip: {
- formatter: "{a} <br/>{c}%"
- },
- toolbox: {
- show: false,
- feature: {
- restore: {
- show: false
- },
- saveAsImage: {
- show: false
- }
- }
- },
- series: [{
- type: 'gauge',
- center: ['50%', '50%'],
- min: 0,
- max: 100,
- splitNumber: 10,
- radius: '85%',
- axisLine: { // 坐标轴线
- lineStyle: { // 属性lineStyle控制线条样式
- color: [
- [0.2, '#ff4500'],
- [0.6, '#FF9536'],
- [0.8, '#1e90ff'],
- [1, 'lime']
- ],
- width: 3,
- shadowColor: '#fff', //默认透明
- shadowBlur: 10
- }
- },
- axisTick: { // 坐标轴小标记
- length: 15, // 属性length控制线长
- lineStyle: { // 属性lineStyle控制线条样式
- color: 'auto'
- }
- },
- splitLine: { // 分隔线
- length: 20, // 属性length控制线长
- lineStyle: { // 属性lineStyle(详见lineStyle)控制线条样式
- color: 'auto'
- }
- },
- axisLabel: { // 坐标轴小标记
- textStyle: { // 属性lineStyle控制线条样式
- fontSize: 9, //改变仪表盘内刻度数字的大小
- //shadowColor : '#000', //默认透明
- }
- },
- pointer: {
- width: 3, //指针的宽度
- length: "60%", //指针长度,按照半圆半径的百分比
- shadowColor: '#ccc', //默认透明
- shadowBlur: 5
- },
- title: {
- // 其余属性默认使用全局文本样式,详见TEXTSTYLE
- offsetCenter: [0, '65%'],
- fontWeight: 'bolder',
- fontSize: 12,
- color: "#fff",
- fontStyle: 'italic'
- },
- detail: {
- fontSize: 12,
- // 其余属性默认使用全局文本样式,详见TEXTSTYLE
- formatter: function (value) {
- value = (value + '').split('.');
- value.length < 2 && (value.push('00'));
- return ('00' + value[0]).slice(0 - value[0].length) +
- '.' + (value[1] + '00').slice(0, 2) + '%';
- }
- },
- textStyle: {
- color: "#fff",
- fontSize: 12
- },
- data: [{
- value: 86.66,
- name: '日受胎率'
- }]
- }]
- }
- // 受胎率
- option_stl = {
- title: {
- text: '受胎率',
- textStyle: {
- color: '#fff',
- },
- left: 'center'
- },
- tooltip: {
- trigger: 'axis',
- axisPointer: { // 坐标轴指示器,坐标轴触发有效
- type: 'line' // 默认为直线,可选为:'line' | 'shadow'
- }
- },
- grid: {
- x: 20,
- y: 20,
- x2: 35,
- y2: 20,
- containLabel: true
- },
- color: ['#F0A6CA'],
- xAxis: {
- type: 'category',
- boundaryGap: false,
- data: ['1月', '2月', '3月', '4月', '5月', '6月', '7月', '8月', '9月', '10月', '11月', '12月'],
- axisLine: {
- show: true,
- lineStyle: {
- type: 'solid',
- color: '#fff', //左边线的颜色
- width: '1' //坐标线的宽度
- }
- }
- },
- yAxis: {
- type: 'value',
- axisLabel: {
- formatter: '{value} %'
- },
- axisLine: {
- show: true,
- lineStyle: {
- type: 'solid',
- color: '#fff', //左边线的颜色
- width: '1' //坐标线的宽度
- }
- },
- scale: true,
- min: (val) => {
- return Math.floor(val.min * 0.95)
- },
- splitLine: {
- show: false
- }
- },
- series: [{
- data: [85, 85.25, 86.56, 88.68, 85.48, 83.68, 84.48, 85.99, 86.75, 84.22, 85.79, 86.66],
- type: 'line',
- markLine: {
- data: [{ type: "average", name: "平均值" }]
- }
- }]
- },
- // 日配娩率 仪表盘
- option_rpml = {
- tooltip: {
- formatter: "{a} <br/>{c}%"
- },
- toolbox: {
- show: false,
- feature: {
- restore: {
- show: false
- },
- saveAsImage: {
- show: false
- }
- }
- },
- series: [{
- type: 'gauge',
- center: ['50%', '50%'],
- min: 0,
- max: 100,
- splitNumber: 10,
- radius: '85%',
- axisLine: { // 坐标轴线
- lineStyle: { // 属性lineStyle控制线条样式
- color: [
- [0.2, '#ff4500'],
- [0.6, '#FF9536'],
- [0.8, '#1e90ff'],
- [1, 'lime']
- ],
- width: 3,
- shadowColor: '#fff', //默认透明
- shadowBlur: 10
- }
- },
- axisTick: { // 坐标轴小标记
- length: 15, // 属性length控制线长
- lineStyle: { // 属性lineStyle控制线条样式
- color: 'auto'
- }
- },
- splitLine: { // 分隔线
- length: 20, // 属性length控制线长
- lineStyle: { // 属性lineStyle(详见lineStyle)控制线条样式
- color: 'auto'
- }
- },
- axisLabel: { // 坐标轴小标记
- textStyle: { // 属性lineStyle控制线条样式
- fontSize: 9, //改变仪表盘内刻度数字的大小
- //shadowColor : '#000', //默认透明
- }
- },
- pointer: {
- width: 3, //指针的宽度
- length: "60%", //指针长度,按照半圆半径的百分比
- shadowColor: '#ccc', //默认透明
- shadowBlur: 5
- },
- title: {
- // 其余属性默认使用全局文本样式,详见TEXTSTYLE
- offsetCenter: [0, '65%'],
- fontWeight: 'bolder',
- fontSize: 12,
- color: "#fff",
- fontStyle: 'italic'
- },
- detail: {
- fontSize: 12,
- // 其余属性默认使用全局文本样式,详见TEXTSTYLE
- formatter: function (value) {
- console.log(54)
- value = (value + '').split('.');
- value.length < 2 && (value.push('00'));
- return ('00' + value[0]).slice(0 - value[0].length) +
- '.' + (value[1] + '00').slice(0, 2) + '%';
- }
- },
- textStyle: {
- color: "#fff",
- fontSize: 12
- },
- data: [{
- value: 87.66,
- name: '日配娩率'
- }]
- },
- ]
- }
- // 配娩率
- option_pml = {
- title: {
- text: '配娩率',
- textStyle: {
- color: '#fff',
- },
- left: 'center'
- },
- tooltip: {
- trigger: 'axis',
- axisPointer: { // 坐标轴指示器,坐标轴触发有效
- type: 'line' // 默认为直线,可选为:'line' | 'shadow'
- }
- },
- grid: {
- x: 20,
- y: 20,
- x2: 35,
- y2: 20,
- containLabel: true
- },
- color: ['#7BDFF2'],
- xAxis: {
- type: 'category',
- boundaryGap: false,
- data: ['1月', '2月', '3月', '4月', '5月', '6月', '7月', '8月', '9月', '10月', '11月', '12月'],
- axisLine: {
- show: true,
- lineStyle: {
- type: 'solid',
- color: '#fff', //左边线的颜色
- width: '1' //坐标线的宽度
- }
- }
- },
- yAxis: {
- type: 'value',
- axisLabel: {
- formatter: '{value} %'
- },
- axisLine: {
- show: true,
- lineStyle: {
- type: 'solid',
- color: '#fff', //左边线的颜色
- width: '1' //坐标线的宽度
- }
- },
- scale: true,
- min: (val) => {
- return Math.floor(val.min * 0.95)
- },
- splitLine: {
- show: false
- }
- },
- series: [{
- data: [92, 91.25, 91.56, 89.48, 89.99, 89.75, 89.22, 89.68, 92.48, 91.68, 90.79, 87.66],
- type: 'line',
- markLine: {
- data: [{ type: "average", name: "平均值" }]
- }
- }]
- }
- if (option_clfb && typeof option_clfb === "object") {
- myChart_clfb.setOption(option_clfb, true);
- }
- if (option_tcqk && typeof option_tcqk === "object") {
- myChart_tcqk.setOption(option_tcqk, true);
- }
- if (option_gjdzzcl && typeof option_gjdzzcl === "object") {
- myChart_gjdzzcl.setOption(option_gjdzzcl, true);
- }
- if (option_ydfscts && typeof option_ydfscts === "object") {
- myChart_ydfscts.setOption(option_ydfscts, true);
- }
- if (option_ttfb && typeof option_ttfb === "object") {
- myChart_ttfb.setOption(option_ttfb, true);
- }
- if (option_ydttsl && typeof option_ydttsl === "object") {
- myChart_ydttsl.setOption(option_ydttsl, true);
- }
- if (option_rfql && typeof option_rfql === "object") {
- myChart_rfql.setOption(option_rfql, true);
- }
- if (option_fql && typeof option_fql === "object") {
- myChart_fql.setOption(option_fql, true);
- }
- if (option_rstl && typeof option_rstl === "object") {
- myChart_rstl.setOption(option_rstl, true);
- }
- if (option_stl && typeof option_stl === "object") {
- myChart_stl.setOption(option_stl, true);
- }
- if (option_rpml && typeof option_rpml === "object") {
- myChart_rpml.setOption(option_rpml, true);
- }
- if (option_pml && typeof option_pml === "object") {
- myChart_pml.setOption(option_pml, true);
- }
- </script>
- <script src="js/scrollBar.js" type="text/javascript"></script>
- <script>
- $('.line2 .list').scrollBar({
- barWidth: 5, //滚动条的宽度(这里根据需要写数值即可,不设置是10,即默认10px)
- position: "y", //写“x”代表只出水平滚动条,写“y”表示只出垂直滚动条,写“x,y”则出水平和垂直滚动条(只有在内容超出容器时才出现滚动条)
- wheelDis: 15 //滚轮滚动一次向下或向上滚动的距离,默认是15,可根据需要修改数值
- })
- $('#tab-area1 .pc-nums').scrollBar({
- barWidth: 5, //滚动条的宽度(这里根据需要写数值即可,不设置是10,即默认10px)
- position: "y", //写“x”代表只出水平滚动条,写“y”表示只出垂直滚动条,写“x,y”则出水平和垂直滚动条(只有在内容超出容器时才出现滚动条)
- wheelDis: 24 //滚轮滚动一次向下或向上滚动的距离,默认是15,可根据需要修改数值
- })
- $('#tab-area2 .select-list').scrollBar({
- barWidth: 5, //滚动条的宽度(这里根据需要写数值即可,不设置是10,即默认10px)
- position: "y", //写“x”代表只出水平滚动条,写“y”表示只出垂直滚动条,写“x,y”则出水平和垂直滚动条(只有在内容超出容器时才出现滚动条)
- wheelDis: 24 //滚轮滚动一次向下或向上滚动的距离,默认是15,可根据需要修改数值
- })
- </script>
- <script src="js/FlexoCalendar.js" type="text/javascript"></script>
- <script src="js/fzfx.js" type="text/javascript"></script>
- <body>
- </html>
|