凉纪 1 год назад
Родитель
Сommit
efc85ed462
1 измененных файлов с 4 добавлено и 0 удалено
  1. 4 0
      src/components/Calendar/index.vue

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

@@ -81,6 +81,10 @@ export default {
         v.customData.workTime = formDate.workTime;
         v.customData.workOffTime = formDate.workOffTime;
         v.customData.isDuty = formDate.isDuty;
+        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('复制成功,请点击提交');