|
@@ -1,14 +1,645 @@
|
|
|
<template>
|
|
|
<div class="home">
|
|
|
+ <div class="flex">
|
|
|
+ <div class="flex-al">
|
|
|
+ <div class="fontSize">能繁母猪数量</div>
|
|
|
+ <count-in></count-in>
|
|
|
+ <div class="fontSize"> 头</div>
|
|
|
+ </div>
|
|
|
+ <div class="flex-al">
|
|
|
+ <div class="fontSize">生猪存栏</div>
|
|
|
+ <count-in></count-in>
|
|
|
+ <div class="fontSize"> 头</div>
|
|
|
+ </div>
|
|
|
+ <div class="flex-al">
|
|
|
+ <div class="fontSize">采集器在线率</div>
|
|
|
+ <count-dec></count-dec>
|
|
|
+ <div class="fontSize"> %</div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ <div class="below">
|
|
|
+ <div class="below-left">
|
|
|
+ <!-- 母猪状态 -->
|
|
|
+ <div class="state">
|
|
|
+ <div class="title-background"></div>
|
|
|
+ <chart-state></chart-state>
|
|
|
+ </div>
|
|
|
+ <!-- 母猪日龄 -->
|
|
|
+ <div class="age">
|
|
|
+ <div class="title-background"></div>
|
|
|
+ <chart-age></chart-age>
|
|
|
+ </div>
|
|
|
+ <!-- 母猪淘汰 -->
|
|
|
+ <div class="weed">
|
|
|
+ <div class="title-background"></div>
|
|
|
+ <div class="weed-left">
|
|
|
+ <chart-weed-pie></chart-weed-pie>
|
|
|
+ </div>
|
|
|
+ <div class="weed-right">
|
|
|
+ <chart-weed-line></chart-weed-line>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ <div class="below-center">
|
|
|
+ <!-- 牧场统计 -->
|
|
|
+ <div class="static">
|
|
|
+ <div class="title-background"></div>
|
|
|
+ <!-- 统计 -->
|
|
|
+ <div class="static-top">
|
|
|
+ <div class="static-title">
|
|
|
+ <p>总存栏</p>
|
|
|
+ <p>123456</p>
|
|
|
+ </div>
|
|
|
+ <div class="static-title">
|
|
|
+ <p>可出栏数量</p>
|
|
|
+ <p>123456</p>
|
|
|
+ </div>
|
|
|
+ <div class="static-title">
|
|
|
+ <p>可出栏较上月</p>
|
|
|
+ <p>12%</p>
|
|
|
+ </div>
|
|
|
+ <div class="static-content">金东区</div>
|
|
|
+ </div>
|
|
|
+ <div class="static-bottom">
|
|
|
+ <div class="static-chart-left">
|
|
|
+ <chart-static-bar></chart-static-bar>
|
|
|
+ </div>
|
|
|
+ <div class="static-chart-right">
|
|
|
+ <chart-static-line></chart-static-line>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ <!-- 报警信息 -->
|
|
|
+ <div class="alarm">
|
|
|
+ <div class="title-background"></div>
|
|
|
+ <div class="alarm-left">
|
|
|
+ <div class="alarm-title">
|
|
|
+ <div class="alarm-flex">
|
|
|
+ <p>30</p>
|
|
|
+ <p>猪只报警</p>
|
|
|
+ </div>
|
|
|
+ <div class="alarm-logo"></div>
|
|
|
+ <div class="alarm-flex">
|
|
|
+ <p>20</p>
|
|
|
+ <p>环境报警</p>
|
|
|
+ </div>
|
|
|
+ <div class="alarm-logo"></div>
|
|
|
+ <div class="alarm-flex">
|
|
|
+ <p>20</p>
|
|
|
+ <p>总数</p>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ <div class="alarm-pie">
|
|
|
+ <div class="alarm-logo1"></div>
|
|
|
+ <chart-alarm></chart-alarm>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ <div class="alarm-right">
|
|
|
+ <div class="alarm-text">
|
|
|
+ <div class="flex-left">时间</div>
|
|
|
+ <div class="flex-center">内容</div>
|
|
|
+ <div class="flex-right">位置</div>
|
|
|
+ </div>
|
|
|
+ <div class="alarm-scroll">
|
|
|
+ <vue-seamless-scroll :data="data" :class-option="defaultOption">
|
|
|
+ <div class="alarm-item" v-for="(item, i) in data" :key="i">
|
|
|
+ <div class="flex-left">{{item.time}}</div>
|
|
|
+ <div class="flex-center">{{item.name}}</div>
|
|
|
+ <div class="flex-right">{{item.location}}</div>
|
|
|
+ </div>
|
|
|
+ </vue-seamless-scroll>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ <div class="below-left">
|
|
|
+ <!-- 商品猪存栏分布 -->
|
|
|
+ <div class="hand">
|
|
|
+ <div class="title-background"></div>
|
|
|
+ <chart-age :id="'1'"></chart-age>
|
|
|
+ </div>
|
|
|
+ <!-- 存活率 -->
|
|
|
+ <div class="survival">
|
|
|
+ <div class="title-background"></div>
|
|
|
+ <div class="survival-flex">
|
|
|
+ <div>
|
|
|
+ <chart-weed-pie :id="'1'"></chart-weed-pie>
|
|
|
+ </div>
|
|
|
+ <div>
|
|
|
+ <chart-weed-pie :id="'2'"></chart-weed-pie>
|
|
|
+ </div>
|
|
|
+ <div>
|
|
|
+ <chart-weed-pie :id="'3'"></chart-weed-pie>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ <!-- 商品猪出栏 -->
|
|
|
+ <div class="crop">
|
|
|
+ <div class="title-background"></div>
|
|
|
+ <chart-crop></chart-crop>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
</div>
|
|
|
</template>
|
|
|
|
|
|
<script>
|
|
|
|
|
|
-
|
|
|
+import CountIn from "../components/CountIn";
|
|
|
+import CountDec from "../components/CountDec";
|
|
|
+import chartState from "../components/chart/chartState";
|
|
|
+import chartAge from "../components/chart/chartAge";
|
|
|
+import chartWeedPie from "../components/chart/chartWeedPie";
|
|
|
+import chartWeedLine from "../components/chart/chartWeedLine";
|
|
|
+import chartStaticBar from "../components/chart/chartStaticBar";
|
|
|
+import chartStaticLine from "../components/chart/chartStaticLine";
|
|
|
+import chartAlarm from "../components/chart/chartAlarm";
|
|
|
+import chartCrop from "../components/chart/chartCrop";
|
|
|
+import vueSeamlessScroll from 'vue-seamless-scroll'
|
|
|
export default {
|
|
|
name: 'Home',
|
|
|
components: {
|
|
|
+ CountIn,
|
|
|
+ CountDec,
|
|
|
+ chartState,
|
|
|
+ chartAge,
|
|
|
+ chartWeedPie,
|
|
|
+ chartWeedLine,
|
|
|
+ chartStaticBar,
|
|
|
+ chartStaticLine,
|
|
|
+ chartAlarm,
|
|
|
+ vueSeamlessScroll,
|
|
|
+ chartCrop
|
|
|
+ },
|
|
|
+ computed: {
|
|
|
+ defaultOption () {
|
|
|
+ return {
|
|
|
+ step: 0.2, // 数值越大速度滚动越快
|
|
|
+ limitMoveNum: 2, // 开始无缝滚动的数据量 this.dataList.length
|
|
|
+ hoverStop: true, // 是否开启鼠标悬停stop
|
|
|
+ direction: 1, // 0向下 1向上 2向左 3向右
|
|
|
+ openWatch: true, // 开启数据实时监控刷新dom
|
|
|
+ singleHeight: 0, // 单步运动停止的高度(默认值0是无缝不停止的滚动) direction => 0/1
|
|
|
+ singleWidth: 0, // 单步运动停止的宽度(默认值0是无缝不停止的滚动) direction => 2/3
|
|
|
+ waitTime: 1000 // 单步运动停止的时间(默认值1000ms)
|
|
|
+ }
|
|
|
+ }
|
|
|
+ },
|
|
|
+ data() {
|
|
|
+ return {
|
|
|
+ data: [
|
|
|
+ {
|
|
|
+ name: '132154236542532号猪只体温异常!',
|
|
|
+ time: '15:28',
|
|
|
+ location: '保育1栋1单元'
|
|
|
+ },
|
|
|
+ {
|
|
|
+ name: '132154236542532号猪只体温异常!',
|
|
|
+ time: '15:28',
|
|
|
+ location: '保育1栋1单元'
|
|
|
+ },
|
|
|
+ {
|
|
|
+ name: '132154236542532号猪只体温异常!',
|
|
|
+ time: '15:28',
|
|
|
+ location: '保育1栋1单元'
|
|
|
+ },
|
|
|
+ {
|
|
|
+ name: '132154236542532号猪只体温异常!',
|
|
|
+ time: '15:28',
|
|
|
+ location: '保育1栋1单元'
|
|
|
+ },
|
|
|
+ {
|
|
|
+ name: '132154236542532号猪只体温异常!',
|
|
|
+ time: '15:28',
|
|
|
+ location: '保育1栋1单元'
|
|
|
+ },
|
|
|
+ {
|
|
|
+ name: '132154236542532号猪只体温异常!',
|
|
|
+ time: '15:28',
|
|
|
+ location: '保育1栋1单元'
|
|
|
+ },
|
|
|
+ {
|
|
|
+ name: '132154236542532号猪只体温异常!',
|
|
|
+ time: '15:28',
|
|
|
+ location: '保育1栋1单元'
|
|
|
+ },
|
|
|
+ {
|
|
|
+ name: '132154236542532号猪只体温异常!',
|
|
|
+ time: '15:28',
|
|
|
+ location: '保育1栋1单元'
|
|
|
+ },
|
|
|
+ {
|
|
|
+ name: '132154236542532号猪只体温异常!',
|
|
|
+ time: '15:28',
|
|
|
+ location: '保育1栋1单元'
|
|
|
+ },
|
|
|
+ {
|
|
|
+ name: '132154236542532号猪只体温异常!',
|
|
|
+ time: '15:28',
|
|
|
+ location: '保育1栋1单元'
|
|
|
+ },
|
|
|
+ {
|
|
|
+ name: '132154236542532号猪只体温异常!',
|
|
|
+ time: '15:28',
|
|
|
+ location: '保育1栋1单元'
|
|
|
+ },
|
|
|
+ {
|
|
|
+ name: '132154236542532号猪只体温异常!',
|
|
|
+ time: '15:28',
|
|
|
+ location: '保育1栋1单元'
|
|
|
+ },
|
|
|
+ {
|
|
|
+ name: '132154236542532号猪只体温异常!',
|
|
|
+ time: '15:28',
|
|
|
+ location: '保育1栋1单元'
|
|
|
+ },{
|
|
|
+ name: '132154236542532号猪只体温异常!',
|
|
|
+ time: '15:28',
|
|
|
+ location: '保育1栋1单元'
|
|
|
+ },
|
|
|
+ {
|
|
|
+ name: '132154236542532号猪只体温异常!',
|
|
|
+ time: '15:28',
|
|
|
+ location: '保育1栋1单元'
|
|
|
+ },
|
|
|
+ {
|
|
|
+ name: '132154236542532号猪只体温异常!',
|
|
|
+ time: '15:28',
|
|
|
+ location: '保育1栋1单元'
|
|
|
+ },
|
|
|
+ {
|
|
|
+ name: '132154236542532号猪只体温异常!',
|
|
|
+ time: '15:28',
|
|
|
+ location: '保育1栋1单元'
|
|
|
+ },
|
|
|
+ {
|
|
|
+ name: '132154236542532号猪只体温异常!',
|
|
|
+ time: '15:28',
|
|
|
+ location: '保育1栋1单元'
|
|
|
+ },
|
|
|
+ {
|
|
|
+ name: '132154236542532号猪只体温异常!',
|
|
|
+ time: '15:28',
|
|
|
+ location: '保育1栋1单元'
|
|
|
+ },
|
|
|
+ {
|
|
|
+ name: '132154236542532号猪只体温异常!',
|
|
|
+ time: '15:28',
|
|
|
+ location: '保育2栋2单元'
|
|
|
+ },
|
|
|
+
|
|
|
+ ]
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
</script>
|
|
|
+<style scoped>
|
|
|
+ .home {
|
|
|
+ width: 100%;
|
|
|
+ height: 100%;
|
|
|
+ }
|
|
|
+ .flex {
|
|
|
+ width: 100%;
|
|
|
+ height: 120px;
|
|
|
+ display: flex;
|
|
|
+ justify-content: space-around;
|
|
|
+ margin-bottom: 30px;
|
|
|
+ }
|
|
|
+ .flex-al {
|
|
|
+ width: 100%;
|
|
|
+ display: flex;
|
|
|
+ justify-content: center;
|
|
|
+ align-items: center;
|
|
|
+ }
|
|
|
+ .fontSize {
|
|
|
+ color: #00ECCB;
|
|
|
+ font-size: 20px;
|
|
|
+ font-weight: 700;
|
|
|
+ }
|
|
|
+ .below {
|
|
|
+ width: 100%;
|
|
|
+ height: calc(100% - 160px);
|
|
|
+ box-sizing: border-box;
|
|
|
+ padding: 0 20px;
|
|
|
+ display: flex;
|
|
|
+ justify-content: space-around;
|
|
|
+ }
|
|
|
+ .below-left {
|
|
|
+ width: 550px;
|
|
|
+ height: 100%;
|
|
|
+ }
|
|
|
+ .below-center {
|
|
|
+ flex: 1;
|
|
|
+ margin: 0 20px;
|
|
|
+ }
|
|
|
+ .state {
|
|
|
+ width: 100%;
|
|
|
+ height: 280px;
|
|
|
+ margin-bottom: 20px;
|
|
|
+ position: relative;
|
|
|
+ border: 1px solid #12689D;
|
|
|
+ }
|
|
|
+ .state::after{
|
|
|
+ content: '母猪状态分布';
|
|
|
+ font-size: 20px;
|
|
|
+ font-weight: 600;
|
|
|
+ color: white;
|
|
|
+ position: absolute;
|
|
|
+ top: -35px;
|
|
|
+ left: 50%;
|
|
|
+ transform: translate(-50%, 0);
|
|
|
+ }
|
|
|
+ .title-background {
|
|
|
+ width: 230px;
|
|
|
+ height: 23px;
|
|
|
+ background: url("../assets/u71.png") no-repeat;
|
|
|
+ background-size: cover;
|
|
|
+ position: absolute;
|
|
|
+ top: -13.5px;
|
|
|
+ left: 50%;
|
|
|
+ transform: translate(-50%, 0);
|
|
|
+ }
|
|
|
+ .age {
|
|
|
+ width: 100%;
|
|
|
+ height: 280px;
|
|
|
+ margin-bottom: 20px;
|
|
|
+ position: relative;
|
|
|
+ border: 1px solid #12689D;
|
|
|
+ }
|
|
|
+ .age::after {
|
|
|
+ content: '母猪日龄分布';
|
|
|
+ font-size: 20px;
|
|
|
+ font-weight: 600;
|
|
|
+ color: white;
|
|
|
+ position: absolute;
|
|
|
+ top: 10px;
|
|
|
+ left: 50%;
|
|
|
+ transform: translate(-50%, 0);
|
|
|
+ }
|
|
|
+ .weed {
|
|
|
+ width: 100%;
|
|
|
+ height: calc(100% - 604px);
|
|
|
+ position: relative;
|
|
|
+ border: 1px solid #12689D;
|
|
|
+ display: flex;
|
|
|
+ }
|
|
|
+ .weed::after {
|
|
|
+ content: '母猪淘汰分析';
|
|
|
+ font-size: 20px;
|
|
|
+ font-weight: 600;
|
|
|
+ color: white;
|
|
|
+ position: absolute;
|
|
|
+ top: 10px;
|
|
|
+ left: 50%;
|
|
|
+ transform: translate(-50%, 0);
|
|
|
+ }
|
|
|
+ .weed-left {
|
|
|
+ width: 160px;
|
|
|
+ height: 100%;
|
|
|
+ }
|
|
|
+ .weed-right {
|
|
|
+ flex: 1;
|
|
|
+ box-sizing: border-box;
|
|
|
+ margin-left: 20px;
|
|
|
+ }
|
|
|
+ .static {
|
|
|
+ width: 100%;
|
|
|
+ height: 447px;
|
|
|
+ position: relative;
|
|
|
+ border: 1px solid #12689D;
|
|
|
+ margin-bottom: 20px;
|
|
|
+ }
|
|
|
+ .static::after {
|
|
|
+ content: '牧 场 统 计';
|
|
|
+ font-size: 20px;
|
|
|
+ font-weight: 600;
|
|
|
+ color: white;
|
|
|
+ position: absolute;
|
|
|
+ top: -35px;
|
|
|
+ left: 50%;
|
|
|
+ transform: translate(-50%, 0);
|
|
|
+ }
|
|
|
+ .static-top {
|
|
|
+ width: 100%;
|
|
|
+ height: 100px;
|
|
|
+ box-sizing: border-box;
|
|
|
+ padding: 10px 0;
|
|
|
+ display: flex;
|
|
|
+ justify-content: space-around;
|
|
|
+ text-align: center;
|
|
|
+ }
|
|
|
+ .static-top > div {
|
|
|
+ width: 148px;
|
|
|
+ height: 78px;
|
|
|
+ border: 1px solid #12689D;
|
|
|
+ }
|
|
|
+ .static-title > p:nth-child(1){
|
|
|
+ margin: 0;
|
|
|
+ line-height: 30px;
|
|
|
+ font-size: 18px;
|
|
|
+ color: #0093DC;
|
|
|
+ font-weight: 600;
|
|
|
+ }
|
|
|
+ .static-title > p:nth-child(2){
|
|
|
+ margin: 0;
|
|
|
+ line-height: 48px;
|
|
|
+ font-size: 32px;
|
|
|
+ color: white;
|
|
|
+ font-weight: 700;
|
|
|
+ }
|
|
|
+ .static-content {
|
|
|
+ font-size: 32px;
|
|
|
+ color: #FF9900;
|
|
|
+ line-height: 78px;
|
|
|
+ }
|
|
|
+ .static-bottom {
|
|
|
+ width: 100%;
|
|
|
+ height: calc(100% - 100px);
|
|
|
+ box-sizing: border-box;
|
|
|
+ padding: 10px 20px;
|
|
|
+ display: flex;
|
|
|
+ }
|
|
|
+ .static-chart-left {
|
|
|
+ width: 340px;
|
|
|
+ height: 100%;
|
|
|
+ }
|
|
|
+ .static-chart-right {
|
|
|
+ flex: 1;
|
|
|
+ margin-left: 20px;
|
|
|
+ }
|
|
|
+ .alarm {
|
|
|
+ width: 100%;
|
|
|
+ height: calc(100% - 469px);
|
|
|
+ border: 1px solid #12689D;
|
|
|
+ position: relative;
|
|
|
+ display: flex;
|
|
|
+ }
|
|
|
+ .alarm::after {
|
|
|
+ content: '报警信息';
|
|
|
+ font-size: 20px;
|
|
|
+ font-weight: 600;
|
|
|
+ color: white;
|
|
|
+ position: absolute;
|
|
|
+ top: 10px;
|
|
|
+ left: 50%;
|
|
|
+ transform: translate(-50%, 0);
|
|
|
+ }
|
|
|
+ .alarm-left {
|
|
|
+ width: 320px;
|
|
|
+ height: 100%;
|
|
|
+ }
|
|
|
+ .alarm-right {
|
|
|
+ flex: 1;
|
|
|
+ margin-left: 10px;
|
|
|
+ box-sizing: border-box;
|
|
|
+ padding-top: 40px;
|
|
|
+ }
|
|
|
+ .alarm-title {
|
|
|
+ width: 100%;
|
|
|
+ height: 70px;
|
|
|
+ display: flex;
|
|
|
+ align-items: center;
|
|
|
+ justify-content: space-between;
|
|
|
+ }
|
|
|
+ .alarm-flex {
|
|
|
+ width: 100px;
|
|
|
+ height: 100%;
|
|
|
+ text-align: center;
|
|
|
+ }
|
|
|
+ .alarm-flex > p:nth-child(1) {
|
|
|
+ margin: 0;
|
|
|
+ line-height: 50px;
|
|
|
+ color: #0078C2;
|
|
|
+ font-weight: 700;
|
|
|
+ font-size: 32px;
|
|
|
+ }
|
|
|
+ .alarm-flex > p:nth-child(2) {
|
|
|
+ margin: 0;
|
|
|
+ line-height: 20px;
|
|
|
+ color: #fff;
|
|
|
+ font-weight: 700;
|
|
|
+ font-size: 16px;
|
|
|
+ }
|
|
|
+ .alarm-logo {
|
|
|
+ width: 5px;
|
|
|
+ height: 40px;
|
|
|
+ background: url("../assets/u326.svg") no-repeat;
|
|
|
+ background-size: cover;
|
|
|
+ }
|
|
|
+ .alarm-pie {
|
|
|
+ width: 100%;
|
|
|
+ height: calc(100% - 70px);
|
|
|
+ position: relative;
|
|
|
+ }
|
|
|
+ .alarm-logo1 {
|
|
|
+ width: 65px;
|
|
|
+ height: 65px;
|
|
|
+ position: absolute;
|
|
|
+ top: 50%;
|
|
|
+ left: 50%;
|
|
|
+ transform: translate(-50%, -50%);
|
|
|
+ background: url("../assets/u337.png") no-repeat;
|
|
|
+ background-size: cover;
|
|
|
+ }
|
|
|
+ .alarm-text {
|
|
|
+ width: 100%;
|
|
|
+ height: 25px;
|
|
|
+ background-color: #0C1328;
|
|
|
+ display: flex;
|
|
|
+ justify-content: space-between;
|
|
|
+ text-align: center;
|
|
|
+ color: white;
|
|
|
+ font-size: 16px;
|
|
|
+ }
|
|
|
+ .flex-left {
|
|
|
+ width: 50px;
|
|
|
+ height: 100%;
|
|
|
+ line-height: 25px;
|
|
|
+ }
|
|
|
+ .flex-center {
|
|
|
+ width: 250px;
|
|
|
+ height: 100%;
|
|
|
+ line-height: 25px;
|
|
|
+ }
|
|
|
+ .flex-right {
|
|
|
+ width: 100px;
|
|
|
+ height: 100%;
|
|
|
+ line-height: 25px;
|
|
|
+ }
|
|
|
+ .alarm-scroll {
|
|
|
+ width: 100%;
|
|
|
+ height: calc(100% - 25px);
|
|
|
+ position: relative;
|
|
|
+ overflow: hidden;
|
|
|
+ }
|
|
|
+ .alarm-item {
|
|
|
+ width: 100%;
|
|
|
+ height: 25px;
|
|
|
+ display: flex;
|
|
|
+ justify-content: space-between;
|
|
|
+ text-align: center;
|
|
|
+ color: white;
|
|
|
+ font-size: 12px;
|
|
|
+ margin-bottom: 5px;
|
|
|
+ }
|
|
|
+ .hand {
|
|
|
+ width: 100%;
|
|
|
+ height: 280px;
|
|
|
+ margin-bottom: 20px;
|
|
|
+ position: relative;
|
|
|
+ border: 1px solid #12689D;
|
|
|
+ }
|
|
|
+ .hand::after {
|
|
|
+ content: '商品猪存栏分布';
|
|
|
+ font-size: 20px;
|
|
|
+ font-weight: 600;
|
|
|
+ color: white;
|
|
|
+ position: absolute;
|
|
|
+ top: -35px;
|
|
|
+ left: 50%;
|
|
|
+ transform: translate(-50%, 0);
|
|
|
+ }
|
|
|
+ .survival {
|
|
|
+ width: 100%;
|
|
|
+ height: calc(100% - 604px);
|
|
|
+ position: relative;
|
|
|
+ border: 1px solid #12689D;
|
|
|
+ }
|
|
|
+ .survival::after {
|
|
|
+ content: '存 活 率';
|
|
|
+ font-size: 20px;
|
|
|
+ font-weight: 600;
|
|
|
+ color: white;
|
|
|
+ position: absolute;
|
|
|
+ top: 10px;
|
|
|
+ left: 50%;
|
|
|
+ transform: translate(-50%, 0);
|
|
|
+ }
|
|
|
+ .survival-flex {
|
|
|
+ width: 100%;
|
|
|
+ height: 100%;
|
|
|
+ box-sizing: border-box;
|
|
|
+ padding-top: 40px;
|
|
|
+ display: flex;
|
|
|
+ }
|
|
|
+ .survival-flex > div {
|
|
|
+ flex: 1;
|
|
|
+ }
|
|
|
+ .crop {
|
|
|
+ width: 100%;
|
|
|
+ margin-top: 20px;
|
|
|
+ height: 280px;
|
|
|
+ border: 1px solid #12689D;
|
|
|
+ position: relative;
|
|
|
+ }
|
|
|
+ .crop::after {
|
|
|
+ content: '商品猪出栏预测';
|
|
|
+ font-size: 20px;
|
|
|
+ font-weight: 600;
|
|
|
+ color: white;
|
|
|
+ position: absolute;
|
|
|
+ top: 10px;
|
|
|
+ left: 50%;
|
|
|
+ transform: translate(-50%, 0);
|
|
|
+ }
|
|
|
+</style>
|