ltao 3 anni fa
parent
commit
cb970a7c32
2 ha cambiato i file con 16 aggiunte e 4 eliminazioni
  1. 7 1
      src/api/taishi/taishi.js
  2. 9 3
      src/views/taishi/index.vue

+ 7 - 1
src/api/taishi/taishi.js

@@ -31,7 +31,13 @@ export function jinrizhiban() {
     method: "get"
   });
 }
-
+// 今日值班总人数
+export function zongjinrizhiban() {
+  return request({
+    url: "/combatduty/quantistatis/getdaDuiZhiBanNumber",
+    method: "get"
+  });
+}
 // 登记落实
 export function tongjiluoshi() {
   return request({

+ 9 - 3
src/views/taishi/index.vue

@@ -1040,6 +1040,7 @@ import {
   getantiepidemic,
   antiepidemicArchivesList,
   getLeavlNumber,
+  zongjinrizhiban
 } from "@/api/taishi/taishi";
 import * as echarts from "echarts";
 import vueSeamlessScroll from "vue-seamless-scroll";
@@ -1171,7 +1172,10 @@ export default {
               value: res.data[i],
             });
           } else if (i == "detachmentName") {
-            this.jrzblist.push({ name: "值班总人数", value: res.data[i] });
+            zongjinrizhiban().then(res=>{
+              this.jrzblist.push({ name: "值班总人数", value: res.data[1] });
+            })
+            
           }
         }
       }
@@ -2665,11 +2669,13 @@ export default {
 }
 .right3-r-main-item {
   width: 100%;
-  height: 20%;
+  height: 5vh;
+  /* height: 20%; */
   display: flex;
-  margin-top: 4%;
+  margin-top: 1vh;
 }
 .right3-r-main-item-l {
+  margin-top: 1px;
   width: 30%;
   height: 100%;
   display: inline-block;