From 3d331a469a21e5f7e02b67e5182acee2bcd70f27 Mon Sep 17 00:00:00 2001 From: binbin0314 Date: Thu, 18 Feb 2021 14:36:47 +0800 Subject: [PATCH] =?UTF-8?q?=E6=82=A3=E8=80=85=E4=BF=A1=E6=81=AF=E5=BD=95?= =?UTF-8?q?=E5=85=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- package-lock.json | 13 +- src/config/api.js | 11 + src/main.js | 11 +- src/views/PatientInfo/PatientInfo.vue | 399 +++++++++++++++++++++----- 4 files changed, 357 insertions(+), 77 deletions(-) diff --git a/package-lock.json b/package-lock.json index 5c2b9df..2f4ea70 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,11 +1,10 @@ { - "name": "中医药大学课题数据库", + "name": "chinese-medicine", "version": "0.1.0", "lockfileVersion": 2, "requires": true, "packages": { "": { - "name": "中医药大学课题数据库", "version": "0.1.0", "dependencies": { "ant-design-vue": "^1.2.4", @@ -21206,9 +21205,9 @@ } }, "dompurify": { - "version": "2.2.6", - "resolved": "https://registry.npm.taobao.org/dompurify/download/dompurify-2.2.6.tgz", - "integrity": "sha1-VJRdxcC0XOWuIocFd36OWdey7cQ=" + "version": "2.2.3", + "resolved": "https://registry.npmjs.org/dompurify/-/dompurify-2.2.3.tgz", + "integrity": "sha512-8Hv7Q0FuwD9rWoB6qI2eZsfKbGXfoUVuGHHrE15vgk4ReOKwOkSgbqb2OMFtc0d5besOEkoLkcyuV10zQ2X5gw==" }, "domready": { "version": "1.0.8", @@ -28624,8 +28623,8 @@ }, "vue-dompurify-html": { "version": "2.3.0", - "resolved": "https://registry.npm.taobao.org/vue-dompurify-html/download/vue-dompurify-html-2.3.0.tgz", - "integrity": "sha1-sXXt2lc2LPewPShkRo+mROBaKtA=", + "resolved": "https://registry.npmjs.org/vue-dompurify-html/-/vue-dompurify-html-2.3.0.tgz", + "integrity": "sha512-Iz9wI4iiJF+rzC2x3r8quw/VXrkwgMsWXt9p0Le4wXtolBXwMDJOmK3QNMiNg36bzU2b0f3En/wjidoeRVNZ7A==", "requires": { "dompurify": "^2.0.0" } diff --git a/src/config/api.js b/src/config/api.js index bfc084d..d276008 100644 --- a/src/config/api.js +++ b/src/config/api.js @@ -1,8 +1,16 @@ +/* + * @Author: wally + * @email: 18603454788@163.com + * @Date: 2021-01-29 11:16:27 + * @LastEditors: wally + * @LastEditTime: 2021-02-18 14:23:31 + */ import axios from 'axios'; let { proxyUrl, msgUrl } = require('@/config/setting'); const tcm = `${proxyUrl}/tcm`; const patient = `${tcm}/patient`; // 患者相关接口 +const imp = `${tcm}/import`; // 试题相关接口 // 保存患者病例信息 export const saveCaseMes = params => axios.post(`${patient}/saveCaseMes`, params); @@ -18,3 +26,6 @@ export const selPatientMesList = params => axios.post(`${patient}/selPatientMesL // 通过查询搜索条件 export const selSearchCriteriaList = params => axios.post(`${patient}/selSearchCriteriaList`, params); + +// 试题相关接口:按code查看题目信息,code为空则查询全部 +export const queryAll = params => axios.post(`${tcm}/question/queryAll`, params); diff --git a/src/main.js b/src/main.js index 8fc39d9..a554e46 100644 --- a/src/main.js +++ b/src/main.js @@ -1,3 +1,10 @@ +/* + * @Author: wally + * @email: 18603454788@163.com + * @Date: 2021-01-29 11:16:27 + * @LastEditors: wally + * @LastEditTime: 2021-02-04 17:47:01 + */ // @ts-ignore import Vue from 'vue'; import './plugins/axios'; @@ -17,8 +24,8 @@ Vue.use(VueDOMPurifyHTML); Vue.prototype.$echarts = echarts; // import './assets/icon/iconfont.css'; // import VueDOMPurifyHTML from 'vue-dompurify-html'; -// import moment from 'moment'; //导入文件 -// Vue.prototype.$moment = moment; //赋值使用 +import moment from 'moment'; //导入文件 +Vue.prototype.$moment = moment; //赋值使用 Vue.config.productionTip = false; window.vm = new Vue({ diff --git a/src/views/PatientInfo/PatientInfo.vue b/src/views/PatientInfo/PatientInfo.vue index 3e000fb..e940bb7 100644 --- a/src/views/PatientInfo/PatientInfo.vue +++ b/src/views/PatientInfo/PatientInfo.vue @@ -1,47 +1,226 @@ -