Browse Source

诊疗病种统计

newMaster
1747191978@qq.com 4 months ago
parent
commit
c3f6693936
  1. 7
      acupuncture-前台/src/api/indexCom.js
  2. 12
      acupuncture-前台/src/views/index.vue
  3. 486
      acupuncture-前台/src/views/indexCom/JM.vue
  4. 59
      acupuncture-前台/src/views/indexCom/index.js
  5. 4
      acupuncture-前台/src/views/indexCom/patient.vue

7
acupuncture-前台/src/api/indexCom.js

@ -114,5 +114,12 @@ export function patientTotal(data) {
}); });
} }
// 诊疗信息 // 诊疗信息
export function zlInfo(data) {
return request({
url: "/statistics/zlInfo",
method: "post",
data: data,
});
}
// 治疗类型 // 治疗类型
// 随访分布 // 随访分布

12
acupuncture-前台/src/views/index.vue

@ -17,13 +17,13 @@
<search <search
@radio-change="radioChange" @radio-change="radioChange"
@picker-change="pickerChage" @picker-change="pickerChage"
title="静脉溶栓统计" title="诊疗信息统计"
type="2" type="2"
></search> ></search>
</el-card> </el-card>
<JM ref="JM"></JM> <JM ref="JM"></JM>
</div> </div>
<div> <!-- <div>
<el-card shadow="always"> <el-card shadow="always">
<search <search
@radio-change="radioChange" @radio-change="radioChange"
@ -33,7 +33,7 @@
></search> ></search>
</el-card> </el-card>
<XGZL ref="XGZL"></XGZL> <XGZL ref="XGZL"></XGZL>
</div> </div> -->
</div> </div>
</template> </template>
@ -69,9 +69,9 @@ export default {
}, },
methods: { methods: {
resize() { resize() {
this.$refs.patient.getRenew(); // this.$refs.patient.getRenew();
this.$refs.JM.getRenew(); // this.$refs.JM.getRenew();
this.$refs.XGZL.getRenew(); // this.$refs.XGZL.getRenew();
}, },
// //
radioChange(_data, _type, _timeType) { radioChange(_data, _type, _timeType) {

486
acupuncture-前台/src/views/indexCom/JM.vue

@ -1,296 +1,206 @@
<template> <template>
<div class="app-container"> <div>
<!-- 静脉溶栓 数据对比 --> <div class="app-container">
<div class="dis" style="width: 100%"> <div class="dis" style="width: 100%">
<div style="flex: 1"> <div style="flex: 1; margin-right: 20px">
<el-card shadow="always"> <el-card shadow="always">
<div class="dis title-box"> <div class="dis title-box">
<span class="header-title">静脉溶栓率 </span> <span class="header-title">病种排名</span>
</div> <div class="dis"></div>
<!-- 统计图 --> </div>
<div style="height: 300px" v-loading="loading"> <div style="height: 300px" v-loading="loading">
<div id="JMz" style="width: 100%"></div> <div id="diagnose" style="width: 100%"></div>
</div> </div>
</el-card> </el-card>
</div> </div>
<div style="flex: 1; margin-left: 20px"> <div style="flex: 1">
<el-card shadow="always"> <el-card shadow="always">
<div class="dis title-box"> <div class="dis title-box">
<span class="header-title">数据对比</span> <span class="header-title">体型分布</span>
<div class="dis"> <div class="dis">
<div class="dian-box dis"> </div>
<span class="dian" style="background: #00d1a1"></span> </div>
静脉溶栓人数 <div style="height: 300px" v-loading="loading">
</div> <!-- <div id="gender" style="width: 100%"></div> -->
<div class="dian-box dis"> </div>
<span class="dian" style="background: #4f8bff"></span> </el-card>
急救特征人数 </div>
</div> </div>
</div> </div>
</div> </div>
<!-- 统计图 -->
<div style="height: 300px" v-loading="loading">
<div id="JMy" style="width: 100%"></div>
</div>
</el-card>
</div>
</div>
<!-- DNT分布 sICH发生率 -->
<div class="dis" style="width: 100%">
<div style="flex: 1">
<el-card shadow="always">
<div class="dis title-box">
<span class="header-title">DNT分布 </span>
<div class="dis">
<div class="dian-box dis">
<span class="dian" style="background: #ffcd6c"></span> 45 min
</div>
<div class="dian-box dis">
<span class="dian" style="background: #f97186"></span> 60 min
</div>
<div class="dian-box dis">
<span class="dian" style="background: #4f8bff"></span> >60 min
</div>
</div>
</div>
<!-- 统计图 -->
<div style="height: 300px" v-loading="loading">
<div id="DNT" style="width: 100%"></div>
</div>
</el-card>
</div>
<div style="flex: 1; margin-left: 20px">
<el-card shadow="always">
<div class="dis title-box">
<span class="header-title">sICH发生率</span>
</div>
<!-- 统计图 -->
<div style="height: 300px" v-loading="loading">
<div id="sICH" style="width: 100%"></div>
</div>
</el-card>
</div>
</div>
</div>
</template> </template>
<script> <script>
import * as echarts from "echarts"; import * as echarts from "echarts";
require("echarts/theme/macarons"); // echarts theme require("echarts/theme/macarons"); // echarts theme
import resize from "@/views/dashboard/mixins/resize"; import resize from "@/views/dashboard/mixins/resize";
import { queryDntResult, querySichResult, queryJmrs } from "@/api/indexCom.js"; import {
import { JMRSL, JMSJDB, DNT, SICH } from "./index"; zlInfo
export default { } from "@/api/indexCom.js";
name: "Post", import {
props: ["title"], diagnoseEcharts
mixins: [resize], } from "./index";
data() { export default {
return { name: "Post",
loading: false, props: ["title"],
JMRSLvalue: null, mixins: [resize],
DNTvalue: null, data() {
SICHvalue: null, return {
// loading: false,
queryParams: { diagnoseValue: null, //
param: { queryParams: {
timeType: 4, param: {
startTime: "", startTime: "",
endTime: "", endTime: "",
}, },
}, },
}; jwbzObj: {
}, "gxy": "高血压", //
created() { "nxgb": "脑血管病", //
// this.getData(); "exzl": "恶性肿瘤", //
}, "gxb": "冠心病", //
methods: { "jsjb": "精神疾病", //
statistics(_data, _type) { "whsezcky": "胃和十二指肠溃疡", //
this.initial(_data, _type); // "fpz": "肥胖症", //
this.loading = true; "gzssz": "骨质疏松症", //
this.getData(); // "ycxXtxjb": "遗传性、先天性疾病", //
}, "tnb": "糖尿病", //尿
// "mxfxjb": "慢性肺系疾病", //
async getData() { "gzxz": "高脂血症", //
try { "gzjb": "肝脏疾病", //
//RSL "gmxjb": "过敏性疾病", //
await queryJmrs(this.queryParams).then((res) => { "gjy": "关节炎", //
this.JMRSLvalue = res.data; "tf": "痛风", //
console.log("this.JMRSLvalue: ", this.JMRSLvalue); "sySb": "肾炎、肾病", //
this.columnar(); "other": "其他" //
}); }
//DNT };
await queryDntResult(this.queryParams).then((res) => { },
this.DNTvalue = res.data; created() {
console.log("this.DNTvalue: ", this.DNTvalue); // this.Linepatient();
this.lineDNT(); this.getData();
}); },
// // methods: {
await querySichResult(this.queryParams).then((res) => { statistics(_data, _type) {
this.SICHvalue = res.data; this.initial(_data, _type); //
this.LineSICH(); this.loading = true;
}); this.getData(); //
},
//
async getData() {
try {
await zlInfo(this.queryParams).then((res) => {
const {jlfb,smfb,sort,ttfb,txfb,zytz} = res.data
//
this.diagnoseValue = sort.sort((a, b) => a.total-b.total)
this.handleDiagnose()
});
this.loading = false;
} catch (e) {}
},
//
handleDiagnose() {
this.LineJM(); diagnoseEcharts.series[0].data = this.diagnoseValue?.map((item) => {
this.columnar(); return item.total;
this.lineDNT(); });
this.LineSICH(); diagnoseEcharts.yAxis.data = this.diagnoseValue?.map((item) => {
this.loading = false; return item.type;
} catch (e) {} });
}, console.log('diagnoseEcharts',diagnoseEcharts)
// ` this.$nextTick(() => {
LineJM() { var myChart = echarts.init(document.getElementById("diagnose"), null, {
JMSJDB.series[0].data = this.JMRSLvalue?.map((item) => { height: 300,
return item.gailv; });
}); myChart.setOption(diagnoseEcharts, true);
JMSJDB.series[1].data = this.JMRSLvalue?.map((item) => { myChart.resize();
return item.total; window.onresize = myChart.resize;
}); });
JMSJDB.xAxis[0].data = this.JMRSLvalue?.map((item) => { },
return item.date; //X //
}); initial(_data, _type) {
this.$nextTick(() => { _data[0] = this.$moment(_data[0]).format("YYYY-MM-DD");
// domecharts _data[1] = this.$moment(_data[1]).format("YYYY-MM-DD");
var myChart = echarts.init(document.getElementById("JMy"), null, { this.queryParams.param = {
height: 300, startTime: _data[0] + " " + "00:00:00",
}); endTime: _data[1] + " " + "23:59:59",
myChart.setOption(JMSJDB, true); };
myChart.resize(); },
window.onresize = myChart.resize; //
}); getRenew() {
}, this.Linepatient();
// this.columnar();
columnar() { },
JMRSL.series[0].data = this.JMRSLvalue?.map((item) => { },
return item.decimal; };
});
JMRSL.xAxis.data = this.JMRSLvalue?.map((item) => {
return item.date;
});
JMRSL.series[0].data = this.JMRSLvalue?.map((item) => {
return item.decimal;
});
this.$nextTick(() => {
// domecharts
var myChart = echarts.init(document.getElementById("JMz"), null, {
height: 300,
});
myChart.setOption(JMRSL, true);
myChart.resize();
window.onresize = myChart.resize;
});
},
lineDNT() {
DNT.series[0].data = this.DNTvalue?.map((item) => {
return item.dy45; //45
});
DNT.series[1].data = this.DNTvalue?.map((item) => {
return item.dy60; //60
});
DNT.series[2].data = this.DNTvalue?.map((item) => {
return item.other; //>60
});
DNT.xAxis.data = this.DNTvalue?.map((item) => {
return item.date; //X
});
this.$nextTick(() => {
// domecharts
var myChart = echarts.init(document.getElementById("DNT"), null, {
height: 300,
});
myChart.setOption(DNT, true);
myChart.resize();
window.onresize = myChart.resize;
});
},
LineSICH() {
SICH.series[0].data = this.SICHvalue?.map((item) => {
return item.decimal; //45
});
SICH.xAxis[0].data = this.SICHvalue?.map((item) => {
return item.time; //X
});
this.$nextTick(() => {
// domecharts
var myChart = echarts.init(document.getElementById("sICH"), null, {
height: 300,
});
myChart.setOption(SICH, true);
myChart.resize();
window.onresize = myChart.resize;
});
},
//
initial(_data, _type) {
_data[0] = this.$moment(_data[0]).format("YYYY-MM-DD");
_data[1] = this.$moment(_data[1]).format("YYYY-MM-DD");
this.queryParams.param = {
timeType: _type,
startTime: _data[0] + " " + "00:00:00",
endTime: _data[1] + " " + "23:59:59",
};
},
//
getRenew() {
this.LineJM();
this.columnar();
this.lineDNT();
this.LineSICH();
},
},
};
</script> </script>
<style scoped src="@/assets/styles/common.css"></style> <style scoped src="@/assets/styles/common.css"></style>
<style scoped> <style scoped>
>>> .el-card__body { >>>.el-card__body {
padding: 10px 0 !important; padding: 10px 0 !important;
} }
.dis {
display: flex; .dis {
} display: flex;
.header-title { }
font-size: 18px;
} .header-title {
.title-box { font-size: 18px;
padding: 10px 20px; }
border-bottom: 1px solid #dfe6ec;
} .title-box {
.dian-box { padding: 10px 20px;
align-items: center; border-bottom: 1px solid #dfe6ec;
} }
.dian {
display: inline-block; .dian-box {
width: 16px; align-items: center;
height: 16px; }
border-radius: 50%;
margin: 0 10px; .dian {
} display: inline-block;
.title-box { width: 16px;
justify-content: space-between; height: 16px;
} border-radius: 50%;
. >>> .el-radio--small.is-bordered { margin: 0 10px;
margin-right: 20px !important; }
margin-left: 0 !important;
} .title-box {
>>> .el-radio__input { justify-content: space-between;
display: none; }
}
>>> .el-radio__label { .>>>.el-radio--small.is-bordered {
padding-left: 5px; margin-right: 20px !important;
} margin-left: 0 !important;
.app-container { }
padding: 0;
} >>>.el-radio__input {
.title1 { display: none;
display: flex; }
align-items: center;
font-size: 20px; >>>.el-radio__label {
font-weight: 600; padding-left: 5px;
} }
.title-bor {
display: inline-block; .app-container {
height: 20px; padding: 0;
width: 6px; display: flex;
background: #4f8bff; justify-content: space-between;
margin-right: 10px; }
border-radius: 8px;
} .title {
display: flex;
align-items: center;
font-size: 20px;
font-weight: 600;
}
.title-bor {
display: inline-block;
height: 20px;
width: 6px;
background: #4f8bff;
margin-right: 10px;
border-radius: 8px;
}
</style> </style>

59
acupuncture-前台/src/views/indexCom/index.js

@ -1,4 +1,5 @@
import * as echarts from "echarts"; import * as echarts from "echarts";
// 患者信息统计
// 患者总数 // 患者总数
export const HZXX = { export const HZXX = {
tooltip: { tooltip: {
@ -218,6 +219,64 @@ export const diseaseEcharts = {
], ],
}; };
export const diagnoseEcharts = {
tooltip: {
trigger: "axis",
axisPointer: {
type: "cross",
label: {
backgroundColor: "#6a7985",
},
},
formatter: function (params) {
let res1 = params[0].name;
for (var i = 0, l = params.length; i < l; i++) {
res1 +=
"<br/>" +
`<span style="background:${params[i].color};width:12px;display:inline-block;height:12px;border-radius:50%;margin-right:5px;"></span>` +
params[i].seriesName +
" : " +
params[i].value +
"个";
}
return res1;
},
},
xAxis: {
name: "数量( 个 )",
type: "value",
minInterval: 1,
splitLine: {
show: true,
lineStyle: {
type: "dashed",
},
},
},
grid: {
top: "12%",
left: "3%",
right: "12%",
bottom: "0%",
containLabel: true,
},
yAxis: {
type: "category",
data: [],
},
series: [
{
name: "数量:",
data: [],
type: "bar",
barMaxWidth: 24, //柱图宽度
color: "#4f8bff",
},
],
};
// 患者信息 - 数据分析 // 患者信息 - 数据分析
export const HZXXSJFX = { export const HZXXSJFX = {
tooltip: { tooltip: {

4
acupuncture-前台/src/views/indexCom/patient.vue

@ -249,8 +249,8 @@
}, },
// //
getRenew() { getRenew() {
this.Linepatient(); // this.Linepatient();
this.columnar(); // this.columnar();
}, },
}, },
}; };

Loading…
Cancel
Save