From 853890b60b4b874fd2690a46c406934b00692743 Mon Sep 17 00:00:00 2001 From: song Date: Fri, 11 Feb 2022 19:00:38 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E5=A4=9A=E5=A4=84bug=E4=BF=AE=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- CHANGELOG.md | 3 +- src/components/Info/Info.vue | 6 ++- .../components/ConfigInfo/ConfigInfo.vue | 21 +++++--- .../ConfigInfo/components/Caregiver.vue | 48 ++++++++++++++----- .../ConfigInfo/components/CaregiverDetail.vue | 1 + .../ConfigInfo/components/Medicine.vue | 37 +++++++++----- .../Evaluated/components/EvaluatedDetail.vue | 34 +++++++++---- src/pagesProject/project/project.vue | 7 ++- 8 files changed, 113 insertions(+), 44 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 82e31f6..6a18803 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,4 +1,4 @@ -# 0.1.0 (2022-02-10) +# 0.1.0 (2022-02-11) ### 🌟 新功能 范围|描述|commitId @@ -208,6 +208,7 @@ - | 卸载stylus | [610b465](https://101.201.226.163:50022/DIGITAL_MEDICAL/yanyuan/commits/610b465) - | 新建长者信息清除数据 | [df5d3f4](https://101.201.226.163:50022/DIGITAL_MEDICAL/yanyuan/commits/df5d3f4) - | 修改报错 | [531c14d](https://101.201.226.163:50022/DIGITAL_MEDICAL/yanyuan/commits/531c14d) + - | 修改部分bug | [a44ce6f](https://101.201.226.163:50022/DIGITAL_MEDICAL/yanyuan/commits/a44ce6f) 修改部分bug | 修改部分bug | [92bdab1](https://101.201.226.163:50022/DIGITAL_MEDICAL/yanyuan/commits/92bdab1) - | 修改定期任务状态0和4时不加载圆圈 | [30e352f](https://101.201.226.163:50022/DIGITAL_MEDICAL/yanyuan/commits/30e352f) - | 修改合并手机号逻辑 | [5d391a3](https://101.201.226.163:50022/DIGITAL_MEDICAL/yanyuan/commits/5d391a3) diff --git a/src/components/Info/Info.vue b/src/components/Info/Info.vue index 6a49ba4..7e3f9e8 100644 --- a/src/components/Info/Info.vue +++ b/src/components/Info/Info.vue @@ -393,11 +393,14 @@ export default { this.$emit('setEmptyInfo'); setTimeout(() => { const info = this.$t.storage.getStorageSync('infoList'); - console.log('info: ', info); if (info !== 'null') { this.infoList = JSON.parse(info); } }, 300); + } else { + setTimeout(() => { + this.setDate(this.personalInfo); + }, 300); } }); }, @@ -1036,6 +1039,7 @@ export default { destroyed() { this.setEmptyInfo(); + // this.$t.storage.setStorageSync('infoList', null); }, }; diff --git a/src/pagesProject/project/components/ConfigInfo/ConfigInfo.vue b/src/pagesProject/project/components/ConfigInfo/ConfigInfo.vue index e3bfff4..aa9f168 100644 --- a/src/pagesProject/project/components/ConfigInfo/ConfigInfo.vue +++ b/src/pagesProject/project/components/ConfigInfo/ConfigInfo.vue @@ -33,8 +33,8 @@ - - + + @@ -72,6 +72,7 @@ export default { width: '100%', }, personalInfo: null, + showAdd: false, }; }, @@ -130,18 +131,24 @@ export default { // 添加 add(index) { - if (index === 1) { - if (this.itemList[index].open) { + this.changeCloseAdd(true); + if (!this.itemList[index].open) { + this.changeOpen(index); + } else { + if (index === 1) { this.$refs.medicineChild[0].add(); } - } - if (index === 2) { - if (this.itemList[index].open) { + if (index === 2) { this.$refs.caregiverChild[0].add(); } } }, + // 点击展开还是添加 + changeCloseAdd(show) { + this.showAdd = show; + }, + /** * 查询个人信息 */ diff --git a/src/pagesProject/project/components/ConfigInfo/components/Caregiver.vue b/src/pagesProject/project/components/ConfigInfo/components/Caregiver.vue index 5c7eea6..49c2b28 100644 --- a/src/pagesProject/project/components/ConfigInfo/components/Caregiver.vue +++ b/src/pagesProject/project/components/ConfigInfo/components/Caregiver.vue @@ -1,6 +1,13 @@