From 7ce9b7b4b346c899839f6971f13bb0e7eb510b81 Mon Sep 17 00:00:00 2001 From: song Date: Mon, 22 Nov 2021 18:14:07 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E6=B7=BB=E5=8A=A0=E8=8D=AF=E7=89=A9?= =?UTF-8?q?=E4=BD=BF=E7=94=A8=E8=AE=B0=E5=BD=95api?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- CHANGELOG.md | 1 + src/apis/yanyuan.js | 7 ++ src/config/yyInfo.js | 14 ++- .../components/ConfigInfo/ConfigInfo.vue | 18 +++- .../ConfigInfo/components/Family.vue | 6 +- .../ConfigInfo/components/Medicine.vue | 101 +++++++++++++++++- .../components/GuidePage/GuidePage.vue | 4 +- 7 files changed, 137 insertions(+), 14 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index cbe18d9..80b97c0 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -64,6 +64,7 @@ - | 添加训练计划详情 | [49f64ca](https://dd.tall.wiki/gitea/binbin0314/yanyuan_js/commits/49f64ca) - | 添加设置界面 | [7ca0c59](https://dd.tall.wiki/gitea/binbin0314/yanyuan_js/commits/7ca0c59) - | 添加输入工具码界面 | [8c120bc](https://dd.tall.wiki/gitea/binbin0314/yanyuan_js/commits/8c120bc) + - | 添加选择工具接口 | [98ee58e](https://dd.tall.wiki/gitea/binbin0314/yanyuan_js/commits/98ee58e) - | 添加项目排序 | [a0b491b](https://dd.tall.wiki/gitea/binbin0314/yanyuan_js/commits/a0b491b) - | 添加首页弹出按钮及界面 | [edd56cd](https://dd.tall.wiki/gitea/binbin0314/yanyuan_js/commits/edd56cd) - | 点击日历日期查询项目列表 | [c458385](https://dd.tall.wiki/gitea/binbin0314/yanyuan_js/commits/c458385) diff --git a/src/apis/yanyuan.js b/src/apis/yanyuan.js index b3bbd29..3c2366d 100644 --- a/src/apis/yanyuan.js +++ b/src/apis/yanyuan.js @@ -33,6 +33,13 @@ const install = (Vue, vm) => { // 试题答案保存 vm.$u.api.chooseTool = param => vm.$u.post(`${yanyuan}/trainPlan/chooseTool`, param); + + // 添加药物使用 + vm.$u.api.addMedicine = param => vm.$u.post(`${yanyuan}/medicine/add`, param); + // 查询药物使用 + vm.$u.api.queryMedicine = param => vm.$u.post(`${yanyuan}/medicine/query`, param); + // 修改药物使用 + vm.$u.api.updateMedicine = param => vm.$u.post(`${yanyuan}/medicine/update`, param); }; export default { install }; diff --git a/src/config/yyInfo.js b/src/config/yyInfo.js index d7b6c70..d50591f 100644 --- a/src/config/yyInfo.js +++ b/src/config/yyInfo.js @@ -383,32 +383,38 @@ export const medicineInfo = [ date: [ { name: '是否测评', + label: 'isTest', type: 1, value: null, - radioList: ['已测评', '未作测评'], + radioList: ['未作测评', '已测评'], }, { name: 'Mmse得分', + label: 'mmseScore', type: 3, value: null, }, { name: 'Moca得分', + label: 'mocaScore', type: 3, value: null, }, { name: 'Adi得分', + label: 'adiScore', type: 3, value: null, }, { name: 'Npi得分', + label: 'npiScore', type: 3, value: null, }, { name: '总分', + label: 'totalScore', type: 3, value: null, }, @@ -419,36 +425,42 @@ export const medicineInfo = [ date: [ { name: '多奈哌齐', + label: 'firstMedicine', type: 4, value: null, checked: false, }, { name: '卡巴拉汀', + label: 'secondMedicine', type: 4, value: null, checked: false, }, { name: '石杉碱甲', + label: 'thirdMedicine', type: 4, value: null, checked: false, }, { name: '盐酸美金刚片', + label: 'forthMedicine', type: 4, value: null, checked: false, }, { name: '奥拉西坦', + label: 'fifthMedicine', type: 4, value: null, checked: false, }, { name: '银杏片叶', + label: 'sixthMedicine', type: 4, value: null, checked: false, diff --git a/src/pagesProject/project/components/ConfigInfo/ConfigInfo.vue b/src/pagesProject/project/components/ConfigInfo/ConfigInfo.vue index e581fc9..6fe5f2a 100644 --- a/src/pagesProject/project/components/ConfigInfo/ConfigInfo.vue +++ b/src/pagesProject/project/components/ConfigInfo/ConfigInfo.vue @@ -20,9 +20,9 @@ - - - + + + @@ -31,6 +31,7 @@ 扫码添加客服微信 + @@ -47,7 +48,7 @@ export default { itemList: [ { head: '基本信息', open: true, body: '123', img: 'https://www.tall.wiki/staticrec/yanyuan/menu1.png' }, { head: '药物使用记录', open: false, body: '123', img: 'https://www.tall.wiki/staticrec/yanyuan/menu2.png' }, - { head: 'Zarit照顾者分担量表', open: false, body: '123', img: 'https://www.tall.wiki/staticrec/yanyuan/menu3.png' }, + { head: 'Zarit照顾者负担量表', open: false, body: '123', img: 'https://www.tall.wiki/staticrec/yanyuan/menu3.png' }, { head: '家属成员', open: false, body: '123', img: 'https://www.tall.wiki/staticrec/yanyuan/menu4.png' }, ], headStyle: { @@ -70,6 +71,15 @@ export default { } }); }, + + // 成功弹框 + showToast(type, title) { + console.log('type, title: ', type, title); + this.$refs.uToast.show({ + type, + title, + }); + }, }, }; diff --git a/src/pagesProject/project/components/ConfigInfo/components/Family.vue b/src/pagesProject/project/components/ConfigInfo/components/Family.vue index 1469e62..539bf40 100644 --- a/src/pagesProject/project/components/ConfigInfo/components/Family.vue +++ b/src/pagesProject/project/components/ConfigInfo/components/Family.vue @@ -7,8 +7,10 @@ {{ family.value }} - 通过 - 不通过 + + 通过 + 不通过 + diff --git a/src/pagesProject/project/components/ConfigInfo/components/Medicine.vue b/src/pagesProject/project/components/ConfigInfo/components/Medicine.vue index 76ad10f..d305e08 100644 --- a/src/pagesProject/project/components/ConfigInfo/components/Medicine.vue +++ b/src/pagesProject/project/components/ConfigInfo/components/Medicine.vue @@ -9,7 +9,7 @@ - + @@ -32,8 +38,9 @@ type="number" input-align="center" @focus="cancelChecked(index, itemIndex)" + @blur="change(colItem.value, index, itemIndex, colItem.type)" /> - + 未服用 @@ -41,10 +48,14 @@ + + 添加 +