Browse Source

患者信息录入

master
aBin 4 years ago
parent
commit
46e5aa259d
  1. 28
      src/components/Echarts/Categorymap.vue
  2. 23
      src/components/Echarts/Cisualmap.vue

28
src/components/Echarts/Categorymap.vue

@ -3,7 +3,7 @@
* @email: 18603454788@163.com * @email: 18603454788@163.com
* @Date: 2021-01-29 14:45:02 * @Date: 2021-01-29 14:45:02
* @LastEditors: wally * @LastEditors: wally
* @LastEditTime: 2021-01-29 18:20:26 * @LastEditTime: 2021-02-19 15:50:23
--> -->
<template> <template>
<!-- <div>数据统计组件</div> --> <!-- <div>数据统计组件</div> -->
@ -12,6 +12,7 @@
</div> </div>
</template> </template>
<script> <script>
import { countAnalysis } from 'config/api';
export default { export default {
name: 'Categorymap', name: 'Categorymap',
data() { data() {
@ -20,6 +21,7 @@ export default {
width: '', width: '',
height: '', height: '',
timer: null, timer: null,
list: [],
}; };
}, },
mounted() { mounted() {
@ -192,6 +194,30 @@ export default {
}; };
myChart.setOption(option); myChart.setOption(option);
}, },
async getData() {
try {
const params = {
param: {
conditionList: [],
conditionListDate: [],
hospitalId: '',
hospitalization: '',
inpatientId: '',
inputStatus: '',
testQuestionsId: '',
},
};
const res = await countAnalysis(params);
const { code, msg, data } = res.data;
if (code === 200) {
this.list = data;
} else {
console.log(msg);
}
} catch (error) {
this.$message.error('获取数据失败');
}
},
}, },
}; };
</script> </script>

23
src/components/Echarts/Cisualmap.vue

@ -6,6 +6,7 @@
</div> </div>
</template> </template>
<script> <script>
import { countCase } from 'config/api';
export default { export default {
name: 'Cisualmap', name: 'Cisualmap',
data() { data() {
@ -14,6 +15,7 @@ export default {
width: '', width: '',
height: '', height: '',
timer: null, timer: null,
list: [],
}; };
}, },
mounted() { mounted() {
@ -86,6 +88,27 @@ export default {
myChart1.setOption(option1); myChart1.setOption(option1);
myChart2.setOption(option2); myChart2.setOption(option2);
}, },
async getData() {
try {
const params = {
param: {
endDate: '',
hospitalId: '',
startDate: '',
userId: '',
},
};
const res = await countCase(params);
const { code, msg, data } = res.data;
if (code === 200) {
this.list = data;
} else {
console.log(msg);
}
} catch (error) {
this.$message.error('获取数据失败');
}
},
}, },
}; };
</script> </script>

Loading…
Cancel
Save