Browse Source

修改显示设置

callm 6 tháng trước cách đây
mục cha
commit
d205188118

+ 2 - 2
src/components/prodlinechart/up2Chart/index.vue

@@ -3,7 +3,7 @@
         <Echart
                 :options="options"
                 id="up2Chart"
-                height="300px"
+                height="200px"
                 width="100%"
         ></Echart>
     </div>
@@ -38,7 +38,7 @@
                         }
                       },
                       legend: {
-                        bottom: "90%",
+                        bottom: "80%",
                         textStyle: {
                           fontSize: 20
                         }

+ 17 - 5
src/views/prodline/up2.vue

@@ -9,8 +9,11 @@
           <BarChart :bardata="bardata"  />
         </div>
         <div class="d-flex jc-center fs-xl fw-b rate flex-column mt-2">
-          <div>当日已完成比例:{{finishRate}}% </div>
-          <div class="mt-1">当日未达成比例:{{unfinishRate}}%</div>
+          <div class="mt-1">今日待完成紧急订单数:{{finishRate}}</div>
+          <div class="mt-1">今日待完成正常订单数:{{finishRate2}}</div>
+          <div class="mt-1">今日待完成订单数:{{finishRate3}}</div>
+          <div class="mt-1">当日已完成比例:{{finishRate4}}% </div>
+          <div class="mt-1">昨日已完成比例:{{finishRate5}}% </div>
         </div>
       </div>
     </div>
@@ -35,7 +38,10 @@ export default {
         max : 1000,
       },
       finishRate:0,
-      unfinishRate:0,
+      finishRate2:0,
+      finishRate3:0,
+      finishRate4:0,
+      finishRate5:0,
     }
   },
   components: {BarChart},
@@ -93,7 +99,10 @@ export default {
       );
 
       this.finishRate = 0;
-      this.unfinishRate = 0;
+      this.finishRate2 = 0;
+      this.finishRate3 = 0;
+      this.finishRate4 = 0;
+      this.finishRate5 = 0;
       //比例,用的是总看板的达成比例caller,如果不一样,自行修改caller
       caller = 'KB!TOTALDayMakeRate';
       await this.$http.get("kanban/datalist.action?caller="+caller+"&_noc=1&page=1&pageSize=100",{
@@ -104,7 +113,10 @@ export default {
             let dataList = JSON.parse(result.data.data);
             if(dataList.length>0){
               this.finishRate = dataList[0].finishrate;
-              this.unfinishRate = dataList[0].unfinishrate;
+              this.finishRate2 = dataList[0].finishRate2;
+              this.finishRate3 = dataList[0].finishRate3;
+              this.finishRate5 = dataList[0].finishRate4;
+              this.finishRate5 = dataList[0].finishRate5;
             }
           }, (result) => {
             console.error(result)