|
|
@ -94,9 +94,9 @@ export default { |
|
|
|
|
|
|
|
// 健康状态 登记 |
|
|
|
level() { |
|
|
|
if (!this.userInfo || !this.userInfo.healthLevel) return '正常'; |
|
|
|
if (!this.userInfo || !this.userInfo.healthCodeList) return '正常'; |
|
|
|
let str = '正常'; |
|
|
|
switch (this.userInfo.healthLevel[0].healthLevel) { |
|
|
|
switch (this.userInfo.healthCodeList[0].healthLevel) { |
|
|
|
case 0: |
|
|
|
str = '正常'; |
|
|
|
break; |
|
|
@ -113,8 +113,8 @@ export default { |
|
|
|
}, |
|
|
|
|
|
|
|
time() { |
|
|
|
if (!this.userInfo || !this.userInfo.healthLevel) return; |
|
|
|
return this.$moment(this.userInfo.healthLevel[0].time - 0).format('YYYY-MM-DD HH:mm'); |
|
|
|
if (!this.userInfo || !this.userInfo.healthCodeList) return; |
|
|
|
return this.$moment(this.userInfo.healthCodeList[0].time - 0).format('YYYY-MM-DD HH:mm'); |
|
|
|
}, |
|
|
|
}, |
|
|
|
|
|
|
|