| | |
| | | |
| | | } else { |
| | | this.HealthyBaseList = response.data; |
| | | |
| | | console.log("----------00000000-----------") |
| | | console.log(this.HealthyBaseList) |
| | | //血型的 |
| | | if (this.HealthyBaseList.bloodClass.a === 1) { |
| | | this.selectedBloodType = 'a'; |
| | |
| | | }; |
| | | console.log(111) |
| | | console.log(this.bloodData) |
| | | |
| | | if(isObjectEmpty(this.bloodData)){ |
| | | this.HealthyBaseList.bloodClass = this.HealthyBaseList.bloodClass; |
| | | }else { |
| | |
| | | this.HealthNowList.otherDiseaseClass = this.otherDiseaseTypeData; |
| | | } |
| | | |
| | | |
| | | this.$refs['elForm'].validate(valid => { |
| | | if (valid) { |
| | | if (this.HealthyBaseList!== undefined) { |
| | | updateHealthBase(this.HealthyBaseList).then(response => { |
| | | this.$modal.msgSuccess("修改成功11"); |
| | | |
| | | // this.open = false; |
| | | this.btn=false |
| | |
| | | this.dsb = true |
| | | this.isShow_2=false |
| | | this.isShow = true |
| | | |
| | | this.getList(); |
| | | }); |
| | | } else { |
| | | this.$modal.msgSuccess("修改失败"); |
| | |
| | | this.dsb = true |
| | | this.isShow_2=false |
| | | this.isShow = true |
| | | |
| | | this.getList(); |
| | | }); |
| | | } else { |
| | | this.$modal.msgSuccess("修改失败"); |
| | |
| | | this.dsb = true |
| | | this.isShow_2=false |
| | | this.isShow = true |
| | | |
| | | this.getList(); |
| | | }); |
| | | } else { |
| | | this.$modal.msgSuccess("修改失败"); |
| | |
| | | this.dsb = true |
| | | this.isShow_2=false |
| | | this.isShow = true |
| | | |
| | | this.getList(); |
| | | }); |
| | | } else { |
| | | this.$modal.msgSuccess("修改失败"); |
| | |
| | | } |
| | | }) |
| | | // 刷新页面 |
| | | this.getList(); |
| | | |
| | | }, |
| | | //年度健康报告 |
| | | toYearhealthy(){ |