Browse Source

首页翻译基本完全

Shan9312 1 year ago
parent
commit
a20a58f926
3 changed files with 165 additions and 75 deletions
  1. 44 2
      src/lang/cn.js
  2. 45 5
      src/lang/en.js
  3. 76 68
      src/views/dashboard/pasture/index.vue

+ 44 - 2
src/lang/cn.js

@@ -23,6 +23,9 @@ export default {
     requestMsg:'请求超时',
     logoIcon: require('../assets/images/logo1.png'),
     logoM: require('../assets/images/logo_u3.png'),
+    relogo:'重新登陆',//重新登陆
+     conLogo:'确认注销',
+    watchMore:'查看更多'
   },
   auth: {
     useTestAccount: '不想注册?点我使用测试账号',
@@ -96,6 +99,7 @@ export default {
     pTrip:"计划车次",
     cWeight:'完成重量',
     pWeight:"计划重量",
+    rWright:'剩余重量',
     costSts:'成本统计',
     Export:'导出',
     sTable:'切换表格',
@@ -106,14 +110,52 @@ export default {
     table:{
       date:"日期",
       signOx:'单头牛饲料成本',
-      feedCow:'公斤奶饲料成本(元)'
+      feedCow:'公斤奶饲料成本(元)',
+      PEWeight:'计划执行重量(kg)',
+      FTWeight:'配方理论重量(kg)',
+      PARate:'计划准确率',
+      PCWeight:"计划取消重量(kg)",
+      PCancelWeight:"计划准确率(去除取消重量)",
+      CNumP:"计划正确数",
+      CNumR:'计划正确率'
     },
     feedCow:'公斤奶饲料成本',
     tHeader:['日期', '单头牛饲料成本', '公斤奶饲料成本(元)'],
     CostStatistics:'成本统计',
     feedCows:'公斤奶\n饲料成本(元)',
     signOxs:'单头牛\n饲料成本(元)',
-
+    timeTitle:'实时监控',
+    monitMsg:"当前无正在进行中车次",
+    curVeh:"当前车辆",
+    Dweight:'设计重量',
+    AWeight:'实际重量',
+    SWeight:'开始重量',
+    EWight:'结束重量',
+    yWeight:'重量(kg)',
+    xTime:"时间",
+    veh:'车辆',
+    feed:'饲料',
+    fname:'栏舍',
+    remark:"描述",
+    vehWeight:'当前车辆载重',
+    Pweight:"计划重量",
+    compaltRate:"完成度",
+    planSta:"计划统计",
+    cant:'百分比',
+    miruTitle:'泌乳牛干物质采食量',
+    miruMilk:"泌乳牛产奶量",
+    miruCow:"泌乳牛采食量",
+    miruMilk1:"泌乳牛产奶量(kg)",
+    miruCow1:"泌乳牛采食量(kg)",
+    miruCowMilk:'泌乳牛干\n物质采食量',
+    mixStatic:'混料实际重量统计',
+    stockAlart:"库存预警",
+    stockTable:{
+      num:"序号",
+      feedName:'饲料名称',
+      stockNum:'库存量',
+      lastDay:'剩余使用天数',
+    }
 
 
 

+ 45 - 5
src/lang/en.js

@@ -24,7 +24,8 @@ export default {
     logoIcon: require('../assets/images/logo-en-i.png'),
     logoM: require('../assets/images/logo-en-m.png'),
     relogo:'Log in again',//重新登陆
-     conLogo:'Confirm logout' //   确认注销
+     conLogo:'Confirm logout',
+     watchMore:'see more' //   确认注销
   },
   auth: {
     useTestAccount: 'Click here to use test account',
@@ -98,6 +99,7 @@ export default {
     pTrip:"Planned trip",
     cWeight:"Completed Weight",
     pWeight:"Planned Weight",
+    rWright:'Remaining Weight',
     costSts:'Cost Statistics',
     Export:"Export",
     sTable:'Switch Table',
@@ -108,18 +110,56 @@ export default {
     table:{
       date:"Date",
       signOx:'Feed Cost per Cow',
-      feedCow:'Feed Cost per Kilogram of Milk'
+      feedCow:'Feed Cost per Kilogram of Milk',
+      PEWeight:'Planned Execution Weight(kg)',
+      FTWeight:'Formula Theoretical Weight(kg)',
+      PARate:'Planning Accuracy Rate',
+      PCWeight:"Planned Cancellation Weight(kg)",
+      PCancelWeight:"Planning Accuracy Rate (Excluding Canceled Weight)",
+      CNumP:"Correct Number in Plan",
+      CNumR:'Planning Correctness Rate'
     },
     feedCow:'Feed Cost per Kilogram of Milk',
     tHeader:['Date', 'Feed Cost per Cow', 'Feed Cost per Kilogram of Milk'],
     CostStatistics:'Cost Statistics',
     feedCows:'ilogram of milk \n cost of feed per',
     signOxs:'per Cow \n Feed Cost',
-
-
-
+    timeTitle:'Real time monitoring',
+    monitMsg:"There are currently no trains in progress",
+    curVeh:"Current Vehicle",
+    Dweight:"Designed Weight",
+    AWeight: 'Actual Weight',
+    SWeight:'Starting Weight',
+    EWight:'Ending Weight',
+    yWeight:'Weight(kg)',
+    xTime:'Time',
+    veh:'Vehicle',
+    feed:'Forage',
+    fname:'Pens',
+    remark:"Description",
+    vehWeight:'Current Vehicle Load',
+    Pweight:"Planned Weight",
+    compaltRate:'Completion Rate',
+    planSta:'Planning Correctness Rate',
+    cant:'Percentage',
+    miruTitle:'Dry Matter Intake (DMI) of Lactating Cows',
+    miruMilk:"Milk Yield of Lactating Cows",
+    miruCow:"Feed Intake of Lactating Cows”",
+    miruMilk1:"Milk Yield of Lactating Cows(kg)",
+    miruCow1:"Feed Intake of Lactating Cows”(kg)",
+    miruCowMilk:'Dry Matter Intake \n Lactating Cows',
+    mixStatic:'Statistics of Actual Weight of Mixed Feed',
+    stockAlart:"Stock Alert",
+    stockTable:{
+      num:"Serial Number",
+      feedName:'Feed Name',
+      stockNum:'Inventory Quantity',
+      lastDay:'Remaining Days of Use',
+    }
+    
 
   },
+
   chart: {
     myChart: 'My Chart',
     createNewChart: 'Create New Chart',

+ 76 - 68
src/views/dashboard/pasture/index.vue

@@ -170,7 +170,7 @@
             >
               <el-table-column :label="$t('dashboard.table.date')" sortable min-width="110px" align="center" prop="日期" />
               <el-table-column :label="$t('dashboard.table.signOx')" sortable min-width="110px" align="center" prop="field2" />
-              <el-table-column label="$t('dashboard.table.feedCow')" sortable min-width="120px" align="center" prop="field1" />
+              <el-table-column :label="$t('dashboard.table.feedCow')" sortable min-width="120px" align="center" prop="field1" />
             </el-table>
           </div>
         </div>
@@ -179,34 +179,34 @@
         <div class="row1">
           <div class="title">
             <div class="img-title" />
-            <span class="content">实时监控</span>
+            <span class="content">{{$t('dashboard.timeTitle')}}</span>
           </div>
           <div v-if="carLength>0" id="row2chartLine3" ref="row2chartLine3" style="height: 260px;" />
-          <div v-else style="height: 260px;text-align: center;line-height: 260px;">当前无正在进行中车次 </div>
-          <div class="carsLength">当前车辆:<span>{{ carLength }}</span></div>
+          <div v-else style="height: 260px;text-align: center;line-height: 260px;">{{$t('dashboard.monitMsg')}} </div>
+          <div class="carsLength">{{$t('dashboard.curVeh')}}<span>{{ carLength }}</span></div>
           <div id="car" ref="car" v-loading="row2.chart3.listLoading2" class="car">
             <div ref="iconLeft" class="iconLeft" @click="handleLeft">
               <img v-if="row2.chart3.isLeft" src="../../../assets/images/index/row-r3.png" class="img-title">
               <img v-if="row2.chart3.isLeftA" src="../../../assets/images/index/row-r2.png" class="img-title">
             </div>
             <div id="carList" ref="carList" class="carList">
-              <div v-for="(item,index) in list" ref="listW" :key="index" class="listW">
+              <div v-for="(item,index) in list" ref="listW" :key="index" class="listW"  :lang="$i18n.locale">
                 <div ref="list" class="list" :style="{'background': item.background,'color':item.color,'borderColor':item.borderColor}" @click="handleList(index,item)">
                   <div class="list-t">
                     <div class="list-t-t">
                       <el-tooltip :content="item.tname" placement="top">
-                        <span>车辆:{{ item.tname }}</span>
+                        <span>{{ $t('dashboard.veh') }}:{{ item.tname }}</span>
                       </el-tooltip>
                     </div>
                     <div class="list-t-t">
                       <el-tooltip :content="item.fname" placement="top">
-                        <span v-if="item.inorout == 0">饲料:{{ item.fname }}</span>
-                        <span v-if="item.inorout == 1">栏舍:{{ item.fname }}</span>
+                        <span v-if="item.inorout == 0">{{ $t('dashboard.feed') }}:{{ item.fname }}</span>
+                        <span v-if="item.inorout == 1">{{ $t('dashboard.fname') }}:{{ item.fname }}</span>
                       </el-tooltip>
                     </div>
                     <div class="list-t-t">
                       <el-tooltip :content="item.remark" placement="top">
-                        <span>描述:{{ item.remark }}</span>
+                        <span>{{ $t('dashboard.remark') }}:{{ item.remark }}</span>
                       </el-tooltip>
                     </div>
                   </div>
@@ -215,35 +215,35 @@
                     <div class="list-b-l">
                       <div class="left">
                         <div class="num"><b>{{ item.doneweight }}</b>Kg</div>
-                        <div class="weight">完成重量</div>
+                        <div class="weight">{{$t('dashboard.cWeight')}}</div>
                       </div>
                       <div class="right" />
                     </div>
                     <div class="list-b-l">
                       <div class="left">
                         <div class="num"><b>{{ item.leftweight }}</b>Kg</div>
-                        <div class="weight">剩余重量</div>
+                        <div class="weight">{{$t('dashboard.rWright')}}</div>
                       </div>
                       <div class="right" />
                     </div>
                     <div class="list-b-l">
                       <div class="left">
                         <div class="num"><b>{{ item.nowweight }}</b>Kg</div>
-                        <div class="weight">车辆当前载重</div>
+                        <div class="weight">{{$t('dashboard.vehWeight')}}</div>
                       </div>
                       <div class="right" />
                     </div>
                     <div class="list-b-l">
                       <div class="left">
                         <div class="num"><b>{{ item.lweight }}</b>Kg</div>
-                        <div class="weight">计划重量</div>
+                        <div class="weight">{{$t('dashboard.Pweight')}}</div>
                       </div>
                       <div class="right" />
                     </div>
                     <div class="list-b-l">
                       <div class="left">
                         <div class="num"><b>{{ item.donerate }}</b></div>
-                        <div class="weight">完成度</div>
+                        <div class="weight">{{$t('dashboard.compaltRate')}}</div>
                       </div>
                     </div>
                   </div>
@@ -262,7 +262,7 @@
           <div class="row2-l" style="position: relative;">
             <div class="title">
               <div class="img-title" />
-              <span class="content">计划统计</span>
+              <span class="content">{{$t('dashboard.planSta')}}</span>
             </div>
             <div v-if="row3.chart1.isChart" class="button">
               <div class="exportTable" @click="handleExport('row3chartLine1')">{{$t('dashboard.Export')}}</div>
@@ -288,15 +288,15 @@
                 :cell-style="cellStyle"
                 class="elTable table-fixed"
               >
-                <el-table-column label="日期" sortable min-width="85px" align="center" prop="日期" />
-                <el-table-column label="计划执行重量(kg)" sortable min-width="90px" align="center" prop="实际量" />
-                <el-table-column label="配方理论重量(kg)" sortable min-width="90px" align="center" prop="理论量" />
-                <el-table-column label="计划准确率" sortable min-width="85px" align="center" prop="field1" />
-                <el-table-column label="计划取消重量(kg)" sortable min-width="90px" align="center" prop="计划取消重量" />
-                <el-table-column label="计划准确率(去除取消重量)" sortable min-width="100px" align="center" prop="field3" />
-                <el-table-column label="计划正确数" sortable min-width="85px" align="center" prop="正确数" />
-                <el-table-column label="计划数" sortable min-width="85px" align="center" prop="计划数" />
-                <el-table-column label="计划正确率" sortable min-width="75px" align="center" prop="field2" />
+                <el-table-column :label="$t('dashboard.table.date')" sortable min-width="85px" align="center" prop="日期" />
+                <el-table-column :label="$t('dashboard.table.PEWeight')" sortable min-width="90px" align="center" prop="实际量" />
+                <el-table-column :label="$t('dashboard.table.FTWeight')" sortable min-width="90px" align="center" prop="理论量" />
+                <el-table-column :label="$t('dashboard.table.PARate')" sortable min-width="85px" align="center" prop="field1" />
+                <el-table-column :label="$t('dashboard.table.PCWeight')" sortable min-width="90px" align="center" prop="计划取消重量" />
+                <el-table-column :label="$t('dashboard.table.PCancelWeight')" sortable min-width="100px" align="center" prop="field3" />
+                <el-table-column :label="$t('dashboard.table.CNumP')" sortable min-width="85px" align="center" prop="正确数" />
+                <el-table-column :label="$t('dashboard.table.PNum')" sortable min-width="85px" align="center" prop="计划数" />
+                <el-table-column :label="$t('dashboard.table.CNumR')" sortable min-width="75px" align="center" prop="field2" />
               </el-table>
             </div>
           </div>
@@ -304,7 +304,7 @@
 
             <div class="title">
               <div class="img-title" />
-              <span class="content">混料实际重量统计</span>
+              <span class="content">{{$t('dashboard.mixStatic')}}</span>
             </div>
             <div v-if="row4.chart2.isChart" class="button">
               <div class="exportTable" @click="handleExport('row4chartLine2')">{{$t('dashboard.Export')}}</div>
@@ -330,8 +330,8 @@
                 :cell-style="cellStyle"
                 class="elTable table-fixed"
               >
-                <el-table-column label="日期" sortable min-width="110px" align="center" prop="日期" />
-                <el-table-column label="重量" sortable min-width="110px" align="center" prop="field1" />
+                <el-table-column :label="$t('dashboard.table.date')" sortable min-width="110px" align="center" prop="日期" />
+                <el-table-column :label="$t('dashboard.yWeight')" sortable min-width="110px" align="center" prop="field1" />
               </el-table>
             </div>
 
@@ -345,7 +345,7 @@
 
             <div class="title">
               <div class="img-title" />
-              <span class="content">泌乳牛干物质采食量</span>
+              <span class="content">{{$t('dashboard.miruTitle')}}</span>
             </div>
             <div v-if="row3.chart2.isChart" class="button">
               <div class="exportTable" @click="handleExport('row3chartLine2')">{{$t('dashboard.Export')}}</div>
@@ -371,9 +371,9 @@
                 :cell-style="cellStyle"
                 class="elTable table-fixed"
               >
-                <el-table-column label="日期" sortable min-width="110px" align="center" prop="日期" />
-                <el-table-column label="泌乳牛采食量(kg)" sortable min-width="110px" align="center" prop="field1" />
-                <el-table-column label="泌乳牛产奶量(kg)" sortable min-width="110px" align="center" prop="field2" />
+                <el-table-column :label="$t('dashboard.table.date')" sortable min-width="110px" align="center" prop="日期" />
+                <el-table-column :label="$t('dashboard.miruCow1')" sortable min-width="110px" align="center" prop="field1" />
+                <el-table-column :label="$t('dashboard.miruMilk1')" sortable min-width="110px" align="center" prop="field2" />
               </el-table>
             </div>
 
@@ -381,8 +381,8 @@
           <div class="row3-r">
             <div class="title">
               <div class="img-title" />
-              <span class="content">库存预警</span>
-              <a style="float: right;color: #009C69;font-size: 12px;margin-right: 10px;" @click="handleMore">查看更多 &nbsp;>></a>
+              <span class="content">{{$t('dashboard.stockAlart')}}</span>
+              <a style="float: right;color: #009C69;font-size: 12px;margin-right: 10px;" @click="handleMore">{{$t('common.watchMore')}} &nbsp;>></a>
             </div>
             <div id="table" style="height: 330px;background: #fff;">
               <el-table
@@ -399,10 +399,10 @@
                 :cell-style="cellStyle"
                 class="elTable table-fixed"
               >
-                <el-table-column label="序号" type="index" min-width="80px" align="center" />
-                <el-table-column label="饲料名称" min-width="80px" align="center" prop="feedname" />
-                <el-table-column label="库存量(kg)" min-width="70px" align="center" prop="stockweight" />
-                <el-table-column label="剩余使用天数" min-width="80px" align="center" prop="ldays" />
+                <el-table-column :label="$t('dashboard.stockTable.num')" type="index" min-width="80px" align="center" />
+                <el-table-column :label="$t('dashboard.stockTable.feedName')"  min-width="80px" align="center" prop="feedname" />
+                <el-table-column :label="$t('dashboard.stockTable.stockNum')"  min-width="70px" align="center" prop="stockweight" />
+                <el-table-column :label="$t('dashboard.stockTable.lastDay')"  min-width="80px" align="center" prop="ldays" />
               </el-table>
             </div>
           </div>
@@ -890,12 +890,12 @@ export default {
         },
         legend: [{
           itemWidth: 15, itemHeight: 7, right: '25%', textStyle: { fontSize: 12 },
-          data: [{ name: '设计重量' }, { name: '实际重量'  }]
+          data: [{ name: this.$t('dashboard.Dweight')}, { name: this.$t('dashboard.AWeight')  }]
         }, {
           itemWidth: 5, itemHeight: 5, right: '0', textStyle: { fontSize: 12 },
           data: [
-            { name: '开始重量' },
-            { name: '结束重量' }
+            { name: this.$t('dashboard.SWeight') },
+            { name: this.$t('dashboard.EWight') }
           ]
         }],
         tooltip: {
@@ -904,16 +904,16 @@ export default {
             // console.log(params, 'params')
             var tip = params[0].name
             for (let i = 0; i < params.length; i++) {
-              if (params[i].seriesName == '设计重量') {
+              if (params[i].seriesName == this.$t('dashboard.Dweight')) {
                 tip += '<br>' + params[i].seriesName + ':' + params[i].value[1]
               }
-              if (params[i].seriesName == '实际重量') {
+              if (params[i].seriesName == this.$t('dashboard.AWeight') ) {
                 tip += '<br>' + params[i].seriesName + ':' + params[i].value[1]
               }
-              if (params[i].seriesName == '开始重量') {
+              if (params[i].seriesName == this.$t('dashboard.SWeight')) {
                 tip += '<br>' + params[i].seriesName + ':' + params[i].value[1]
               }
-              if (params[i].seriesName == '结束重量') {
+              if (params[i].seriesName == this.$t('dashboard.AWeight')) {
                 tip += '<br>' + params[i].seriesName + ':' + params[i].value[1] + '<br>' + params[i].value[2] + params[i].value[3]
               }
             }
@@ -922,10 +922,10 @@ export default {
         },
         calculable: true,
         yAxis: [
-          { type: 'value', name: '重量(kg)', splitLine: { show: false }, axisLabel: { show: true, textStyle: { color: '#666' }}}
+          { type: 'value', name: this.$t('dashboard.yWeight'), splitLine: { show: false }, axisLabel: { show: true, textStyle: { color: '#666' }}}
         ],
         xAxis: [
-          { type: 'category', splitLine: { show: false }, name: '时间', data: chartLine_data.data1, axisLabel: { show: true, textStyle: { color: '#666' }}}
+          { type: 'category', splitLine: { show: false }, name: this.$t('dashboard.xTime'), data: chartLine_data.data1, axisLabel: { show: true, textStyle: { color: '#666' }}}
         ],
         toolbox: {
           show: false,
@@ -939,10 +939,10 @@ export default {
           {type:'slider' },  //用于添加滑动条缩放,
         ],
         series: [
-          { symbol: 'none', name: '实际重量', type: 'line', data: chartLine_data.data3, itemStyle: { normal: { lineStyle: { color: '#ff0000' ,width:2}}}},
-          { symbol: 'none', name: '设计重量', type: 'line',  data: chartLine_data.data2, itemStyle: { normal: { lineStyle: {  width:2}}}},
-          { name: '开始重量', symbolSize: 6, type: 'scatter', data: chartLine_data.data4 },
-          { name: '结束重量', symbolSize: 6, type: 'scatter', data: chartLine_data.data5 }
+          { symbol: 'none', name: this.$t('dashboard.Dweight') , type: 'line', data: chartLine_data.data3, itemStyle: { normal: { lineStyle: { color: '#ff0000' ,width:2}}}},
+          { symbol: 'none', name: this.$t('dashboard.AWeight') , type: 'line',  data: chartLine_data.data2, itemStyle: { normal: { lineStyle: {  width:2}}}},
+          { name: this.$t('dashboard.SWeight') , symbolSize: 6, type: 'scatter', data: chartLine_data.data4 },
+          { name: this.$t('dashboard.EWight') , symbolSize: 6, type: 'scatter', data: chartLine_data.data5 }
         ]
       }
       this.row2.chart3.chartLine.setOption(option)
@@ -1173,11 +1173,11 @@ export default {
         tooltip: { trigger: 'axis' },
         color: ['#1abd88', '#549be9', '#fd8d75'],
         legend: {
-          data: ['计划准确率', '计划正确率', '计划准确率(去除取消重量)'],
+          data: [this.$t('dashboard.table.PARate'),this.$t('dashboard.table.CNumR'),this.$t('dashboard.table.PCancelWeight')],
           top: 10, itemHeight: 7, itemWidth: 15, textStyle: { fontSize: 12 }
         },
         grid: {
-          top: '20%',
+          top: '30%',
           left: '10%',
           right: '10%',
           bottom: '10%',
@@ -1188,14 +1188,14 @@ export default {
           right: '2%',
           feature: {}
         },
-        xAxis: { type: 'category', boundaryGap: false, data: chartLine_data.data1, name: '日期' },
+        xAxis: { type: 'category', boundaryGap: false, data: chartLine_data.data1, name: this.$t('dashboard.table.date'), },
         yAxis: {
-          type: 'value', name: '百分比', axisLabel: { formatter: '{value} %' }
+          type: 'value', name: this.$t('dashboard.cant'), axisLabel: { formatter: '{value} %' }
         },
         series: [
-          { name: '计划准确率', type: 'line', symbol: 'none', smooth: true, itemStyle: { normal: { lineStyle: { color: '#1abd88' }}}, data: chartLine_data.data2 },
-          { name: '计划正确率', type: 'line', symbol: 'none', smooth: true, itemStyle: { normal: { lineStyle: { color: '#549be9' }}}, data: chartLine_data.data3 },
-          { name: '计划准确率(去除取消重量)', type: 'line', symbol: 'none', smooth: true, itemStyle: { normal: { lineStyle: { color: '#fd8d75' }}}, data: chartLine_data.data4 }
+          { name: this.$t('dashboard.table.PARate'), type: 'line', symbol: 'none', smooth: true, itemStyle: { normal: { lineStyle: { color: '#1abd88' }}}, data: chartLine_data.data2 },
+          { name: this.$t('dashboard.table.CNumR'), type: 'line', symbol: 'none', smooth: true, itemStyle: { normal: { lineStyle: { color: '#549be9' }}}, data: chartLine_data.data3 },
+          { name: this.$t('dashboard.table.PCancelWeight'), type: 'line', symbol: 'none', smooth: true, itemStyle: { normal: { lineStyle: { color: '#fd8d75' }}}, data: chartLine_data.data4 }
         ]
       }
       this.row3.chart1.chartLine.setOption(option)
@@ -1246,18 +1246,18 @@ export default {
       var option = {
         title: { text: chartLine_data.title, x: 'center', y: 'center', textStyle: { color: '#909399', fontWeight: 'normal', fontSize: 12 }},
         tooltip: { trigger: 'axis', axisPointer: { type: 'cross', crossStyle: { color: '#999' }}},
-        grid: { top: '20%', left: '8%', right: '10%', bottom: '10%', containLabel: true },
-        legend: { data: ['泌乳牛干物质采食量', '泌乳牛产奶量'], right: 10, itemHeight: 7, itemWidth: 15 },
+        grid: { top: '26%', left: '8%', right: '10%', bottom: '10%', containLabel: true },
+        legend: { data: [this.$t('dashboard.miruTitle'), this.$t('dashboard.miruMilk')], right: 10, itemHeight: 7, itemWidth: 15 },
         xAxis: [{ type: 'category', data: chartLine_data.data1 }],
         yAxis: [{
-          splitLine: { show: false }, type: 'value', name: '泌乳牛干\n物质采食量', axisLabel: { formatter: '{value} ' }
+          splitLine: { show: false }, type: 'value', name: this.$t('dashboard.miruCowMilk'), axisLabel: { formatter: '{value} ' }
         }, {
-          splitLine: { show: false }, type: 'value', name: '泌乳牛产奶量', axisLabel: { formatter: '{value} ' }
+          splitLine: { show: false }, type: 'value', name:this.$t('dashboard.miruMilk') , axisLabel: { formatter: '{value} ' }
         }],
         series: [{
-          name: '泌乳牛干物质采食量', type: 'bar', barWidth: 5, itemStyle: { barBorderRadius: [18, 18, 0, 0], normal: { color: '#5199e5' }}, data: chartLine_data.data2
+          name: this.$t('dashboard.miruTitle'), type: 'bar', barWidth: 5, itemStyle: { barBorderRadius: [18, 18, 0, 0], normal: { color: '#5199e5' }}, data: chartLine_data.data2
         }, {
-          name: '泌乳牛产奶量', type: 'line', barWidth: 5,
+          name: this.$t('dashboard.miruMilk'), type: 'line', barWidth: 5,
           itemStyle: { barBorderRadius: [18, 18, 0, 0], normal: { color: '#36c293' }}, yAxisIndex: 1, data: chartLine_data.data3
         }]
       }
@@ -1313,7 +1313,7 @@ export default {
       this.row4.chart1.chartLine = echarts.init(document.getElementById('row4chartLine1'))
       var option = {
         title: { text: chartLine_data.title, x: 'center', y: 'center', textStyle: { color: '#909399', fontWeight: 'normal', fontSize: 12 }},
-        grid: { left: '10%', right: '12%', bottom: '3%', containLabel: true },
+        grid: { top:'30%', left: '10%', right: '6%', bottom: '3%', containLabel: true },
         tooltip: { trigger: 'axis', axisPointer: { type: 'cross', crossStyle: { color: '#999' }}},
         legend: { data: [this.$t('dashboard.feedCow'), this.$t('dashboard.table.signOx')], itemHeight: 4, itemWidth: 15 ,},
         xAxis: [{ type: 'category', data: chartLine_data.data1, axisPointer: { type: 'shadow' }, name: this.$t('dashboard.table.date') }],
@@ -1379,12 +1379,12 @@ export default {
         grid: { left: '10%', right: '10%', bottom: '3%', containLabel: true },
         tooltip: { trigger: 'axis' },
         legend: { data: [''] },
-        xAxis: [{ type: 'category', data: chartLine_data.data1, name: '日期' }],
+        xAxis: [{ type: 'category', data: chartLine_data.data1, name: this.$t('dashboard.table.date') }],
         yAxis: [
-          { type: 'value', name: '重量(kg)', axisLabel: { formatter: '{value}' }}
+          { type: 'value', name: this.$t('dashboard.yWeight'), axisLabel: { formatter: '{value}' }}
         ],
         series: [{
-          name: '重量', type: 'bar', stack: '广告', itemStyle: { normal: { color: '#36C293' }}, data: chartLine_data.data2
+          name: this.$t('dashboard.yWeight'), type: 'bar', stack: '广告', itemStyle: { normal: { color: '#36C293' }}, data: chartLine_data.data2
         }]
       }
       this.row4.chart2.chartLine.setOption(option)
@@ -1696,7 +1696,12 @@ export default {
     .img-title{
       position: absolute;top: 10px; right:10px;bottom:0;left:20px;width: 30px;height: 30px;background: url(../../../assets/images/index/row-bg3.png) no-repeat;
     }
-    .content{font-size: 18px;position: absolute;top: 7px;left: 55px;}
+    .content{font-size: 16px;position: absolute;top: 7px;left: 55px;
+      // &:lang(en){
+      //   font-size: 16px;
+      // }
+    
+    }
   }
   .title1{
     height: 36px;padding-top: 7px;line-height: 36px;position: relative;
@@ -1809,6 +1814,9 @@ export default {
           .iconRight{width:32px;height:32px;position:absolute;top:46px;right: 20px ;z-index:1;}
           .carList{
             padding:0 30px;height: 120px;overflow: hidden;display: flex;
+            &:lang(en){
+              height: 140px;
+            }
             .listW{
               background: #f3f9f7;
               float: left;