Browse Source

修复作息bug

凉纪 1 year ago
parent
commit
986942738f
1 changed files with 6 additions and 0 deletions
  1. 6 0
      src/components/Calendar/index.vue

+ 6 - 0
src/components/Calendar/index.vue

@@ -6,6 +6,7 @@
       v-model="date"
       :disabled-dates='disabledDates'
       @transition-start="queryMoth"
+      :first-day-of-week="1"
       :attributes='attrs'
       @dayclick="onDayClick"></vc-date-picker>
     <ul>
@@ -81,6 +82,11 @@ export default {
         v.customData.workTime = formDate.workTime;
         v.customData.workOffTime = formDate.workOffTime;
         v.customData.isDuty = formDate.isDuty;
+        console.log()
+        v.highlight = {
+            color: v.customData.isEnable == 1 ? 'green' : v.customData.isEnable == 0 ? 'yellow' : v.customData.isEnable == null ? 'red' : 'indigo',
+                fillMode: 'outline',
+        };
         arr.push(v.customData);
       });
       this.$toast.success('复制成功,请点击提交');