From 068cbdf658041797a9c691784b5d879be12bd25a Mon Sep 17 00:00:00 2001 From: lucky Date: Mon, 1 Feb 2021 12:56:42 +0800 Subject: [PATCH] =?UTF-8?q?=E9=85=8D=E7=BD=AE=E6=8E=A5=E5=8F=A3=E8=B7=AF?= =?UTF-8?q?=E5=BE=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .env | 2 +- .env.development | 8 ++--- .env.production | 8 ++--- package-lock.json | 4 +-- package.json | 2 +- src/App.vue | 6 ++-- src/components/BtnCom/BtnCon.vue | 6 +++- src/config/api.js | 17 ++++++--- src/router/index.js | 26 +++++++++++++- src/views/CaseAnalysis/CaseAnalysis.vue | 16 +++++++++ src/views/CaseSearch/CaseSearch.vue | 38 +++++++++++++++++++++ src/views/MeetingPreview/MeetingPreview.vue | 2 +- src/views/PatientInfo/PatientInfo.vue | 16 +++++++++ src/views/SelectPatient/SelectPatient.vue | 16 +++++++++ 14 files changed, 145 insertions(+), 22 deletions(-) create mode 100644 src/views/CaseAnalysis/CaseAnalysis.vue create mode 100644 src/views/CaseSearch/CaseSearch.vue create mode 100644 src/views/PatientInfo/PatientInfo.vue create mode 100644 src/views/SelectPatient/SelectPatient.vue diff --git a/.env b/.env index ec174cc..f367f9c 100644 --- a/.env +++ b/.env @@ -1,3 +1,3 @@ VUE_APP_MODE=production VUE_APP_PREVIEW=false -VUE_APP_URL=http://www.tall.wiki/ +VUE_APP_URL=https://www.tall.wiki/ diff --git a/.env.development b/.env.development index e92661d..fd0e52c 100644 --- a/.env.development +++ b/.env.development @@ -1,10 +1,10 @@ VUE_APP_MODE=development VUE_APP_NODE_ENV=development -VUE_APP_SCENE=medicine -VUE_APP_BASE_URL=http://test.tall.wiki/ -VUE_APP_API_URL=http://test.tall.wiki/gateway +VUE_APP_SCENE=tcm +VUE_APP_BASE_URL=https://test.tall.wiki/ +VUE_APP_API_URL=https://test.tall.wiki/gateway VUE_APP_PROXY_URL=/gateway -VUE_APP_PUBLIC_PATH=/medicine +VUE_APP_PUBLIC_PATH=/tcm VUE_APP_MSG_URL=wss://test.tall.wiki/websocket/message/v4.0/ws VUE_APP_TITLE=盐湖区人民医院数字看板 VUE_APP_DESCRIPTION=盐湖区人民医院数字看板 diff --git a/.env.production b/.env.production index 5dcfe72..33b5b41 100644 --- a/.env.production +++ b/.env.production @@ -1,10 +1,10 @@ VUE_APP_MODE=production VUE_APP_NODE_ENV=production -VUE_APP_SCENE=medicine -VUE_APP_BASE_URL=http://www.tall.wiki/ -VUE_APP_API_URL=http://www.tall.wiki/gateway +VUE_APP_SCENE=tcm +VUE_APP_BASE_URL=https://www.tall.wiki/ +VUE_APP_API_URL=https://www.tall.wiki/gateway VUE_APP_PROXY_URL=/gateway -VUE_APP_PUBLIC_PATH=/medicine +VUE_APP_PUBLIC_PATH=/tcm VUE_APP_MSG_URL=wss://www.tall.wiki/websocket/message/v4.0/ws VUE_APP_TITLE=盐湖区人民医院数字看板 VUE_APP_DESCRIPTION=盐湖区人民医院数字看板 diff --git a/package-lock.json b/package-lock.json index ebbd1ac..5c2b9df 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,11 +1,11 @@ { - "name": "salt-lake-hospital", + "name": "中医药大学课题数据库", "version": "0.1.0", "lockfileVersion": 2, "requires": true, "packages": { "": { - "name": "salt-lake-hospital", + "name": "中医药大学课题数据库", "version": "0.1.0", "dependencies": { "ant-design-vue": "^1.2.4", diff --git a/package.json b/package.json index f17c0ea..e09c4b1 100644 --- a/package.json +++ b/package.json @@ -1,5 +1,5 @@ { - "name": "salt-lake-hospital", + "name": "chinese-medicine", "version": "0.1.0", "private": true, "scripts": { diff --git a/src/App.vue b/src/App.vue index d856312..c07d013 100644 --- a/src/App.vue +++ b/src/App.vue @@ -22,9 +22,9 @@ export default { computed: mapState('home', ['anyringToken']), created() { - // const userId = '1338747522436435968'; - // const params = { userId }; - // this.getUserId(params); + const userId = '1218763410024566784'; + const params = { userId }; + this.getUserId(params); }, methods: mapActions('home', ['getUserId']), diff --git a/src/components/BtnCom/BtnCon.vue b/src/components/BtnCom/BtnCon.vue index e7275a6..e7a4ed6 100644 --- a/src/components/BtnCom/BtnCon.vue +++ b/src/components/BtnCom/BtnCon.vue @@ -1,7 +1,11 @@ diff --git a/src/config/api.js b/src/config/api.js index 67663d6..c05d49c 100644 --- a/src/config/api.js +++ b/src/config/api.js @@ -1,8 +1,17 @@ import axios from 'axios'; let { proxyUrl, msgUrl } = require('@/config/setting'); -const wisdomcar = `${proxyUrl}/wisdomcar`; // 盐湖医院分路径 -const statistics = `${wisdomcar}/statistics`; // 盐湖医院相关接口 +const tcm = `${proxyUrl}/tcm`; +const patient = `${tcm}/patient`; // 患者相关接口 -// 急救时长分析统计图数据 -// export const getPointTime = params => axios.post(`${statistics}/getPointTime`, params); +// 保存患者病例信息 +export const saveCaseMes = params => axios.post(`${patient}/saveCaseMes`, params); + +// 添加患者基本信息 +export const savePatientMes = params => axios.post(`${patient}/savePatientMes`, params); + +// 通过搜索条件查询患者病例的信息 +export const selPatientMesList = params => axios.post(`${patient}/selPatientMesList`, params); + +// 通过查询搜索条件 +export const selSearchCriteriaList = params => axios.post(`${patient}/selSearchCriteriaList`, params); diff --git a/src/router/index.js b/src/router/index.js index 1c1738f..d809621 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -20,7 +20,7 @@ const routes = [ }, // 会议纪要 { - path: '/Meeting', + path: '/meeting', name: 'Meeting', component: () => import('@/views/Meeting/Meeting.vue'), }, @@ -30,6 +30,30 @@ const routes = [ name: 'MeetingPreview', component: () => import('@/views/MeetingPreview/MeetingPreview.vue'), }, + // 选择患者信息 + { + path: '/selectPatient', + name: 'SelectPatient', + component: () => import('@/views/SelectPatient/SelectPatient.vue'), + }, + // 患者信息录入 + { + path: '/patientInfo', + name: 'PatientInfo', + component: () => import('@/views/PatientInfo/PatientInfo.vue'), + }, + // 病例搜索 + { + path: '/caseSearch', + name: 'CaseSearch', + component: () => import('@/views/CaseSearch/CaseSearch.vue'), + }, + // 病例分析 + { + path: '/caseAnalysis', + name: 'CaseAnalysis', + component: () => import('@/views/CaseAnalysis/CaseAnalysis.vue'), + }, ]; const router = new VueRouter({ diff --git a/src/views/CaseAnalysis/CaseAnalysis.vue b/src/views/CaseAnalysis/CaseAnalysis.vue new file mode 100644 index 0000000..0e1ce75 --- /dev/null +++ b/src/views/CaseAnalysis/CaseAnalysis.vue @@ -0,0 +1,16 @@ + + + + + diff --git a/src/views/CaseSearch/CaseSearch.vue b/src/views/CaseSearch/CaseSearch.vue new file mode 100644 index 0000000..ffe27d8 --- /dev/null +++ b/src/views/CaseSearch/CaseSearch.vue @@ -0,0 +1,38 @@ + + + + + diff --git a/src/views/MeetingPreview/MeetingPreview.vue b/src/views/MeetingPreview/MeetingPreview.vue index e5c5c19..b76752b 100644 --- a/src/views/MeetingPreview/MeetingPreview.vue +++ b/src/views/MeetingPreview/MeetingPreview.vue @@ -3,7 +3,7 @@
- 返回 + 返回
diff --git a/src/views/PatientInfo/PatientInfo.vue b/src/views/PatientInfo/PatientInfo.vue new file mode 100644 index 0000000..31d3db2 --- /dev/null +++ b/src/views/PatientInfo/PatientInfo.vue @@ -0,0 +1,16 @@ + + + + + diff --git a/src/views/SelectPatient/SelectPatient.vue b/src/views/SelectPatient/SelectPatient.vue new file mode 100644 index 0000000..2a58519 --- /dev/null +++ b/src/views/SelectPatient/SelectPatient.vue @@ -0,0 +1,16 @@ + + + + +