From 21451e013baa779d991ba55943eca4556e73bed0 Mon Sep 17 00:00:00 2001 From: song Date: Tue, 16 Nov 2021 18:55:00 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E5=AF=B9=E6=8E=A5=E6=B5=8B=E8=AF=84?= =?UTF-8?q?=E7=9B=B8=E5=85=B3api?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- CHANGELOG.md | 3 +- package.json | 1 + src/apis/yanyuan.js | 2 + src/components/ConfigInfo/components/Info.vue | 9 +- .../ConfigInfo/components/config.js | 10 +- src/components/Evaluated/Evaluated.vue | 22 - src/components/Evaluated/EvaluatedNLCP.vue | 31 ++ src/components/Evaluated/EvaluatedXLJH.vue | 49 ++ .../EvaluationChart/EvaluationChart.vue | 48 ++ src/components/NotEvaluated/NotEvaluated.vue | 28 +- src/components/Projects/ProjectItem.vue | 6 +- src/components/Roles/Roles.vue | 13 +- src/components/Test/answerPage.vue | 31 +- src/components/Test/components/TestMain.vue | 5 +- src/components/Test/promptPage.vue | 15 +- src/components/TimeLine/TimeLine.vue | 2 + src/components/TimeLine/component/TimeBox.vue | 92 ++-- src/pagesProject/project/project copy.vue | 439 ++++++++++++++++++ src/pagesProject/project/project.vue | 66 +-- src/pagesYanyuan/add-info/add-info.vue | 13 + src/pagesYanyuan/assess/assess.vue | 81 +++- src/store/task/mutations.js | 9 + src/store/task/state.js | 1 + src/store/yanyuan/mutations.js | 18 + src/store/yanyuan/state.js | 10 +- 25 files changed, 834 insertions(+), 170 deletions(-) delete mode 100644 src/components/Evaluated/Evaluated.vue create mode 100644 src/components/Evaluated/EvaluatedNLCP.vue create mode 100644 src/components/Evaluated/EvaluatedXLJH.vue create mode 100644 src/components/EvaluationChart/EvaluationChart.vue create mode 100644 src/pagesProject/project/project copy.vue diff --git a/CHANGELOG.md b/CHANGELOG.md index 7360b4b..4b85067 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,4 +1,4 @@ -# 0.1.0 (2021-11-15) +# 0.1.0 (2021-11-16) ### 🌟 新功能 范围|描述|commitId @@ -74,6 +74,7 @@ - | 训练归属界面 | [4c34cee](https://dd.tall.wiki/gitea/binbin0314/yanyuan_js/commits/4c34cee) - | 设置小红点 | [9316bcb](https://dd.tall.wiki/gitea/binbin0314/yanyuan_js/commits/9316bcb) - | 设置界面基本信息板块开发 | [bbaded0](https://dd.tall.wiki/gitea/binbin0314/yanyuan_js/commits/bbaded0) + - | 试题接口 | [f8c137a](https://dd.tall.wiki/gitea/binbin0314/yanyuan_js/commits/f8c137a) - | 距调整pc端 | [5069aa1](https://dd.tall.wiki/gitea/binbin0314/yanyuan_js/commits/5069aa1) - | 适配小程序 | [9e3c45d](https://dd.tall.wiki/gitea/binbin0314/yanyuan_js/commits/9e3c45d) - | 适配小程序;小程序登录 | [cefc0eb](https://dd.tall.wiki/gitea/binbin0314/yanyuan_js/commits/cefc0eb) diff --git a/package.json b/package.json index 14e90b6..26b66d6 100644 --- a/package.json +++ b/package.json @@ -69,6 +69,7 @@ "conventional-changelog-cli": "^2.0.28", "core-js": "^3.16.3", "cross-env": "^7.0.3", + "echarts": "^5.2.2", "eslint": "^6.7.2", "eslint-plugin-prettier": "^3.4.1", "eslint-plugin-vue": "^6.2.2", diff --git a/src/apis/yanyuan.js b/src/apis/yanyuan.js index 8c2c8f4..51e23c8 100644 --- a/src/apis/yanyuan.js +++ b/src/apis/yanyuan.js @@ -28,6 +28,8 @@ const install = (Vue, vm) => { vm.$u.api.getQuestion = param => vm.$u.post(`${yanyuan}/question/get`, param); // 试题答案保存 vm.$u.api.saveAnswer = param => vm.$u.post(`${yanyuan}/question/saveAnswer`, param); + // 脑力测评结果计算 + vm.$u.api.mentalTestCalculate = param => vm.$u.post(`${yanyuan}/mentalTest/calculate`, param); }; export default { install }; diff --git a/src/components/ConfigInfo/components/Info.vue b/src/components/ConfigInfo/components/Info.vue index 88123f8..29929b0 100644 --- a/src/components/ConfigInfo/components/Info.vue +++ b/src/components/ConfigInfo/components/Info.vue @@ -292,7 +292,13 @@ - + @@ -449,6 +455,7 @@ export default { break; } } + console.log('info++: ', info); this.$emit('saveInfo', info); }, diff --git a/src/components/ConfigInfo/components/config.js b/src/components/ConfigInfo/components/config.js index 1cb0f50..d7b6c70 100644 --- a/src/components/ConfigInfo/components/config.js +++ b/src/components/ConfigInfo/components/config.js @@ -18,6 +18,14 @@ const bloodPressure = () => { */ export const infoList = [ [ + { + name: '姓名', + label: 'userName', + showType: 2, + type: 8, + value: null, + show: false, + }, { name: '性别', label: 'sex', @@ -354,7 +362,7 @@ export const infoList = [ radioList: [ { value: '神经内科', label: '神经内科' }, { value: '精神卫生科', label: '精神卫生科' }, - { value: '老年病科', label: '神经内科' }, + { value: '老年病科', label: '老年病科' }, { value: '康复科', label: '康复科' }, { value: '其他', label: '其他' }, ], diff --git a/src/components/Evaluated/Evaluated.vue b/src/components/Evaluated/Evaluated.vue deleted file mode 100644 index 928a274..0000000 --- a/src/components/Evaluated/Evaluated.vue +++ /dev/null @@ -1,22 +0,0 @@ - - - - - diff --git a/src/components/Evaluated/EvaluatedNLCP.vue b/src/components/Evaluated/EvaluatedNLCP.vue new file mode 100644 index 0000000..15d6ef7 --- /dev/null +++ b/src/components/Evaluated/EvaluatedNLCP.vue @@ -0,0 +1,31 @@ + + + + + diff --git a/src/components/Evaluated/EvaluatedXLJH.vue b/src/components/Evaluated/EvaluatedXLJH.vue new file mode 100644 index 0000000..cd3d07c --- /dev/null +++ b/src/components/Evaluated/EvaluatedXLJH.vue @@ -0,0 +1,49 @@ + + + + + diff --git a/src/components/EvaluationChart/EvaluationChart.vue b/src/components/EvaluationChart/EvaluationChart.vue new file mode 100644 index 0000000..ae1bac9 --- /dev/null +++ b/src/components/EvaluationChart/EvaluationChart.vue @@ -0,0 +1,48 @@ + + + + + diff --git a/src/components/NotEvaluated/NotEvaluated.vue b/src/components/NotEvaluated/NotEvaluated.vue index cfb468b..fe77e90 100644 --- a/src/components/NotEvaluated/NotEvaluated.vue +++ b/src/components/NotEvaluated/NotEvaluated.vue @@ -1,28 +1,28 @@ diff --git a/src/components/Test/components/TestMain.vue b/src/components/Test/components/TestMain.vue index 11e712f..6fe1781 100644 --- a/src/components/Test/components/TestMain.vue +++ b/src/components/Test/components/TestMain.vue @@ -17,6 +17,7 @@ diff --git a/src/components/TimeLine/TimeLine.vue b/src/components/TimeLine/TimeLine.vue index fdb80fd..d7ffb51 100644 --- a/src/components/TimeLine/TimeLine.vue +++ b/src/components/TimeLine/TimeLine.vue @@ -111,12 +111,14 @@ export default { this.$t.storage.setStorageSync('taskId', ''); // 记录后即刻清除本地存储 } else { const item = this.tasks.find(task => task.detailId); + console.log('item: ', item); if (item) { this.setScrollToTaskId(`a${item.id}`); } else { // 没有本地记录的taskId // 找到当前时间基准线的任务id 记录 并滚动到当前时间基准线 const task = this.tasks.find(item => this.$moment(+item.planStart).isSame(this.timeNode, this.timeGranularity)); + console.log('task: ', task); task && this.setScrollToTaskId(`a${task.id}`); // 有这个task 就记录他的id } } diff --git a/src/components/TimeLine/component/TimeBox.vue b/src/components/TimeLine/component/TimeBox.vue index dfadd73..5bb4848 100644 --- a/src/components/TimeLine/component/TimeBox.vue +++ b/src/components/TimeLine/component/TimeBox.vue @@ -3,52 +3,62 @@ - - - - {{ $moment(+task.planStart).format(startTimeFormat) }} - {{ $moment(+task.planStart).format('D日') }} + + + + + + {{ $moment(+task.planStart).format(startTimeFormat) }} + {{ $moment(+task.planStart).format('D日') }} - - + + + - - - - - - - - + + + + + + + + + - - + - - - - - + + + + + + + + + + - - + + + + 内层 @@ -61,10 +71,12 @@ import { mapState, mapMutations, mapGetters, mapActions } from 'vuex'; import Skeleton from '@/components/Skeleton/Skeleton'; import TimeStatus from './TimeStatus.vue'; // import TaskTools from './TaskTools.vue'; +import EvaluatedNLCP from 'components/Evaluated/EvaluatedNLCP'; +import EvaluatedXLJH from 'components/Evaluated/EvaluatedXLJH'; export default { name: 'TimeBox', - components: { TimeStatus, Skeleton }, + components: { TimeStatus, Skeleton, EvaluatedNLCP, EvaluatedXLJH }, data() { return { diff --git a/src/pagesProject/project/project copy.vue b/src/pagesProject/project/project copy.vue new file mode 100644 index 0000000..26f75b7 --- /dev/null +++ b/src/pagesProject/project/project copy.vue @@ -0,0 +1,439 @@ +