소스 검색

处理页面字段类型

LiFei 6 년 전
부모
커밋
ccce76bcf4
1개의 변경된 파일3개의 추가작업 그리고 1개의 파일을 삭제
  1. 3 1
      src/views/company/modules/CompanyAuthenticationModal.vue

+ 3 - 1
src/views/company/modules/CompanyAuthenticationModal.vue

@@ -92,9 +92,11 @@
         this.model = Object.assign({}, record);
         this.visible = true;
         this.$nextTick(() => {
-          this.form.setFieldsValue(pick(this.model,'userId','licenseFront','otherLicense','enterpriseName','isHumanResource','authenticationStatus','delFlag'))
+
+          this.form.setFieldsValue(pick(this.model,'userId','licenseFront','otherLicense','enterpriseName','authenticationStatus','delFlag'))
 		  //时间格式化
           this.form.setFieldsValue({expiryDate:this.model.expiryDate?moment(this.model.expiryDate):null})
+          this.form.setFieldsValue({isHumanResource:String(this.model.isHumanResource)})
         });
 
       },