Jelajahi Sumber

fix: 修复日期字段未正确处理空值的问题

liujt 3 bulan lalu
induk
melakukan
af56c1b5fe

+ 2 - 2
src/views/rulesManagement/releaseRules/components/permitAdd.vue

@@ -1239,8 +1239,8 @@
 
         this.formData.executeMethodId = info.recordRulesExecuteMethodId;
         this.formData.executeMethodName = info.recordRulesExecuteMethodName;
-        this.formData.startDate = new Date(info.startDate);
-        this.formData.stopDate = new Date(info.stopDate);
+        this.formData.startDate = new Date(info.startDate || data.startDate);
+        this.formData.stopDate = new Date(info.stopDate || data.stopDate);
         this.formData.classify = this.formData.classify + '';
         this.formData.reportWorkType = this.formData.reportWorkType + '';
         this.formData.industryType = this.formData.industryType + '';