Explorar o código

fix:详情时间bug修复

刘恒 hai 1 ano
pai
achega
ee94c621c0
Modificáronse 1 ficheiros con 11 adicións e 6 borrados
  1. 11 6
      src/components/datePicker/index.vue

+ 11 - 6
src/components/datePicker/index.vue

@@ -73,15 +73,20 @@ export default {
     if(this.$props.form!=undefined){
       this.timeType=this.$props.form?.timeType
       this.dateType=this.$props.form?.dateType
-      if(this.$props.form?.timeType=='1'){
-        this.signingTime=[...this.$props.form?.time]
-      }else{
-        this.enterTime=[...this.$props.form?.time]
-      }
-      if(this.$props.form?.dateType){
+      // console.log(this.$props.form?.dateType)
+      if(this.$props.form?.dateType!=undefined){
         this.signingTime=[]
         this.enterTime=[]
+      }else{
+        // console.log(this.$props.form?.timeType)
+        if(this.$props.form?.timeType=='1'){
+          this.enterTime=[...this.$props.form?.time]
+        }else{
+          this.signingTime=[...this.$props.form?.time]
+        }
       }
+      
+      
     }
    
     this.$emit("getList", {