12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205 |
- <!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 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='wait-finish'>
- <img src="images/todo.png" alt="">
- <div class='wait-do'>待办</div>
- </div>
- <div class='cross-line'></div>
- <div class="list">
- <div class="item">
- <span class="title">待配种:</span>
- <span class="cont">262头,其中断奶21天未配91头头头头头头头头</span>
- </div>
- <div class="item">
- <span class="title">待配种:</span>
- <span class="cont">262头,其中断奶21天未配92头头头头头头头</span>
- </div>
- <div class="item">
- <span class="title">待配种:</span>
- <span class="cont">262头,其中断奶21天未配93头头头头头头头</span>
- </div>
- <div class="item">
- <span class="title">待配种:</span>
- <span class="cont">262头,其中断奶21天未配94头头头头头头头</span>
- </div>
- </div>
- </div>
- <div class="line3">
- <div id="chartCenter">
- <div class='chart-tab-t'>
- <div class="chart-tab-title">月度非生产天数</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>
- </div>
- <div class="chartBlock">
- <div id="chartBottom1">
- <div class='choosebtn'>
- <div class="choosepc">
- <div class="choose-item">选择批次</div>
- <div class="cont"><img alt="" src="images/swtich.png"></div>
- </div>
- <div class="choosebox">
- <div class='box-btns'>
- <a href="javascript:;" class="a_demo_two switch-bt-active">批次
- </a>
- <a href="javascript:;" class="a_demo_two">区域
- </a>
- </div>
- <div class='tab-areas'>
- <div id='tab-area1' class="tab-area">
- <div class="pc-nums">
- <div class="item">
- <span class="cont">13245345753</span>
- </div>
- <div class="item">
- <span class="cont">13245345753</span>
- </div>
- <div class="item">
- <span class="cont">13245345753</span>
- </div>
- <div class="item">
- <span class="cont">13245345753</span>
- </div>
- <div class="item">
- <span class="cont">13245345753</span>
- </div>
- <div class="item">
- <span class="cont">13245345753</span>
- </div>
- <div class="item">
- <span class="cont">13245345753</span>
- </div>
- </div>
- </div>
- <div id='tab-area2' class="tab-area tabshow">
- <div class="select">
- <select name="build">
- <option value="后备舍">后备舍</option>
- <option value="配怀舍">配怀舍</option>
- <option value="分娩舍" selected>分娩舍</option>
- </select>
- </div>
- <div class='select-list'>
- <div class="item">
- <span class="cont">1单元</span>
- </div>
- <div class="item">
- <span class="cont">2单元</span>
- </div>
- <div class="item">
- <span class="cont">3单元</span>
- </div>
- <div class="item">
- <span class="cont">4单元</span>
- </div>
- <div class="item">
- <span class="cont">5单元</span>
- </div>
- <div class="item">
- <span class="cont">6单元</span>
- </div>
- <div class="item">
- <span class="cont">7单元</span>
- </div>
- </div>
- </div>
- </div>
- </div>
- </div>
- <div class='chart-tab-t'>
- <div class="chart-tab-title">配种分布</div>
- </div>
- <div id="chart-pzfb1"></div>
- <div id="chart-pzfb2"></div>
- </div>
- <div id="chartBottom2">
- <div class='chart-tab-t'>
- <div class="chart-tab-title">分娩产仔分布</div>
- </div>
- <div id="chart-fmczfb1"></div>
- <div id="chart-fmczfb2">
- </div>
- </div>
- </div>
- </div>
- </div>
- </div>
- <script>
- var dom_clfb = document.getElementById("chart-clfb");
- var dom_tcqk = document.getElementById("chart-tcqk");
- var dom_ydfscts = document.getElementById("chart-ydfscts");
- var dom_ttfb = document.getElementById("chart-ttfb");
- var dom_ydttsl = document.getElementById("chart-ydttsl");
- var dom_pzfb1 = document.getElementById("chart-pzfb1");
- var dom_pzfb2 = document.getElementById("chart-pzfb2");
- var dom_fmczfb1 = document.getElementById("chart-fmczfb1");
- var dom_fmczfb2 = document.getElementById("chart-fmczfb2");
- var myChart_clfb = echarts.init(dom_clfb);
- var myChart_tcqk = echarts.init(dom_tcqk);
- var myChart_ydfscts = echarts.init(dom_ydfscts);
- var myChart_ttfb = echarts.init(dom_ttfb);
- var myChart_ydttsl = echarts.init(dom_ydttsl);
- var myChart_pzfb1 = echarts.init(dom_pzfb1);
- var myChart_pzfb2 = echarts.init(dom_pzfb2);
- var myChart_fmczfb1 = echarts.init(dom_fmczfb1);
- var myChart_fmczfb2 = echarts.init(dom_fmczfb2);
- var app = {};
- 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;
- //存栏分布饼状图
- option_clfb = {
- tooltip: {
- trigger: 'item',
- formatter: "{a} <br/>{b}: {c} ({d}%)"
- },
- 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'
- },
- 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_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}%)"
- },
- legend: {
- orient: 'vertical',
- right: 30,
- top: 20,
- bottom: 20,
- data: ['疾病', '死亡', '日龄过大', '胎次过高', '屡配不孕', '分娩低产', '繁殖障碍'],
- textStyle: {
- color: '#fff',
- }
- },
- series: [{
- name: '淘汰分布',
- type: 'pie',
- radius: '80%',
- center: ['40%', '50%'],
- data: [{
- value: 10,
- name: '疾病'
- }, {
- value: 20,
- name: '死亡'
- }, {
- value: 30,
- name: '日龄过大'
- }, {
- value: 40,
- name: '胎次过高'
- }, {
- value: 33,
- name: '屡配不孕'
- }, {
- value: 12,
- name: '分娩低产'
- }, {
- value: 67,
- 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: '#FF3C38' // 0% 处的颜色
- }, {
- offset: 0.65,
- color: '#EFC3E6' // 65% 处的颜色
- }, {
- offset: 1,
- color: '#d0c4b0' // 100% 处的颜色
- }]), //背景渐变色
- lineStyle: { // 系列级个性化折线样式
- show: false
- }
- },
- emphasis: {
- color: '#ffeb3b',
- lineStyle: { // 系列级个性化折线样式
- width: 2,
- type: 'dotted',
- color: "#ffeb3b" //折线的颜色
- }
- }
- },
- type: 'line',
- areaStyle: {}
- }]
- };
- //配种分布1金字塔
- var colorA = ['#0050e3', '#0061e4', '#0076e4', '#0084e6', '#0084e6', '#0084e6'];
- option_pzfb1 = {
- 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: colorA,
- label: {
- show: true,
- position: 'outside',
- textStyle: {
- color: '#fff',
- fontSize: 14
- }
- },
- labelLine: {
- length: 10,
- lineStyle: {
- width: 1,
- type: 'solid'
- }
- },
- itemStyle: {
- borderColor: '#fff',
- borderWidth: 0
- },
- emphasis: {
- label: {
- fontSize: 20
- }
- },
- data: [{
- value: 120,
- name: '阳性'
- },
- {
- value: 100,
- name: '空胎'
- },
- {
- value: 80,
- name: '返情'
- },
- {
- value: 60,
- name: '流产'
- },
- {
- value: 40,
- name: '阴性'
- },
- {
- value: 20,
- name: '疑似'
- }
- ]
- }]
- };
- ////配种分布2仪表盘
- option_pzfb2 = {
- tooltip: {
- formatter: "{a} <br/>{c}%"
- },
- toolbox: {
- show: false,
- feature: {
- restore: {
- show: false
- },
- saveAsImage: {
- show: false
- }
- }
- },
- series: [{
- name: '配种分娩率',
- type: 'gauge',
- center: ['50%', '50%'],
- min: 0,
- max: 100,
- splitNumber: 10,
- radius: '85%',
- axisLine: { // 坐标轴线
- lineStyle: { // 属性lineStyle控制线条样式
- color: [
- [0.2, '#ff4500'],
- [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: 75.23,
- name: '配种分娩率'
- }]
- }]
- };
- //分娩产仔分布1柱状图
- var dataAxis = ['健仔', '弱仔', '畸仔', '死胎', '木乃伊'];
- var data = [444, 21, 34, 12, 15];
- option_fmczfb1 = {
- grid: {
- x: 45,
- y: 25,
- x2: 45,
- y2: 25,
- },
- xAxis: {
- type: 'category',
- data: dataAxis,
- axisLabel: {
- inside: false,
- textStyle: {
- color: '#fff',
- fontSize: 14
- },
- },
- axisTick: {
- show: false
- },
- axisLine: {
- show: true,
- lineStyle: {
- type: 'solid',
- color: '#fff', //左边线的颜色
- width: '1' //坐标线的宽度
- }
- }
- },
- yAxis: {
- axisLabel: {
- },
- axisLine: {
- show: true,
- lineStyle: {
- type: 'solid',
- color: '#fff', //左边线的颜色
- width: '1' //坐标线的宽度
- }
- },
- axisTick: {
- show: true
- },
- splitLine: {
- lineStyle: {
- type: 'solid',
- color: '#1c3860', //左边线的颜色
- width: '1' //坐标线的宽度
- }
- }, //网格线
- },
- series: [{
- type: 'pictorialBar',
- barWidth: "80%",
- barCategoryGap: '30%',
- symbol: 'path://M0,10 L10,10 L5,0 L0,10 z',
- //symbol: 'path://M0,10 L10,10 C5.5,10 5.5,5 5,0 C4.5,5 4.5,10 0,10 z',
- itemStyle: {
- normal: {
- color: function(params) {
- var colorList = ['#fc232e', '#fe9e1a', '#22aeed', '#52e461', '#903397', '#B74AE5', '#0AAF9F', '#E89589',
- '#16A085', '#4A235A', '#C39BD3 ', '#F9E79F', '#BA4A00', '#ECF0F1', '#616A6B', '#EAF2F8', '#4A235A',
- '#3498DB'
- ];
- return colorList[params.dataIndex]
- },
- label: {
- show: true, //开启显示
- position: 'top', //在上方显示
- textStyle: { //数值样式
- color: '#fff',
- fontSize: 12
- }
- }
- }
- },
- data: data,
- }]
- };
- //分娩产仔分布1仪表盘
- option_fmczfb2 = {
- tooltip: {
- formatter: "{a} <br/>{c}"
- },
- toolbox: {
- show: false,
- feature: {
- restore: {
- show: false
- },
- saveAsImage: {
- show: false
- }
- }
- },
- series: [{
- name: '分娩活仔率',
- type: 'gauge',
- center: ['28%', '50%'],
- min: 0,
- max: 100,
- splitNumber: 10,
- radius: '90%',
- axisLine: { // 坐标轴线
- lineStyle: { // 属性lineStyle控制线条样式
- color: [
- [0.2, '#ff4500'],
- [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
- 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: 88.23,
- name: '分娩活仔率'
- }]
- },
- {
- name: '窝均活仔数',
- type: 'gauge',
- center: ['65%', '50%'],
- min: 0,
- max: 20,
- splitNumber: 10,
- radius: '90%',
- axisLine: { // 坐标轴线
- lineStyle: { // 属性lineStyle控制线条样式
- color: [
- [0.2, '#ff4500'],
- [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
- 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: 15.5,
- 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_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_pzfb1 && typeof option_pzfb1 === "object") {
- myChart_pzfb1.setOption(option_pzfb1, true);
- }
- if (option_pzfb2 && typeof option_pzfb2 === "object") {
- myChart_pzfb2.setOption(option_pzfb2, true);
- }
- if (option_fmczfb1 && typeof option_fmczfb1 === "object") {
- myChart_fmczfb1.setOption(option_fmczfb1, true);
- }
- if (option_fmczfb2 && typeof option_fmczfb2 === "object") {
- myChart_fmczfb2.setOption(option_fmczfb2, 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>
|