Browse Source

网点自检代码提交

jingyuanchao 1 năm trước cách đây
mục cha
commit
0fa7e7d554
2 tập tin đã thay đổi với 26 bổ sung0 xóa
  1. 23 0
      src/views/iot/dailycheck/Calendar.vue
  2. 3 0
      src/views/iot/dailycheck/index.vue

+ 23 - 0
src/views/iot/dailycheck/Calendar.vue

@@ -73,6 +73,19 @@ export default {
           },
           dates: this.unDoDates,
         },
+        {
+          highlight: {
+            fillMode:'solid',
+            color: "orange",
+            // style: {
+            //   width: "16px",
+            //   height: "3px",
+            //   borderRadius: "0",
+            // },
+            contentClass: "italic",
+          },
+          dates: this.halfDoDates,
+        }
       ],
     };
   },
@@ -94,6 +107,10 @@ export default {
       isRequired: true,
       type: Array,
     },
+    halfDoDates: {
+      isRequired: true,
+      type: Array,
+    },
     defaultSelectedDate:{
       type:Object
     }
@@ -138,6 +155,12 @@ export default {
         this.attrs[2].dates=v;
       },
     },
+    halfDoDates: {
+      immediate: true,
+      handler: function (v) {
+        this.attrs[3].dates=v;
+      },
+    },
   },
   mounted() {
     this.init();

+ 3 - 0
src/views/iot/dailycheck/index.vue

@@ -58,6 +58,7 @@
               :endDate="this.queryParams.range[1]"
               :doDates="this.doDates"
               :unDoDates="this.unDoDates"
+              :halfDoDates="this.halfDoDates"
               @select="onSelectDate"
             ></Calendar>
           </div>
@@ -162,6 +163,7 @@ export default {
       dataList: [],
       doDates: [],
       unDoDates: [],
+      halfDoDates: [],
       rateData: {},
     };
   },
@@ -238,6 +240,7 @@ export default {
       statistics(this.queryParams).then(response => {
           this.doDates = response.data.doDates;
           this.unDoDates = response.data.unDoDates;
+          this.unDoDates = response.data.halfDoDates;
           this.loading = false;
         }
       ).catch((err) => {