Commit e726e1b4 by lihu541

参数,方法修改

parent 18d3e5a0
...@@ -126,7 +126,7 @@ ...@@ -126,7 +126,7 @@
.card5title span{padding: 0 5px; color: #0097FD;} .card5title span{padding: 0 5px; color: #0097FD;}
.card5title span.myclk{color:#42CCFF} .card5title span.myclk{color:#42CCFF}
.card5title span.line{color:#B3BFD2} .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;} .card5main2{margin-top: 30px; height: 270px; overflow: hidden;}
.table01{ color: #B3BFD2;} .table01{ color: #B3BFD2;}
.table01 ::-webkit-scrollbar { .table01 ::-webkit-scrollbar {
......
...@@ -252,7 +252,6 @@ ...@@ -252,7 +252,6 @@
themeID2: 15, // 慢病高血压 themeID2: 15, // 慢病高血压
themeID3: 21, // 慢病管理 糖尿病 themeID3: 21, // 慢病管理 糖尿病
themeID4: 12, // 慢病管理 肿瘤 themeID4: 12, // 慢病管理 肿瘤
pageNo: 1,
mbType: 'gxy', mbType: 'gxy',
groupNo: 'org', groupNo: 'org',
fxType: 'sf', fxType: 'sf',
......
...@@ -4,18 +4,19 @@ ...@@ -4,18 +4,19 @@
<div class="nav" @click="exitFn"><img src="../../assets/icon_nav_cell.png"></div> <div class="nav" @click="exitFn"><img src="../../assets/icon_nav_cell.png"></div>
<div class="title"> <div class="title">
<div class="tp">上海市疾病预防控制管理服务云平台(慢性病防治)</div> <div class="tp">上海市疾病预防控制管理服务云平台(慢性病防治)</div>
<p>{{areaname}}</p> <p>{{areaname + hospitalname}}</p>
</div> </div>
<div class="area"> <div class="area">
<el-button size="mini" type="primary" @click="CityGetBack()" v-if="this.pageLevel != 'sj'">返回</el-button> <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-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 class="name"><i class="el-icon-s-custom el-icon--left"></i>{{userinfo.userName}} 截止:{{cxsj}}</div>
</div> </div>
</div> </div>
<!--第一个模块--> <!--第一个模块-->
<div class="card-dark card-01" v-if="DieaNo == 1"> <div class="card-dark card-01" v-if="mbType === 'gxy'">
<div class="card1-mod" v-show="pageNo==2"> <div class="card1-mod">
<h2>管·本季血压合格人数</h2> <h2>管·本季血压合格人数</h2>
<div class="cmtitle"> <div class="cmtitle">
<span>{{(parseFloat(aualperNum_g?aualperNum_g:0)/10000).toFixed(1)}}</span> <span>{{(parseFloat(aualperNum_g?aualperNum_g:0)/10000).toFixed(1)}}</span>
...@@ -25,13 +26,17 @@ ...@@ -25,13 +26,17 @@
<span class="el-icon-bottom">&nbsp;</span> <span class="el-icon-bottom">&nbsp;</span>
</div> </div>
<div class="cmtline2"> <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(autoUpControPre_g).toFixed(1)}}% <em></em>{{formatparam(autoUpControPre_gTbl)}}% <i
<p><span>{{parseFloat(ReportPre_g).toFixed(1)}}% <em></em>{{formatparam(ReportPre_gTbl)}}% <i class="el-icon-bottom color3">&nbsp;</i></span>报告血压控制率</p> 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>{{parseFloat(ReportPre_g).toFixed(1)}}% <em></em>{{formatparam(ReportPre_gTbl)}}% <i
<p><span>{{formatnum(deadNum_g)}}<em></em>{{formatparam(deadNum_gTbl)}}% <i class="el-icon-bottom color3">&nbsp;</i></span>死亡人数</p> 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> </div>
<div class="card1-mod" v-show="pageNo==2"> <div class="card1-mod">
<h2>签·本季血压合格人数</h2> <h2>签·本季血压合格人数</h2>
<div class="cmtitle"> <div class="cmtitle">
<span>{{(parseFloat(aualperNum_q?aualperNum_q:0)/10000).toFixed(1)}}</span> <span>{{(parseFloat(aualperNum_q?aualperNum_q:0)/10000).toFixed(1)}}</span>
...@@ -41,15 +46,19 @@ ...@@ -41,15 +46,19 @@
<span class="el-icon-bottom">&nbsp;</span> <span class="el-icon-bottom">&nbsp;</span>
</div> </div>
<div class="cmtline2"> <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(autoUpControPre_q).toFixed(1)}}% <em></em>{{formatparam(autoUpControPre_qTbl)}}% <i
<p><span>{{parseFloat(ReportPre_q).toFixed(1)}}% <em></em>{{formatparam(ReportPre_qTbl)}}% <i class="el-icon-bottom color3">&nbsp;</i></span>报告血压控制率</p> 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>{{parseFloat(ReportPre_q).toFixed(1)}}% <em></em>{{formatparam(ReportPre_qTbl)}}% <i
<p><span>{{formatnum(deadNum_q)}}<em></em>{{formatparam(deadNum_qTbl)}}% <i class="el-icon-bottom color3">&nbsp;</i></span>死亡人数</p> 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>
</div> </div>
<div class="card-dark card-01" v-if="DieaNo == 2"> <div class="card-dark card-01" v-if="mbType === 'tnb'">
<div class="card1-mod" v-show="pageNo==2"> <div class="card1-mod">
<h2>管·本季血糖合格人数</h2> <h2>管·本季血糖合格人数</h2>
<div class="cmtitle"> <div class="cmtitle">
<span>{{(parseFloat(aualperNum_g?aualperNum_g:0)/10000).toFixed(1)}}</span> <span>{{(parseFloat(aualperNum_g?aualperNum_g:0)/10000).toFixed(1)}}</span>
...@@ -59,13 +68,17 @@ ...@@ -59,13 +68,17 @@
<span class="el-icon-bottom">&nbsp;</span> <span class="el-icon-bottom">&nbsp;</span>
</div> </div>
<div class="cmtline2"> <div class="cmtline2">
<p><span>{{parseFloat(autoUpControPre_g).toFixed(1)}}% <em></em>{{parseFloat(autoUpControPre_gTbl).toFixed(1)}}%</span>自动上传血糖控制率</p> <p><span>{{parseFloat(autoUpControPre_g).toFixed(1)}}% <em></em>{{parseFloat(autoUpControPre_gTbl).toFixed(1)}}%</span>自动上传血糖控制率
<p><span>{{parseFloat(ReportPre_g).toFixed(1)}}% <em></em>{{parseFloat(ReportPre_gTbl).toFixed(1)}}%</span>报告血糖控制率</p> </p>
<p><span>{{parseFloat(hospital_g).toFixed(1)}}<em></em>{{parseFloat(hospital_gTbl).toFixed(1)}}%</span>住院人数</p> <p><span>{{parseFloat(ReportPre_g).toFixed(1)}}% <em></em>{{parseFloat(ReportPre_gTbl).toFixed(1)}}%</span>报告血糖控制率
<p><span>{{parseFloat(deadNum_g).toFixed(1)}}<em></em>{{parseFloat(deadNum_gTbl).toFixed(1)}}%</span>死亡人数</p> </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> </div>
<div class="card1-mod" v-show="pageNo==2"> <div class="card1-mod">
<h2>签·本季血糖合格人数</h2> <h2>签·本季血糖合格人数</h2>
<div class="cmtitle"> <div class="cmtitle">
<span>{{(parseFloat(aualperNum_q?aualperNum_q:0)/10000).toFixed(1)}}</span> <span>{{(parseFloat(aualperNum_q?aualperNum_q:0)/10000).toFixed(1)}}</span>
...@@ -75,20 +88,25 @@ ...@@ -75,20 +88,25 @@
<span class="el-icon-bottom">&nbsp;</span> <span class="el-icon-bottom">&nbsp;</span>
</div> </div>
<div class="cmtline2"> <div class="cmtline2">
<p><span>{{parseFloat(autoUpControPre_q).toFixed(1)}}% <em></em>{{parseFloat(autoUpControPre_qTbl).toFixed(1)}}%</span>自动上传血糖控制率</p> <p><span>{{parseFloat(autoUpControPre_q).toFixed(1)}}% <em></em>{{parseFloat(autoUpControPre_qTbl).toFixed(1)}}%</span>自动上传血糖控制率
<p><span>{{parseFloat(ReportPre_q).toFixed(1)}}% <em></em>{{parseFloat(ReportPre_qTbl).toFixed(1)}}%</span>报告血糖控制率</p> </p>
<p><span>{{parseFloat(hospital_q).toFixed(1)}}<em></em>{{parseFloat(hospital_qTbl).toFixed(1)}}%</span>住院人数</p> <p><span>{{parseFloat(ReportPre_q).toFixed(1)}}% <em></em>{{parseFloat(ReportPre_qTbl).toFixed(1)}}%</span>报告血糖控制率
<p><span>{{parseFloat(deadNum_q).toFixed(1)}} <em></em>{{parseFloat(deadNum_qTbl).toFixed(1)}}%</span>死亡人数</p> </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>
</div> </div>
<div class="card-dark card-02"> <div class="card-dark card-02">
<div class="dotline" v-show="pageNo==2"></div> <div class="dotline"></div>
<div class="card2-mod" v-show="pageNo<5"> <div class="card2-mod">
<div class="modtitle2"> <div class="modtitle2">
<span @click="DieaChange(1)" :class="DieaNo==1?'myclk':''">高血压</span>|<span @click="DieaChange(2)" <span @click="mblxChange('gxy')" :class="mbType === 'gxy' ?'myclk':''">高血压</span>|<span
:class="DieaNo==2?'myclk':''">糖尿病</span></div> @click="mblxChange('tnb')"
<div v-show="pageNo==2" class="page-left-top2"> :class="mbType === 'tnb'?'myclk':''">糖尿病</span></div>
<div class="page-left-top2">
<table class="table02" width="100%" border="0"> <table class="table02" width="100%" border="0">
<tr> <tr>
<td width="55%">&nbsp;</td> <td width="55%">&nbsp;</td>
...@@ -96,41 +114,47 @@ ...@@ -96,41 +114,47 @@
<td width="5%">&nbsp;</td> <td width="5%">&nbsp;</td>
</tr> </tr>
<!-- @click="change_age(1)" --> <!-- @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="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> <td width="5%">&nbsp;</td>
</tr> </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="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> <td width="5%">&nbsp;</td>
</tr> </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="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> <td width="5%">&nbsp;</td>
</tr> </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="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> <td width="5%">&nbsp;</td>
</tr> </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="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> <td width="5%">&nbsp;</td>
</tr> </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="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> <td width="5%">&nbsp;</td>
</tr> </tr>
</table> </table>
</div> </div>
</div> </div>
<div class="card2-mod" v-show="pageNo==1 || pageNo==2"> <div class="card2-mod">
<div class="modtitle2">年龄结构</div> <div class="modtitle2">年龄结构</div>
<div id="rightTop"></div> <div id="rightTop"></div>
</div> </div>
...@@ -147,12 +171,14 @@ ...@@ -147,12 +171,14 @@
</div> </div>
<div class="card-dark card-04"> <div class="card-dark card-04">
<div class="card3title1"> <div class="card3title1">
<span @click="groupChange(1)" :class="groupNo==1?'myclk':''" v-if="communshow">{{arname}}</span> <a v-if="communshow">|</a> <span @click="groupChange('org')" :class="groupType === 'org' ?'myclk':''" v-if="communshow">{{arname}}</span>
<span @click="groupChange(2)" :class="groupNo==2?'myclk':''">时间</span> <a
v-if="communshow">|</a>
<span @click="groupChange('time')" :class="groupType === 'time' ?'myclk':''">时间</span>
</div> </div>
<div class="card3title2"> <div class="card3title2">
<span @click="bingChange(1)" :class="bingNo==1?'myclk':''">规范管理人群</span> | <span @click="rqlxChange('gfgl')" :class="rqType === 'gfgl'?'myclk':''">规范管理人群</span> |
<span @click="bingChange(2)" :class="bingNo==2?'myclk':''">管理人群</span> <span @click="rqlxChange('glrq')" :class="rqType === 'glrq'?'myclk':''">管理人群</span>
</div> </div>
<div class="card3main" id="pag2bar"></div> <div class="card3main" id="pag2bar"></div>
</div> </div>
...@@ -161,28 +187,28 @@ ...@@ -161,28 +187,28 @@
<div class="card5main"> <div class="card5main">
<table class="table01 table" width="100%" border="0"> <table class="table01 table" width="100%" border="0">
<thead class="fixedThead"> <thead class="fixedThead">
<tr> <tr>
<th width="38"></th> <th width="38"></th>
<th width="48">{{thname}}</th> <th width="48">{{thname}}</th>
<th width="100" @click.stop="showtab(1)">管/签自动上传<br />{{bleedtype}}控制率·%</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(2)">管/签报告<br/>{{bleedtype}}控制率·%</th>
</tr> </tr>
</thead> </thead>
<div class="uplib" v-if="showtabnum == 1"> <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% 计算公式:<br>年内规范管理的{{pagedisname}}对象中末次自动上传{{bleedtype}}控制合格人数/已规范管理的{{pagedisname}}患者人数×100%
</div> </div>
<div class="uplib" v-if="showtabnum == 2"> <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% 计算公式:<br>年内规范管理的{{pagedisname}}对象中末次报告{{bleedtype}}控制合格人数/已规范管理的{{pagedisname}}患者人数×100%
</div> </div>
<tbody class="scrollTbody"> <tbody class="scrollTbody">
<tr v-for="(item, index) in listArrayFinal" :key="index"> <tr v-for="(item, index) in listArrayFinal" :key="index">
<td width="38"><span>{{index+1}}</span></td> <td width="38"><span>{{index+1}}</span></td>
<td width="48" @click="changecity(item.AreaCode,item.name)" class="underline">{{item.name}}</td> <td width="48" @click="changecity(item.AreaCode,item.name)" class="underline">{{item.name}}</td>
<td width="100">{{item.g1}}/{{item.q1}}</td> <td width="100">{{item.g1}}/{{item.q1}}</td>
<td width="100">{{item.g2}}/{{item.q2}}</td> <td width="100">{{item.g2}}/{{item.q2}}</td>
</tr> </tr>
</tbody> </tbody>
</table> </table>
</div> </div>
...@@ -195,6 +221,11 @@ ...@@ -195,6 +221,11 @@
commonMethod, commonMethod,
otherMethod otherMethod
} from '@/api/home.js' } from '@/api/home.js'
import {
getActiveNum,
checkIsNull
} from '@/utils/common.js'
export default { export default {
name: 'screenpage2', name: 'screenpage2',
data() { data() {
...@@ -203,19 +234,16 @@ ...@@ -203,19 +234,16 @@
thname: '各区', thname: '各区',
arname: '各区', arname: '各区',
communshow: true, communshow: true,
groupNo: 1, groupType: 'org',
bingNo: 1, rqType: 'gfgl',
pageNo: 2, mbType: 'gxy',
DieaNo: 1,
value2: '', value2: '',
g_personAutoNum: [], // 在管数据 --今年 签约人群自动上传血压/血糖合格人数 g_personAutoNum: [], // 在管数据 --今年 签约人群自动上传血压/血糖合格人数
g_personAutoNumTbl: [], //在管数据 -- 去年 人群自动上传血压血糖合格人数 g_personAutoNumTbl: [], //在管数据 -- 去年 人群自动上传血压血糖合格人数
q_personAutoNum: [], // 签 数据 -- 今年 签约 同上 q_personAutoNum: [], // 签 数据 -- 今年 签约 同上
q_personAutoNumTbl: [], // 签数据 -- 去年 同上 q_personAutoNumTbl: [], // 签数据 -- 去年 同上
themeId: 28, themeId: 28,
agestructId: 34,
bleedtype: '血压', bleedtype: '血压',
selectID: 1, // 用于切换 规范管理
// 管 左侧变量 // 管 左侧变量
aualperNum_g: 0, aualperNum_g: 0,
aualperNum_gNum: 0, // aualperNum_gNum: 0, //
...@@ -278,7 +306,7 @@ ...@@ -278,7 +306,7 @@
data_g_ycl_qn: [], data_g_ycl_qn: [],
data_q_ycl_qn: [], data_q_ycl_qn: [],
areaname: '', areaname: '',
hospitalname: '',
sel: '筛选', sel: '筛选',
lastStatus: {}, lastStatus: {},
PlaceCode: '', PlaceCode: '',
...@@ -327,19 +355,19 @@ ...@@ -327,19 +355,19 @@
data: ['84岁以上', '75-84岁', '65-74岁', '55-64岁', '45-54岁', '35-44岁'], data: ['84岁以上', '75-84岁', '65-74岁', '55-64岁', '45-54岁', '35-44岁'],
}], }],
series: [{ series: [{
name: '管理人群', name: '管理人群',
type: 'bar', type: 'bar',
stack: '总量', stack: '总量',
label: { label: {
normal: { normal: {
show: false, show: false,
fontSize: 10, fontSize: 10,
offset: [5, 0] offset: [5, 0]
} }
},
barWidth: 11,
data: [82.4, 10.7, 85.4, 10.2, 14.1, 18.81]
}, },
barWidth: 11,
data: [82.4, 10.7, 85.4, 10.2, 14.1, 18.81]
},
{ {
name: '签约人群(人)', name: '签约人群(人)',
type: 'bar', type: 'bar',
...@@ -361,7 +389,7 @@ ...@@ -361,7 +389,7 @@
position: [50, 50], position: [50, 50],
padding: 10, padding: 10,
trigger: 'axis', trigger: 'axis',
formatter: function(params) { formatter: function (params) {
if (params[0].seriesName == '管理/签约人群自动上传血压合格人数') { if (params[0].seriesName == '管理/签约人群自动上传血压合格人数') {
var res = '<ul class="f12 pl10 pr15">'; var res = '<ul class="f12 pl10 pr15">';
...@@ -429,7 +457,7 @@ ...@@ -429,7 +457,7 @@
rotate: 60, rotate: 60,
textStyle: { textStyle: {
fontSize: 10, fontSize: 10,
color: function(value, index) { color: function (value, index) {
return '#8393A9'; return '#8393A9';
} }
} }
...@@ -443,29 +471,29 @@ ...@@ -443,29 +471,29 @@
}, },
}], }],
yAxis: [{ yAxis: [{
type: 'value', type: 'value',
name: '数量(万)', name: '数量(万)',
min: 0, min: 0,
axisLabel: { axisLabel: {
textStyle: { textStyle: {
color: '#8393A9', color: '#8393A9',
type: 'solid' type: 'solid'
},
},
axisLine: {
show: true,
lineStyle: {
color: '#8393A9',
type: 'solid'
}
},
splitLine: {
show: false
}, },
axisTick: { },
show: true axisLine: {
show: true,
lineStyle: {
color: '#8393A9',
type: 'solid'
} }
}, },
splitLine: {
show: false
},
axisTick: {
show: true
}
},
{ {
type: 'value', type: 'value',
name: '%', name: '%',
...@@ -474,7 +502,7 @@ ...@@ -474,7 +502,7 @@
splitNumber: 5, splitNumber: 5,
axisLabel: { axisLabel: {
textStyle: { textStyle: {
color: function(value, index) { color: function (value, index) {
return '#747d8d'; return '#747d8d';
}, },
type: 'solid' type: 'solid'
...@@ -501,37 +529,38 @@ ...@@ -501,37 +529,38 @@
filterMode: 'empty', filterMode: 'empty',
endValue: 14 endValue: 14
}], }],
series: [{ series: [
name: '管理/签约人群自动上传血压合格人数', {
type: 'bar', name: '管理/签约人群自动上传血压合格人数',
stack: '1', type: 'bar',
itemStyle: { stack: '1',
normal: { itemStyle: {
color: new this.$echarts.graphic.LinearGradient( normal: {
0, 0, 0, 1, color: new this.$echarts.graphic.LinearGradient(
[{ 0, 0, 0, 1,
offset: 0, [{
color: '#115D5D' offset: 0,
}, color: '#115D5D'
{ },
offset: 0.5, {
color: '#115D5D' offset: 0.5,
}, color: '#115D5D'
{ },
offset: 0.5, {
color: '#4093E9' offset: 0.5,
}, color: '#4093E9'
{ },
offset: 1, {
color: '#4093E9' offset: 1,
} color: '#4093E9'
] }
) ]
} )
}, }
barWidth: null,
data: [],
}, },
barWidth: null,
data: [],
},
{ {
name: '管理/签约人群自动上传血压合格人数', name: '管理/签约人群自动上传血压合格人数',
type: 'line', type: 'line',
...@@ -553,9 +582,9 @@ ...@@ -553,9 +582,9 @@
color: new this.$echarts.graphic.LinearGradient( color: new this.$echarts.graphic.LinearGradient(
0, 0, 0, 1, 0, 0, 0, 1,
[{ [{
offset: 0, offset: 0,
color: '#115D5D' color: '#115D5D'
}, },
{ {
offset: 0.5, offset: 0.5,
color: '#115D5D' color: '#115D5D'
...@@ -584,9 +613,9 @@ ...@@ -584,9 +613,9 @@
color: new this.$echarts.graphic.LinearGradient( color: new this.$echarts.graphic.LinearGradient(
0, 0, 0, 1, 0, 0, 0, 1,
[{ [{
offset: 0, offset: 0,
color: '#115D5D' color: '#115D5D'
}, },
{ {
offset: 0.5, offset: 0.5,
color: '#115D5D' color: '#115D5D'
...@@ -623,9 +652,9 @@ ...@@ -623,9 +652,9 @@
color: new this.$echarts.graphic.LinearGradient( color: new this.$echarts.graphic.LinearGradient(
0, 0, 0, 1, 0, 0, 0, 1,
[{ [{
offset: 0, offset: 0,
color: '#115D5D' color: '#115D5D'
}, },
{ {
offset: 0.5, offset: 0.5,
color: '#115D5D' color: '#115D5D'
...@@ -662,9 +691,9 @@ ...@@ -662,9 +691,9 @@
color: new this.$echarts.graphic.LinearGradient( color: new this.$echarts.graphic.LinearGradient(
0, 0, 0, 1, 0, 0, 0, 1,
[{ [{
offset: 0, offset: 0,
color: '#115D5D' color: '#115D5D'
}, },
{ {
offset: 0.5, offset: 0.5,
color: '#115D5D' color: '#115D5D'
...@@ -701,9 +730,9 @@ ...@@ -701,9 +730,9 @@
color: new this.$echarts.graphic.LinearGradient( color: new this.$echarts.graphic.LinearGradient(
0, 0, 0, 1, 0, 0, 0, 1,
[{ [{
offset: 0, offset: 0,
color: '#115D5D' color: '#115D5D'
}, },
{ {
offset: 0.5, offset: 0.5,
color: '#115D5D' color: '#115D5D'
...@@ -740,9 +769,9 @@ ...@@ -740,9 +769,9 @@
color: new this.$echarts.graphic.LinearGradient( color: new this.$echarts.graphic.LinearGradient(
0, 0, 0, 1, 0, 0, 0, 1,
[{ [{
offset: 0, offset: 0,
color: '#115D5D' color: '#115D5D'
}, },
{ {
offset: 0.5, offset: 0.5,
color: '#115D5D' color: '#115D5D'
...@@ -779,9 +808,9 @@ ...@@ -779,9 +808,9 @@
color: new this.$echarts.graphic.LinearGradient( color: new this.$echarts.graphic.LinearGradient(
0, 0, 0, 1, 0, 0, 0, 1,
[{ [{
offset: 0, offset: 0,
color: '#115D5D' color: '#115D5D'
}, },
{ {
offset: 0.5, offset: 0.5,
color: '#115D5D' color: '#115D5D'
...@@ -819,9 +848,9 @@ ...@@ -819,9 +848,9 @@
color: new this.$echarts.graphic.LinearGradient( color: new this.$echarts.graphic.LinearGradient(
0, 0, 0, 1, 0, 0, 0, 1,
[{ [{
offset: 0, offset: 0,
color: '#115D5D' color: '#115D5D'
}, },
{ {
offset: 0.5, offset: 0.5,
color: '#115D5D' color: '#115D5D'
...@@ -846,41 +875,41 @@ ...@@ -846,41 +875,41 @@
}, },
showtabnum: 0, showtabnum: 0,
pagedisname: '高血压', pagedisname: '高血压',
middlename:"规范管理人群", middlename: "规范管理人群",
userinfo:{}, userinfo: {},
userRole:'', userRole: '',
cxsj:'', cxsj: '',
_xzqh:'', _xzqh: '',
_yljgdm:'', _yljgdm: '',
_group:'', _group: '',
pageLevel:'' pageLevel: ''
} }
}, },
methods: { methods: {
showtab(num){ showtab(num) {
this.showtabnum = num this.showtabnum = num
}, },
formatparam(val){ formatparam(val) {
let returnval = parseFloat(val) let returnval = parseFloat(val)
if(val==0){ if (val == 0) {
returnval = '0.00' returnval = '0.00'
}else if(val>0 && val<10){ } else if (val > 0 && val < 10) {
returnval = returnval.toFixed(2) returnval = returnval.toFixed(2)
}else if(val>=10 && val<99){ } else if (val >= 10 && val < 99) {
returnval = returnval.toFixed(1) returnval = returnval.toFixed(1)
}else{ } else {
returnval = returnval.toFixed(0) returnval = returnval.toFixed(0)
} }
return returnval return returnval
}, },
formatnum(val){ formatnum(val) {
if(val>10000){ if (val > 10000) {
return (val/10000).toFixed(1)+'万' return (val / 10000).toFixed(1) + '万'
}else{ } else {
return val return val
} }
}, },
CityGetBack() { CityGetBack() {
this.communshow = true this.communshow = true
...@@ -897,17 +926,16 @@ ...@@ -897,17 +926,16 @@
this.arname = '各区' this.arname = '各区'
console.log("现在处于一级状态"); console.log("现在处于一级状态");
} } else if (this.pageLevel === 'sq') {
else if (this.pageLevel === 'sq') {
this._yljgdm = '' this._yljgdm = ''
this.pageLevel = 'qj' this.pageLevel = 'qj'
this._group = 'YLJGDM' this._group = 'YLJGDM'
this.tablename = "社区" this.tablename = "社区"
this.thname = "医院" this.thname = "医院"
this.arname = '社区' this.arname = '社区'
this.areaname = this.areaname2 this.hospitalname = ''
} }
this.homeinit(this.themeId) this.homeinit()
this.change_age(1) this.change_age(1)
}, },
exitFn() { exitFn() {
...@@ -922,146 +950,129 @@ ...@@ -922,146 +950,129 @@
this._yljgdm = '' this._yljgdm = ''
this._group = "XZQH" this._group = "XZQH"
this.pageLevel = 'sj' this.pageLevel = 'sj'
this.communshow = true
this.areaname = '' this.areaname = ''
this.hospitalname = ''
this.tablename = '各区' this.tablename = '各区'
this.themeId = 28 this.themeId = 28
this.thname = '各区' this.thname = '各区'
this.arname = '各区' this.arname = '各区'
this.homeinit(this.themeId)
this.change_age(1)
} else if ('area' === this.userRole) {//区角色 } else if ('area' === this.userRole) {//区角色
// 点击区 -- 展示城镇信息
this._xzqh = sessionStorage.getItem("organizcode") this._xzqh = sessionStorage.getItem("organizcode")
this._yljgdm = '' this._yljgdm = ''
this._group = "YLJGDM" this._group = "YLJGDM"
this.pageLevel = 'qj' this.pageLevel = 'qj'
this.communshow = true this.communshow = true
this.tablename = '社区' this.tablename = '社区'
this.thname = '医院' this.thname = '医院'
this.arname = '社区' this.arname = '社区'
this.areaname = sessionStorage.getItem("organizcodeName") this.areaname = sessionStorage.getItem("organizcodeName")
this.hospitalname = ''
this.homeinit(this.themeId)
this.change_age(1)
} else if ('hospital' === this.userRole) {//社区角色 } else if ('hospital' === this.userRole) {//社区角色
this._xzqh = sessionStorage.getItem("organizcode") this._xzqh = sessionStorage.getItem("porgcode")
this._yljgdm = sessionStorage.getItem("organizcode")
this._group = "YWSJ" this._group = "YWSJ"
this.pageLevel = 'sq' this.pageLevel = 'sq'
this.communshow = false
this.tablename = "社区" this.tablename = "社区"
this.thname = "医院" this.thname = "医院"
this.arname = '社区' this.arname = '社区'
this.areaname = sessionStorage.getItem("organizcodeName") this.areaname = ''
this.hospitalname = sessionStorage.getItem("organizcodeName")
this.homeinit(this.themeId)
this.change_age(1)
} }
this.homeinit()
this.change_age(1)
}, },
dataSearch() { dataSearch(cxsj) {
this.homeinit(this.themeId) sessionStorage.setItem("ywsj", cxsj)
this.homeinit()
this.change_age(1) this.change_age(1)
}, },
changecity(code, name) { changecity(code, name) {
this.areaname = name
if (this.pageLevel === 'sj') { if (this.pageLevel === 'sj') {
// 点击区 -- 展示城镇信息 // 点击区 -- 展示城镇信息
this.pageLevel = 'qj' this.pageLevel = 'qj'
this._group = 'YLJGDM' this._group = 'YLJGDM'
this._xzqh = code this._xzqh = code
this.communshow = true this.communshow = true
this.tablename = '社区' this.tablename = '社区'
this.thname = '医院' this.thname = '医院'
this.arname = '社区' this.arname = '社区'
this.areaname = name this.areaname = name
} else if (this.pageLevel === 'qj') {
}else if (this.pageLevel === 'qj') {
// 点击区 -- 展示城镇信息 // 点击区 -- 展示城镇信息
this.pageLevel = 'sq' this.pageLevel = 'sq'
this._group = 'YWSJ' this._group = 'YWSJ'
this._yljgdm = code this._yljgdm = code
this.communshow = true this.communshow = true
this.tablename = '社区' this.tablename = '社区'
this.thname = '医院' this.thname = '医院'
this.arname = '社区' this.arname = '社区'
this.areaname = name this.hospitalname = name
}else if (this.pageLevel === 'sq') { } else if (this.pageLevel === 'sq') {
return false return false
} }
this.homeinit(this.themeId) this.homeinit()
this.change_age(1) this.change_age(1)
}, },
groupChange(num) { groupChange(grouplx) {
this.groupNo = num this.groupType = grouplx
if (num == 1) { if (grouplx === 'org') {
this._group = "XZQH" this._group = "XZQH"
this.homeinit(this.themeId) this.homeinit()
} else { } else {
this._group = "YWSJ" this._group = "YWSJ"
this.homeinit(this.themeId) this.homeinit()
} }
}, },
bingChange(num) { rqlxChange(rqlx) {
this.bingNo = num this.rqType = rqlx
if (rqlx === 'gfgl') {
if (num == 1) {
this.selectID = 1
this.middlename = "规范管理人群" this.middlename = "规范管理人群"
this.homeinit(this.themeId) this.homeinit()
} else { } else {
this.selectID = 2
this.middlename = "管理人群" this.middlename = "管理人群"
this.homeinit(this.themeId) this.homeinit()
} }
}, },
homeinit(diastype) { homeinit() {
let _this = this this.pageHeadData()
// 管数据 入参
this.listArray = []
this.listArray2 = []
this.listArrayFinal = []
let wd = [{ let wd = [{
"name": "YWSJ", "name": "YWSJ",
"endTime": _this.cxsj, "type": "2",
"type": "2", "startTime": '',
"startTime": '', "endTime": this.cxsj,
"compare": "between", "compare": "between",
}, }, {
{ "name": "XZQH",
"name": "XZQH", "value": this._xzqh,
"value": this._xzqh, "type": "1"
"type": "1" }, {
}, { "name": "YLJGDM",
"name": "YLJGDM", "value": this._yljgdm,
"value": this._yljgdm, "type": "1"
"type": "1" }]
}
] // 签约数据 入参
// 签数据 入参
let wd2 = [{ let wd2 = [{
"name": "YWSJ", "name": "YWSJ",
"endTime": _this.cxsj, "type": "2",
"type": "2", "startTime": '',
"startTime": '', "endTime": this.cxsj,
"compare": "between", "compare": "between",
}, }, {
{ "name": "XZQH",
"name": "XZQH", "value": this._xzqh,
"value": this._xzqh, "type": "1"
"type": "1" },
},
{ {
"name": "QYBZ", "name": "QYBZ",
"value": "1", "value": "1",
...@@ -1072,395 +1083,19 @@ ...@@ -1072,395 +1083,19 @@
"type": "1" "type": "1"
} }
] ]
//var zbcode="MBZFX_016";单独读取
let param = {
"themeId": diastype,
"wd": JSON.stringify(wd)
}
let param2 = {
"themeId": diastype,
"wd": JSON.stringify(wd2)
}
let placeparam = { let placeparam = {
"themeId": diastype, "themeId": this.themeId,
"wd": JSON.stringify(wd), "wd": JSON.stringify(wd),
"group": this._group "group": this._group,
} }
let placeparam2 = { let placeparam2 = {
"themeId": diastype, "themeId": this.themeId,
"wd": JSON.stringify(wd2), "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
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
}
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 ((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
}
// 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
}
})
}).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
}
// 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)) {
// 本季血糖合格
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.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 (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
}
})
}).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 // XZQH --- YLJGDM
commonMethod(placeparam).then(res => { commonMethod(placeparam).then(res => {
...@@ -1472,8 +1107,6 @@ ...@@ -1472,8 +1107,6 @@
g2: '0', g2: '0',
AreaCode: '0' AreaCode: '0'
} }
if (item.YWSJ) { if (item.YWSJ) {
obj.name = parseInt(item.YWSJ.substring(6, 7)) obj.name = parseInt(item.YWSJ.substring(6, 7))
} else { } else {
...@@ -1489,10 +1122,8 @@ ...@@ -1489,10 +1122,8 @@
} }
} }
item.zbxx.forEach((item2, index2) => { item.zbxx.forEach((item2, index2) => {
if (this.selectID == 1) { if (this.rqType === 'gfgl') {
if (item2.ZBID == "1167" || item2.ZBID == "1143") { if (item2.ZBID == "1167" || item2.ZBID == "1143") {
obj.g0 = item2.ZXZ ? parseFloat(item2.ZXZ).toFixed(1) : 0 obj.g0 = item2.ZXZ ? parseFloat(item2.ZXZ).toFixed(1) : 0
} }
...@@ -1506,7 +1137,7 @@ ...@@ -1506,7 +1137,7 @@
// 柱状图数据获取 // 柱状图数据获取
if (item2.ZBID == "1170" || item2.ZBID == "1143") { if (item2.ZBID == "1170" || item2.ZBID == "1143") {
// 管理/签约人群自动上传血压合格人数 // 管理/签约人群自动上传血压合格人数
this.g_autoup_list.push(item2.ZXZ ? item2.ZXZ : 0) this.g_autoup_list.push(getActiveNum(item2.ZXZ / 10000))
} }
if (item2.ZBID == "1176" || item2.ZBID == "1149") { if (item2.ZBID == "1176" || item2.ZBID == "1149") {
// 去年管理/签约人群自动上传血压合格人数 // 去年管理/签约人群自动上传血压合格人数
...@@ -1560,7 +1191,7 @@ ...@@ -1560,7 +1191,7 @@
} }
item.zbxx.forEach((item2, index2) => { item.zbxx.forEach((item2, index2) => {
// IBM 数据赋值 // IBM 数据赋值
if (this.selectID == 1) { if (this.rqType === 'gfgl') {
if (item2.ZBID == "1167" || item2.ZBID == "1143") { if (item2.ZBID == "1167" || item2.ZBID == "1143") {
obj.q0 = item2.ZXZ ? parseFloat(item2.ZXZ).toFixed(1) : 0 obj.q0 = item2.ZXZ ? parseFloat(item2.ZXZ).toFixed(1) : 0
} }
...@@ -1623,15 +1254,15 @@ ...@@ -1623,15 +1254,15 @@
this.tablename = "时间" this.tablename = "时间"
this.thname = "季度" this.thname = "季度"
this.listArrayFinal = [{ this.listArrayFinal = [{
"name": "第一季度", "name": "第一季度",
"g0": 0.0, "g0": 0.0,
"g1": 0.0, "g1": 0.0,
"g2": 0.0, "g2": 0.0,
"AreaCode": "", "AreaCode": "",
"q0": 0.0, "q0": 0.0,
"q1": 0.0, "q1": 0.0,
"q2": 0.0 "q2": 0.0
}, },
{ {
"name": "第二季度", "name": "第二季度",
"g0": 0.0, "g0": 0.0,
...@@ -1709,44 +1340,45 @@ ...@@ -1709,44 +1340,45 @@
this.option2.xAxis[0].data = ListPlace this.option2.xAxis[0].data = ListPlace
let legendMy = [] 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 = ['管理/签约人群自动上传血压合格人数', '去年管理/签约人群自动上传血压合格人数', '管·自动上传血压控制率/去年', '签·自动上传血压控制率/去年', legendMy = ['管理/签约人群自动上传血压合格人数', '去年管理/签约人群自动上传血压合格人数', '管·自动上传血压控制率/去年', '签·自动上传血压控制率/去年',
'管·报告血压控制率/去年', '签·报告血压控制率/去年', '管·BMI异常比/去年', '签·BMI异常比/去年' '管·报告血压控制率/去年', '签·报告血压控制率/去年', '管·BMI异常比/去年', '签·BMI异常比/去年'
] ]
this.option2.legend.data = legendMy this.option2.legend.data = legendMy
this.option2.series = [{ this.option2.series = [
name: '管理/签约人群自动上传血压合格人数', {
type: 'bar', name: '管理/签约人群自动上传血压合格人数',
stack: '1', type: 'bar',
itemStyle: { stack: '1',
normal: { itemStyle: {
color: new this.$echarts.graphic.LinearGradient( normal: {
0, 0, 0, 1, color: new this.$echarts.graphic.LinearGradient(
[{ 0, 0, 0, 1,
offset: 0, [{
color: '#115D5D' offset: 0,
}, color: '#115D5D'
{ },
offset: 0.5, {
color: '#115D5D' offset: 0.5,
}, color: '#115D5D'
{ },
offset: 0.5, {
color: '#4093E9' offset: 0.5,
}, color: '#4093E9'
{ },
offset: 1, {
color: '#4093E9' offset: 1,
} color: '#4093E9'
] }
) ]
} )
}, }
barWidth: 8,
data: this.g_autoup_list
}, },
barWidth: 8,
data: this.g_autoup_list
},
{ {
name: '管理/签约人群自动上传血压合格人数', name: '管理/签约人群自动上传血压合格人数',
type: 'bar', type: 'bar',
...@@ -1768,9 +1400,9 @@ ...@@ -1768,9 +1400,9 @@
color: new this.$echarts.graphic.LinearGradient( color: new this.$echarts.graphic.LinearGradient(
0, 0, 0, 1, 0, 0, 0, 1,
[{ [{
offset: 0, offset: 0,
color: '#115D5D' color: '#115D5D'
}, },
{ {
offset: 0.5, offset: 0.5,
color: '#115D5D' color: '#115D5D'
...@@ -1800,9 +1432,9 @@ ...@@ -1800,9 +1432,9 @@
color: new this.$echarts.graphic.LinearGradient( color: new this.$echarts.graphic.LinearGradient(
0, 0, 0, 1, 0, 0, 0, 1,
[{ [{
offset: 0, offset: 0,
color: '#115D5D' color: '#115D5D'
}, },
{ {
offset: 0.5, offset: 0.5,
color: '#115D5D' color: '#115D5D'
...@@ -1833,9 +1465,9 @@ ...@@ -1833,9 +1465,9 @@
color: new this.$echarts.graphic.LinearGradient( color: new this.$echarts.graphic.LinearGradient(
0, 0, 0, 1, 0, 0, 0, 1,
[{ [{
offset: 0, offset: 0,
color: '#115D5D' color: '#115D5D'
}, },
{ {
offset: 0.5, offset: 0.5,
color: '#115D5D' color: '#115D5D'
...@@ -1867,9 +1499,9 @@ ...@@ -1867,9 +1499,9 @@
color: new this.$echarts.graphic.LinearGradient( color: new this.$echarts.graphic.LinearGradient(
0, 0, 0, 1, 0, 0, 0, 1,
[{ [{
offset: 0, offset: 0,
color: '#115D5D' color: '#115D5D'
}, },
{ {
offset: 0.5, offset: 0.5,
color: '#115D5D' color: '#115D5D'
...@@ -1901,9 +1533,9 @@ ...@@ -1901,9 +1533,9 @@
color: new this.$echarts.graphic.LinearGradient( color: new this.$echarts.graphic.LinearGradient(
0, 0, 0, 1, 0, 0, 0, 1,
[{ [{
offset: 0, offset: 0,
color: '#115D5D' color: '#115D5D'
}, },
{ {
offset: 0.5, offset: 0.5,
color: '#115D5D' color: '#115D5D'
...@@ -1935,9 +1567,9 @@ ...@@ -1935,9 +1567,9 @@
color: new this.$echarts.graphic.LinearGradient( color: new this.$echarts.graphic.LinearGradient(
0, 0, 0, 1, 0, 0, 0, 1,
[{ [{
offset: 0, offset: 0,
color: '#115D5D' color: '#115D5D'
}, },
{ {
offset: 0.5, offset: 0.5,
color: '#115D5D' color: '#115D5D'
...@@ -1969,9 +1601,9 @@ ...@@ -1969,9 +1601,9 @@
color: new this.$echarts.graphic.LinearGradient( color: new this.$echarts.graphic.LinearGradient(
0, 0, 0, 1, 0, 0, 0, 1,
[{ [{
offset: 0, offset: 0,
color: '#115D5D' color: '#115D5D'
}, },
{ {
offset: 0.5, offset: 0.5,
color: '#115D5D' color: '#115D5D'
...@@ -2009,9 +1641,9 @@ ...@@ -2009,9 +1641,9 @@
color: new this.$echarts.graphic.LinearGradient( color: new this.$echarts.graphic.LinearGradient(
0, 0, 0, 1, 0, 0, 0, 1,
[{ [{
offset: 0, offset: 0,
color: '#115D5D' color: '#115D5D'
}, },
{ {
offset: 0.5, offset: 0.5,
color: '#115D5D' color: '#115D5D'
...@@ -2032,45 +1664,45 @@ ...@@ -2032,45 +1664,45 @@
data: Listtemp6 data: Listtemp6
} }
] ]
} } else {
else {
legendMy = ['管理/签约人群自动上传血压合格人数', '去年管理/签约人群自动上传血压合格人数', '管·自动上传血压控制率/去年', '签·自动上传血压控制率/去年', legendMy = ['管理/签约人群自动上传血压合格人数', '去年管理/签约人群自动上传血压合格人数', '管·自动上传血压控制率/去年', '签·自动上传血压控制率/去年',
'管·报告血压控制率/去年', '签·报告血压控制率/去年' '管·报告血压控制率/去年', '签·报告血压控制率/去年'
] ]
this.option2.legend.data = legendMy this.option2.legend.data = legendMy
this.option2.series = [{ this.option2.series = [
name: '管理/签约人群自动上传血压合格人数', {
type: 'bar', name: '管理/签约人群自动上传血压合格人数',
stack: '1', type: 'bar',
itemStyle: { stack: '1',
normal: { itemStyle: {
color: new this.$echarts.graphic.LinearGradient( normal: {
0, 0, 0, 1, color: new this.$echarts.graphic.LinearGradient(
[{ 0, 0, 0, 1,
offset: 0, [{
color: '#115D5D' offset: 0,
}, color: '#115D5D'
{ },
offset: 0.5, {
color: '#115D5D' offset: 0.5,
}, color: '#115D5D'
{ },
offset: 0.5, {
color: '#4093E9' offset: 0.5,
}, color: '#4093E9'
{ },
offset: 1, {
color: '#4093E9' offset: 1,
} color: '#4093E9'
] }
) ]
} )
}, }
barWidth: 8,
data: this.g_autoup_list
}, },
barWidth: 8,
data: this.g_autoup_list
},
{ {
name: '管理/签约人群自动上传血压合格人数', name: '管理/签约人群自动上传血压合格人数',
type: 'bar', type: 'bar',
...@@ -2092,9 +1724,9 @@ ...@@ -2092,9 +1724,9 @@
color: new this.$echarts.graphic.LinearGradient( color: new this.$echarts.graphic.LinearGradient(
0, 0, 0, 1, 0, 0, 0, 1,
[{ [{
offset: 0, offset: 0,
color: '#115D5D' color: '#115D5D'
}, },
{ {
offset: 0.5, offset: 0.5,
color: '#115D5D' color: '#115D5D'
...@@ -2123,9 +1755,9 @@ ...@@ -2123,9 +1755,9 @@
color: new this.$echarts.graphic.LinearGradient( color: new this.$echarts.graphic.LinearGradient(
0, 0, 0, 1, 0, 0, 0, 1,
[{ [{
offset: 0, offset: 0,
color: '#115D5D' color: '#115D5D'
}, },
{ {
offset: 0.5, offset: 0.5,
color: '#115D5D' color: '#115D5D'
...@@ -2156,9 +1788,9 @@ ...@@ -2156,9 +1788,9 @@
color: new this.$echarts.graphic.LinearGradient( color: new this.$echarts.graphic.LinearGradient(
0, 0, 0, 1, 0, 0, 0, 1,
[{ [{
offset: 0, offset: 0,
color: '#115D5D' color: '#115D5D'
}, },
{ {
offset: 0.5, offset: 0.5,
color: '#115D5D' color: '#115D5D'
...@@ -2190,9 +1822,9 @@ ...@@ -2190,9 +1822,9 @@
color: new this.$echarts.graphic.LinearGradient( color: new this.$echarts.graphic.LinearGradient(
0, 0, 0, 1, 0, 0, 0, 1,
[{ [{
offset: 0, offset: 0,
color: '#115D5D' color: '#115D5D'
}, },
{ {
offset: 0.5, offset: 0.5,
color: '#115D5D' color: '#115D5D'
...@@ -2224,9 +1856,9 @@ ...@@ -2224,9 +1856,9 @@
color: new this.$echarts.graphic.LinearGradient( color: new this.$echarts.graphic.LinearGradient(
0, 0, 0, 1, 0, 0, 0, 1,
[{ [{
offset: 0, offset: 0,
color: '#115D5D' color: '#115D5D'
}, },
{ {
offset: 0.5, offset: 0.5,
color: '#115D5D' color: '#115D5D'
...@@ -2258,9 +1890,9 @@ ...@@ -2258,9 +1890,9 @@
color: new this.$echarts.graphic.LinearGradient( color: new this.$echarts.graphic.LinearGradient(
0, 0, 0, 1, 0, 0, 0, 1,
[{ [{
offset: 0, offset: 0,
color: '#115D5D' color: '#115D5D'
}, },
{ {
offset: 0.5, offset: 0.5,
color: '#115D5D' color: '#115D5D'
...@@ -2284,42 +1916,43 @@ ...@@ -2284,42 +1916,43 @@
} }
} else { } else {
if (this.groupNo == 1 && this.bingNo == 2) { if (this.groupType === 'org' && this.rqType === 'glrq') {
legendMy = ['管理/签约人群自动上传血压合格人数', '去年管理/签约人群自动上传血压合格人数', '管·自动上传血压控制率/去年', '签·自动上传血压控制率/去年', legendMy = ['管理/签约人群自动上传血压合格人数', '去年管理/签约人群自动上传血压合格人数', '管·自动上传血压控制率/去年', '签·自动上传血压控制率/去年',
'管·报告血压控制率/去年', '签·报告血压控制率/去年', '管·BMI异常比/去年', '签·BMI异常比/去年' '管·报告血压控制率/去年', '签·报告血压控制率/去年', '管·BMI异常比/去年', '签·BMI异常比/去年'
] ]
this.option2.legend.data = legendMy this.option2.legend.data = legendMy
this.option2.series = [{ this.option2.series = [
name: '管理/签约人群自动上传血压合格人数', {
type: 'bar', name: '管理/签约人群自动上传血压合格人数',
stack: '1', type: 'bar',
itemStyle: { stack: '1',
normal: { itemStyle: {
color: new this.$echarts.graphic.LinearGradient( normal: {
0, 0, 0, 1, color: new this.$echarts.graphic.LinearGradient(
[{ 0, 0, 0, 1,
offset: 0, [{
color: '#115D5D' offset: 0,
}, color: '#115D5D'
{ },
offset: 0.5, {
color: '#115D5D' offset: 0.5,
}, color: '#115D5D'
{ },
offset: 0.5, {
color: '#4093E9' offset: 0.5,
}, color: '#4093E9'
{ },
offset: 1, {
color: '#4093E9' offset: 1,
} color: '#4093E9'
] }
) ]
} )
}, }
barWidth: null,
data: this.g_autoup_list
}, },
barWidth: null,
data: this.g_autoup_list
},
{ {
name: '管理/签约人群自动上传血压合格人数', name: '管理/签约人群自动上传血压合格人数',
type: 'line', type: 'line',
...@@ -2341,9 +1974,9 @@ ...@@ -2341,9 +1974,9 @@
color: new this.$echarts.graphic.LinearGradient( color: new this.$echarts.graphic.LinearGradient(
0, 0, 0, 1, 0, 0, 0, 1,
[{ [{
offset: 0, offset: 0,
color: '#115D5D' color: '#115D5D'
}, },
{ {
offset: 0.5, offset: 0.5,
color: '#115D5D' color: '#115D5D'
...@@ -2372,9 +2005,9 @@ ...@@ -2372,9 +2005,9 @@
color: new this.$echarts.graphic.LinearGradient( color: new this.$echarts.graphic.LinearGradient(
0, 0, 0, 1, 0, 0, 0, 1,
[{ [{
offset: 0, offset: 0,
color: '#115D5D' color: '#115D5D'
}, },
{ {
offset: 0.5, offset: 0.5,
color: '#115D5D' color: '#115D5D'
...@@ -2406,9 +2039,9 @@ ...@@ -2406,9 +2039,9 @@
color: new this.$echarts.graphic.LinearGradient( color: new this.$echarts.graphic.LinearGradient(
0, 0, 0, 1, 0, 0, 0, 1,
[{ [{
offset: 0, offset: 0,
color: '#115D5D' color: '#115D5D'
}, },
{ {
offset: 0.5, offset: 0.5,
color: '#115D5D' color: '#115D5D'
...@@ -2440,9 +2073,9 @@ ...@@ -2440,9 +2073,9 @@
color: new this.$echarts.graphic.LinearGradient( color: new this.$echarts.graphic.LinearGradient(
0, 0, 0, 1, 0, 0, 0, 1,
[{ [{
offset: 0, offset: 0,
color: '#115D5D' color: '#115D5D'
}, },
{ {
offset: 0.5, offset: 0.5,
color: '#115D5D' color: '#115D5D'
...@@ -2474,9 +2107,9 @@ ...@@ -2474,9 +2107,9 @@
color: new this.$echarts.graphic.LinearGradient( color: new this.$echarts.graphic.LinearGradient(
0, 0, 0, 1, 0, 0, 0, 1,
[{ [{
offset: 0, offset: 0,
color: '#115D5D' color: '#115D5D'
}, },
{ {
offset: 0.5, offset: 0.5,
color: '#115D5D' color: '#115D5D'
...@@ -2508,9 +2141,9 @@ ...@@ -2508,9 +2141,9 @@
color: new this.$echarts.graphic.LinearGradient( color: new this.$echarts.graphic.LinearGradient(
0, 0, 0, 1, 0, 0, 0, 1,
[{ [{
offset: 0, offset: 0,
color: '#115D5D' color: '#115D5D'
}, },
{ {
offset: 0.5, offset: 0.5,
color: '#115D5D' color: '#115D5D'
...@@ -2542,9 +2175,9 @@ ...@@ -2542,9 +2175,9 @@
color: new this.$echarts.graphic.LinearGradient( color: new this.$echarts.graphic.LinearGradient(
0, 0, 0, 1, 0, 0, 0, 1,
[{ [{
offset: 0, offset: 0,
color: '#115D5D' color: '#115D5D'
}, },
{ {
offset: 0.5, offset: 0.5,
color: '#115D5D' color: '#115D5D'
...@@ -2582,9 +2215,9 @@ ...@@ -2582,9 +2215,9 @@
color: new this.$echarts.graphic.LinearGradient( color: new this.$echarts.graphic.LinearGradient(
0, 0, 0, 1, 0, 0, 0, 1,
[{ [{
offset: 0, offset: 0,
color: '#115D5D' color: '#115D5D'
}, },
{ {
offset: 0.5, offset: 0.5,
color: '#115D5D' color: '#115D5D'
...@@ -2610,37 +2243,38 @@ ...@@ -2610,37 +2243,38 @@
'管·报告血压控制率/去年', '签·报告血压控制率/去年' '管·报告血压控制率/去年', '签·报告血压控制率/去年'
] ]
this.option2.legend.data = legendMy this.option2.legend.data = legendMy
this.option2.series = [{ this.option2.series = [
name: '管理/签约人群自动上传血压合格人数', {
type: 'bar', name: '管理/签约人群自动上传血压合格人数',
stack: '1', type: 'bar',
itemStyle: { stack: '1',
normal: { itemStyle: {
color: new this.$echarts.graphic.LinearGradient( normal: {
0, 0, 0, 1, color: new this.$echarts.graphic.LinearGradient(
[{ 0, 0, 0, 1,
offset: 0, [{
color: '#115D5D' offset: 0,
}, color: '#115D5D'
{ },
offset: 0.5, {
color: '#115D5D' offset: 0.5,
}, color: '#115D5D'
{ },
offset: 0.5, {
color: '#4093E9' offset: 0.5,
}, color: '#4093E9'
{ },
offset: 1, {
color: '#4093E9' offset: 1,
} color: '#4093E9'
] }
) ]
} )
}, }
barWidth: null,
data: this.g_autoup_list
}, },
barWidth: null,
data: this.g_autoup_list
},
{ {
name: '管理/签约人群自动上传血压合格人数', name: '管理/签约人群自动上传血压合格人数',
type: 'line', type: 'line',
...@@ -2662,9 +2296,9 @@ ...@@ -2662,9 +2296,9 @@
color: new this.$echarts.graphic.LinearGradient( color: new this.$echarts.graphic.LinearGradient(
0, 0, 0, 1, 0, 0, 0, 1,
[{ [{
offset: 0, offset: 0,
color: '#115D5D' color: '#115D5D'
}, },
{ {
offset: 0.5, offset: 0.5,
color: '#115D5D' color: '#115D5D'
...@@ -2693,9 +2327,9 @@ ...@@ -2693,9 +2327,9 @@
color: new this.$echarts.graphic.LinearGradient( color: new this.$echarts.graphic.LinearGradient(
0, 0, 0, 1, 0, 0, 0, 1,
[{ [{
offset: 0, offset: 0,
color: '#115D5D' color: '#115D5D'
}, },
{ {
offset: 0.5, offset: 0.5,
color: '#115D5D' color: '#115D5D'
...@@ -2727,9 +2361,9 @@ ...@@ -2727,9 +2361,9 @@
color: new this.$echarts.graphic.LinearGradient( color: new this.$echarts.graphic.LinearGradient(
0, 0, 0, 1, 0, 0, 0, 1,
[{ [{
offset: 0, offset: 0,
color: '#115D5D' color: '#115D5D'
}, },
{ {
offset: 0.5, offset: 0.5,
color: '#115D5D' color: '#115D5D'
...@@ -2761,9 +2395,9 @@ ...@@ -2761,9 +2395,9 @@
color: new this.$echarts.graphic.LinearGradient( color: new this.$echarts.graphic.LinearGradient(
0, 0, 0, 1, 0, 0, 0, 1,
[{ [{
offset: 0, offset: 0,
color: '#115D5D' color: '#115D5D'
}, },
{ {
offset: 0.5, offset: 0.5,
color: '#115D5D' color: '#115D5D'
...@@ -2795,9 +2429,9 @@ ...@@ -2795,9 +2429,9 @@
color: new this.$echarts.graphic.LinearGradient( color: new this.$echarts.graphic.LinearGradient(
0, 0, 0, 1, 0, 0, 0, 1,
[{ [{
offset: 0, offset: 0,
color: '#115D5D' color: '#115D5D'
}, },
{ {
offset: 0.5, offset: 0.5,
color: '#115D5D' color: '#115D5D'
...@@ -2829,9 +2463,9 @@ ...@@ -2829,9 +2463,9 @@
color: new this.$echarts.graphic.LinearGradient( color: new this.$echarts.graphic.LinearGradient(
0, 0, 0, 1, 0, 0, 0, 1,
[{ [{
offset: 0, offset: 0,
color: '#115D5D' color: '#115D5D'
}, },
{ {
offset: 0.5, offset: 0.5,
color: '#115D5D' color: '#115D5D'
...@@ -2853,35 +2487,344 @@ ...@@ -2853,35 +2487,344 @@
} }
] ]
} }
}
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
} }
// this.option2.legend.data = legendMy if ((item.ZBID == 1169 && this.rqType === 'gfgl' && this.mbType === 'gxy') || (item.ZBID == 1175 && this.rqType === 'glrq' && this.mbType === 'gxy')
// legendMy.forEach((item, index) => { || (item.ZBID == 1145 && this.rqType === 'gfgl' && this.mbType === 'tnb') || (item.ZBID == 1151 && this.rqType === 'glrq' && this.mbType === 'tnb')) {
// _this.option2.series[index].name = item // 报告血压控制率
// }) this.autoUpControPre_g = item.ZXZ
// this.autoUpControPre_gTbl = item.TBL
}
this.$echarts.init(document.getElementById("pag2bar")).setOption(this.option2, true) 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
}
}).catch(err => { if ((item.ZBID == 1184 && this.rqType === 'gfgl' && this.mbType === 'gxy') || (item.ZBID == 1096 && this.rqType === 'glrq' && this.mbType === 'gxy')
console.log("地址列表报错"); || (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 => { }).catch(err => {
console.log("地址列表报错"); 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
}
// 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
}
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
}
})
}).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("--慢病管理在管报错--");
}) })
}, },
DieaChange(Num) { pageBottomData(){
},
mblxChange(mblx) {
this.DieaNo = Num this.mbType = mblx
if (Num == 1) { if (mblx === 'gxy') {
this.themeId = 28 this.themeId = 28
this.homeinit(this.themeId) this.homeinit()
this.bleedtype = "血压" this.bleedtype = "血压"
this.pagedisname = '高血压' this.pagedisname = '高血压'
} else { } else {
this.themeId = 33 this.themeId = 33
this.homeinit(this.themeId) this.homeinit()
this.bleedtype = "血糖" this.bleedtype = "血糖"
this.pagedisname = '糖尿病' this.pagedisname = '糖尿病'
this.change_age(6) this.change_age(6)
...@@ -2906,7 +2849,7 @@ ...@@ -2906,7 +2849,7 @@
"type": "1" "type": "1"
}] }]
let paramnl = { let paramnl = {
"themeId": this.agestructId, "themeId": '36',
"wd": JSON.stringify(wdnl), "wd": JSON.stringify(wdnl),
"group": "NL" "group": "NL"
} }
...@@ -3036,7 +2979,7 @@ ...@@ -3036,7 +2979,7 @@
"type": "1" "type": "1"
}] }]
let paramnl2 = { let paramnl2 = {
"themeId": this.agestructId, "themeId": '36',
"wd": JSON.stringify(wdnl2), "wd": JSON.stringify(wdnl2),
"group": "NL" "group": "NL"
} }
...@@ -3183,33 +3126,28 @@ ...@@ -3183,33 +3126,28 @@
this._xzqh = "" this._xzqh = ""
this._group = "XZQH" this._group = "XZQH"
this.pageLevel = 'sj' this.pageLevel = 'sj'
} else if ('area' === this.userRole) {//区角色 } else if ('area' === this.userRole) {//区角色
this._xzqh = sessionStorage.getItem("organizcode") this._xzqh = sessionStorage.getItem("organizcode")
this._group = "YLJGDM" this._group = "YLJGDM"
this.pageLevel = 'qj' this.pageLevel = 'qj'
// 点击区 -- 展示城镇信息 // 点击区 -- 展示城镇信息
this.communshow = true
this.tablename = '社区' this.tablename = '社区'
this.thname = '医院' this.thname = '医院'
this.arname = '社区' this.arname = '社区'
this.areaname = sessionStorage.getItem("organizcodeName") this.areaname = sessionStorage.getItem("organizcodeName")
} else if ('hospital' === this.userRole) {//社区角色 } else if ('hospital' === this.userRole) {//社区角色
this._xzqh = sessionStorage.getItem("organizcode") this._xzqh = sessionStorage.getItem("organizcode")
this._group = "YWSJ" this._group = "YWSJ"
this.pageLevel = 'sq' this.pageLevel = 'sq'
this.communshow = false
this.tablename = "社区" this.tablename = "社区"
this.thname = "医院" this.thname = "医院"
this.arname = '社区' this.arname = '社区'
this.areaname = sessionStorage.getItem("organizcodeName") this.hospitalname = sessionStorage.getItem("organizcodeName")
} }
this.homeinit(this.themeId) this.homeinit()
this.change_age(1) this.change_age(1)
const obj = setInterval(() => { const obj = setInterval(() => {
const dom = document.getElementById("rightTop") const dom = document.getElementById("rightTop")
if (dom) { if (dom) {
...@@ -3228,7 +3166,6 @@ ...@@ -3228,7 +3166,6 @@
ageObj.age = item.Age ageObj.age = item.Age
ageObj.g_age = item.value ageObj.g_age = item.value
if (this.Q_ageList.length > 0) { if (this.Q_ageList.length > 0) {
ageObj.q_age = this.Q_ageList[index].value ? this.Q_ageList[index].value : 0 ageObj.q_age = this.Q_ageList[index].value ? this.Q_ageList[index].value : 0
} }
...@@ -3294,7 +3231,7 @@ ...@@ -3294,7 +3231,7 @@
height: 320px; height: 320px;
} }
.area>>>.el-input--mini .el-input__inner { .area >>> .el-input--mini .el-input__inner {
padding: 0; padding: 0;
text-align: center; text-align: center;
color: #FFF; color: #FFF;
...@@ -3302,21 +3239,31 @@ ...@@ -3302,21 +3239,31 @@
background-color: #409EFF; 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; color: #FFF;
} }
.area>>>.el-input--mini { .area >>> .el-input--mini {
width: 60px; width: 60px;
margin-left: 8px; margin-left: 8px;
} }
.area>>>.el-input__icon.el-icon-date { .area >>> .el-input__icon.el-icon-date {
display: none display: none
} }
.area>>>.el-input__icon { .area >>> .el-input__icon {
display: none 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> </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