Commit e726e1b4 by lihu541

参数,方法修改

parent 18d3e5a0
......@@ -126,7 +126,7 @@
.card5title span{padding: 0 5px; color: #0097FD;}
.card5title span.myclk{color:#42CCFF}
.card5title span.line{color:#B3BFD2}
.card5main{margin-top: 30px; height: 260px; overflow: hidden; overflow-y: scroll;}
.card5main{margin-top: 30px; height: 278px; overflow: hidden; overflow-y: scroll;}
.card5main2{margin-top: 30px; height: 270px; overflow: hidden;}
.table01{ color: #B3BFD2;}
.table01 ::-webkit-scrollbar {
......
......@@ -252,7 +252,6 @@
themeID2: 15, // 慢病高血压
themeID3: 21, // 慢病管理 糖尿病
themeID4: 12, // 慢病管理 肿瘤
pageNo: 1,
mbType: 'gxy',
groupNo: 'org',
fxType: 'sf',
......
......@@ -4,18 +4,19 @@
<div class="nav" @click="exitFn"><img src="../../assets/icon_nav_cell.png"></div>
<div class="title">
<div class="tp">上海市疾病预防控制管理服务云平台(慢性病防治)</div>
<p>{{areaname}}</p>
<p>{{areaname + hospitalname}}</p>
</div>
<div class="area">
<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>
<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>
<div class="name"><i class="el-icon-s-custom el-icon--left"></i>{{userinfo.userName}} 截止:{{cxsj}}</div>
</div>
</div>
<!--第一个模块-->
<div class="card-dark card-01" v-if="DieaNo == 1">
<div class="card1-mod" v-show="pageNo==2">
<div class="card-dark card-01" v-if="mbType === 'gxy'">
<div class="card1-mod">
<h2>管·本季血压合格人数</h2>
<div class="cmtitle">
<span>{{(parseFloat(aualperNum_g?aualperNum_g:0)/10000).toFixed(1)}}</span>
......@@ -25,13 +26,17 @@
<span class="el-icon-bottom">&nbsp;</span>
</div>
<div class="cmtline2">
<p><span>{{parseFloat(autoUpControPre_g).toFixed(1)}}% <em></em>{{formatparam(autoUpControPre_gTbl)}}% <i class="el-icon-bottom color3">&nbsp;</i></span>自动上传血压控制率</p>
<p><span>{{parseFloat(ReportPre_g).toFixed(1)}}% <em></em>{{formatparam(ReportPre_gTbl)}}% <i class="el-icon-bottom color3">&nbsp;</i></span>报告血压控制率</p>
<p><span>{{parseFloat(hospital_g).toFixed(1)}}<em></em>{{formatparam(hospital_gTbl)}}% <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>
<p><span>{{parseFloat(autoUpControPre_g).toFixed(1)}}% <em></em>{{formatparam(autoUpControPre_gTbl)}}% <i
class="el-icon-bottom color3">&nbsp;</i></span>自动上传血压控制率</p>
<p><span>{{parseFloat(ReportPre_g).toFixed(1)}}% <em></em>{{formatparam(ReportPre_gTbl)}}% <i
class="el-icon-bottom color3">&nbsp;</i></span>报告血压控制率</p>
<p><span>{{parseFloat(hospital_g).toFixed(1)}}<em></em>{{formatparam(hospital_gTbl)}}% <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>
</div>
</div>
<div class="card1-mod" v-show="pageNo==2">
<div class="card1-mod">
<h2>签·本季血压合格人数</h2>
<div class="cmtitle">
<span>{{(parseFloat(aualperNum_q?aualperNum_q:0)/10000).toFixed(1)}}</span>
......@@ -41,15 +46,19 @@
<span class="el-icon-bottom">&nbsp;</span>
</div>
<div class="cmtline2">
<p><span>{{parseFloat(autoUpControPre_q).toFixed(1)}}% <em></em>{{formatparam(autoUpControPre_qTbl)}}% <i class="el-icon-bottom color3">&nbsp;</i></span>自动上传血压控制率</p>
<p><span>{{parseFloat(ReportPre_q).toFixed(1)}}% <em></em>{{formatparam(ReportPre_qTbl)}}% <i class="el-icon-bottom color3">&nbsp;</i></span>报告血压控制率</p>
<p><span>{{parseFloat(hospital_q).toFixed(1)}}<em></em>{{formatparam(hospital_qTbl)}}% <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>
<p><span>{{parseFloat(autoUpControPre_q).toFixed(1)}}% <em></em>{{formatparam(autoUpControPre_qTbl)}}% <i
class="el-icon-bottom color3">&nbsp;</i></span>自动上传血压控制率</p>
<p><span>{{parseFloat(ReportPre_q).toFixed(1)}}% <em></em>{{formatparam(ReportPre_qTbl)}}% <i
class="el-icon-bottom color3">&nbsp;</i></span>报告血压控制率</p>
<p><span>{{parseFloat(hospital_q).toFixed(1)}}<em></em>{{formatparam(hospital_qTbl)}}% <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>
</div>
</div>
</div>
<div class="card-dark card-01" v-if="DieaNo == 2">
<div class="card1-mod" v-show="pageNo==2">
<div class="card-dark card-01" v-if="mbType === 'tnb'">
<div class="card1-mod">
<h2>管·本季血糖合格人数</h2>
<div class="cmtitle">
<span>{{(parseFloat(aualperNum_g?aualperNum_g:0)/10000).toFixed(1)}}</span>
......@@ -59,13 +68,17 @@
<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>
<p><span>{{parseFloat(ReportPre_g).toFixed(1)}}% <em></em>{{parseFloat(ReportPre_gTbl).toFixed(1)}}%</span>报告血糖控制率</p>
<p><span>{{parseFloat(hospital_g).toFixed(1)}}<em></em>{{parseFloat(hospital_gTbl).toFixed(1)}}%</span>住院人数</p>
<p><span>{{parseFloat(deadNum_g).toFixed(1)}}<em></em>{{parseFloat(deadNum_gTbl).toFixed(1)}}%</span>死亡人数</p>
<p><span>{{parseFloat(autoUpControPre_g).toFixed(1)}}% <em></em>{{parseFloat(autoUpControPre_gTbl).toFixed(1)}}%</span>自动上传血糖控制率
</p>
<p><span>{{parseFloat(ReportPre_g).toFixed(1)}}% <em></em>{{parseFloat(ReportPre_gTbl).toFixed(1)}}%</span>报告血糖控制率
</p>
<p><span>{{parseFloat(hospital_g).toFixed(1)}}<em></em>{{parseFloat(hospital_gTbl).toFixed(1)}}%</span>住院人数
</p>
<p><span>{{parseFloat(deadNum_g).toFixed(1)}}<em></em>{{parseFloat(deadNum_gTbl).toFixed(1)}}%</span>死亡人数
</p>
</div>
</div>
<div class="card1-mod" v-show="pageNo==2">
<div class="card1-mod">
<h2>签·本季血糖合格人数</h2>
<div class="cmtitle">
<span>{{(parseFloat(aualperNum_q?aualperNum_q:0)/10000).toFixed(1)}}</span>
......@@ -75,20 +88,25 @@
<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>
<p><span>{{parseFloat(ReportPre_q).toFixed(1)}}% <em></em>{{parseFloat(ReportPre_qTbl).toFixed(1)}}%</span>报告血糖控制率</p>
<p><span>{{parseFloat(hospital_q).toFixed(1)}}<em></em>{{parseFloat(hospital_qTbl).toFixed(1)}}%</span>住院人数</p>
<p><span>{{parseFloat(deadNum_q).toFixed(1)}} <em></em>{{parseFloat(deadNum_qTbl).toFixed(1)}}%</span>死亡人数</p>
<p><span>{{parseFloat(autoUpControPre_q).toFixed(1)}}% <em></em>{{parseFloat(autoUpControPre_qTbl).toFixed(1)}}%</span>自动上传血糖控制率
</p>
<p><span>{{parseFloat(ReportPre_q).toFixed(1)}}% <em></em>{{parseFloat(ReportPre_qTbl).toFixed(1)}}%</span>报告血糖控制率
</p>
<p><span>{{parseFloat(hospital_q).toFixed(1)}}<em></em>{{parseFloat(hospital_qTbl).toFixed(1)}}%</span>住院人数
</p>
<p><span>{{parseFloat(deadNum_q).toFixed(1)}} <em></em>{{parseFloat(deadNum_qTbl).toFixed(1)}}%</span>死亡人数
</p>
</div>
</div>
</div>
<div class="card-dark card-02">
<div class="dotline" v-show="pageNo==2"></div>
<div class="card2-mod" v-show="pageNo<5">
<div class="dotline"></div>
<div class="card2-mod">
<div class="modtitle2">
<span @click="DieaChange(1)" :class="DieaNo==1?'myclk':''">高血压</span>|<span @click="DieaChange(2)"
:class="DieaNo==2?'myclk':''">糖尿病</span></div>
<div v-show="pageNo==2" class="page-left-top2">
<span @click="mblxChange('gxy')" :class="mbType === 'gxy' ?'myclk':''">高血压</span>|<span
@click="mblxChange('tnb')"
:class="mbType === 'tnb'?'myclk':''">糖尿病</span></div>
<div class="page-left-top2">
<table class="table02" width="100%" border="0">
<tr>
<td width="55%">&nbsp;</td>
......@@ -96,41 +114,47 @@
<td width="5%">&nbsp;</td>
</tr>
<!-- @click="change_age(1)" -->
<tr v-if="DieaNo == 1" @click="change_age(1)" :class="age_index==1?'myclk':''">
<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>
<td width="40%"><span class="sp01">{{parseFloat(hyper1_g).toFixed(2)}}%/{{parseFloat(hyper1_q).toFixed(2)}}%</span>
</td>
<td width="5%">&nbsp;</td>
</tr>
<tr v-if="DieaNo == 1" @click="change_age(2)" :class="age_index==2?'myclk':''">
<tr v-if="mbType === 'gxy'" @click="change_age(2)" :class="age_index==2?'myclk':''">
<td width="55%" class="tdleft">脑卒中粗死亡率</td>
<td width="40%"><span class="span22">{{parseFloat(hyper2_g).toFixed(2)}}%/{{parseFloat(hyper2_q).toFixed(2)}}%</span></td>
<td width="40%"><span class="span22">{{parseFloat(hyper2_g).toFixed(2)}}%/{{parseFloat(hyper2_q).toFixed(2)}}%</span>
</td>
<td width="5%">&nbsp;</td>
</tr>
<tr v-if="DieaNo == 1" @click="change_age(3)" :class="age_index==3?'myclk':''">
<tr v-if="mbType === 'gxy'" @click="change_age(3)" :class="age_index==3?'myclk':''">
<td width="55%" class="tdleft">心脑血管粗死亡率</td>
<td width="40%"><span class="sp01">{{parseFloat(hyper3_g).toFixed(2)}}%/{{parseFloat(hyper3_q).toFixed(2)}}%</span></td>
<td width="40%"><span class="sp01">{{parseFloat(hyper3_g).toFixed(2)}}%/{{parseFloat(hyper3_q).toFixed(2)}}%</span>
</td>
<td width="5%">&nbsp;</td>
</tr>
<tr v-if="DieaNo == 1" @click="change_age(4)" :class="age_index==4?'myclk':''">
<tr v-if="mbType === 'gxy'" @click="change_age(4)" :class="age_index==4?'myclk':''">
<td width="55%" class="tdleft">粗死亡率</td>
<td width="40%"><span class="span22">{{parseFloat(hyper4_g).toFixed(2)}}%/{{parseFloat(hyper4_q).toFixed(2)}}%</span></td>
<td width="40%"><span class="span22">{{parseFloat(hyper4_g).toFixed(2)}}%/{{parseFloat(hyper4_q).toFixed(2)}}%</span>
</td>
<td width="5%">&nbsp;</td>
</tr>
<tr v-if="DieaNo == 1" @click="change_age(5)" :class="age_index==5?'myclk':''">
<tr v-if="mbType === 'gxy'" @click="change_age(5)" :class="age_index==5?'myclk':''">
<td width="55%" class="tdleft">并发症发生率</td>
<td width="40%"><span class="sp01">{{parseFloat(hyper5_g).toFixed(2)}}%/{{parseFloat(hyper5_q).toFixed(2)}}%</span></td>
<td width="40%"><span class="sp01">{{parseFloat(hyper5_g).toFixed(2)}}%/{{parseFloat(hyper5_q).toFixed(2)}}%</span>
</td>
<td width="5%">&nbsp;</td>
</tr>
<tr v-if="DieaNo == 2" class="myclk" @click="change_age(6)">
<tr v-if="mbType === 'tnb'" class="myclk" @click="change_age(6)">
<td width="55%" class="tdleft">粗死亡率</td>
<td width="40%"><span class="span22">{{parseFloat(sweet_g).toFixed(2)}}%/{{parseFloat(sweet_q).toFixed(2)}}%</span></td>
<td width="40%"><span class="span22">{{parseFloat(sweet_g).toFixed(2)}}%/{{parseFloat(sweet_q).toFixed(2)}}%</span>
</td>
<td width="5%">&nbsp;</td>
</tr>
</table>
</div>
</div>
<div class="card2-mod" v-show="pageNo==1 || pageNo==2">
<div class="card2-mod">
<div class="modtitle2">年龄结构</div>
<div id="rightTop"></div>
</div>
......@@ -147,12 +171,14 @@
</div>
<div class="card-dark card-04">
<div class="card3title1">
<span @click="groupChange(1)" :class="groupNo==1?'myclk':''" v-if="communshow">{{arname}}</span> <a v-if="communshow">|</a>
<span @click="groupChange(2)" :class="groupNo==2?'myclk':''">时间</span>
<span @click="groupChange('org')" :class="groupType === 'org' ?'myclk':''" v-if="communshow">{{arname}}</span>
<a
v-if="communshow">|</a>
<span @click="groupChange('time')" :class="groupType === 'time' ?'myclk':''">时间</span>
</div>
<div class="card3title2">
<span @click="bingChange(1)" :class="bingNo==1?'myclk':''">规范管理人群</span> |
<span @click="bingChange(2)" :class="bingNo==2?'myclk':''">管理人群</span>
<span @click="rqlxChange('gfgl')" :class="rqType === 'gfgl'?'myclk':''">规范管理人群</span> |
<span @click="rqlxChange('glrq')" :class="rqType === 'glrq'?'myclk':''">管理人群</span>
</div>
<div class="card3main" id="pag2bar"></div>
</div>
......@@ -164,16 +190,16 @@
<tr>
<th width="38"></th>
<th width="48">{{thname}}</th>
<th width="100" @click.stop="showtab(1)">管/签自动上传<br />{{bleedtype}}控制率·%</th>
<th width="100" @click.stop="showtab(2)">管/签报告<br />{{bleedtype}}控制率·%</th>
<th width="100" @click.stop="showtab(1)">管/签自动上传<br/>{{bleedtype}}控制率·%</th>
<th width="100" @click.stop="showtab(2)">管/签报告<br/>{{bleedtype}}控制率·%</th>
</tr>
</thead>
<div class="uplib" v-if="showtabnum == 1">
指标名称:<br>{{pagedisname}}{{middlename}}自动上传<span v-if="DieaNo==2">空腹</span>{{bleedtype}}控制率<br>
指标名称:<br>{{pagedisname}}{{middlename}}自动上传<span v-if="mbType === 'tnb'">空腹</span>{{bleedtype}}控制率<br>
计算公式:<br>年内规范管理的{{pagedisname}}对象中末次自动上传{{bleedtype}}控制合格人数/已规范管理的{{pagedisname}}患者人数×100%
</div>
<div class="uplib" v-if="showtabnum == 2">
指标名称:<br>{{pagedisname}}{{middlename}}报告<span v-if="DieaNo==2">空腹</span>{{bleedtype}}控制率<br>
指标名称:<br>{{pagedisname}}{{middlename}}报告<span v-if="mbType === 'tnb'">空腹</span>{{bleedtype}}控制率<br>
计算公式:<br>年内规范管理的{{pagedisname}}对象中末次报告{{bleedtype}}控制合格人数/已规范管理的{{pagedisname}}患者人数×100%
</div>
<tbody class="scrollTbody">
......@@ -195,6 +221,11 @@
commonMethod,
otherMethod
} from '@/api/home.js'
import {
getActiveNum,
checkIsNull
} from '@/utils/common.js'
export default {
name: 'screenpage2',
data() {
......@@ -203,19 +234,16 @@
thname: '各区',
arname: '各区',
communshow: true,
groupNo: 1,
bingNo: 1,
pageNo: 2,
DieaNo: 1,
groupType: 'org',
rqType: 'gfgl',
mbType: 'gxy',
value2: '',
g_personAutoNum: [], // 在管数据 --今年 签约人群自动上传血压/血糖合格人数
g_personAutoNumTbl: [], //在管数据 -- 去年 人群自动上传血压血糖合格人数
q_personAutoNum: [], // 签 数据 -- 今年 签约 同上
q_personAutoNumTbl: [], // 签数据 -- 去年 同上
themeId: 28,
agestructId: 34,
bleedtype: '血压',
selectID: 1, // 用于切换 规范管理
// 管 左侧变量
aualperNum_g: 0,
aualperNum_gNum: 0, //
......@@ -278,7 +306,7 @@
data_g_ycl_qn: [],
data_q_ycl_qn: [],
areaname: '',
hospitalname: '',
sel: '筛选',
lastStatus: {},
PlaceCode: '',
......@@ -361,7 +389,7 @@
position: [50, 50],
padding: 10,
trigger: 'axis',
formatter: function(params) {
formatter: function (params) {
if (params[0].seriesName == '管理/签约人群自动上传血压合格人数') {
var res = '<ul class="f12 pl10 pr15">';
......@@ -429,7 +457,7 @@
rotate: 60,
textStyle: {
fontSize: 10,
color: function(value, index) {
color: function (value, index) {
return '#8393A9';
}
}
......@@ -474,7 +502,7 @@
splitNumber: 5,
axisLabel: {
textStyle: {
color: function(value, index) {
color: function (value, index) {
return '#747d8d';
},
type: 'solid'
......@@ -501,7 +529,8 @@
filterMode: 'empty',
endValue: 14
}],
series: [{
series: [
{
name: '管理/签约人群自动上传血压合格人数',
type: 'bar',
stack: '1',
......@@ -846,38 +875,38 @@
},
showtabnum: 0,
pagedisname: '高血压',
middlename:"规范管理人群",
middlename: "规范管理人群",
userinfo:{},
userRole:'',
cxsj:'',
_xzqh:'',
_yljgdm:'',
_group:'',
pageLevel:''
userinfo: {},
userRole: '',
cxsj: '',
_xzqh: '',
_yljgdm: '',
_group: '',
pageLevel: ''
}
},
methods: {
showtab(num){
showtab(num) {
this.showtabnum = num
},
formatparam(val){
formatparam(val) {
let returnval = parseFloat(val)
if(val==0){
if (val == 0) {
returnval = '0.00'
}else if(val>0 && val<10){
} else if (val > 0 && val < 10) {
returnval = returnval.toFixed(2)
}else if(val>=10 && val<99){
} else if (val >= 10 && val < 99) {
returnval = returnval.toFixed(1)
}else{
} else {
returnval = returnval.toFixed(0)
}
return returnval
},
formatnum(val){
if(val>10000){
return (val/10000).toFixed(1)+'万'
}else{
formatnum(val) {
if (val > 10000) {
return (val / 10000).toFixed(1) + '万'
} else {
return val
}
},
......@@ -897,17 +926,16 @@
this.arname = '各区'
console.log("现在处于一级状态");
}
else if (this.pageLevel === 'sq') {
} else if (this.pageLevel === 'sq') {
this._yljgdm = ''
this.pageLevel = 'qj'
this._group = 'YLJGDM'
this.tablename = "社区"
this.thname = "医院"
this.arname = '社区'
this.areaname = this.areaname2
this.hospitalname = ''
}
this.homeinit(this.themeId)
this.homeinit()
this.change_age(1)
},
exitFn() {
......@@ -922,124 +950,108 @@
this._yljgdm = ''
this._group = "XZQH"
this.pageLevel = 'sj'
this.communshow = true
this.areaname = ''
this.hospitalname = ''
this.tablename = '各区'
this.themeId = 28
this.thname = '各区'
this.arname = '各区'
this.homeinit(this.themeId)
this.change_age(1)
} else if ('area' === this.userRole) {//区角色
// 点击区 -- 展示城镇信息
this._xzqh = sessionStorage.getItem("organizcode")
this._yljgdm = ''
this._group = "YLJGDM"
this.pageLevel = 'qj'
this.communshow = true
this.tablename = '社区'
this.thname = '医院'
this.arname = '社区'
this.areaname = sessionStorage.getItem("organizcodeName")
this.homeinit(this.themeId)
this.change_age(1)
this.hospitalname = ''
} else if ('hospital' === this.userRole) {//社区角色
this._xzqh = sessionStorage.getItem("organizcode")
this._xzqh = sessionStorage.getItem("porgcode")
this._yljgdm = sessionStorage.getItem("organizcode")
this._group = "YWSJ"
this.pageLevel = 'sq'
this.communshow = false
this.tablename = "社区"
this.thname = "医院"
this.arname = '社区'
this.areaname = sessionStorage.getItem("organizcodeName")
this.homeinit(this.themeId)
this.change_age(1)
this.areaname = ''
this.hospitalname = sessionStorage.getItem("organizcodeName")
}
this.homeinit()
this.change_age(1)
},
dataSearch() {
this.homeinit(this.themeId)
dataSearch(cxsj) {
sessionStorage.setItem("ywsj", cxsj)
this.homeinit()
this.change_age(1)
},
changecity(code, name) {
this.areaname = name
if (this.pageLevel === 'sj') {
// 点击区 -- 展示城镇信息
this.pageLevel = 'qj'
this._group = 'YLJGDM'
this._xzqh = code
this.communshow = true
this.tablename = '社区'
this.thname = '医院'
this.arname = '社区'
this.areaname = name
}else if (this.pageLevel === 'qj') {
} else if (this.pageLevel === 'qj') {
// 点击区 -- 展示城镇信息
this.pageLevel = 'sq'
this._group = 'YWSJ'
this._yljgdm = code
this.communshow = true
this.tablename = '社区'
this.thname = '医院'
this.arname = '社区'
this.areaname = name
}else if (this.pageLevel === 'sq') {
this.hospitalname = name
} else if (this.pageLevel === 'sq') {
return false
}
this.homeinit(this.themeId)
this.homeinit()
this.change_age(1)
},
groupChange(num) {
this.groupNo = num
if (num == 1) {
groupChange(grouplx) {
this.groupType = grouplx
if (grouplx === 'org') {
this._group = "XZQH"
this.homeinit(this.themeId)
this.homeinit()
} else {
this._group = "YWSJ"
this.homeinit(this.themeId)
this.homeinit()
}
},
bingChange(num) {
this.bingNo = num
if (num == 1) {
this.selectID = 1
rqlxChange(rqlx) {
this.rqType = rqlx
if (rqlx === 'gfgl') {
this.middlename = "规范管理人群"
this.homeinit(this.themeId)
this.homeinit()
} else {
this.selectID = 2
this.middlename = "管理人群"
this.homeinit(this.themeId)
this.homeinit()
}
},
homeinit(diastype) {
homeinit() {
let _this = this
// 管数据 入参
this.pageHeadData()
this.listArray = []
this.listArray2 = []
this.listArrayFinal = []
let wd = [{
"name": "YWSJ",
"endTime": _this.cxsj,
"type": "2",
"startTime": '',
"endTime": this.cxsj,
"compare": "between",
},
{
}, {
"name": "XZQH",
"value": this._xzqh,
"type": "1"
......@@ -1047,17 +1059,16 @@
"name": "YLJGDM",
"value": this._yljgdm,
"type": "1"
}
]
// 签数据 入参
}]
// 签约数据 入参
let wd2 = [{
"name": "YWSJ",
"endTime": _this.cxsj,
"type": "2",
"startTime": '',
"endTime": this.cxsj,
"compare": "between",
},
{
}, {
"name": "XZQH",
"value": this._xzqh,
"type": "1"
......@@ -1072,478 +1083,98 @@
"type": "1"
}
]
//var zbcode="MBZFX_016";单独读取
let param = {
"themeId": diastype,
"wd": JSON.stringify(wd)
}
let param2 = {
"themeId": diastype,
"wd": JSON.stringify(wd2)
}
let placeparam = {
"themeId": diastype,
"themeId": this.themeId,
"wd": JSON.stringify(wd),
"group": this._group
"group": this._group,
}
let placeparam2 = {
"themeId": diastype,
"themeId": this.themeId,
"wd": JSON.stringify(wd2),
"group": this._group
"group": this._group,
}
// =================================管部份 请求 ======================================
// 请求 管的 自动上传血压控制率 与 报告血压控制率 高糖并用
commonMethod(param).then(res => {
// 右下角列表 + 图表 (数据共用)
// 管数据请求 --- 右下角列表
if (res.data.content.length == 0) {
this.aualperNum_g = 0
this.aualperNum_gNum = 0
this.autoUpControPre_g = 0
this.autoUpControPre_gTbl = 0
this.ReportPre_g = 0
this.ReportPre_gTbl = 0
this.hyper5_g = 0
this.hyper5_gTbl = 0
this.hyper5_g = 0
this.hyper5_gTbl = 0
this.deadNum_g = 0
this.deadNum_gTbl = 0
this.ReportPre_q = 0
this.ReportPre_qTbl = 0
this.aualperNum_q = 0
this.aualperNum_qNum = 0
this.autoUpControPre_q = 0
this.autoUpControPre_qTbl = 0
this.hyper5_q = 0
this.hyper5_qTbl = 0
this.hospital_q = 0
this.deadNum_q = 0
this.hyper1_g = 0
this.hyper2_g = 0
this.hyper3_g = 0
this.hyper4_g = 0
this.hyper5_g = 0
this.sweet_g = 0
// XZQH --- YLJGDM
commonMethod(placeparam).then(res => {
res.data.content.forEach((item, index) => {
let obj = {
name: 'v',
g0: '0',
g1: '0',
g2: '0',
AreaCode: '0'
}
if (item.YWSJ) {
obj.name = parseInt(item.YWSJ.substring(6, 7))
} else {
if (item.XZQH_TEXT) {
obj.name = item.XZQH_TEXT
obj.AreaCode = item.XZQH ? item.XZQH : ''
} else if (item.YLJGDM_EX2) {
obj.name = item.YLJGDM_EX2
obj.AreaCode = item.YLJGDM ? item.YLJGDM : ''
} else {
obj.name = "地名缺失"
return false
}
res.data.content[0].zbxx.forEach(item => {
// 高血压 & 糖尿病
if ((item.ZBID == 1205 && this.bingNo == 1 && this.DieaNo == 1) || (item.ZBID == 1204 && this.bingNo == 2 && this.DieaNo == 1) || (item.ZBID == 1207 && this.bingNo == 1 && this.DieaNo == 2) || (item.ZBID == 1206 && this.bingNo == 2 && this.DieaNo == 2)) {
// 本季血压合格
this.aualperNum_g = item.ZXZ
this.aualperNum_gNum = item.TBL ? item.TBL : 0
}
if ((item.ZBID == 1169 && this.bingNo == 1 && this.DieaNo == 1) || (item.ZBID == 1175 && this.bingNo == 2 && this.DieaNo == 1) || (item.ZBID == 1145 && this.bingNo == 1 && this.DieaNo == 2) || (item.ZBID == 1151&& this.bingNo == 2 && this.DieaNo == 2)) {
// 报告血压控制率
this.autoUpControPre_g = item.ZXZ
this.autoUpControPre_gTbl = item.TBL
item.zbxx.forEach((item2, index2) => {
if (this.rqType === 'gfgl') {
if (item2.ZBID == "1167" || item2.ZBID == "1143") {
obj.g0 = item2.ZXZ ? parseFloat(item2.ZXZ).toFixed(1) : 0
}
if ((item.ZBID == 1166&& this.bingNo == 1&& this.DieaNo == 1) || (item.ZBID == 1172 && this.bingNo == 2&& this.DieaNo == 1) || (item.ZBID == 1142 && this.bingNo == 1 && this.DieaNo == 2) || (item.ZBID == 1148&& this.bingNo == 2 && this.DieaNo == 2)) {
// 自动上传血压控制率
this.ReportPre_g = item.ZXZ
this.ReportPre_gTbl = item.TBL
if (item2.ZBID == "1169" || item2.ZBID == "1145") {
obj.g1 = item2.ZXZ ? parseFloat(item2.ZXZ).toFixed(1) : 0
}
if ((item.ZBID == 1184&& this.bingNo == 1&& this.DieaNo == 1) || (item.ZBID == 1096 && this.bingNo == 2&& this.DieaNo == 1) || (item.ZBID == 1099 && this.bingNo == 1 && this.DieaNo == 2) || (item.ZBID == 1099&& this.bingNo == 2 && this.DieaNo == 2)) {
// 并发症发生率--管
this.hyper5_g = item.ZXZ
this.hyper5_gTbl = item.TBL
if (item2.ZBID == "1166" || item2.ZBID == "1142") {
obj.g2 = item2.ZXZ ? parseFloat(item2.ZXZ).toFixed(1) : 0
}
// 1180
if ((item.ZBID == 1180&& this.bingNo == 1&& this.DieaNo == 1) || (item.ZBID == 1196 && this.bingNo == 2&& this.DieaNo == 1) || (item.ZBID == 1198 && this.bingNo == 1 && this.DieaNo == 2) || (item.ZBID == 1198&& this.bingNo == 2 && this.DieaNo == 2)) {
// 并发症发生率--管
this.hyper5_g = item.ZXZ
this.hyper5_gTbl = item.TBL
// 柱状图数据获取
if (item2.ZBID == "1170" || item2.ZBID == "1143") {
// 管理/签约人群自动上传血压合格人数
this.g_autoup_list.push(getActiveNum(item2.ZXZ / 10000))
}
})
}).catch(err => {
console.log("--慢病管理在管报错--");
})
// 1112 在管的高血压患者死亡人数 FWZL_012
// 1115 在管的糖尿病患者死亡人数 FWZL_015
// 管 此处只请求 高血压 住院人数 --- 管 高糖并用
commonMethod({
"themeId": 15,
"wd": JSON.stringify(wd)
}).then(res => {
res.data.zbdic.forEach((item, index) => {
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
if (item2.ZBID == "1176" || item2.ZBID == "1149") {
// 去年管理/签约人群自动上传血压合格人数
this.g_normal_list.push(item2.ZXZ ? item2.ZXZ : 0)
}
})
}).catch(err => {
console.log("--慢病管理在管报错--");
})
// 管 此处只请求 在管的死亡人数 --- 管 高糖并用
commonMethod({
"themeId": 36,
"wd": JSON.stringify(wd)
}).then(res => {
res.data.content[0].zbxx.forEach((item, index) => {
if (item.ZBID == "1196") {
// 住院人数
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
if (item2.ZBID == "1170" || item2.ZBID == "1146") {
this.g_personAutoNum.push(item2.ZXZ ? parseFloat(item2.ZXZ).toFixed(1) : 0)
}
})
}).catch(err => {
console.log("--慢病管理在管报错--");
})
// ================================= 签 部份 请求 ======================================
// ================================= 签 部份 请求 ======================================
// ================================= 签 部份 请求 ======================================
// 请求 签的 自动上传血压控制率 与 报告血压控制率 高糖并用
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
// 去年的 规范管理 合格人数 数据 TBZ
if (item2.ZBID == "1170" || item2.ZBID == "1146") {
this.g_personAutoNumTbl.push(item2.TBZ ? parseFloat(item2.TBZ).toFixed(1) : 0)
}
// Tbl
if ((item.ZBID == 1205 && this.bingNo == 1 && this.DieaNo == 1) || (item.ZBID == 1204 && this.bingNo == 2 && this.DieaNo == 1) || (item.ZBID == 1207 && this.bingNo == 1 && this.DieaNo == 2) || (item.ZBID == 1206 && this.bingNo == 2 && this.DieaNo == 2)) {
// if (item2.ZBID == "1169" || item2.ZBID == "1145") {
// this.g_normal_list.push(item2.ZXZ ? item2.ZXZ : 0)
// }
// 本季血糖合格
this.aualperNum_q = item.ZXZ ? parseFloat(item.ZXZ).toFixed(1) : 0
this.aualperNum_qNum = item.TBL ? parseFloat(item.TBL).toFixed(1) : 0
} else {
if (item2.ZBID == "1180" || item2.ZBID == "1182") {
obj.g0 = item2.ZXZ ? parseFloat(item2.ZXZ).toFixed(1) : 0
}
// 1145
if ((item.ZBID == 1169 && this.bingNo == 1 && this.DieaNo == 1) || (item.ZBID == 1175 && this.bingNo == 2 && this.DieaNo == 1) || (item.ZBID == 1145 && this.bingNo == 1 && this.DieaNo == 2) || (item.ZBID == 1151&& this.bingNo == 2 && this.DieaNo == 2)) {
// 报告血糖控制率
this.autoUpControPre_q = item.ZXZ ? parseFloat(item.ZXZ).toFixed(1) : 0
this.autoUpControPre_qTbl = item.TBL ? parseFloat(item.TBL).toFixed(1) : 0
if (item2.ZBID == "1175" || item2.ZBID == "1151") {
obj.g1 = item2.ZXZ ? parseFloat(item2.ZXZ).toFixed(1) : 0
}
if (item2.ZBID == "1172" || item2.ZBID == "1160") {
obj.g2 = item2.ZXZ ? parseFloat(item2.ZXZ).toFixed(1) : 0
}
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
// 柱状图数据获取
if (item2.ZBID == "1167" || item2.ZBID == "1143") {
this.g_autoup_list.push(item2.ZXZ ? item2.ZXZ : 0)
}
if (item2.ZBID == "1175" || item2.ZBID == "1151") {
this.g_normal_list.push(item2.ZXZ ? item2.ZXZ : 0)
}
}
})
}).catch(err => {
console.log("--管理效果签理在签报错--");
})
// 1112 在签的高血压患者死亡人数 FWZL_012
// 1115 在签的糖尿病患者死亡人数 FWZL_015
// 签 此处只请求 高血压 住院人数 --- 签 高糖并用
commonMethod({
"themeId": 15,
"wd": JSON.stringify(wd2)
}).then(res => {
res.data.zbdic.forEach((item, index) => {
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 :
0
}
})
}).catch(err => {
console.log("--慢病签理在签签报错--");
})
// 签签 此处只请求 在签签的死亡人数 --- 签签 高糖并用
commonMethod({
"themeId": 36,
"wd": JSON.stringify(wd2)
}).then(res => {
res.data.content[0].zbxx.forEach((item, index) => {
if (item.ZBID == "1196") {
// 住院人数
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
}
})
}).catch(err => {
console.log("--管理效果签理在签报错--");
})
// 各类疾病病种请求 ===== 管
commonMethod({
"themeId": 36,
"wd": JSON.stringify(wd)
}).then(res => {
res.data.content[0].zbxx.forEach((item, index) => {
// hyper1_g:0,
if (item.ZBID == "1188") {
// 脑卒中粗发病率
this.hyper1_g = item.ZXZ
}
if (item.ZBID == "1191") {
// 脑卒中粗死亡率
this.hyper2_g = item.ZXZ
}
if (item.ZBID == "1193") {
// 心脑血管中粗死亡率
this.hyper3_g = item.ZXZ
}
if (item.ZBID == "1195") {
// 粗死亡率
this.hyper4_g = item.ZXZ
}
// 上面的是高血压 在此处糖尿病的数据和高血压在一个接口中获取
if (item.ZBID == "1197") {
// 糖尿病死亡 管
this.sweet_g = item.ZXZ
}
})
}).catch(err => {
console.log("--慢病管理在管报错--");
})
// 各类疾病病种请求 ===== 签
// 高血压的数据
commonMethod({
"themeId": 34,
"wd": JSON.stringify(wd2)
}).then(res => {
// console.log('管理效果')
res.data.content[0].zbxx.forEach((item, index) => {
// hyper1_g:0,
if (item.ZBID == "1188") {
// 脑卒中粗发病率
this.hyper1_q = item.ZXZ
}
if (item.ZBID == "1191") {
// 脑卒中粗死亡率
this.hyper2_q = item.ZXZ
}
if (item.ZBID == "1193") {
// 心脑血管中粗死亡率
this.hyper3_q = item.ZXZ
}
if (item.ZBID == "1195") {
// 粗死亡率
this.hyper4_q = item.ZXZ
}
// 上面的是高血压 在此处糖尿病的数据和高血压在一个接口中获取
if (item.CODE == "GLXG_056") {
// 糖尿病死亡 签
this.sweet_q = res.data.content[0].zbxx[index].ZXZ
}
})
}).catch(err => {
console.log("--慢病管理在管报错--");
})
this.listArray = []
this.listArray2 = []
this.listArrayFinal = []
// 点击市区之后,改变入参
if (this.pageLevel === 'qj') {
console.log('第一次点击事件执行 区-->城镇');
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"
}]
// 签约数据 入参
wd2 = [{
"name": "YWSJ",
"type": "2",
"startTime": '',
"endTime": this.cxsj,
"compare": "between",
}, {
"name": "XZQH",
"value": this._xzqh,
"type": "1"
},
{
"name": "QYBZ",
"value": "1",
"type": "1"
}, {
"name": "YLJGDM",
"value": this._yljgdm,
"type": "1"
}
]
placeparam = {
"themeId": diastype,
"wd": JSON.stringify(wd),
"group": this._group,
}
placeparam2 = {
"themeId": diastype,
"wd": JSON.stringify(wd2),
"group": this._group,
}
} else if (this.pageLevel === 'sq') {
this._group = 'YWSJ'
console.log('第二次点击:展示区镇 时间数据');
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"
}]
// 签约数据 入参
wd2 = [{
"name": "YWSJ",
"type": "2",
"startTime": '',
"endTime": this.cxsj,
"compare": "between",
}, {
"name": "XZQH",
"value": this._xzqh,
"type": "1"
},
{
"name": "QYBZ",
"value": "1",
"type": "1"
}, {
"name": "YLJGDM",
"value": this._yljgdm,
"type": "1"
}
]
placeparam = {
"themeId": diastype,
"wd": JSON.stringify(wd),
"group": this._group,
}
placeparam2 = {
"themeId": diastype,
"wd": JSON.stringify(wd2),
"group": this._group,
}
}
// 右下角列表 + 图表 (数据共用)
// 管数据请求 --- 右下角列表
// XZQH --- YLJGDM
commonMethod(placeparam).then(res => {
res.data.content.forEach((item, index) => {
let obj = {
name: 'v',
g0: '0',
g1: '0',
g2: '0',
AreaCode: '0'
}
if (item.YWSJ) {
obj.name = parseInt(item.YWSJ.substring(6, 7))
} else {
if (item.XZQH_TEXT) {
obj.name = item.XZQH_TEXT
obj.AreaCode = item.XZQH ? item.XZQH : ''
} else if (item.YLJGDM_EX2) {
obj.name = item.YLJGDM_EX2
obj.AreaCode = item.YLJGDM ? item.YLJGDM : ''
} else {
obj.name = "地名缺失"
return false
}
}
item.zbxx.forEach((item2, index2) => {
if (this.selectID == 1) {
if (item2.ZBID == "1167" || item2.ZBID == "1143") {
obj.g0 = item2.ZXZ ? parseFloat(item2.ZXZ).toFixed(1) : 0
}
if (item2.ZBID == "1169" || item2.ZBID == "1145") {
obj.g1 = item2.ZXZ ? parseFloat(item2.ZXZ).toFixed(1) : 0
}
if (item2.ZBID == "1166" || item2.ZBID == "1142") {
obj.g2 = item2.ZXZ ? parseFloat(item2.ZXZ).toFixed(1) : 0
}
// 柱状图数据获取
if (item2.ZBID == "1170" || item2.ZBID == "1143") {
// 管理/签约人群自动上传血压合格人数
this.g_autoup_list.push(item2.ZXZ ? item2.ZXZ : 0)
}
if (item2.ZBID == "1176" || item2.ZBID == "1149") {
// 去年管理/签约人群自动上传血压合格人数
this.g_normal_list.push(item2.ZXZ ? item2.ZXZ : 0)
}
if (item2.ZBID == "1170" || item2.ZBID == "1146") {
this.g_personAutoNum.push(item2.ZXZ ? parseFloat(item2.ZXZ).toFixed(1) : 0)
}
// 去年的 规范管理 合格人数 数据 TBZ
if (item2.ZBID == "1170" || item2.ZBID == "1146") {
this.g_personAutoNumTbl.push(item2.TBZ ? parseFloat(item2.TBZ).toFixed(1) : 0)
}
// if (item2.ZBID == "1169" || item2.ZBID == "1145") {
// this.g_normal_list.push(item2.ZXZ ? item2.ZXZ : 0)
// }
} else {
if (item2.ZBID == "1180" || item2.ZBID == "1182") {
obj.g0 = item2.ZXZ ? parseFloat(item2.ZXZ).toFixed(1) : 0
}
if (item2.ZBID == "1175" || item2.ZBID == "1151") {
obj.g1 = item2.ZXZ ? parseFloat(item2.ZXZ).toFixed(1) : 0
}
if (item2.ZBID == "1172" || item2.ZBID == "1160") {
obj.g2 = item2.ZXZ ? parseFloat(item2.ZXZ).toFixed(1) : 0
}
// 柱状图数据获取
if (item2.ZBID == "1167" || item2.ZBID == "1143") {
this.g_autoup_list.push(item2.ZXZ ? item2.ZXZ : 0)
}
if (item2.ZBID == "1175" || item2.ZBID == "1151") {
this.g_normal_list.push(item2.ZXZ ? item2.ZXZ : 0)
}
}
})
this.listArray.push(obj)
this.listArray.push(obj)
})
// 签数据请求--- 右下角列表 + 图表 (数据共用)
......@@ -1560,7 +1191,7 @@
}
item.zbxx.forEach((item2, index2) => {
// IBM 数据赋值
if (this.selectID == 1) {
if (this.rqType === 'gfgl') {
if (item2.ZBID == "1167" || item2.ZBID == "1143") {
obj.q0 = item2.ZXZ ? parseFloat(item2.ZXZ).toFixed(1) : 0
}
......@@ -1709,14 +1340,15 @@
this.option2.xAxis[0].data = ListPlace
let legendMy = []
if (this.DieaNo == 1) {
if (this.mbType === 'gxy') {
// 高血压板块
if (this.groupNo == 1 && this.bingNo == 2) {
if (this.groupType === 'org' && this.rqType === 'glrq') {
legendMy = ['管理/签约人群自动上传血压合格人数', '去年管理/签约人群自动上传血压合格人数', '管·自动上传血压控制率/去年', '签·自动上传血压控制率/去年',
'管·报告血压控制率/去年', '签·报告血压控制率/去年', '管·BMI异常比/去年', '签·BMI异常比/去年'
]
this.option2.legend.data = legendMy
this.option2.series = [{
this.option2.series = [
{
name: '管理/签约人群自动上传血压合格人数',
type: 'bar',
stack: '1',
......@@ -2032,15 +1664,15 @@
data: Listtemp6
}
]
}
else {
} else {
legendMy = ['管理/签约人群自动上传血压合格人数', '去年管理/签约人群自动上传血压合格人数', '管·自动上传血压控制率/去年', '签·自动上传血压控制率/去年',
'管·报告血压控制率/去年', '签·报告血压控制率/去年'
]
this.option2.legend.data = legendMy
this.option2.series = [{
this.option2.series = [
{
name: '管理/签约人群自动上传血压合格人数',
type: 'bar',
stack: '1',
......@@ -2284,12 +1916,13 @@
}
} else {
if (this.groupNo == 1 && this.bingNo == 2) {
if (this.groupType === 'org' && this.rqType === 'glrq') {
legendMy = ['管理/签约人群自动上传血压合格人数', '去年管理/签约人群自动上传血压合格人数', '管·自动上传血压控制率/去年', '签·自动上传血压控制率/去年',
'管·报告血压控制率/去年', '签·报告血压控制率/去年', '管·BMI异常比/去年', '签·BMI异常比/去年'
]
this.option2.legend.data = legendMy
this.option2.series = [{
this.option2.series = [
{
name: '管理/签约人群自动上传血压合格人数',
type: 'bar',
stack: '1',
......@@ -2591,29 +2224,138 @@
},
{
offset: 0.5,
color: '#EEC55B'
color: '#EEC55B'
},
{
offset: 1,
color: '#EEC55B'
}
]
)
}
},
z: 11,
data: Listtemp6
}
]
} else {
legendMy = ['管理/签约人群自动上传血压合格人数', '去年管理/签约人群自动上传血压合格人数', '管·自动上传血压控制率/去年', '签·自动上传血压控制率/去年',
'管·报告血压控制率/去年', '签·报告血压控制率/去年'
]
this.option2.legend.data = legendMy
this.option2.series = [
{
name: '管理/签约人群自动上传血压合格人数',
type: 'bar',
stack: '1',
itemStyle: {
normal: {
color: new this.$echarts.graphic.LinearGradient(
0, 0, 0, 1,
[{
offset: 0,
color: '#115D5D'
},
{
offset: 0.5,
color: '#115D5D'
},
{
offset: 0.5,
color: '#4093E9'
},
{
offset: 1,
color: '#4093E9'
}
]
)
}
},
barWidth: null,
data: this.g_autoup_list
},
{
name: '管理/签约人群自动上传血压合格人数',
type: 'line',
stack: "1",
barWidth: null,
itemStyle: {
normal: {
color: '#4093E9'
}
},
data: this.q_autoup_list
},
{
name: '去年管理/签约人群自动上传血压合格人数',
type: 'bar',
stack: '1',
itemStyle: {
normal: {
color: new this.$echarts.graphic.LinearGradient(
0, 0, 0, 1,
[{
offset: 0,
color: '#115D5D'
},
{
offset: 0.5,
color: '#115D5D'
},
{
offset: 0.5,
color: '#099023'
},
{
offset: 1,
color: '#099023'
}
]
)
}
},
barWidth: null,
data: this.g_normal_list
},
{
name: '去年管理/签约人群自动上传血压合格人数',
type: 'line',
barWidth: 8,
itemStyle: {
normal: {
color: new this.$echarts.graphic.LinearGradient(
0, 0, 0, 1,
[{
offset: 0,
color: '#115D5D'
},
{
offset: 0.5,
color: '#115D5D'
},
{
offset: 0.5,
color: '#099023'
},
{
offset: 1,
color: '#EEC55B'
color: '#099023'
}
]
)
}
},
z: 11,
data: Listtemp6
}
]
} else {
legendMy = ['管理/签约人群自动上传血压合格人数', '去年管理/签约人群自动上传血压合格人数', '管·自动上传血压控制率/去年', '签·自动上传血压控制率/去年',
'管·报告血压控制率/去年', '签·报告血压控制率/去年'
]
this.option2.legend.data = legendMy
this.option2.series = [{
name: '管理/签约人群自动上传血压合格人数',
type: 'bar',
stack: '1',
stack: "1",
data: this.q_normal_list
},
{
name: '管·自动上传血压控制率/去年',
type: 'line',
yAxisIndex: 1,
symbol: 'circle',
symbolSize: 5,
smooth: 0.1,
itemStyle: {
normal: {
color: new this.$echarts.graphic.LinearGradient(
......@@ -2628,35 +2370,26 @@
},
{
offset: 0.5,
color: '#4093E9'
color: '#995D13'
},
{
offset: 1,
color: '#4093E9'
color: '#995D13'
}
]
)
}
},
barWidth: null,
data: this.g_autoup_list
z: 6,
data: Listtemp1
},
{
name: '管理/签约人群自动上传血压合格人数',
name: '签·自动上传血压控制率/去年',
type: 'line',
stack: "1",
barWidth: null,
itemStyle: {
normal: {
color: '#4093E9'
}
},
data: this.q_autoup_list
},
{
name: '去年管理/签约人群自动上传血压合格人数',
type: 'bar',
stack: '1',
smooth: true,
yAxisIndex: 1,
symbol: 'circle',
symbolSize: 6,
itemStyle: {
normal: {
color: new this.$echarts.graphic.LinearGradient(
......@@ -2671,23 +2404,26 @@
},
{
offset: 0.5,
color: '#099023'
color: '#1A7B32'
},
{
offset: 1,
color: '#099023'
color: '#1A7B32'
}
]
)
}
},
barWidth: null,
data: this.g_normal_list
z: 11,
data: Listtemp3
},
{
name: '去年管理/签约人群自动上传血压合格人数',
name: '管·报告血压控制率/去年',
type: 'line',
barWidth: 8,
smooth: true,
yAxisIndex: 1,
symbol: 'circle',
symbolSize: 6,
itemStyle: {
normal: {
color: new this.$echarts.graphic.LinearGradient(
......@@ -2702,26 +2438,26 @@
},
{
offset: 0.5,
color: '#099023'
color: '#65FD82'
},
{
offset: 1,
color: '#099023'
color: '#65FD82'
}
]
)
}
},
stack: "1",
data: this.q_normal_list
z: 12,
data: Listtemp2
},
{
name: '管·自动上传血压控制率/去年',
name: '签·报告血压控制率/去年',
type: 'line',
smooth: true,
yAxisIndex: 1,
symbol: 'circle',
symbolSize: 5,
smooth: 0.1,
symbolSize: 6,
itemStyle: {
normal: {
color: new this.$echarts.graphic.LinearGradient(
......@@ -2736,152 +2472,359 @@
},
{
offset: 0.5,
color: '#995D13'
color: '#F78387'
},
{
offset: 1,
color: '#995D13'
color: '#F78387'
}
]
)
}
},
z: 11,
data: Listtemp4
}
]
}
}
this.$echarts.init(document.getElementById("pag2bar")).setOption(this.option2, true)
}).catch(err => {
console.log("地址列表报错");
})
}).catch(err => {
console.log("地址列表报错");
})
},
pageHeadData() {
let _this = this
// 管数据 入参
let wd = [{
"name": "YWSJ",
"endTime": _this.cxsj,
"type": "2",
"startTime": '',
"compare": "between",
},
{
"name": "XZQH",
"value": this._xzqh,
"type": "1"
}, {
"name": "YLJGDM",
"value": this._yljgdm,
"type": "1"
}
]
// 签数据 入参
let wd2 = [{
"name": "YWSJ",
"endTime": _this.cxsj,
"type": "2",
"startTime": '',
"compare": "between",
},
{
"name": "XZQH",
"value": this._xzqh,
"type": "1"
},
{
"name": "QYBZ",
"value": "1",
"type": "1"
}, {
"name": "YLJGDM",
"value": this._yljgdm,
"type": "1"
}
]
//var zbcode="MBZFX_016";单独读取
let param = {
"themeId": this.themeId,
"wd": JSON.stringify(wd)
}
let param2 = {
"themeId": this.themeId,
"wd": JSON.stringify(wd2)
}
// =================================管部份 请求 ======================================
// 请求 管的 自动上传血压控制率 与 报告血压控制率 高糖并用
commonMethod(param).then(res => {
if (res.data.content.length == 0) {
this.aualperNum_g = 0
this.aualperNum_gNum = 0
this.autoUpControPre_g = 0
this.autoUpControPre_gTbl = 0
this.ReportPre_g = 0
this.ReportPre_gTbl = 0
this.hyper5_g = 0
this.hyper5_gTbl = 0
this.hyper5_g = 0
this.hyper5_gTbl = 0
this.deadNum_g = 0
this.deadNum_gTbl = 0
this.ReportPre_q = 0
this.ReportPre_qTbl = 0
this.aualperNum_q = 0
this.aualperNum_qNum = 0
this.autoUpControPre_q = 0
this.autoUpControPre_qTbl = 0
this.hyper5_q = 0
this.hyper5_qTbl = 0
this.hospital_q = 0
this.deadNum_q = 0
this.hyper1_g = 0
this.hyper2_g = 0
this.hyper3_g = 0
this.hyper4_g = 0
this.hyper5_g = 0
this.sweet_g = 0
return false
}
res.data.content[0].zbxx.forEach(item => {
// 高血压 & 糖尿病
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')) {
// 本季血压合格
this.aualperNum_g = item.ZXZ
this.aualperNum_gNum = item.TBL ? item.TBL : 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
}
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
}
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
}
// 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
}
})
}).catch(err => {
console.log("--慢病管理在管报错--");
})
// 1112 在管的高血压患者死亡人数 FWZL_012
// 1115 在管的糖尿病患者死亡人数 FWZL_015
// 管 此处只请求 高血压 住院人数 --- 管 高糖并用
commonMethod({
"themeId": 15,
"wd": JSON.stringify(wd)
}).then(res => {
res.data.zbdic.forEach((item, index) => {
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
}
})
}).catch(err => {
console.log("--慢病管理在管报错--");
})
// 管 此处只请求 在管的死亡人数 --- 管 高糖并用
commonMethod({
"themeId": 36,
"wd": JSON.stringify(wd)
}).then(res => {
res.data.content[0].zbxx.forEach((item, index) => {
if (item.ZBID == "1196") {
// 住院人数
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
}
]
)
})
}).catch(err => {
console.log("--慢病管理在管报错--");
})
// ================================= 签 部份 请求 ======================================
// 请求 签的 自动上传血压控制率 与 报告血压控制率 高糖并用
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
}
},
z: 6,
data: Listtemp1
},
{
name: '签·自动上传血压控制率/去年',
type: 'line',
smooth: true,
yAxisIndex: 1,
symbol: 'circle',
symbolSize: 6,
itemStyle: {
normal: {
color: new this.$echarts.graphic.LinearGradient(
0, 0, 0, 1,
[{
offset: 0,
color: '#115D5D'
},
{
offset: 0.5,
color: '#115D5D'
},
{
offset: 0.5,
color: '#1A7B32'
},
{
offset: 1,
color: '#1A7B32'
// 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')) {
// 本季血糖合格
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
}
},
z: 11,
data: Listtemp3
},
{
name: '管·报告血压控制率/去年',
type: 'line',
smooth: true,
yAxisIndex: 1,
symbol: 'circle',
symbolSize: 6,
itemStyle: {
normal: {
color: new this.$echarts.graphic.LinearGradient(
0, 0, 0, 1,
[{
offset: 0,
color: '#115D5D'
},
{
offset: 0.5,
color: '#115D5D'
},
{
offset: 0.5,
color: '#65FD82'
},
{
offset: 1,
color: '#65FD82'
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
}
]
)
})
}).catch(err => {
console.log("--管理效果签理在签报错--");
})
// 1112 在签的高血压患者死亡人数 FWZL_012
// 1115 在签的糖尿病患者死亡人数 FWZL_015
// 签 此处只请求 高血压 住院人数 --- 签 高糖并用
commonMethod({
"themeId": 15,
"wd": JSON.stringify(wd2)
}).then(res => {
res.data.zbdic.forEach((item, index) => {
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 :
0
}
},
z: 12,
data: Listtemp2
},
{
name: '签·报告血压控制率/去年',
type: 'line',
smooth: true,
yAxisIndex: 1,
symbol: 'circle',
symbolSize: 6,
itemStyle: {
normal: {
color: new this.$echarts.graphic.LinearGradient(
0, 0, 0, 1,
[{
offset: 0,
color: '#115D5D'
},
{
offset: 0.5,
color: '#115D5D'
},
{
offset: 0.5,
color: '#F78387'
},
{
offset: 1,
color: '#F78387'
})
}).catch(err => {
console.log("--慢病签理在签签报错--");
})
// 签签 此处只请求 在签签的死亡人数 --- 签签 高糖并用
commonMethod({
"themeId": 36,
"wd": JSON.stringify(wd2)
}).then(res => {
res.data.content[0].zbxx.forEach((item, index) => {
if (item.ZBID == "1196") {
// 住院人数
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
}
]
)
})
}).catch(err => {
console.log("--管理效果签理在签报错--");
})
// 各类疾病病种请求 ===== 管
commonMethod({
"themeId": 36,
"wd": JSON.stringify(wd)
}).then(res => {
res.data.content[0].zbxx.forEach((item, index) => {
// hyper1_g:0,
if (item.ZBID == "1188") {
// 脑卒中粗发病率
this.hyper1_g = item.ZXZ
}
},
z: 11,
data: Listtemp4
if (item.ZBID == "1191") {
// 脑卒中粗死亡率
this.hyper2_g = item.ZXZ
}
]
if (item.ZBID == "1193") {
// 心脑血管中粗死亡率
this.hyper3_g = item.ZXZ
}
if (item.ZBID == "1195") {
// 粗死亡率
this.hyper4_g = item.ZXZ
}
// 上面的是高血压 在此处糖尿病的数据和高血压在一个接口中获取
if (item.ZBID == "1197") {
// 糖尿病死亡 管
this.sweet_g = item.ZXZ
}
})
}).catch(err => {
console.log("--慢病管理在管报错--");
})
// this.option2.legend.data = legendMy
// legendMy.forEach((item, index) => {
// _this.option2.series[index].name = item
// })
//
// 各类疾病病种请求 ===== 签
// 高血压的数据
commonMethod({
"themeId": 34,
"wd": JSON.stringify(wd2)
}).then(res => {
// console.log('管理效果')
res.data.content[0].zbxx.forEach((item, index) => {
// hyper1_g:0,
if (item.ZBID == "1188") {
// 脑卒中粗发病率
this.hyper1_q = item.ZXZ
}
if (item.ZBID == "1191") {
// 脑卒中粗死亡率
this.hyper2_q = item.ZXZ
}
if (item.ZBID == "1193") {
// 心脑血管中粗死亡率
this.hyper3_q = item.ZXZ
}
if (item.ZBID == "1195") {
// 粗死亡率
this.hyper4_q = item.ZXZ
}
this.$echarts.init(document.getElementById("pag2bar")).setOption(this.option2, true)
// 上面的是高血压 在此处糖尿病的数据和高血压在一个接口中获取
if (item.CODE == "GLXG_056") {
// 糖尿病死亡 签
this.sweet_q = res.data.content[0].zbxx[index].ZXZ
}
}).catch(err => {
console.log("地址列表报错");
})
}).catch(err => {
console.log("地址列表报错");
console.log("--慢病管理在管报错--");
})
},
DieaChange(Num) {
pageBottomData(){
},
mblxChange(mblx) {
this.DieaNo = Num
if (Num == 1) {
this.mbType = mblx
if (mblx === 'gxy') {
this.themeId = 28
this.homeinit(this.themeId)
this.homeinit()
this.bleedtype = "血压"
this.pagedisname = '高血压'
} else {
this.themeId = 33
this.homeinit(this.themeId)
this.homeinit()
this.bleedtype = "血糖"
this.pagedisname = '糖尿病'
this.change_age(6)
......@@ -2906,7 +2849,7 @@
"type": "1"
}]
let paramnl = {
"themeId": this.agestructId,
"themeId": '36',
"wd": JSON.stringify(wdnl),
"group": "NL"
}
......@@ -3036,7 +2979,7 @@
"type": "1"
}]
let paramnl2 = {
"themeId": this.agestructId,
"themeId": '36',
"wd": JSON.stringify(wdnl2),
"group": "NL"
}
......@@ -3183,33 +3126,28 @@
this._xzqh = ""
this._group = "XZQH"
this.pageLevel = 'sj'
} else if ('area' === this.userRole) {//区角色
this._xzqh = sessionStorage.getItem("organizcode")
this._group = "YLJGDM"
this.pageLevel = 'qj'
// 点击区 -- 展示城镇信息
this.communshow = true
this.tablename = '社区'
this.thname = '医院'
this.arname = '社区'
this.areaname = sessionStorage.getItem("organizcodeName")
} else if ('hospital' === this.userRole) {//社区角色
this._xzqh = sessionStorage.getItem("organizcode")
this._group = "YWSJ"
this.pageLevel = 'sq'
this.communshow = false
this.tablename = "社区"
this.thname = "医院"
this.arname = '社区'
this.areaname = sessionStorage.getItem("organizcodeName")
this.hospitalname = sessionStorage.getItem("organizcodeName")
}
this.homeinit(this.themeId)
this.homeinit()
this.change_age(1)
const obj = setInterval(() => {
const dom = document.getElementById("rightTop")
if (dom) {
......@@ -3228,7 +3166,6 @@
ageObj.age = item.Age
ageObj.g_age = item.value
if (this.Q_ageList.length > 0) {
ageObj.q_age = this.Q_ageList[index].value ? this.Q_ageList[index].value : 0
}
......@@ -3294,7 +3231,7 @@
height: 320px;
}
.area>>>.el-input--mini .el-input__inner {
.area >>> .el-input--mini .el-input__inner {
padding: 0;
text-align: center;
color: #FFF;
......@@ -3302,21 +3239,31 @@
background-color: #409EFF;
}
.area>>>.el-input--mini .el-input__inner::-webkit-input-placeholder {
.area >>> .el-input--mini .el-input__inner::-webkit-input-placeholder {
color: #FFF;
}
.area>>>.el-input--mini {
.area >>> .el-input--mini {
width: 60px;
margin-left: 8px;
}
.area>>>.el-input__icon.el-icon-date {
.area >>> .el-input__icon.el-icon-date {
display: none
}
.area>>>.el-input__icon {
.area >>> .el-input__icon {
display: none
}
.uplib{width: 100%;height: 80px;position:absolute;top:76px;right:0;left:0;background:rgba(51, 51, 51, 0.9);padding:10px}
.uplib {
width: 100%;
height: 80px;
position: absolute;
top: 76px;
right: 0;
left: 0;
background: rgba(51, 51, 51, 0.9);
padding: 10px
}
</style>
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