Commit 9df5854f by lihu541

页面数据核对,样式修改

parent f8ba08c7
......@@ -14,7 +14,7 @@ module.exports = {
// Various Dev Server settings
host: 'localhost', // can be overwritten by process.env.HOST
port: 8080, // can be overwritten by process.env.PORT, if port is in use, a free one will be determined
port: 8888, // can be overwritten by process.env.PORT, if port is in use, a free one will be determined
autoOpenBrowser: false,
errorOverlay: true,
notifyOnErrors: true,
......
......@@ -5250,6 +5250,11 @@
"integrity": "sha512-Vg8czh0Q7sFBSUMWWArX/miJeBWYBPpdU/3M/DKSaekLMqrqVPaedp+5mZhie/r0lgrcaYBfwXatEew6gwgiQQ==",
"dev": true
},
"js-md5": {
"version": "0.7.3",
"resolved": "https://registry.npmjs.org/js-md5/-/js-md5-0.7.3.tgz",
"integrity": "sha512-ZC41vPSTLKGwIRjqDh8DfXoCrdQIyBgspJVPXHBGu4nZlAEvG3nf+jO9avM9RmLiGakg7vz974ms99nEV0tmTQ=="
},
"js-tokens": {
"version": "3.0.2",
"resolved": "https://registry.npmjs.org/js-tokens/-/js-tokens-3.0.2.tgz",
......
......@@ -11,6 +11,7 @@
},
"dependencies": {
"axios": "^0.19.2",
"js-md5": "^0.7.3",
"stylus-loader": "^3.0.2",
"swiper": "^5.3.8",
"vue": "^2.5.2",
......
......@@ -2,7 +2,7 @@ import request from '@/utils/request'
/****
*首页接口
******/
const webUrl = 'http://192.168.3.4:168/fyglAPP/';
const webUrl = 'http://localhost:168/fyglAPP/';
// const webUrl = 'http://192.168.3.110:8999/diseaseControlManage/';
// const webUrl = 'http://195.1.3.38:8999/diseaseControlManage/';
......
import request from '@/utils/request'
//登录、修改密码
const webUrl = 'http://192.168.3.4:168/fyglAPP/';
const webUrl = 'http://localhost:168/fyglAPP/';
// const webUrl = 'http://192.168.3.110:8999/diseaseControlManage/';
// const webUrl = 'http://195.1.3.38:8999/diseaseControlManage/';
export function login(loginID, loginPas) {
......
......@@ -93,7 +93,7 @@
.card1-mod .cmtitle span.tag-huan { background: #095661; border: 1px #2698A8 solid; color: #78BDDE; border-radius: 50%; padding: 0 3px;font-size: 12px;}
.cmtline{ clear: both; height: 70px; padding-top: 10px;}
.cmtline p{color: #B3BFD2;}
.cmtline p span{color: #B3BFD2; float: right; width: 80px;}
.cmtline p span{color: #B3BFD2; float: right; width: 105px;}
.cmtline p span em{background: #095661; border: 1px #2698A8 solid; color: #78BDDE; border-radius: 50%; padding: 0 3px;font-size: 12px;}
.cmtline2{ clear: both; height: 70px; padding-top: 10px;}
......
......@@ -132,13 +132,13 @@
<div class="toptwo">
<div class="toptitle">重点监管指标</div>
<div class="toplinem">
<div class="topline"><span>{{supervisionlist1}}%</span><i class="i1"></i>高血压患者累计死后随访比</div>
<div class="topline"><span>{{supervisionlist2}}%</span><i class="i2"></i>糖尿病患者累计死后随访比</div>
<div class="topline"><span>{{supervisionlist3}}%</span><i class="i3"></i>糖尿病患者糖化血红蛋白自动上传比例</div>
<div class="topline"><span>{{supervisionlist4}}%</span><i class="i4"></i>高血压患者血压记录自动上传比例</div>
<div class="topline"><span>{{supervisionlist5}}%</span><i class="i5"></i>年内按计划随访高血压患者完成比例</div>
<div class="topline"><span>{{supervisionlist6}}%</span><i class="i6"></i>年内按计划随访糖尿病患者完成比例</div>
<div class="topline"><span>{{supervisionlist7}}%</span><i class="i7"></i>首诊测压血压异常率</div>
<div class="topline"><span>{{supervisionlist1.value}}%</span><i class="i1"></i>高血压患者累计死后随访比</div>
<div class="topline"><span>{{supervisionlist2.value}}%</span><i class="i2"></i>糖尿病患者累计死后随访比</div>
<div class="topline"><span>{{supervisionlist3.value}}%</span><i class="i3"></i>糖尿病患者糖化血红蛋白自动上传比例</div>
<div class="topline"><span>{{supervisionlist4.value}}%</span><i class="i4"></i>高血压患者血压记录自动上传比例</div>
<div class="topline"><span>{{supervisionlist5.value}}%</span><i class="i5"></i>年内按计划随访高血压患者完成比例</div>
<div class="topline"><span>{{supervisionlist6.value}}%</span><i class="i6"></i>年内按计划随访糖尿病患者完成比例</div>
<div class="topline"><span>{{supervisionlist7.value}}%</span><i class="i7"></i>首诊测压血压异常率</div>
</div>
</div>
<div class="topthr">
......@@ -233,13 +233,13 @@
sweetAutoplacetemp: [],
sweetAutoplacevalue: [],
// 右侧重点监管指标列表变量 顺序依次对应
supervisionlist1: 0,
supervisionlist2: 0,
supervisionlist3: 0,
supervisionlist4: 0,
supervisionlist5: 0,
supervisionlist6: 0,
supervisionlist7: 0,
supervisionlist1: {},
supervisionlist2: {},
supervisionlist3: {},
supervisionlist4: {},
supervisionlist5: {},
supervisionlist6: {},
supervisionlist7: {},
supervisionall: [],
// 请求数据变量 ↑
threeCode: 1, // 控制左下角的显示状态
......@@ -263,21 +263,6 @@
bottom: 50,
top: 30,
},
dataZoom: {
start: 0, //默认为0
end: 50, //默认为100
type: 'slider',
show: true,
xAxisIndex: [0],
handleSize: 0, //滑动条的 左右2个滑动条的大小
height: 8, //组件高度
left: 20, //左边的距离
right: 20, //右边的距离
bottom: 70, //右边的距离
backgroundColor: '#ccc', //两边未选中的滑动条区域的颜色
showDataShadow: true, //是否显示数据阴影 默认auto
filterMode: 'filter',
},
xAxis: {
name: "(月)",
nameLocation: 'center',
......@@ -658,6 +643,17 @@
res.data.content.forEach(item => {
item.zbxx.forEach(item2 => {
// 1110 高血压患者年内累计死亡后随访比例 FWZL_010
// 1113 糖尿病患者年内累计死亡后随访比例 FWZL_013
// 1069 糖尿病患者糖化血红蛋白自动上传比例 MBGL_033
// 1063 高血压患者血压记录自动上传比例 MBGL_027
// 1057 年内按计划随访高血压患者完成比例 MBGL_021
// 1060 年内按计划随访糖尿病患者完成比例 MBGL_024
// 1017 首诊测压血压异常率 MBZFX_005
// ['高血压患者累计死后随访比', '糖尿病患者累计死后随访比', '糖尿病患者糖化血红蛋白自动上传比例',
// '高血压患者血压记录自动上传比例', '年内按计划随访高血压患者完成比例', '年内按计划随访糖尿病患者完成比例', '首诊测压血压异常率'],
if (item2.ZBID == "1116") {
this.left1 = item2.ZXZ
}
......@@ -665,35 +661,42 @@
this.left2 = item2.ZXZ
}
if (item2.ZBID == "1110") {
this.supervisionlist1 = parseFloat(item2.ZXZ).toFixed(1)
this.supervisionlist1.name = '高血压患者累计死后随访比'
this.supervisionlist1.value = parseFloat(item2.ZXZ).toFixed(1)
}
if (item2.ZBID == "1113") {
this.supervisionlist2 = parseFloat(item2.ZXZ).toFixed(1)
this.supervisionlist2.name = '糖尿病患者累计死后随访比'
this.supervisionlist2.value = parseFloat(item2.ZXZ).toFixed(1)
}
if (item2.ZBID == "1069") {
this.supervisionlist3 = parseFloat(item2.ZXZ).toFixed(1)
this.supervisionlist3.name = '糖尿病患者糖化血红蛋白自动上传比例'
this.supervisionlist3.value = parseFloat(item2.ZXZ).toFixed(1)
}
if (item2.ZBID == "1063") {
this.supervisionlist4 = parseFloat(item2.ZXZ).toFixed(1)
this.supervisionlist4.name = '高血压患者血压记录自动上传比例'
this.supervisionlist4.value = parseFloat(item2.ZXZ).toFixed(1)
}
if (item2.ZBID == "1057") {
this.supervisionlist5 = parseFloat(item2.ZXZ).toFixed(1)
this.supervisionlist5.name = '年内按计划随访高血压患者完成比例'
this.supervisionlist5.value = parseFloat(item2.ZXZ).toFixed(1)
}
if (item2.ZBID == "1060") {
this.supervisionlist6 = parseFloat(item2.ZXZ).toFixed(1)
this.supervisionlist6.name = '年内按计划随访糖尿病患者完成比例'
this.supervisionlist6.value = parseFloat(item2.ZXZ).toFixed(1)
}
if (item2.ZBID == "1017") {
this.supervisionlist7 = parseFloat(item2.ZXZ).toFixed(1)
this.supervisionlist7.name = '首诊测压血压异常率'
this.supervisionlist7.value = parseFloat(item2.ZXZ).toFixed(1)
}
})
})
this.supervisionall.push(parseFloat(this.supervisionlist1))
this.supervisionall.push(parseFloat(this.supervisionlist2))
this.supervisionall.push(parseFloat(this.supervisionlist3))
this.supervisionall.push(parseFloat(this.supervisionlist4))
this.supervisionall.push(parseFloat(this.supervisionlist5))
this.supervisionall.push(parseFloat(this.supervisionlist6))
this.supervisionall.push(parseFloat(this.supervisionlist7))
this.supervisionall.push(this.supervisionlist1)
this.supervisionall.push(this.supervisionlist2)
this.supervisionall.push(this.supervisionlist3)
this.supervisionall.push(this.supervisionlist4)
this.supervisionall.push(this.supervisionlist5)
this.supervisionall.push(this.supervisionlist6)
this.supervisionall.push(this.supervisionlist7)
})
// 右上角 医疗机构等记 报告(肿癌、心脑) 人数获取 以及 echarts图表传值
......
......@@ -37,7 +37,7 @@
<div class="inputdiv"><input type="text"><img height="20" width="20" src="../assets/search.png"></div>
<div class="imgdiv">
<img height="18" width="18" src="../assets/user.png">
市疾控,截止:2020-5
市疾控,截止:2020-08
<img height="18" width="18" src="../assets/sao.png">
<img height="18" width="18" src="../assets/filter.png">
</div>
......@@ -503,7 +503,7 @@
this.ispopu = !this.ispopu
},
toMygh(){
location.href = '/manage-platform/index?token=' + sessionStorage.getItem('token')
window.location.href = 'http://195.1.3.38:9001/#/manage-platform/index?token=TK_' + sessionStorage.getItem('token')
},
exitFn() {
this.$router.push({
......
......@@ -12,24 +12,20 @@
data() {
return {
msg: '',
MyList: ['高血压患者累计死后随访比', '糖尿病患者累计死后随访比', '糖尿病患者糖化血红蛋白自动上传比例', '高血压患者血压记录自动上传比例', '年内按计划随访高血压患者完成比例'],
MyList: ['高血压患者累计死后随访比', '糖尿病患者累计死后随访比', '糖尿病患者糖化血红蛋白自动上传比例',
'高血压患者血压记录自动上传比例', '年内按计划随访高血压患者完成比例', '年内按计划随访糖尿病患者完成比例', '首诊测压血压异常率'],
option: {
title: {
// text: '重点监管指标',
left: 'center'
},
tooltip: {
trigger: 'item'
},
color: ["#37C6D0", "#3FDCB7", "#8DEDA2", "#BCF8C6", "#FBF7AB", "#F3D7BC", "#61A5F5"],
legend: {
orient: 'vertical',
left: 'left',
data: ['高血压患者', '糖尿病患者累计死后随访比', '糖尿病患者糖化血红蛋白自动上传比例', '高血压患者血压记录自动上传比例', '年内按计划随访高血压患者完成比例'],
textStyle: {
color: '#FFF' // 图例文字颜色
}
},
// .toplinem .topline i.i1{ background:#3FDCB7}
// .toplinem .topline i.i2{ background:#37C6D0}
// .toplinem .topline i.i3{ background:#61A5F5}
// .toplinem .topline i.i4{ background:#F3D7BC}
// .toplinem .topline i.i5{ background:#FBF7AB}
// .toplinem .topline i.i6{ background:#BCF8C6}
// .toplinem .topline i.i7{ background:#8DEDA2}
color: ["#3FDCB7", "#37C6D0", "#61A5F5", "#F3D7BC", "#FBF7AB", "#BCF8C6", "#8DEDA2"],
series: [{
name: '份额',
type: 'pie',
......@@ -38,8 +34,20 @@
radius: [30, 80],
roseType: 'area',
label: {
normal: {
show: true
show: true,
position: 'outside',
formatter: '{c}%',
rich: {
hr: {
backgroundColor: 't',
borderRadius: 3,
width: 3,
height: 3,
padding: [3, 3, 0, -12]
},
a: {
padding: [-30, 15, -20, 15]
}
}
},
labelLine: {
......@@ -49,26 +57,8 @@
length2: 10,
}
},
data: [{
value: 33.5,
name: '33.5%', //高血压患者累计死后随访比
},
{
value: 10,
name: '10%', //高血压患者累计死后随访比
},
{
value: 23.4,
name: '23.4%' //糖尿病患者糖化血红蛋白自动上传比例
},
{
value: 13.5,
name: '13.5%' //高血压患者血压记录自动上传比例
},
{
value: 15.8,
name: '15.4%' //年内按计划随访高血压患者完成比例
}
data: [
],
emphasis: {
itemStyle: {
......@@ -91,8 +81,8 @@
'value': 0,
'name': ''
}
objdata.value = this.supervisionall[i]
objdata.name = this.supervisionall[i] + '%'
objdata.value = this.supervisionall[i].value
objdata.name = this.supervisionall[i].name
// 释放后 则显示legend
// objdata.name = this.MyList[i]
objArr.push(objdata)
......
......@@ -58,9 +58,9 @@
<div class="card1-mod" v-show="mbType === 'zl'">
<h2>初访完成数(实/同)</h2>
<div class="cmtitle">
<span>{{wcdata.ZXZ}}</span>
<span>{{parseFloat(wcdata.ZXZ / 10000).toFixed(1)}}</span>
<span class="span1">/</span>
<span>{{wcdata.TBZ}}</span>
<span>{{parseFloat(wcdata.TBZ / 10000).toFixed(1)}}</span>
<span class="span2"></span>
<span class="tag-blue"></span>
<span class="span2">{{wcdata.TBL}}</span>
......@@ -68,7 +68,7 @@
</div>
<div class="overl">初访完成率 {{wclv}}%</div>
</div>
<div class="card1-mod" v-show="mbType == 3">
<div class="card1-mod" v-show="mbType === 'zl'">
<div id="pag1canser"></div>
</div>
</div>
......@@ -122,7 +122,7 @@
<div id="chartsright"></div>
<div id="chartstxt">
<p>初访完成比:{{parseFloat(wclv).toFixed(1)}}%</p>
<p>知情同意接受随访服务比:{{parseFloat(zqlv).toFixed(1)}}%</p>
<p>知情同意随访比:{{parseFloat(zqlv).toFixed(1)}}%</p>
<p>规范管理率:{{parseFloat(gflv).toFixed(1)}}%</p>
</div>
</div>
......@@ -140,22 +140,22 @@
</tr>
<tr>
<td width="30%">完成初访</td>
<td width="45%"><span class="span11">{{wcdata.ZXZ?parseFloat(wcdata.ZXZ).toFixed(1):0}} /
{{wclvdata.TBZ?wclvdata.TBZ:0}}</span></td>
<td width="45%"><span class="span11">{{parseFloat(wcdata.ZXZ / 10000).toFixed(1)}} /
{{parseFloat(wcdata.TBZ / 10000).toFixed(1)}}</span></td>
<td width="25%%">{{wclvdata.TBL?parseFloat(wclvdata.TBL).toFixed(1):0}} <i class="el-icon-bottom color3">&nbsp;</i>
</td>
</tr>
<tr>
<td width="30%">知情同意</td>
<td width="45%"><span class="span22">{{zqlvdata.ZXZ?parseFloat(zqlvdata.ZXZ).toFixed(1):0}} /
{{zqlvdata.TBZ?zqlvdata.TBZ:0}}</span></td>
<td width="25%">{{zqlvdata.TBL?parseFloat(zqlvdata.TBL).toFixed(1):0}} <i class="el-icon-bottom color3">&nbsp;</i>
<td width="45%"><span class="span22">{{parseFloat(zqsdata.ZXZ / 10000).toFixed(1)}} /
{{parseFloat(zqsdata.TBZ / 10000).toFixed(1)}}</span></td>
<td width="25%">{{zqsdata.TBL?parseFloat(zqsdata.TBL).toFixed(1):0}} <i class="el-icon-bottom color3">&nbsp;</i>
</td>
</tr>
<tr>
<td width="30%">随访存活</td>
<td width="45%"><span class="span33">{{chdata.ZXZ?parseFloat(chdata.ZXZ).toFixed(1):0}} /
{{chdata.TBZ?chdata.TBZ:0}}</span></td>
<td width="45%"><span class="span33">{{chdata.ZXZ?parseFloat(chdata.ZXZ / 10000).toFixed(1):0}} /
{{chdata.TBZ?parseFloat(chdata.TBZ / 10000).toFixed(1):0}}</span></td>
<td width="25%">{{chdata.TBL?parseFloat(chdata.TBL).toFixed(1):0}} <i
class="el-icon-bottom color3">&nbsp;</i></td>
</tr>
......@@ -199,22 +199,13 @@
<tr>
<th></th>
<th>{{thname}}</th>
<th @click.stop="showtab(1)">管/签<br/>{{rightlist1}}·%</th>
<th @click.stop="showtab(2)">管/签<br/>{{rightlist2}}·%</th>
<th v-if="rightlist3" @click.stop="showtab(3)">管/签<br/>{{rightlist3}}·%</th>
<th @click.stop="showtab(1)"><span v-html="rightlist1"></span></th>
<th @click.stop="showtab(2)"><span v-html="rightlist2"></span></th>
<th v-if="rightlist3" @click.stop="showtab(3)"><span v-html="rightlist3"></span></th>
</tr>
</thead>
<div class="uplib" v-if="showtabnum == 1">
指标名称:<br>{{pagedisname}}患者{{rightlist1}}<br>
计算公式:<br>年内正常随访过一次的高血压患者人数/年内应管理高血压患者人数
</div>
<div class="uplib" v-if="showtabnum == 2">
指标名称:<br>{{pagedisname}}患者{{rightlist2}}<br>
计算公式:<br>年内按照要求进行高血压患者健康管理的人数/年内管理高血压患者人数×100%
</div>
<div class="uplib" v-if="showtabnum == 3">
指标名称:<br>{{pagedisname}}患者{{rightlist3}}<br>
计算公式:<br>目前已随访人次数/在管高血压患者年内应随访次数
<div class="uplib" v-if="showtabnum == 4">
<span v-html="explanation"></span>
</div>
<tbody class="scrollTbody">
<tr v-for="(item, index) in tableAll" :key="index">
......@@ -263,27 +254,13 @@
hospitalname: '',
sel: '筛选',
option: {
tooltip: {
show: false,
formatter: "{a} <br/>{b} : {c} ({d}%)"
},
legend: {
orient: 'vertical',
x: 130,
y: 10,
itemGap: 10,
data: ['三级占比', '二级占比'],
textStyle: {
color: '#fff',
fontSize: 12
}
},
series: [{
name: '1',
type: 'pie',
clockWise: false,
radius: [45, 37],
radius: [42, 54],
center: ['88%', '55%'],
hoverAnimation: false,
itemStyle: {
normal: {
......@@ -296,7 +273,7 @@
}
},
data: [{
value: 44,
value: null,
name: '三级占比',
itemStyle: {
normal: {
......@@ -305,7 +282,7 @@
}
},
{
value: 55,
value: null,
name: 'invisible',
itemStyle: {
normal: {
......@@ -328,7 +305,8 @@
name: '2',
type: 'pie',
clockWise: false,
radius: [36, 28],
radius: [30, 42],
center: ['88%', '55%'],
hoverAnimation: false,
itemStyle: {
normal: {
......@@ -341,7 +319,7 @@
}
},
data: [{
value: 42.5,
value: null,
name: '二级占比',
itemStyle: {
normal: {
......@@ -350,7 +328,7 @@
}
},
{
value: 100 - 43.7,
value: null,
name: 'invisible',
itemStyle: {
normal: {
......@@ -373,7 +351,8 @@
name: '2',
type: 'pie',
clockWise: false,
radius: [27, 19],
radius: [18, 30],
center: ['88%', '55%'],
hoverAnimation: false,
itemStyle: {
normal: {
......@@ -386,7 +365,7 @@
}
},
data: [{
value: 42.5,
value: null,
name: '二级占比',
itemStyle: {
normal: {
......@@ -395,7 +374,7 @@
}
},
{
value: 100 - 43.7,
value: null,
name: 'invisible',
itemStyle: {
normal: {
......@@ -419,19 +398,10 @@
option2: {
color: ['#42ccff', '#3F81BB'],
series: [{
itemStyle: {
normal: {
label: {
show: true,
formatter: '{b} : {c} ({d}%)'
},
labelLine: {
show: true
}
}
},
name: '',
type: 'pie',
hoverAnimation:false,
radius: '75%',
center: ['50%', '50%'],
label: {
......@@ -440,34 +410,11 @@
show: false,
},
},
data: [{
value: 10,
name: '已处理',
color: "red",
areaStyle: {
normal: {
backgroundColor: '#42ccff'
}
}
},
{
value: 90,
name: '待处理',
color: "red",
areaStyle: {
normal: {
backgroundColor: '#3F81BB'
}
}
},
],
itemStyle: {
emphasis: {
shadowBlur: 10,
shadowOffsetX: 0,
shadowColor: 'rgba(0, 0, 0, 0.5)'
}
}
data: [
{value: 0, name: ''},
{value: 0, name: ''},
]
}]
},
option3: {
......@@ -581,21 +528,21 @@
res += '<li>签.高血压患者血压记录自动上传比例/去年:' + params[0].data.num7 + '/' + params[0].data.num8 + '%</li>';
res += '</ul>';
} else if (params[0].seriesName == '管理/签约人群药物治疗人数') {
res += '<ul class="f12 pl10 pr15">';
res += '<li class="f13"> ' + params[0].axisValue + '</li>';
res += '<li>管理/签约人群年内已管理的高血压患者中接受药物治疗的人数:' + params[0].data.num1 + '/' + params[0].data.num2 + '万</li>';
res += '<li>去年管理/签约人群年内已管理的高血压患者中接受药物治疗的人数:' + params[0].data.num3 + '/' + params[0].data.num4 + '万</li>';
res += '<li>管.高血压患者药物治疗率/去年:' + params[0].data.num5 + '/' + params[0].data.num6 + '%</li>';
res += '<li>签.高血压患者药物治疗率/去年:' + params[0].data.num7 + '/' + params[0].data.num8 + '%</li>';
res += '</ul>';
} else {
res += '<ul class="f12 pl10 pr15">';
res += '<li class="f13"> ' + params[0].axisValue + '</li>';
res += '<li>管理/签约人群年内已管理的高血压患者中就诊人数:' + params[0].data.num1 + '/' + params[0].data.num2 + '万</li>';
res += '<li>去年管理/签约人群年内已管理的高血压患者中就诊人数:' + params[0].data.num3 + '/' + params[0].data.num4 + '万</li>';
res += '<li>管.高血压患者就诊率/去年:' + params[0].data.num5 + '/' + params[0].data.num6 + '%</li>';
res += '<li>签.高血压患者就诊率/去年:' + params[0].data.num7 + '/' + params[0].data.num8 + '%</li>';
res += '</ul>';
// res += '<ul class="f12 pl10 pr15">';
// res += '<li class="f13"> ' + params[0].axisValue + '</li>';
// res += '<li>管理/签约人群年内已管理的高血压患者中接受药物治疗的人数:' + params[0].data.num1 + '/' + params[0].data.num2 + '</li>';
// res += '<li>去年管理/签约人群年内已管理的高血压患者中接受药物治疗的人数:' + params[0].data.num3 + '/' + params[0].data.num4 + '</li>';
// res += '<li>.高血压患者药物治疗率/去年:' + params[0].data.num5 + '/' + params[0].data.num6 + '%</li>';
// res += '<li>.高血压患者药物治疗率/去年:' + params[0].data.num7 + '/' + params[0].data.num8 + '%</li>';
// res += '</ul>';
} else if (params[0].seriesName == '管理/签约人群就诊人次数') {
// res += '<ul class="f12 pl10 pr15">';
// res += '<li class="f13"> ' + params[0].axisValue + '</li>';
// res += '<li>管理/签约人群年内已管理的高血压患者中就诊人数:' + params[0].data.num1 + '/' + params[0].data.num2 + '</li>';
// res += '<li>去年管理/签约人群年内已管理的高血压患者中就诊人数:' + params[0].data.num3 + '/' + params[0].data.num4 + '</li>';
// res += '<li>.高血压患者就诊率/去年:' + params[0].data.num5 + '/' + params[0].data.num6 + '%</li>';
// res += '<li>.高血压患者就诊率/去年:' + params[0].data.num7 + '/' + params[0].data.num8 + '%</li>';
// res += '</ul>';
}
return res
}
......@@ -942,18 +889,20 @@
wczbz: 0,
wwczbz: 0,
zqlv: 0,
zqs:0,
gflv: 0,
wclvdata: [],
zqsdata: [],
zqlvdata: [],
gflvdata: [],
chdata: [],
dieaName: '血压',
rightlist1: '规范管理率',
rightlist2: '随访率',
rightlist3: '随访比',
rightlist1: '',
rightlist2: '',
rightlist3: '',
areaclick: true,
showtabnum: 0,
pagedisname: '高血压',
explanation: '',
isShowBack: false,
userinfo: {},
......@@ -1582,7 +1531,81 @@
})
},
showtab(num) {
this.showtabnum = num
if(num < 4){
this.showtabnum = 4
}else{
this.showtabnum = num
return
}
if('gxy'=== this.mbType && 'sf' === this.fxType && num === 2){ //高血压患者规范管理率
this.explanation = "指标名称:<br/>高血压患者规范管理率<br/>计算公式:<br/>年内按照要求进行高血压患者健康管理的人数/年内管理高血压患者人数×100%";
}else if('gxy'=== this.mbType && 'sf' === this.fxType && num === 1){ //高血压患者随访率
this.explanation = "指标名称:<br/>高血压患者随访率<br/>计算公式:<br/>年内正常随访过一次的高血压患者人数/年内应管理高血压患者人数";
}else if('gxy'=== this.mbType && 'sf' === this.fxType && num === 3){ //高血压患者随访比
this.explanation = "指标名称:<br/>年内按计划随访高血压患者(人次数)完成比例<br/>计算公式:<br/>目前已随访人次数/在管高血压患者年内应随访次数";
}else if('gxy'=== this.mbType && 'jc' === this.fxType && num === 1){ //高血压监测血压自动上传比
this.explanation = "指标名称:<br/>高血压患者血压记录自动上传比例<br/>计算公式:<br/>年内高血压患者血压自动上传记录数/高血压血压总记录数×100%";
}else if('gxy'=== this.mbType && 'jc' === this.fxType && num === 2){ //高血压监测血压自动上传比
this.explanation = "指标名称:<br/>高血压患者血同型半胱氨酸检测率<br/>计算公式:<br/>年内接受过同型半胱氨酸检查的高血压患者数/年内管理的高血压患者人数×100%"
}else if('gxy'=== this.mbType && 'fy' === this.fxType && num === 2){ //高血压服药治疗率
this.explanation = "指标名称:<br/>高血压患者药物治疗率<br/>计算公式:<br/>年内已管理的高血压患者中接受药物治疗的人数/年内管理的高血压患者人数×100%";
}else if('gxy'=== this.mbType && 'jz' === this.fxType && num === 1){ //高血压患者就诊率
this.explanation = "指标名称:<br/>高血压患者就诊率<br/>计算公式:<br/>年内已管理的高血压患者中就诊人数/年内管理的高血压患者人数×100%";
}else if('gxy'=== this.mbType && 'jz' === this.fxType && num === 2){ //高血压患者住院率
this.explanation = "指标名称:<br/>高血压患者住院率<br/>计算公式:<br/>年内已管理的高血压患者中住院人数/年内管理的高血压患者人数×100%";
// }else if('gxy'=== this.mbType && 'sf' === this.fxType && num === 2){ //高血压干预接种率
// this.explanation = "指标名称:<br/>肺炎疫苗干预目标人群接种率<br/>计算公式:<br/>高血压患者肺炎疫苗干预目标人群中已接种疫苗人数/高血压患者肺炎疫苗干预目标人数×100";
//
// }else if('gxy'=== this.mbType && 'sf' === this.fxType && num === 2){ //高血压干预告知率
// this.explanation = "指标名称:<br/>患者肺炎疫苗干预目标人群告知率<br/>计算公式:<br/>高血压患者肺炎疫苗干预目标人群中已完成告知疫苗接种的人数/高血压患者肺炎疫苗干预目标人数×100";
}else if('tnb'=== this.mbType && 'sf' === this.fxType && num === 1){ //糖尿病患者规范管理率
this.explanation = "指标名称:<br/>糖尿病患者规范管理率<br/>计算公式:<br/>年内按照要求进行糖尿病患者健康管理的人数/年内管理糖尿病患者人数×100";
}else if('tnb'=== this.mbType && 'sf' === this.fxType && num === 2){ //糖尿病患者随访率
this.explanation = "指标名称:<br/>糖尿病患者随访率<br/>计算公式:<br/>年内正常随访过一次的糖尿病患者人数/年内应管理糖尿病患者人数";
}else if('tnb'=== this.mbType && 'sf' === this.fxType && num === 3){ //糖尿病患者随访比
this.explanation = "指标名称:<br/>年内按计划随访糖尿病患者(人次数)完成比例<br/>计算公式:<br/>目前已随访人次数/在管糖尿病患者年内应随访次数";
}else if('tnb'=== this.mbType && 'jc' === this.fxType && num === 1){ //糖尿病监测血糖自动上传比
this.explanation = "指标名称:<br/>糖尿病患者空腹血糖自动上传比例<br/>计算公式:<br/>年内糖尿病患者自动上传空腹血糖记录数/空腹血糖总记录数";
}else if('tnb'=== this.mbType && 'jc' === this.fxType && num === 2){ //糖尿病监测糖化自动上传比
this.explanation = "指标名称:<br/>糖尿病患者糖化血红蛋白自动上传比例<br/>计算公式:<br/>年内糖尿病患者自动上传糖化血红蛋白/糖化血红蛋白总记录数";
}else if('tnb'=== this.mbType && 'fy' === this.fxType && num === 2){ //糖尿病服药治疗率
this.explanation = "指标名称:<br/>糖尿病患者药物治疗率<br/>计算公式:<br/>年内已管理的糖尿病患者中接受药物治疗的人数/年内管理的糖尿病患者人数×100%";
// }else if('tnb'=== this.mbType && 'sf' === this.fxType && num === 3){ //糖尿病干预接种率
// this.explanation = "指标名称:<br/>肺炎疫苗干预目标人群接种率<br/>计算公式:<br/>糖尿病患者肺炎疫苗干预目标人群中已接种疫苗人数/糖尿病患者肺炎疫苗干预目标人数×100";
//
// }else if('tnb'=== this.mbType && 'sf' === this.fxType && num === 3){ //糖尿病干预告知率
// this.explanation = "指标名称:<br/>患者肺炎疫苗干预目标人群告知率<br/>计算公式:<br/>糖尿病患者肺炎疫苗干预目标人群中已完成告知疫苗接种的人数/糖尿病患者肺炎疫苗干预目标人数×100";
}else if('tnb'=== this.mbType && 'jz' === this.fxType && num === 1){ //糖尿病就诊率
this.explanation = "指标名称:<br/>糖尿病患者就诊率<br/>计算公式:<br/>年内已管理的糖尿病患者中就诊人数/年内管理的糖尿病患者人数×100%";
}else if('tnb'=== this.mbType && 'jz' === this.fxType && num === 2){ //糖尿病住院率
this.explanation = "指标名称:<br/>糖尿病患者住院率<br/>计算公式:<br/>年内已管理的糖尿病患者中住院人数/年内管理的糖尿病患者人数×100%";
}else if('zl'=== this.mbType && 'sf' === this.fxType && num === 1){ //肿瘤初访完成比例
this.explanation = "指标名称:<br/>肿瘤患者初访完成比例<br/>计算公式:<br/>完成初访病例数/社区卫生服务中心应初访病例数(即去除死亡与联系方式有误的病例)×100%";
}else if('zl'=== this.mbType && 'sf' === this.fxType && num === 1){ //肿瘤知情随访服务比
this.explanation = "指标名称:<br/>肿瘤患者知情同意接受随访服务比例<br/>计算公式:<br/>知情同意接受随访服务的病例数/社区卫生服务中心完成初访病例数×100%";
}else if('zl'=== this.mbType && 'sf' === this.fxType && num === 1){ //肿瘤规范管理率
this.explanation = "指标名称:<br/>肿瘤患者规范管理率<br/>计算公式:<br/>开展随访服务的存活病例数/社区卫生服务中心知情同意接受随访服务的存活病例数×100%";
}else{
this.showtabnum = num
}
},
CityGetBack() {
......@@ -1722,19 +1745,12 @@
},
exitFn() {
this.$router.push({
path: '/'
path: '/Index'
});
},
mbTabChange(mbType) {
let _this = this
_this.mbType = mbType
if (mbType === 'gxy') {
this.pagedisname = '高血压'
} else if (mbType === 'tnb') {
this.pagedisname = '糖尿病'
} else {
this.pagedisname = '肿瘤'
}
_this.agedatayq = []
_this.agedatayg = []
......@@ -1831,9 +1847,7 @@
zhongliu() {
console.log("肿瘤的上方圆形图表输出");
let _this = this
this.rightlist1 = '初访完成比/同·%'
this.rightlist2 = '知情同意接受随访比/偏·%'
this.rightlist3 = '规范管理率/同·%'
let wd = [{
"name": "YWSJ",
"type": "2",
......@@ -1864,14 +1878,18 @@
if (item.ZBID == 1037) {
_this.wclv = item.ZXZ ? item.ZXZ : 0
_this.wczbz = item.ZXZ ? item.ZXZ : 0
_this.wwczbz = 100 - item.ZXZ ? item.ZXZ : 0
_this.wwczbz = item.ZXZ ? 100 - item.ZXZ : 0
_this.wclvdata = item
}
if (item.ZBID == 1041) {
if (item.ZBID == 1040) {
_this.zqlv = item.ZXZ ? item.ZXZ : 0
_this.zqlvdata = item
}
if (item.ZBID == 1041) {
_this.zqs = item.ZXZ ? item.ZXZ : 0
_this.zqsdata = item
}
if (item.ZBID == 1042) {
_this.gflv = item.ZXZ ? item.ZXZ : 0
_this.gflvdata = item
......@@ -1882,20 +1900,179 @@
})
// tableAll
_this.option2.series[0].data[0].value = _this.wczbz
_this.option2.series[0].data[0].name = '完成率'
_this.option2.series[0].data[1].value = _this.wwczbz
_this.option2.series[0].data[1].name = '未完成'
_this.$echarts.init(document.getElementById("pag1canser")).setOption(_this.option2, true)
_this.option.series[0].data[0].value = _this.wclv
_this.option.series[0].data[1].value = 100 - _this.wclv
_this.option.series[1].data[0].value = _this.zqlv
_this.option.series[1].data[1].value = 100 - _this.zqlv
_this.option.series[2].data[0].value = _this.gflv
_this.option.series[2].data[1].value = 100 - _this.gflv
_this.option.series[0].data[0].value = _this.wclv / 2
_this.option.series[0].data[1].value = 100 - _this.wclv / 2
_this.option.series[1].data[0].value = _this.zqlv / 2
_this.option.series[1].data[1].value = 100 - _this.zqlv / 2
_this.option.series[2].data[0].value = _this.gflv / 2
_this.option.series[2].data[1].value = 100 - _this.gflv / 2
_this.$echarts.init(document.getElementById("chartsright")).setOption(_this.option, true)
}).catch(err => {
console.log("--慢病管理肿瘤报错--");
})
},
initZlBottomData(){
let wd = [{
"name": "YWSJ",
"type": "2",
"startTime": '',
"endTime": this.cxsj,
"compare": "between",
}, {
"name": "XZQH",
"value": this._xzqh,
"type": "1"
}, {
"name": "YLJGDM",
"value": this._yljgdm,
"type": "1"
}]
let param = {
"themeId": 12,
"wd": JSON.stringify(wd),
"group": this._group,
}
let _this = this
_this.zl_x = []
_this.zl_code = []
_this.tableAll = []
_this.zlseriesA = []
_this.zlseriesB = []
_this.zlseriesC = []
_this.zlseriesD = []
_this.zlseriesE = []
_this.zlseriesF = []
_this.zlseriesG = []
_this.zlseriesH = []
let zlData = []
commonMethod(param).then(res => {
zlData = res.data.content
if('XZQH' === this._group){
zlData.sort((prev, next) => {
return parseInt(prev.XZQH) - parseInt(next.XZQH)
})
}else if('YLJGDM' === this._group){
zlData.sort((prev, next) => {
return parseInt(prev.XZQH) - parseInt(next.XZQH)
})
}
zlData.forEach((item, index) => {
let obj = {}
if (item.YWSJ) {
obj.name = item.YWSJ.substring(5, 7) + '月'
} else {
if (item.XZQH_TEXT) {
obj.name = item.XZQH_TEXT
obj.code = item.XZQH
} else if (item.YLJGDM_EX2) {
obj.name = item.YLJGDM_EX2
obj.code = item.YLJGDM
} else {
obj.name = ''
return false
}
}
if (_this.groupNo === 'org') {
_this.zl_x.push(obj.name)
_this.zl_code.push(obj.code)
}else{
let NameTemp
NameTemp = item.YWSJ.substring(6, 7) + '月' ?
item.YWSJ.substring(6, 7) + '月' : item.YLJGDM_EX2.substring(6, 7) + '月'
_this.zl_x.push(NameTemp)
}
item.zbxx.forEach((item2, index) => {
if (item2.ZBID == '1038') {//肿瘤患者完成初访病例数
_this.zlseriesA.push(getActiveNum(item2.ZXZ / 10000))
_this.zlseriesB.push(getActiveNum(item2.TBZ / 10000))
}
if (item2.ZBID == '1037') {//肿瘤患者初访完成比例
_this.zlseriesC.push(getActiveNum(item2.ZXZ))
_this.zlseriesD.push(getActiveNum(item2.TBZ))
}
if (item2.ZBID == '1040') {//肿瘤患者知情同意接受随访服务比例
_this.zlseriesE.push(getActiveNum(item2.ZXZ))
_this.zlseriesF.push(getActiveNum(item2.TBZ))
}
if (item2.ZBID == '1042') {//肿瘤患者规范管理率
_this.zlseriesG.push(getActiveNum(item2.ZXZ))
_this.zlseriesH.push(getActiveNum(item2.TBZ))
}
})
})
_this.zlseriesA.forEach((item, index) => {
let obj = {}
obj.name = _this.zl_x[index]
obj.code = _this.zl_code[index]
obj.tag1 = getActiveNum(_this.zlseriesC[index])
obj.tag2 = getActiveNum(_this.zlseriesD[index])
obj.tag3 = getActiveNum(_this.zlseriesE[index])
obj.tag4 = getActiveNum(_this.zlseriesF[index])
obj.tag5 = getActiveNum(_this.zlseriesG[index])
obj.tag6 = getActiveNum(_this.zlseriesH[index])
_this.tableAll.push(obj)
let tooltip = {}
tooltip.num1 = _this.zlseriesA[index]
tooltip.num2 = _this.zlseriesB[index]
tooltip.num3 = _this.zlseriesC[index]
tooltip.num4 = _this.zlseriesD[index]
tooltip.num5 = _this.zlseriesE[index]
tooltip.num6 = _this.zlseriesF[index]
tooltip.num7 = _this.zlseriesG[index]
tooltip.num8 = _this.zlseriesH[index]
_this.zlseriesA[index] = Object.assign({value:_this.zlseriesA[index]}, tooltip)
_this.zlseriesB[index] = Object.assign({value:_this.zlseriesB[index]}, tooltip)
_this.zlseriesC[index] = Object.assign({value:_this.zlseriesC[index]}, tooltip)
_this.zlseriesD[index] = Object.assign({value:_this.zlseriesD[index]}, tooltip)
})
let zlLegend = [`完成初访病例数/去年`, `初访完成比/去年`, `知情同意接受随访比/去年`, `规范管理率/去年`]
_this.option4.legend.data = zlLegend
_this.option4.series[0].data = []
_this.option4.series[1].data = []
_this.option4.series[2].data = _this.zlseriesA
_this.option4.series[3].data = []
_this.option4.series[4].data = []
_this.option4.series[5].data = _this.zlseriesB
_this.option4.series[6].data = _this.zlseriesC
_this.option4.series[7].data = _this.zlseriesD
_this.option4.series[8].data = _this.zlseriesG
_this.option4.series[9].data = []
_this.option4.series[10].data = []
_this.option4.series[11].data = []
_this.option4.series[0].name = zlLegend[0]
_this.option4.series[1].name = zlLegend[0]
_this.option4.series[2].name = zlLegend[0]
_this.option4.series[3].name = zlLegend[0]
_this.option4.series[4].name = zlLegend[0]
_this.option4.series[5].name = zlLegend[0]
_this.option4.series[6].name = zlLegend[1]
_this.option4.series[7].name = zlLegend[2]
_this.option4.series[8].name = zlLegend[3]
_this.option4.xAxis[0].data = _this.zl_x
_this.$echarts.init(document.getElementById("middlebarbox1")).setOption(_this.option4, true)
this.rightlist1 = '初访完成<br/>比/同·%'
this.rightlist2 = '知情同意<br/>接受随访比/偏·%'
this.rightlist3 = '规范管理<br/>率/同·%'
})
},
toNextOrg(code, name) {
if (this.pageLevel === 'sj') {
......@@ -1933,6 +2110,10 @@
this.bottominit()
},
bottominit() {
if(this.mbType === 'zl'){
this.initZlBottomData()
return false
}
let _this = this
let wd, param, wdq, paramq
......@@ -1983,8 +2164,10 @@
_this.data_x = []
_this.data_code = []
_this.tableAll = []
_this.gxyseriesA = []
_this.gxyseriesA_g = []
_this.gxyseriesA_q = []
_this.gxyseriesB = []
_this.gxyseriesB_g = []
_this.gxyseriesB_q = []
_this.gxyseriesC = []
......@@ -2001,6 +2184,14 @@
temptableAllQ.sort((prev, next) => {
return parseInt(prev.YWSJ.substring(5, 7)) - parseInt(next.YWSJ.substring(5, 7))
})
}else if('XZQH' === this._group){
temptableAllQ.sort((prev, next) => {
return parseInt(prev.XZQH) - parseInt(next.XZQH)
})
}else if('YLJGDM' === this._group){
temptableAllQ.sort((prev, next) => {
return parseInt(prev.XZQH) - parseInt(next.XZQH)
})
}
commonMethod(param).then(res => {
let temptableAll = res.data.content
......@@ -2008,6 +2199,14 @@
temptableAll.sort((prev, next) => {
return parseInt(prev.YWSJ.substring(5, 7)) - parseInt(next.YWSJ.substring(5, 7))
})
}else if('XZQH' === this._group){
temptableAll.sort((prev, next) => {
return parseInt(prev.XZQH) - parseInt(next.XZQH)
})
}else if('YLJGDM' === this._group){
temptableAll.sort((prev, next) => {
return parseInt(prev.XZQH) - parseInt(next.XZQH)
})
}
// if (_this.groupNo === 'time') {
// _this.data_x = ["1", "2", "3", "4", "5", "6", "7", "8", "9", "10", "11", "12"]
......@@ -2015,7 +2214,7 @@
if (this.fxType === 'sf') {
// 随访 - 标签数据获取
res.data.content.forEach((item, index) => {
temptableAll.forEach((item, index) => {
let obj = {}
if (item.YWSJ) {
obj.name = item.YWSJ.substring(5, 7) + '月'
......@@ -2077,18 +2276,6 @@
})
temptableAllQ.forEach((item, index) => {
if (item.YWSJ) {
} else {
if (item.XZQH_TEXT) {
} else if (item.YLJGDM_EX2) {
} else {
return false
}
}
item.zbxx.forEach((item2, index2) => {
if (_this.mbType === 'gxy') {
......@@ -2219,12 +2406,13 @@
console.log(_this.option4)
_this.$echarts.init(document.getElementById("middlebarbox1")).setOption(_this.option4, true)
this.rightlist1 = '规范管理率'
this.rightlist2 = '随访率'
this.rightlist3 = '随访比'
} else if (this.fxType === 'jc') {
this.rightlist1 = '管/签<br/>随访率·%'
this.rightlist2 = '管/签<br/>规范管理率·%'
this.rightlist3 = '管/签<br/>随访比·%'
}
else if (this.fxType === 'jc') {
// 监测 - 标签数据获取
res.data.content.forEach((item, index) => {
temptableAll.forEach((item, index) => {
let obj = {}
if (item.YWSJ) {
obj.name = item.YWSJ.substring(5, 7) + '月'
......@@ -2249,6 +2437,9 @@
}
item.zbxx.forEach((item2, index2) => {
if (_this.mbType === 'gxy') {
this.rightlist1 = '管/签血压<br/>自动上传比·%'
this.rightlist2 = '管/签同型<br/>半胱氨酸比·%'
this.rightlist3 = ''
if (item2.ZBID == '1064') {
_this.gxyseriesA_g.push(getActiveNum(item2.ZXZ / 10000))
_this.gxyseriesB_g.push(getActiveNum(item2.TBZ / 10000))
......@@ -2260,9 +2451,23 @@
_this.gxyseriesE.push(item2.ZXZ)
}
}else if (_this.mbType === 'tnb') {
this.rightlist1 = '管/签血糖<br/>自动上传比·%'
this.rightlist2 = '管/签糖化<br/>自动上传比·%'
this.rightlist3 = ''
if (item2.ZBID == '1061') {
_this.gxyseriesA_g.push(getActiveNum(item2.ZXZ / 10000))
_this.gxyseriesB_g.push(getActiveNum(item2.TBZ / 10000))
}
if (item2.ZBID == '1050') {
_this.gxyseriesC.push(item2.ZXZ)
}
if (item2.ZBID == '1055') {
_this.gxyseriesE.push(item2.ZXZ)
}
if (item2.ZBID == '1060') {
_this.gxyseriesG.push(item2.ZXZ)
}
}
})
......@@ -2270,23 +2475,42 @@
temptableAllQ.forEach((item, index) => {
item.zbxx.forEach((item2, index2) => {
if (_this.mbType === 'gxy') {
if (item2.ZBID == '1064') {
_this.gxyseriesA_q.push(getActiveNum(item2.ZXZ / 10000))
_this.gxyseriesB_q.push(getActiveNum(item2.TBZ / 10000))
}
if (item2.ZBID == '1063') {
_this.gxyseriesD.push(getActiveNum(item2.ZXZ))
}
if (item2.ZBID == '1093') {
_this.gxyseriesF.push(item2.ZXZ)
}
}else if (_this.mbType === 'tnb') {
this.rightlist1 = '管/签血糖<br/>自动上传比·%'
this.rightlist2 = '管/签糖化<br/>自动上传比·%'
this.rightlist3 = ''
if (item2.ZBID == '1064') {
_this.gxyseriesA_q.push(getActiveNum(item2.ZXZ / 10000))
_this.gxyseriesB_q.push(getActiveNum(item2.TBZ / 10000))
}
if (item2.ZBID == '1063') {
_this.gxyseriesD.push(getActiveNum(item2.ZXZ))
}
if (item2.ZBID == '1093') {
_this.gxyseriesF.push(item2.ZXZ)
if (item2.ZBID == '1061') {
_this.gxyseriesA_q.push(getActiveNum(item2.ZXZ / 10000))
_this.gxyseriesB_q.push(getActiveNum(item2.TBZ / 10000))
}
if (item2.ZBID == '1050') {
_this.gxyseriesD.push(item2.ZXZ)
}
if (item2.ZBID == '1055') {
_this.gxyseriesF.push(item2.ZXZ)
}
if (item2.ZBID == '1060') {
_this.gxyseriesH.push(item2.ZXZ)
}
}
})
})
_this.gxyseriesA_g.forEach((item, index) => {
let obj = {}
_this.gxyseriesA[index] = getActiveNum(_this.gxyseriesA_g[index] - _this.gxyseriesA_q[index])
_this.gxyseriesB[index] = getActiveNum(_this.gxyseriesB_g[index] - _this.gxyseriesB_q[index])
let a = getActiveNum(_this.gxyseriesA_g[index] - _this.gxyseriesA_q[index])
let b = getActiveNum(_this.gxyseriesB_g[index] - _this.gxyseriesB_q[index])
obj.name = _this.data_x[index]
obj.code = _this.data_code[index]
obj.tag1 = getActiveNum(_this.gxyseriesC[index])
......@@ -2295,7 +2519,23 @@
obj.tag4 = getActiveNum(_this.gxyseriesF[index])
_this.tableAll.push(obj)
let tooltip = {}
tooltip.num1 = _this.gxyseriesA_g[index]
tooltip.num2 = _this.gxyseriesA_q[index]
tooltip.num3 = _this.gxyseriesB_g[index]
tooltip.num4 = _this.gxyseriesB_q[index]
tooltip.num5 = _this.gxyseriesC[index]
tooltip.num6 = 0
tooltip.num7 = _this.gxyseriesD[index]
tooltip.num8 = 0
_this.gxyseriesA_q[index] = Object.assign({value:_this.gxyseriesA_q[index]}, tooltip)
_this.gxyseriesA[index] = Object.assign({value:a}, tooltip)
_this.gxyseriesB_q[index] = Object.assign({value:_this.gxyseriesB_q[index]}, tooltip)
_this.gxyseriesB[index] = Object.assign({value:b}, tooltip)
})
// _this.option4.series[0].name ="6666"
let jcLegend = [`管理/签约人群${this.dieaName}自动上传记录数`, `去年管理/签约人群${this.dieaName}自动上传记录数`,
`管·${this.dieaName}自动上传比/去年`, `签·${this.dieaName}自动上传比/去年`, `管·同型半胱氨酸检测率/去年`, `签·同型半胱氨酸检测率/去年`
......@@ -2328,21 +2568,12 @@
_this.option4.xAxis[0].data = _this.data_x
_this.$echarts.init(document.getElementById("middlebarbox1")).setOption(_this.option4, true)
this.rightlist1 = '血压自动上传比'
this.rightlist2 = '同型半胱氨酸比'
this.rightlist3 = ''
} else if (this.fxType === 'fy') {
}
else if (this.fxType === 'fy') {
// 服药 - 标签数据获取
res.data.content.forEach((item, index) => {
let obj = {
name: '',
tag1: '',
tag2: '',
tag3: '',
tag4: '',
tag5: '',
tag6: ''
}
temptableAll.forEach((item, index) => {
let obj = {}
if (item.YWSJ) {
obj.name = item.YWSJ.substring(5, 7) + '月'
} else {
......@@ -2362,14 +2593,14 @@
}
item.zbxx.forEach((item2, index2) => {
if (item2.ZBID == '1072' || item2.ZBID == '1074') {
_this.gxyseriesA.push(parseFloat(item2.ZXZ / 10000))
_this.gxyseriesB.push(item2.TBZ)
_this.gxyseriesA.push(getActiveNum(item2.ZXZ / 10000))
_this.gxyseriesB.push(getActiveNum(item2.TBZ))
obj.tag1 = item2.ZXZ ? parseFloat(item2.ZXZ).toFixed(1) : 0
obj.tag2 = item2.ZXZ ? parseFloat(item2.ZXZ).toFixed(1) : 0
}
if (item2.ZBID == '1073' || item2.ZBID == '1075') {
_this.gxyseriesC.push(item2.ZXZ)
_this.gxyseriesD.push(item2.ZXZ)
_this.gxyseriesC.push(getActiveNum(item2.ZXZ))
_this.gxyseriesD.push(getActiveNum(item2.ZXZ))
obj.tag3 = item2.ZXZ ? parseFloat(item2.ZXZ).toFixed(1) : 0
obj.tag4 = item2.ZXZ ? parseFloat(item2.ZXZ).toFixed(1) : 0
}
......@@ -2402,12 +2633,12 @@
_this.option4.series[7].name = fyLegend[3]
_this.option4.xAxis[0].data = _this.data_x
_this.$echarts.init(document.getElementById("middlebarbox1")).setOption(_this.option4, true)
this.rightlist1 = '药物治疗人数·万'
this.rightlist2 = '药物治疗率·%'
this.rightlist1 = '管/签<br/>药物治疗人数·万'
this.rightlist2 = '管/签<br/>药物治疗率·%'
this.rightlist3 = ''
} else if (this.fxType === 'jz') {
// 就诊 - 标签数据获取
res.data.content.forEach((item, index) => {
temptableAll.forEach((item, index) => {
let obj = {}
if (item.YWSJ) {
obj.name = item.YWSJ.substring(5, 7) + '月'
......@@ -2460,8 +2691,8 @@
_this.option4.series[5].data = _this.gxyseriesD
_this.option4.series[6].data = _this.gxyseriesE
_this.option4.series[7].data = _this.gxyseriesF
_this.option4.series[8].data = _this.gxyseriesF
_this.option4.series[9].data = _this.gxyseriesF
_this.option4.series[8].data = []
_this.option4.series[9].data = []
_this.option4.series[10].data = []
_this.option4.series[11].data = []
......@@ -2479,8 +2710,8 @@
_this.option4.series[9].name = jzLegend[5]
_this.option4.xAxis[0].data = _this.data_x
_this.$echarts.init(document.getElementById("middlebarbox1")).setOption(_this.option4, true)
this.rightlist1 = '就诊率'
this.rightlist2 = '住院率'
this.rightlist1 = '管/签<br/>就诊率·%'
this.rightlist2 = '管/签<br/>住院率·%'
this.rightlist3 = ''
}
......@@ -2553,21 +2784,21 @@
}
#chartsright {
width: 100px;
width: 70px;
height: 120px;
float: left;
}
#chartstxt {
width: 120px;
width: 152px;
height: 100px;
float: left;
padding-top: 15px;
padding-top: 6px;
}
#chartstxt p {
clear: both;
line-height: 22px;
line-height: 16px;
color: #B3BFD2;
padding-right: 6px;
}
......@@ -2615,13 +2846,14 @@
.uplib {
width: 100%;
height: 80px;
height: 98px;
position: absolute;
top: 76px;
right: 0;
left: 0;
background: rgba(51, 51, 51, 0.9);
padding: 10px
padding: 10px;
text-align: left;
}
</style>
......@@ -10,7 +10,7 @@
<el-button size="mini" type="primary" @click="CityGetBack()" v-if="this.pageLevel != 'sj'">返回</el-button>
<el-button size="mini" @click="changeReplay()" type="primary">重置</el-button>
<el-date-picker v-model="cxsj" type="month" @change="dataSearch" align="left" size='mini' format="yyyy-MM"
cxsj-format="yyyy-MM" :placeholder="sel"></el-date-picker>
value-format="yyyy-MM" :placeholder="sel"></el-date-picker>
<div class="name"><i class="el-icon-s-custom el-icon--left"></i>{{userinfo.userName}} 截止:{{cxsj}}</div>
</div>
</div>
......@@ -26,13 +26,13 @@
<span class="el-icon-bottom">&nbsp;</span>
</div>
<div class="cmtline2">
<p><span>{{parseFloat(autoUpControPre_g).toFixed(1)}}% <em></em>{{formatparam(autoUpControPre_gTbl)}}% <i
<p><span>{{parseFloat(autoUpControPre_g).toFixed(1)}}% <em></em>{{(autoUpControPre_gHBL)}}% <i
class="el-icon-bottom color3">&nbsp;</i></span>自动上传血压控制率</p>
<p><span>{{parseFloat(ReportPre_g).toFixed(1)}}% <em></em>{{formatparam(ReportPre_gTbl)}}% <i
<p><span>{{parseFloat(ReportPre_g).toFixed(1)}}% <em></em>{{(ReportPre_gHBL)}}% <i
class="el-icon-bottom color3">&nbsp;</i></span>报告血压控制率</p>
<p><span>{{parseFloat(hospital_g).toFixed(1)}}<em></em>{{formatparam(hospital_gTbl)}}% <i
<p><span>{{parseFloat(hospital_g).toFixed(1)}}<em></em>{{(hospital_gHBL)}}% <i
class="el-icon-bottom color3">&nbsp;</i></span>住院人数</p>
<p><span>{{formatnum(deadNum_g)}}<em></em>{{formatparam(deadNum_gTbl)}}% <i class="el-icon-bottom color3">&nbsp;</i></span>死亡人数
<p><span>{{formatnum(deadNum_g)}}<em></em>{{(deadNum_gHBL)}}% <i class="el-icon-bottom color3">&nbsp;</i></span>死亡人数
</p>
</div>
</div>
......@@ -46,13 +46,13 @@
<span class="el-icon-bottom">&nbsp;</span>
</div>
<div class="cmtline2">
<p><span>{{parseFloat(autoUpControPre_q).toFixed(1)}}% <em></em>{{formatparam(autoUpControPre_qTbl)}}% <i
<p><span>{{parseFloat(autoUpControPre_q).toFixed(1)}}% <em></em>{{(autoUpControPre_qHBL)}}% <i
class="el-icon-bottom color3">&nbsp;</i></span>自动上传血压控制率</p>
<p><span>{{parseFloat(ReportPre_q).toFixed(1)}}% <em></em>{{formatparam(ReportPre_qTbl)}}% <i
<p><span>{{parseFloat(ReportPre_q).toFixed(1)}}% <em></em>{{(ReportPre_qHBL)}}% <i
class="el-icon-bottom color3">&nbsp;</i></span>报告血压控制率</p>
<p><span>{{parseFloat(hospital_q).toFixed(1)}}<em></em>{{formatparam(hospital_qTbl)}}% <i
<p><span>{{parseFloat(hospital_q).toFixed(1)}}<em></em>{{(hospital_qHBL)}}% <i
class="el-icon-bottom color3">&nbsp;</i></span>住院人数</p>
<p><span>{{formatnum(deadNum_q)}}<em></em>{{formatparam(deadNum_qTbl)}}% <i class="el-icon-bottom color3">&nbsp;</i></span>死亡人数
<p><span>{{formatnum(deadNum_q)}}<em></em>{{(deadNum_qHBL)}}% <i class="el-icon-bottom color3">&nbsp;</i></span>死亡人数
</p>
</div>
</div>
......@@ -68,13 +68,13 @@
<span class="el-icon-bottom">&nbsp;</span>
</div>
<div class="cmtline2">
<p><span>{{parseFloat(autoUpControPre_g).toFixed(1)}}% <em></em>{{parseFloat(autoUpControPre_gTbl).toFixed(1)}}%</span>自动上传血糖控制率
<p><span>{{parseFloat(autoUpControPre_g).toFixed(1)}}% <em></em>{{autoUpControPre_gHBL}}%</span>自动上传血糖控制率
</p>
<p><span>{{parseFloat(ReportPre_g).toFixed(1)}}% <em></em>{{parseFloat(ReportPre_gTbl).toFixed(1)}}%</span>报告血糖控制率
<p><span>{{parseFloat(ReportPre_g).toFixed(1)}}% <em></em>{{ReportPre_gHBL}}%</span>报告血糖控制率
</p>
<p><span>{{parseFloat(hospital_g).toFixed(1)}}<em></em>{{parseFloat(hospital_gTbl).toFixed(1)}}%</span>住院人数
<p><span>{{parseFloat(hospital_g).toFixed(1)}}<em></em>{{hospital_gHBL}}%</span>住院人数
</p>
<p><span>{{parseFloat(deadNum_g).toFixed(1)}}<em></em>{{parseFloat(deadNum_gTbl).toFixed(1)}}%</span>死亡人数
<p><span>{{formatnum(deadNum_g)}}<em></em>{{deadNum_gHBL}}%</span>死亡人数
</p>
</div>
</div>
......@@ -88,13 +88,13 @@
<span class="el-icon-bottom">&nbsp;</span>
</div>
<div class="cmtline2">
<p><span>{{parseFloat(autoUpControPre_q).toFixed(1)}}% <em></em>{{parseFloat(autoUpControPre_qTbl).toFixed(1)}}%</span>自动上传血糖控制率
<p><span>{{parseFloat(autoUpControPre_q).toFixed(1)}}% <em></em>{{autoUpControPre_qHBL}}%</span>自动上传血糖控制率
</p>
<p><span>{{parseFloat(ReportPre_q).toFixed(1)}}% <em></em>{{parseFloat(ReportPre_qTbl).toFixed(1)}}%</span>报告血糖控制率
<p><span>{{parseFloat(ReportPre_q).toFixed(1)}}% <em></em>{{ReportPre_qHBL}}%</span>报告血糖控制率
</p>
<p><span>{{parseFloat(hospital_q).toFixed(1)}}<em></em>{{parseFloat(hospital_qTbl).toFixed(1)}}%</span>住院人数
<p><span>{{parseFloat(hospital_q).toFixed(1)}}<em></em>{{hospital_qHBL}}%</span>住院人数
</p>
<p><span>{{parseFloat(deadNum_q).toFixed(1)}} <em></em>{{parseFloat(deadNum_qTbl).toFixed(1)}}%</span>死亡人数
<p><span>{{formatnum(deadNum_q)}}<em></em>{{deadNum_qHBL}}%</span>死亡人数
</p>
</div>
</div>
......@@ -116,7 +116,7 @@
<!-- @click="change_age(1)" -->
<tr v-if="mbType === 'gxy'" @click="change_age(1)" :class="age_index==1?'myclk':''">
<td width="55%" class="tdleft">脑卒中粗发病率</td>
<td width="40%"><span class="sp01">{{parseFloat(hyper1_g).toFixed(2)}}%/{{parseFloat(hyper1_q).toFixed(2)}}%</span>
<td width="40%"><span class="sp01">{{parseFloat(hyper1_g).toFixed(2)}}/{{parseFloat(hyper1_q).toFixed(2)}}%</span>
</td>
<td width="5%">&nbsp;</td>
</tr>
......@@ -239,9 +239,9 @@
mbType: 'gxy',
value2: '',
g_personAutoNum: [], // 在管数据 --今年 签约人群自动上传血压/血糖合格人数
g_personAutoNumTbl: [], //在管数据 -- 去年 人群自动上传血压血糖合格人数
g_personAutoNumHBL: [], //在管数据 -- 去年 人群自动上传血压血糖合格人数
q_personAutoNum: [], // 签 数据 -- 今年 签约 同上
q_personAutoNumTbl: [], // 签数据 -- 去年 同上
q_personAutoNumHBL: [], // 签数据 -- 去年 同上
themeId: 28,
bleedtype: '血压',
// 管 左侧变量
......@@ -251,10 +251,10 @@
ReportPre_g: 0, //报告血压控制率
hospital_g: 0,
deadNum_g: 0,
autoUpControPre_gTbl: 20, // 自动上传血压右侧同比率
ReportPre_gTbl: 20, //报告血压同比率
hospital_gTbl: 20,
deadNum_gTbl: 20,
autoUpControPre_gHBL: 20, // 自动上传血压右侧同比率
ReportPre_gHBL: 20, //报告血压同比率
hospital_gHBL: 20,
deadNum_gHBL: 20,
// 签 左侧变量
aualperNum_q: 0,
aualperNum_qNum: 11,
......@@ -262,10 +262,10 @@
ReportPre_q: 0,
hospital_q: 0,
deadNum_q: 0,
autoUpControPre_qTbl: 20, // 右侧同比率
ReportPre_qTbl: 20,
hospital_qTbl: 20,
deadNum_qTbl: 20,
autoUpControPre_qHBL: 20, // 右侧同比率
ReportPre_qHBL: 20,
hospital_qHBL: 20,
deadNum_qHBL: 20,
// 高血压病种疾病字段 左上角顺序依次从上到下
// 管
hyper1_g: 0,
......@@ -775,11 +775,12 @@
},
exitFn() {
this.$router.push({
path: '/'
path: '/Index'
});
},
changeReplay() {
this.mbType = 'gxy'
this.rqType = 'gfgl'
if ('city' === this.userRole) {//市角色
this._xzqh = ""
this._yljgdm = ''
......@@ -878,7 +879,6 @@
this.pageHeadData()
this.pageBottomData()
},
pageHeadData() {
let _this = this
......@@ -942,23 +942,23 @@
this.aualperNum_g = 0
this.aualperNum_gNum = 0
this.autoUpControPre_g = 0
this.autoUpControPre_gTbl = 0
this.autoUpControPre_gHBL = 0
this.ReportPre_g = 0
this.ReportPre_gTbl = 0
this.ReportPre_gHBL = 0
this.hyper5_g = 0
this.hyper5_gTbl = 0
this.hyper5_gHBL = 0
this.hyper5_g = 0
this.hyper5_gTbl = 0
this.hyper5_gHBL = 0
this.deadNum_g = 0
this.deadNum_gTbl = 0
this.deadNum_gHBL = 0
this.ReportPre_q = 0
this.ReportPre_qTbl = 0
this.ReportPre_qHBL = 0
this.aualperNum_q = 0
this.aualperNum_qNum = 0
this.autoUpControPre_q = 0
this.autoUpControPre_qTbl = 0
this.autoUpControPre_qHBL = 0
this.hyper5_q = 0
this.hyper5_qTbl = 0
this.hyper5_qHBL = 0
this.hospital_q = 0
this.deadNum_q = 0
this.hyper1_g = 0
......@@ -977,35 +977,35 @@
// 本季血压合格
this.aualperNum_g = item.ZXZ
this.aualperNum_gNum = item.TBL ? item.TBL : 0
this.aualperNum_gNum = item.HBL ? item.HBL : 0
}
if ((item.ZBID == 1169 && this.rqType === 'gfgl' && this.mbType === 'gxy') || (item.ZBID == 1175 && this.rqType === 'glrq' && this.mbType === 'gxy')
|| (item.ZBID == 1145 && this.rqType === 'gfgl' && this.mbType === 'tnb') || (item.ZBID == 1151 && this.rqType === 'glrq' && this.mbType === 'tnb')) {
// 报告血压控制率
// 自动上传血压控制率
this.autoUpControPre_g = item.ZXZ
this.autoUpControPre_gTbl = item.TBL
this.autoUpControPre_gHBL = item.HBL ? item.HBL : 0
}
if ((item.ZBID == 1166 && this.rqType === 'gfgl' && this.mbType === 'gxy') || (item.ZBID == 1172 && this.rqType === 'glrq' && this.mbType === 'gxy')
|| (item.ZBID == 1142 && this.rqType === 'gfgl' && this.mbType === 'tnb') || (item.ZBID == 1148 && this.rqType === 'glrq' && this.mbType === 'tnb')) {
// 自动上传血压控制率
// 报告血压控制率
this.ReportPre_g = item.ZXZ
this.ReportPre_gTbl = item.TBL
this.ReportPre_gHBL = item.HBL ? item.HBL : 0
}
if ((item.ZBID == 1184 && this.rqType === 'gfgl' && this.mbType === 'gxy') || (item.ZBID == 1096 && this.rqType === 'glrq' && this.mbType === 'gxy')
|| (item.ZBID == 1099 && this.rqType === 'gfgl' && this.mbType === 'tnb') || (item.ZBID == 1099 && this.rqType === 'glrq' && this.mbType === 'tnb')) {
// 并发症发生率--管
this.hyper5_g = item.ZXZ
this.hyper5_gTbl = item.TBL
this.hyper5_gHBL = item.HBL ? item.HBL : 0
}
// 1180
if ((item.ZBID == 1180 && this.rqType === 'gfgl' && this.mbType === 'gxy') || (item.ZBID == 1196 && this.rqType === 'glrq' && this.mbType === 'gxy')
|| (item.ZBID == 1198 && this.rqType === 'gfgl' && this.mbType === 'tnb') || (item.ZBID == 1198 && this.rqType === 'glrq' && this.mbType === 'tnb')) {
// 并发症发生率--管
this.hyper5_g = item.ZXZ
this.hyper5_gTbl = item.TBL
this.hyper5_gHBL = item.HBL ? item.HBL : 0
}
})
}).catch(err => {
......@@ -1023,7 +1023,7 @@
if (item.CODE == "MBGL_060") {
// 住院人数
this.hospital_g = res.data.content[0].zbxx[index].ZXZ
this.hospital_gTbl = res.data.content[0].zbxx[index].TBL ? res.data.content[0].zbxx[index].TBL : 0
this.hospital_gHBL = res.data.content[0].zbxx[index].HBL ? res.data.content[0].zbxx[index].HBL : 0
}
})
}).catch(err => {
......@@ -1037,10 +1037,15 @@
}).then(res => {
res.data.content[0].zbxx.forEach((item, index) => {
if (item.ZBID == "1196") {
if (item.ZBID == "1196" && this.mbType === 'gxy') {
// 住院人数
this.deadNum_g = res.data.content[0].zbxx[index].ZXZ
this.deadNum_gHBL = res.data.content[0].zbxx[index].HBL ? res.data.content[0].zbxx[index].HBL : '-'
} else
if (item.ZBID == "1198" && this.mbType === 'tnb') {
// 住院人数
this.deadNum_g = res.data.content[0].zbxx[index].ZXZ
this.deadNum_gTbl = res.data.content[0].zbxx[index].TBL ? res.data.content[0].zbxx[index].TBL : 0
this.deadNum_gHBL = res.data.content[0].zbxx[index].HBL ? res.data.content[0].zbxx[index].HBL : '-'
}
})
}).catch(err => {
......@@ -1052,13 +1057,6 @@
commonMethod(param2).then(res => {
res.data.content[0].zbxx.forEach((item, index) => {
// 高糖 --- 并用 签 左上角数据
if (item.ZBID == 1166 || item.ZBID == 1142) {
// 自动上传血糖控制率
this.ReportPre_q = item.ZXZ ? parseFloat(item.ZXZ).toFixed(1) : 0
this.ReportPre_qTbl = item.TBL ? parseFloat(item.TBL).toFixed(1) : 0
}
// Tbl
if ((item.ZBID == 1205 && this.rqType === 'gfgl' && this.mbType === 'gxy') || (item.ZBID == 1204 && this.rqType === 'glrq' && this.mbType === 'gxy')
|| (item.ZBID == 1207 && this.rqType === 'gfgl' && this.mbType === 'tnb') || (item.ZBID == 1206 && this.rqType === 'glrq' && this.mbType === 'tnb')) {
......@@ -1067,18 +1065,24 @@
this.aualperNum_q = item.ZXZ ? parseFloat(item.ZXZ).toFixed(1) : 0
this.aualperNum_qNum = item.TBL ? parseFloat(item.TBL).toFixed(1) : 0
}
// 1145
if ((item.ZBID == 1169 && this.rqType === 'gfgl' && this.mbType === 'gxy') || (item.ZBID == 1175 && this.rqType === 'glrq' && this.mbType === 'gxy')
|| (item.ZBID == 1145 && this.rqType === 'gfgl' && this.mbType === 'tnb') || (item.ZBID == 1151 && this.rqType === 'glrq' && this.mbType === 'tnb')) {
// 报告血糖控制率
// 自动上传血糖控制率
this.autoUpControPre_q = item.ZXZ ? parseFloat(item.ZXZ).toFixed(1) : 0
this.autoUpControPre_qTbl = item.TBL ? parseFloat(item.TBL).toFixed(1) : 0
this.autoUpControPre_qHBL = item.HBL ? item.HBL : 0
}
if ((item.ZBID == 1166 && this.rqType === 'gfgl' && this.mbType === 'gxy') || (item.ZBID == 1172 && this.rqType === 'glrq' && this.mbType === 'gxy')
|| (item.ZBID == 1142 && this.rqType === 'gfgl' && this.mbType === 'tnb') || (item.ZBID == 1148 && this.rqType === 'glrq' && this.mbType === 'tnb')) {
// 报告血糖控制率
this.ReportPre_q = item.ZXZ
this.ReportPre_qHBL = item.HBL
}
if (item.ZBID == 1184 || item.ZBID == 1186) {
// 并发症发生率--签
this.hyper5_q = item.ZXZ ? parseFloat(item.ZXZ).toFixed(1) : 0
this.hyper5_qTbl = item.TBL ? parseFloat(item.TBL).toFixed(1) : 0
this.hyper5_qHBL = item.TBL ? parseFloat(item.HBL).toFixed(1) : 0
}
})
}).catch(err => {
......@@ -1095,7 +1099,7 @@
if (item.CODE == "MBGL_060") {
// 住院人数
this.hospital_q = res.data.content[0].zbxx[index].ZXZ ? res.data.content[0].zbxx[index].ZXZ : 0
this.hospital_qTbl = res.data.content[0].zbxx[index].TBL ? res.data.content[0].zbxx[index].TBL :
this.hospital_qHBL = res.data.content[0].zbxx[index].HBL ? res.data.content[0].zbxx[index].HBL :
0
}
})
......@@ -1109,10 +1113,15 @@
"wd": JSON.stringify(wd2)
}).then(res => {
res.data.content[0].zbxx.forEach((item, index) => {
if (item.ZBID == "1196") {
if (item.ZBID == "1196" && this.mbType === 'gxy') {
// 住院人数
this.deadNum_q = res.data.content[0].zbxx[index].ZXZ
this.deadNum_qHBL = res.data.content[0].zbxx[index].HBL ? res.data.content[0].zbxx[index].HBL : '-'
} else
if (item.ZBID == "1198" && this.mbType === 'tnb') {
// 住院人数
this.deadNum_q = res.data.content[0].zbxx[index].ZXZ
this.deadNum_qTbl = res.data.content[0].zbxx[index].TBL ? res.data.content[0].zbxx[index].TBL : 0
this.deadNum_qHBL = res.data.content[0].zbxx[index].HBL ? res.data.content[0].zbxx[index].HBL : '-'
}
})
}).catch(err => {
......@@ -1267,18 +1276,38 @@
// XZQH --- YLJGDM
commonMethod(placeparam).then(res => {
let bottomData_g = res.data.content
if ('YWSJ' === this._group) {
bottomData_g.sort((prev, next) => {
return parseInt(prev.YWSJ.substring(5, 7)) - parseInt(next.YWSJ.substring(5, 7))
})
}else if('XZQH' === this._group){
bottomData_g.sort((prev, next) => {
return parseInt(prev.XZQH) - parseInt(next.XZQH)
})
}else if('YLJGDM' === this._group){
bottomData_g.sort((prev, next) => {
return parseInt(prev.XZQH) - parseInt(next.XZQH)
})
}
// 签数据请求--- 右下角列表 + 图表 (数据共用)
commonMethod(placeparam2).then(res => {
let bottomData_q = res.data.content
if ('YWSJ' === this._group) {
bottomData_q.sort((prev, next) => {
return parseInt(prev.YWSJ.substring(5, 7)) - parseInt(next.YWSJ.substring(5, 7))
})
}else if('XZQH' === this._group){
bottomData_q.sort((prev, next) => {
return parseInt(prev.XZQH) - parseInt(next.XZQH)
})
}else if('YLJGDM' === this._group){
bottomData_q.sort((prev, next) => {
return parseInt(prev.XZQH) - parseInt(next.XZQH)
})
}
bottomData_g.forEach((item, index) => {
let obj = {
name: 'v',
g0: '0',
g1: '0',
g2: '0',
AreaCode: '0'
}
let obj = {}
if (item.YWSJ) {
obj.name = parseInt(item.YWSJ.substring(6, 7))
} else {
......@@ -1299,46 +1328,97 @@
}
item.zbxx.forEach((item2, index2) => {
if (this.rqType === 'gfgl') {
if (item2.ZBID == "1170") {
// 管理/签约人群自动上传血压合格人数
bar1_g.push(getActiveNum(item2.ZXZ / 10000))
bar1_g_qn.push(getActiveNum(item2.TBZ / 10000))
}
if (item2.ZBID == "1169" ) {
// 管·自动上传血压控制率/去年
line1.push(getActiveNum(item2.ZXZ))
line1_qn.push(getActiveNum(item2.TBZ))
}
if (item2.ZBID == "1166" ) {
// 管·报告血压控制率/去年
line3.push(getActiveNum(item2.ZXZ))
line3_qn.push(getActiveNum(item2.TBZ))
}
} else {
if (item2.ZBID == "1176") {
// 管理/签约人群自动上传血压合格人数
bar1_g.push(getActiveNum(item2.ZXZ / 10000))
bar1_g_qn.push(getActiveNum(item2.TBZ / 10000))
}
if (item2.ZBID == "1175" ) {
// 管·自动上传血压控制率/去年
line1.push(getActiveNum(item2.ZXZ))
line1_qn.push(getActiveNum(item2.TBZ))
}
if (item2.ZBID == "1172" ) {
// 管·报告血压控制率/去年
line3.push(getActiveNum(item2.ZXZ))
line3_qn.push(getActiveNum(item2.TBZ))
if(this.mbType === 'gxy'){
if (this.rqType === 'gfgl') {
if (item2.ZBID == "1170") {
// 管理/签约人群自动上传血压合格人数
bar1_g.push(getActiveNum(item2.ZXZ / 10000))
bar1_g_qn.push(getActiveNum(item2.TBZ / 10000))
}
if (item2.ZBID == "1169" ) {
// 管·自动上传血压控制率/去年
line1.push(getActiveNum(item2.ZXZ))
line1_qn.push(getActiveNum(item2.TBZ))
}
if (item2.ZBID == "1166" ) {
// 管·报告血压控制率/去年
line3.push(getActiveNum(item2.ZXZ))
line3_qn.push(getActiveNum(item2.TBZ))
}
} else {
if (item2.ZBID == "1176") {
// 管理/签约人群自动上传血压合格人数
bar1_g.push(getActiveNum(item2.ZXZ / 10000))
bar1_g_qn.push(getActiveNum(item2.TBZ / 10000))
}
if (item2.ZBID == "1175" ) {
// 管·自动上传血压控制率/去年
line1.push(getActiveNum(item2.ZXZ))
line1_qn.push(getActiveNum(item2.TBZ))
}
if (item2.ZBID == "1172" ) {
// 管·报告血压控制率/去年
line3.push(getActiveNum(item2.ZXZ))
line3_qn.push(getActiveNum(item2.TBZ))
}
if (item2.ZBID == "1180" ) {
// 管·报告血压控制率/去年
line5.push(getActiveNum(item2.ZXZ))
line5_qn.push(getActiveNum(item2.TBZ))
}
}
if (item2.ZBID == "1180" ) {
// 管·报告血压控制率/去年
line5.push(getActiveNum(item2.ZXZ))
line5_qn.push(getActiveNum(item2.TBZ))
}else if(this.mbType === 'tnb'){
if (this.rqType === 'gfgl') {
if (item2.ZBID == "1146") {
// 管理/签约人群自动上传血压合格人数
bar1_g.push(getActiveNum(item2.ZXZ / 10000))
bar1_g_qn.push(getActiveNum(item2.TBZ / 10000))
}
if (item2.ZBID == "1145" ) {
// 管·自动上传血压控制率/去年
line1.push(getActiveNum(item2.ZXZ))
line1_qn.push(getActiveNum(item2.TBZ))
}
if (item2.ZBID == "1142" ) {
// 管·报告血压控制率/去年
line3.push(getActiveNum(item2.ZXZ))
line3_qn.push(getActiveNum(item2.TBZ))
}
if (item2.ZBID == "1182" ) {
// 管·报告血压控制率/去年
line5.push(getActiveNum(item2.ZXZ))
line5_qn.push(getActiveNum(item2.TBZ))
}
} else {
if (item2.ZBID == "1152") {
// 管理/签约人群自动上传血压合格人数
bar1_g.push(getActiveNum(item2.ZXZ / 10000))
bar1_g_qn.push(getActiveNum(item2.TBZ / 10000))
}
if (item2.ZBID == "1151" ) {
// 管·自动上传血压控制率/去年
line1.push(getActiveNum(item2.ZXZ))
line1_qn.push(getActiveNum(item2.TBZ))
}
if (item2.ZBID == "1148" ) {
// 管·报告血压控制率/去年
line3.push(getActiveNum(item2.ZXZ))
line3_qn.push(getActiveNum(item2.TBZ))
}
if (item2.ZBID == "1182" ) {
// 管·报告血压控制率/去年
line5.push(getActiveNum(item2.ZXZ))
line5_qn.push(getActiveNum(item2.TBZ))
}
}
}
})
})
......@@ -1346,49 +1426,92 @@
item.zbxx.forEach((item2, index2) => {
// IBM 数据赋值
if (this.rqType === 'gfgl') {
if (item2.ZBID == "1170") {
// 管理/签约人群自动上传血压合格人数
bar1_q.push(getActiveNum(item2.ZXZ / 10000))
bar1_q_qn.push(getActiveNum(item2.TBZ / 10000))
}
if (item2.ZBID == "1169" ) {
// 管·自动上传血压控制率/去年
line2.push(getActiveNum(item2.ZXZ))
line2_qn.push(getActiveNum(item2.TBZ))
}
if (item2.ZBID == "1166" ) {
// 管·报告血压控制率/去年
line4.push(getActiveNum(item2.ZXZ))
line4_qn.push(getActiveNum(item2.TBZ))
}
}else{
if (item2.ZBID == "1176") {
// 管理/签约人群自动上传血压合格人数
bar1_q.push(getActiveNum(item2.ZXZ / 10000))
bar1_q_qn.push(getActiveNum(item2.TBZ / 10000))
if(this.mbType === 'gxy'){
if (this.rqType === 'gfgl') {
if (item2.ZBID == "1170") {
// 管理/签约人群自动上传血压合格人数
bar1_q.push(getActiveNum(item2.ZXZ / 10000))
bar1_q_qn.push(getActiveNum(item2.TBZ / 10000))
}
if (item2.ZBID == "1169" ) {
// 管·自动上传血压控制率/去年
line2.push(getActiveNum(item2.ZXZ))
line2_qn.push(getActiveNum(item2.TBZ))
}
if (item2.ZBID == "1166" ) {
// 管·报告血压控制率/去年
line4.push(getActiveNum(item2.ZXZ))
line4_qn.push(getActiveNum(item2.TBZ))
}
}else{
if (item2.ZBID == "1176") {
// 管理/签约人群自动上传血压合格人数
bar1_q.push(getActiveNum(item2.ZXZ / 10000))
bar1_q_qn.push(getActiveNum(item2.TBZ / 10000))
}
if (item2.ZBID == "1175" ) {
// 管·自动上传血压控制率/去年
line2.push(getActiveNum(item2.ZXZ))
line2_qn.push(getActiveNum(item2.TBZ))
}
if (item2.ZBID == "1172" ) {
// 管·报告血压控制率/去年
line4.push(getActiveNum(item2.ZXZ))
line4_qn.push(getActiveNum(item2.TBZ))
}
if (item2.ZBID == "1180" ) {
// 管·报告血压控制率/去年
line6.push(getActiveNum(item2.ZXZ))
line6_qn.push(getActiveNum(item2.TBZ))
}
}
if (item2.ZBID == "1175" ) {
// 管·自动上传血压控制率/去年
line2.push(getActiveNum(item2.ZXZ))
line2_qn.push(getActiveNum(item2.TBZ))
}
if (item2.ZBID == "1172" ) {
// 管·报告血压控制率/去年
line4.push(getActiveNum(item2.ZXZ))
line4_qn.push(getActiveNum(item2.TBZ))
}
if (item2.ZBID == "1180" ) {
// 管·报告血压控制率/去年
line6.push(getActiveNum(item2.ZXZ))
line6_qn.push(getActiveNum(item2.TBZ))
}else if(this.mbType === 'tnb'){
if (this.rqType === 'gfgl') {
if (item2.ZBID == "1146") {
// 管理/签约人群自动上传血压合格人数
bar1_q.push(getActiveNum(item2.ZXZ / 10000))
bar1_q_qn.push(getActiveNum(item2.TBZ / 10000))
} else
if (item2.ZBID == "1145" ) {
// 管·自动上传血压控制率/去年
line2.push(getActiveNum(item2.ZXZ))
line2_qn.push(getActiveNum(item2.TBZ))
} else
if (item2.ZBID == "1142" ) {
// 管·报告血压控制率/去年
line4.push(getActiveNum(item2.ZXZ))
line4_qn.push(getActiveNum(item2.TBZ))
}
}else{
if (item2.ZBID == "1152") {
// 管理/签约人群自动上传血压合格人数
bar1_q.push(getActiveNum(item2.ZXZ / 10000))
bar1_q_qn.push(getActiveNum(item2.TBZ / 10000))
}
if (item2.ZBID == "1151" ) {
// 管·自动上传血压控制率/去年
line2.push(getActiveNum(item2.ZXZ))
line2_qn.push(getActiveNum(item2.TBZ))
}
if (item2.ZBID == "1148" ) {
// 管·报告血压控制率/去年
line4.push(getActiveNum(item2.ZXZ))
line4_qn.push(getActiveNum(item2.TBZ))
}
if (item2.ZBID == "1182" ) {
// 管·报告血压控制率/去年
line6.push(getActiveNum(item2.ZXZ))
line6_qn.push(getActiveNum(item2.TBZ))
}
}
}
})
})
this.topListData = []
bar1_g.forEach((item, index) => {
let obj = {}
let a = getActiveNum(bar1_g[index] - bar1_q[index])
......@@ -1465,18 +1588,42 @@
}
} else {
} else if (this.mbType === 'tnb') {
if (this.groupType === 'org' && this.rqType === 'glrq') {
legendMy = ['管理/签约人群自动上传血压合格人数', '去年管理/签约人群自动上传血压合格人数', '管·自动上传血压控制率/去年', '签·自动上传血压控制率/去年',
'管·报告血压控制率/去年', '签·报告血压控制率/去年', '管·BMI异常比/去年', '签·BMI异常比/去年'
]
this.option2.legend.data = legendMy
this.option2.xAxis[0].data = dataX
this.option2.series[1].data = bar1_q
this.option2.series[2].data = bar1
this.option2.series[4].data = bar1_q_qn
this.option2.series[5].data = bar1_g_qn
this.option2.series[6].data = line1
this.option2.series[7].data = line2
this.option2.series[8].data = line3
this.option2.series[9].data = line4
this.option2.series[10].data = line5
this.option2.series[11].data = line6
} else {
legendMy = ['管理/签约人群自动上传血压合格人数', '去年管理/签约人群自动上传血压合格人数', '管·自动上传血压控制率/去年', '签·自动上传血压控制率/去年',
'管·报告血压控制率/去年', '签·报告血压控制率/去年'
]
this.option2.legend.data = legendMy
this.option2.xAxis[0].data = dataX
this.option2.series[1].data = bar1_q
this.option2.series[2].data = bar1
this.option2.series[4].data = bar1_q_qn
this.option2.series[5].data = bar1_g_qn
this.option2.series[6].data = line1
this.option2.series[7].data = line2
this.option2.series[8].data = line3
this.option2.series[9].data = line4
this.option2.series[10].data = line5
this.option2.series[11].data = line6
}
}
......@@ -1500,7 +1647,7 @@
this.bleedtype = "血压"
this.pagedisname = '高血压'
} else {
this.themeId = 33
this.themeId = 28
this.homeinit()
this.bleedtype = "血糖"
this.pagedisname = '糖尿病'
......@@ -1530,7 +1677,7 @@
}else if(num === 5){
zbcode = 'GLXG_048'
}else if(num === 6){
zbcode = 'GLXG_057'
zbcode = 'GLXG_048'
}
// 右上柱状图 年龄结构 -themeId: 34 全市 35 区 36 社区
let wdnl = [{
......@@ -1762,12 +1909,13 @@
.uplib {
width: 100%;
height: 80px;
height: 98px;
position: absolute;
top: 76px;
right: 0;
left: 0;
background: rgba(51, 51, 51, 0.9);
padding: 10px
padding: 10px;
text-align: left;
}
</style>
......@@ -755,7 +755,7 @@
},
exitFn() {
this.$router.push({
path: '/'
path: '/Index'
});
},
homeinit() {
......
......@@ -732,7 +732,7 @@
},
exitFn() {
this.$router.push({
path: '/'
path: '/Index'
});
},
changeReplay() {
......
......@@ -926,7 +926,7 @@
},
exitFn() {
this.$router.push({
path: '/'
path: '/Index'
});
},
DieaChange(num) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment