diff --git a/src/App.vue b/src/App.vue
index 99edf30..7adf3a7 100644
--- a/src/App.vue
+++ b/src/App.vue
@@ -27,6 +27,7 @@ export default {
if (val.userId) {
const params = { userId: val.userId };
this.getUserId(params);
+ console.log('val.userId:' + val.userId);
}
},
},
@@ -35,9 +36,10 @@ export default {
const userId = '1218763410024566784';
const params = { userId };
this.getUserId(params);
+ // this.getToken();
this.getHospitalId();
- if (sessionStorage.getItem('patientId')) {
- this.setPatientId(sessionStorage.getItem('patientId'));
+ if (localStorage.getItem('patientId')) {
+ this.setPatientId(localStorage.getItem('patientId'));
}
const that = this;
window.plugin = window.TallPlugin.init();
@@ -45,14 +47,14 @@ export default {
// created接受一个回调函数 created成功后调用 可选参数
// 接受PT传过来的 插件id,项目id,角色id,任务id,userId
window.plugin.created(function(props) {
- that.setPtProps(props);
console.log('props: ', props);
+ that.setPtProps(props);
});
},
methods: {
...mapActions('home', ['getUserId']),
- ...mapMutations('home', ['setPtProps', 'setHospitalId', 'setPatientId']),
+ ...mapMutations('home', ['setPtProps', 'setHospitalId', 'setPatientId', 'getToken']),
async getHospitalId() {
try {
diff --git a/src/components/Echarts/Analysis.vue b/src/components/Echarts/Analysis.vue
new file mode 100644
index 0000000..6c840ce
--- /dev/null
+++ b/src/components/Echarts/Analysis.vue
@@ -0,0 +1,130 @@
+
+
+
+
+
+
+
+
diff --git a/src/components/PatientInfo/PatientTable.vue b/src/components/PatientInfo/PatientTable.vue
index d296bc1..40a30b0 100644
--- a/src/components/PatientInfo/PatientTable.vue
+++ b/src/components/PatientInfo/PatientTable.vue
@@ -110,7 +110,7 @@ export default {
// 选择病患
chooseItem(id) {
this.setPatientId(id);
- sessionStorage.setItem('patientId', id);
+ localStorage.setItem('patientId', id);
},
handleTableChange(pagination) {
diff --git a/src/config/api.js b/src/config/api.js
index 453ae5e..3e39b51 100644
--- a/src/config/api.js
+++ b/src/config/api.js
@@ -23,8 +23,10 @@ export const upload = `${file}/upload`;
// 通过任务Id查询项目Id
export const getHId = params => axios.get(`${hospatil}/byProjectId?projectId=${params}`);
+
// 查询医院列表
export const getHList = params => axios.get(`${hospatil}/selHospatil`);
+
// 保存患者病例信息
export const saveCaseMes = params => axios.post(`${patient}/saveCaseMes`, params);
@@ -43,6 +45,9 @@ export const selSearchCriteriaList = params => axios.post(`${patient}/selSearchC
// 试题相关接口:按code查看题目信息,code为空则查询全部
export const queryAll = params => axios.post(`${tcm}/question/query`, params);
+// 查询所有得题目的类型和题目相关信息
+export const queryQuestion = params => axios.get(`${tcm}/question/queryQuestion`);
+
// 查询所有对照组的信息
export const getQuery = params => axios.post(`${inpatient}/query`, params);
diff --git a/src/main.js b/src/main.js
index a554e46..b7fa45b 100644
--- a/src/main.js
+++ b/src/main.js
@@ -19,6 +19,8 @@ import 'echarts-gl';
import 'echarts/map/js/province/shanxi.js'; //对应的省份
import './plugins/vue-quill-editor.js';
import VueDOMPurifyHTML from 'vue-dompurify-html';
+// import { getUserId } from 'config/api-user';
+
// Vue.use(echarts);
Vue.use(VueDOMPurifyHTML);
Vue.prototype.$echarts = echarts;
@@ -28,6 +30,17 @@ import moment from 'moment'; //导入文件
Vue.prototype.$moment = moment; //赋值使用
Vue.config.productionTip = false;
+// router.beforeEach((to, from, next) => {
+// const token = sessionStorage.getItem('anyringToken');
+// if (token) {
+// next();
+// } else {
+// const userId = '1218763410024566784';
+// const params = { userId };
+// getUserId(params).then(next());
+// }
+// });
+
window.vm = new Vue({
router,
store,
diff --git a/src/plugins/ant-design-vue.js b/src/plugins/ant-design-vue.js
index bd45be3..eccff69 100644
--- a/src/plugins/ant-design-vue.js
+++ b/src/plugins/ant-design-vue.js
@@ -39,6 +39,7 @@ import {
Card,
List,
Collapse,
+ Cascader,
} from 'ant-design-vue';
import { ConfigProvider } from 'ant-design-vue';
Vue.component(ConfigProvider.name, ConfigProvider);
@@ -72,6 +73,7 @@ Vue.use(Spin);
Vue.use(Card);
Vue.use(List);
Vue.use(Collapse);
+Vue.use(Cascader);
Vue.prototype.$message = message;
Vue.prototype.$notification = notification;
diff --git a/src/store/modules/home/actions.js b/src/store/modules/home/actions.js
index 1ad22a3..642b427 100644
--- a/src/store/modules/home/actions.js
+++ b/src/store/modules/home/actions.js
@@ -16,6 +16,7 @@ const actions = {
if (code === 200) {
commit('sign', data.token);
commit('setUser', data);
+ console.log(data.token);
return data;
} else {
throw msg;
diff --git a/src/store/modules/home/mutations.js b/src/store/modules/home/mutations.js
index bd5bb3b..86ad67d 100644
--- a/src/store/modules/home/mutations.js
+++ b/src/store/modules/home/mutations.js
@@ -8,7 +8,15 @@ const mutations = {
state.anyringToken = token;
sessionStorage.setItem('anyringToken', token);
},
-
+ /**
+ * 设置token
+ * @param { object } state
+ * @param { string } token
+ */
+ getToken(state, token) {
+ state.anyringToken = sessionStorage.getItem('anyringToken');
+ console.log('anyringToken' + sessionStorage.getItem('anyringToken'));
+ },
/**
* 设置user用户信息
* @param {object} state
diff --git a/src/views/CaseAnalysis/CaseAnalysis.vue b/src/views/CaseAnalysis/CaseAnalysis.vue
index 6862308..ddf86e4 100644
--- a/src/views/CaseAnalysis/CaseAnalysis.vue
+++ b/src/views/CaseAnalysis/CaseAnalysis.vue
@@ -1,159 +1,507 @@
-
-
-
-
-
-
-
- {{ item.name }}
-
-
-
-
-
-
-
- {{ item.name }}
+
+
+
+
+
+ {{ item.name }}
+
+
+
+
+
+
+
+ {{ item.name }}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {{ b.showValue }}
+
+
+
+
+ {{ ques.showValue }}
+
+
+
+
+ {{ b.showValue }}
+
+
+
+ 点击上传
+
+
+
+
+ {{ f.showValue }}
+
+
+
+
+
+
+
+ {{ ques.showValue }}
+
+
+
+
+
+
+
+
+ {{ b.showValue }}
-
-
-
+
+
+
+
+
+
+ {{ ques.showValue }}
+
+
+
+
+
+ 说明:
+
+
+
+
+
+
+ {{ f.showValue }}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {{ b.showValue }}
+
+
+
+
+
+ {{ ques.showValue }}
+
+
+
+
+
+ {{ b.showValue }}
+
+
+
+
+ 点击上传
+
+
+
+
+ {{ f.showValue }}
+
+
+
+
+
+
+
+ {{ ques.showValue }}
+
+
+
+
+
+
+
+
+
+ {{ b.showValue }}
+
+
+
+
+
+
+
+
+ {{ ques.showValue }}
+
+
+
+
+
+ 说明:
+
+
+
+
+
+
+ {{ f.showValue }}
+
+
+
+
+
+ 图片识别
+
+
+
+
+
+
+
+
+
+ 图片识别
+
-
-
-
-
+
+
-
- {{ item.name }}:
+
+ {{ w.name }}:
-
-
-
-
-
-
- {{ b.showValue }}
+
+
+
+
+
+
+ {{ b.showValue }}
-
+
-
+
{{ ques.showValue }}
-
- {{ b.showValue }}
+
+ {{ b.showValue }}
-
+
点击上传
-
-
-
+
+
+
{{ f.showValue }}
-
+
-
+
-
+
{{ ques.showValue }}
-
+
-
-
- {{ b.showValue }}
+
+
+ {{ b.showValue }}
-
-
-
+
+
-
+
{{ ques.showValue }}
-
-
-
-
+
+
+
{{ f.showValue }}
-
+
@@ -162,559 +510,218 @@
-
+
-
-
+
+
+
+
+ {{ b.showValue }}
+
+
+
+
+
+ {{ ques.showValue }}
+
+
+
+
+
+ {{ b.showValue }}
+
+
+
+
-
-
-
-
- {{ b.showValue }}
+ 点击上传
+
+
+
+
+ {{ f.showValue }}
-
-
-
- {{ ques.showValue }}
-
-
-
-
-
- {{ b.showValue }}
-
-
-
-
- 点击上传
-
-
-
-
- {{ f.showValue }}
-
-
-
-
+
+
-
-
-
-
- {{ ques.showValue }}
-
-
-
-
-
-
-
-
-
- {{ b.showValue }}
-
-
-
-
-
-
-
-
- {{ ques.showValue }}
-
-
-
-
-
- 说明:
-
-
-
-
-
- {{ f.showValue }}
-
-
-
-
-
-
-
-
- qwe
+
+
+
+
+ {{ ques.showValue }}
+
+
+
-
-
-
-
图片识别
-
-
-
-
-
-
-
-
-
-
图片识别
-
-
-
-
-
-
- {{ w.name }}:
-
-
-
-
-
-
-
- {{ b.showValue }}
-
-
-
-
- {{ ques.showValue }}
-
-
-
-
- {{ b.showValue }}
-
-
-
- 点击上传
-
-
-
-
- {{ f.showValue }}
-
-
-
-
-
-
-
- {{ ques.showValue }}
-
-
-
-
-
-
-
-
- {{ b.showValue }}
-
-
-
-
-
-
-
- {{ ques.showValue }}
-
-
-
-
-
- 说明:
-
-
-
-
-
-
- {{ f.showValue }}
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- {{ b.showValue }}
-
-
-
-
-
- {{ ques.showValue }}
-
-
-
-
+
+
+
+
+
{{ b.showValue }}
-
-
- 点击上传
-
-
-
-
- {{ f.showValue }}
-
-
-
+
+
{{ ques.showValue }}
-
+
+ 说明:
-
-
-
- {{ b.showValue }}
-
-
-
-
+
+
+
+
+ {{ f.showValue }}
+
+
+
-
-
-
-
- {{ ques.showValue }}
-
-
-
-
-
- 说明:
-
-
-
-
-
-
- {{ f.showValue }}
-
-
-
-
-
-
图片识别
-
-
-
-
+
+
+
图片识别
+
+
+
-
- 图片识别
-
-
+
+
+
图片识别
+
-
- 提交
-
-
+
+
+
+
+
+
+
+
+ {{ i.name }}
+
+
+
+ 提交
+
+
+