소스 검색

修改时间重新赋值的方式

hxl13994548489 1 년 전
부모
커밋
d4d90e67f2
1개의 변경된 파일과 6개의 추가작업 그리고 2개의 파일을 삭제
  1. 6 2
      src/views/Task/daikeComponents/KtLetter.vue

+ 6 - 2
src/views/Task/daikeComponents/KtLetter.vue

@@ -9973,7 +9973,9 @@ export default {
               this.jqSignDate =res.data.signTime;
               console.log(this.jqSignDate)
               if (this.jqSignDate!=null){
-                this.policyNumberForm.signDate =this.jqSignDate;
+                //改为对象赋值
+                this.$set(this.policyNumberForm, 'signDate', this.jqSignDate);
+                //this.policyNumberForm.signDate =this.jqSignDate;
               }
             }else {
               this.sySignDate =res.data.signTime;
@@ -9981,7 +9983,9 @@ export default {
                //如果交强签单日期为空,设置商业险的签单日期
                if(this.jqSignDate == null){
                  if (this.sySignDate!=null){
-                   this.policyNumberForm.signDate =this.sySignDate;
+                   //改为对象赋值
+                   this.$set(this.policyNumberForm, 'signDate', this.sySignDate);
+                   //this.policyNumberForm.signDate =this.sySignDate;
                  }
                }
             }