瀏覽代碼

修复作息bug

凉纪 1 年之前
父節點
當前提交
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('复制成功,请点击提交');