Commit 95a221ba by lihu541

数据字段修改

parent 31d46ccf
......@@ -89,7 +89,7 @@
.card22-mod .cmt span.span1{ color: #eee; font-size: 10px;}
.card22-mod .cmt span.tag-blue {background: #05296a; border-radius: 50%; padding: 0 3px;border: 1px #1158c3 solid; font-size: 12px; color: #4da0c7;}
.card22-mod .cmt span.tag-green {background: #234631; border-radius: 50%; padding: 0 2px; border: 1px #15C436 solid; font-size: 12px;color: #15C436;}
.card33-mod{ float: left; width: 160px; padding: 10px; height: 165px; color: #fff;}
.card33-mod{ float: left; width: 140px; padding: 10px; height: 145px; color: #fff;}
.card1-mod .cmtitle span.tag-huan { background: #095661; border: 1px #2698A8 solid; color: #78BDDE; border-radius: 50%; padding: 0 3px;font-size: 12px;}
.cmtline{ clear: both; height: 70px; padding-top: 10px;}
.cmtline p{color: #B3BFD2;}
......
......@@ -503,7 +503,7 @@
this.ispopu = !this.ispopu
},
toMygh(){
window.location.href = 'http://195.1.3.38:9001/#/manage-platform/index?token=TK_' + sessionStorage.getItem('token')
window.location.href = 'https://192.168.30.51/#/manage-platform/index?token=TK_' + sessionStorage.getItem('token')
},
exitFn() {
this.$router.push({
......
......@@ -998,35 +998,35 @@
// 本季血压合格
this.aualperNum_g = item.ZXZ
this.aualperNum_gNum = item.HBL ? item.HBL : 0
this.aualperNum_gNum = getActiveNum(item.HBL)
}
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_gHBL = item.HBL ? item.HBL : 0
this.autoUpControPre_gHBL = getActiveNum(item.HBL)
}
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_gHBL = item.HBL ? item.HBL : 0
this.ReportPre_gHBL = getActiveNum(item.HBL)
}
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_gHBL = item.HBL ? item.HBL : 0
this.hyper5_gHBL = getActiveNum(item.HBL)
}
// 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_gHBL = item.HBL ? item.HBL : 0
this.hyper5_gHBL = getActiveNum(item.HBL)
}
})
}).catch(err => {
......@@ -1044,7 +1044,7 @@
if (item.CODE == "MBGL_060") {
// 住院人数
this.hospital_g = res.data.content[0].zbxx[index].ZXZ
this.hospital_gHBL = res.data.content[0].zbxx[index].HBL ? res.data.content[0].zbxx[index].HBL : 0
this.hospital_gHBL = getActiveNum(res.data.content[0].zbxx[index].HBL)
}
})
}).catch(err => {
......@@ -1061,12 +1061,12 @@
if (item.ZBID == "1196" && this.mbType === 'gxy') {
// 住院人数
this.deadNum_g = res.data.content[0].zbxx[index].ZXZ
this.deadNum_gHBL = res.data.content[0].zbxx[index].HBL ? res.data.content[0].zbxx[index].HBL : '-'
this.deadNum_gHBL = getActiveNum(res.data.content[0].zbxx[index].HBL)
} else
if (item.ZBID == "1198" && this.mbType === 'tnb') {
// 住院人数
this.deadNum_g = res.data.content[0].zbxx[index].ZXZ
this.deadNum_gHBL = res.data.content[0].zbxx[index].HBL ? res.data.content[0].zbxx[index].HBL : '-'
this.deadNum_gHBL = getActiveNum(res.data.content[0].zbxx[index].HBL)
}
})
}).catch(err => {
......@@ -1091,19 +1091,19 @@
|| (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_qHBL = item.HBL ? item.HBL : 0
this.autoUpControPre_qHBL = getActiveNum(item.HBL)
}
if ((item.ZBID == 1166 && this.rqType === 'gfgl' && this.mbType === 'gxy') || (item.ZBID == 1172 && this.rqType === 'glrq' && this.mbType === 'gxy')
|| (item.ZBID == 1142 && this.rqType === 'gfgl' && this.mbType === 'tnb') || (item.ZBID == 1148 && this.rqType === 'glrq' && this.mbType === 'tnb')) {
// 报告血糖控制率
this.ReportPre_q = item.ZXZ
this.ReportPre_qHBL = item.HBL
this.ReportPre_qHBL = getActiveNum(item.HBL)
}
if (item.ZBID == 1184 || item.ZBID == 1186) {
// 并发症发生率--签
this.hyper5_q = item.ZXZ ? parseFloat(item.ZXZ).toFixed(1) : 0
this.hyper5_qHBL = item.TBL ? parseFloat(item.HBL).toFixed(1) : 0
this.hyper5_qHBL = getActiveNum(item.HBL)
}
})
}).catch(err => {
......@@ -1120,7 +1120,7 @@
if (item.CODE == "MBGL_060") {
// 住院人数
this.hospital_q = res.data.content[0].zbxx[index].ZXZ ? res.data.content[0].zbxx[index].ZXZ : 0
this.hospital_qHBL = res.data.content[0].zbxx[index].HBL ? res.data.content[0].zbxx[index].HBL :
this.hospital_qHBL = getActiveNum(res.data.content[0].zbxx[index].HBL)
0
}
})
......@@ -1137,12 +1137,12 @@
if (item.ZBID == "1196" && this.mbType === 'gxy') {
// 住院人数
this.deadNum_q = res.data.content[0].zbxx[index].ZXZ
this.deadNum_qHBL = res.data.content[0].zbxx[index].HBL ? res.data.content[0].zbxx[index].HBL : '-'
this.deadNum_qHBL = getActiveNum(res.data.content[0].zbxx[index].HBL)
} else
if (item.ZBID == "1198" && this.mbType === 'tnb') {
// 住院人数
this.deadNum_q = res.data.content[0].zbxx[index].ZXZ
this.deadNum_qHBL = res.data.content[0].zbxx[index].HBL ? res.data.content[0].zbxx[index].HBL : '-'
this.deadNum_qHBL = getActiveNum(res.data.content[0].zbxx[index].HBL)
}
})
}).catch(err => {
......
......@@ -20,17 +20,17 @@
<h2>医疗机构登记报告分析</h2>
<p>信息化业务开展机构数 / 非信息化业务开展机构数</p>
<div class="cmt">
<span>{{msgopendata.ZXZ?msgopendata.ZXZ:0}}</span>
<span>{{formatNum(msgopendata.ZXZ)}}</span>
<span class="span1"></span>
<span class="tag-blue"></span>
<span class="span1">{{msgopendata.TBL?msgopendata.TBL:0}}%</span>
<span class="span1">{{getActiveNum(formatNum(msgopendata.ZXZ) / (formatNum(msgopendata.ZXZ) + formatNum(msgclosedata.ZXZ)) * 100)}}%</span>
<span class="span1">/</span>
<span>{{msgclosedata.ZXZ?msgclosedata.ZXZ:0}}</span>
<span>{{formatNum(msgclosedata.ZXZ)}}</span>
<span class="span1"></span>
<span class="tag-blue"></span>
<span class="span1">{{msgclosedata.TBL?msgclosedata.TBL:0}}%</span>
<span class="span1">{{getActiveNum(formatNum(msgclosedata.ZXZ) / (formatNum(msgopendata.ZXZ) + formatNum(msgclosedata.ZXZ)) * 100)}}%</span>
</div>
<p>开展机构总数 {{opentotal?opentotal:0}}</p>
<p>开展机构总数 {{formatNum(msgopendata.ZXZ) + formatNum(msgclosedata.ZXZ)}}</p>
</div>
<div class="card33-mod">
<div class="page5left" id="pag5-left1" v-show="ChartsNo == 1">1</div>
......@@ -45,17 +45,17 @@
</div>
<p>信息化登记报告数 / 非信息化登记报告数</p>
<div class="cmt ">
<span>{{orgopendata.ZXZ?orgopendata.ZXZ:0}}</span>
<span class="span1"></span>
<span>{{getActiveNum(formatNum(orgopendata.ZXZ) / 10000)}}</span>
<span class="span1"></span>
<span class="tag-blue"></span>
<span class="span1">{{orgopendata.TBL?orgopendata.TBL:0}}%</span>
<span class="span1">{{getActiveNum(formatNum(orgopendata.ZXZ) / (formatNum(orgopendata.ZXZ) + formatNum(orgclosedata.ZXZ)) * 100)}}%</span>
<span class="span1">/</span>
<span>{{orgclosedata.ZXZ?orgclosedata.ZXZ:0}}</span>
<span class="span1"></span>
<span>{{getActiveNum(formatNum(orgclosedata.ZXZ) / 10000)}}</span>
<span class="span1"></span>
<span class="tag-blue"></span>
<span class="span1">{{orgclosedata.TBL?orgclosedata.TBL:0}}%</span>
<span class="span1">{{getActiveNum(formatNum(orgclosedata.ZXZ) / (formatNum(orgopendata.ZXZ) + formatNum(orgclosedata.ZXZ)) * 100)}}%</span>
</div>
<p>开展机构总数 {{orgtotal?orgtotal:0}}</p>
<p>登记报告总数 {{getActiveNum((formatNum(orgopendata.ZXZ) + formatNum(orgclosedata.ZXZ)) / 10000)}}</p>
</div>
<div class="card33-mod">
<div class="page5left" id="pag5-right1" v-show="ChartsNo == 1"></div>
......@@ -157,11 +157,16 @@
commonMethod,
otherMethod
} from '@/api/home.js'
import {
getActiveNum,
checkIsNull
} from '@/utils/common.js'
export default {
name: 'screenpage5',
data() {
return {
showtabnum:0,
showtabnum: 0,
areaname: '',
themeID: 3,
themeID2: 18,
......@@ -176,21 +181,10 @@
option1: {
color: ['#42ccff', '#3F81BB'],
series: [{
itemStyle: {
normal: {
label: {
show: true,
formatter: '{b} : {c} ({d}%)'
},
labelLine: {
show: true
}
}
},
name: '访问来源',
name: '机构登记报告分析',
type: 'pie',
radius: '65%', //饼图大小
center: ['50%', '50%'],
radius: '50%', //饼图大小
center: ['60%', '65%'],
label: {
normal: {
position: 'inner',
......@@ -198,9 +192,8 @@
},
},
data: [{
value: 76,
name: '已处理',
color: "red",
value: 0,
name: '',
areaStyle: {
normal: {
backgroundColor: '#42ccff'
......@@ -208,9 +201,8 @@
}
},
{
value: 24,
name: '待处理',
color: "red",
value: 0,
name: '',
areaStyle: {
normal: {
backgroundColor: '#3F81BB'
......@@ -230,21 +222,10 @@
option2: {
color: ['#42ccff', '#3F81BB'],
series: [{
itemStyle: {
normal: {
label: {
show: true,
formatter: '{b} : {c} ({d}%)'
},
labelLine: {
show: true
}
}
},
name: '访问来源',
name: '登记报告数分析',
type: 'pie',
radius: '65%',
center: ['50%', '50%'],
radius: '50%',
center: ['60%', '65%'],
label: {
normal: {
position: 'inner',
......@@ -252,8 +233,8 @@
},
},
data: [{
value: 45,
name: '已处理',
value: 0,
name: '',
color: "red",
areaStyle: {
normal: {
......@@ -262,8 +243,8 @@
}
},
{
value: 55,
name: '待处理',
value: 0,
name: '',
color: "red",
areaStyle: {
normal: {
......@@ -721,7 +702,7 @@
},
position: ['20%', '20%'],
formatter: function(params) {
formatter: function (params) {
if (params.length == 6) {
var res = '<ul class="f12 pl10 pr15">';
......@@ -771,7 +752,7 @@
rotate: 45,
textStyle: {
fontSize: 10,
color: function(value, index) {
color: function (value, index) {
return '#8393A9';
}
}
......@@ -844,18 +825,18 @@
series: []
},
isShowBack:false,
userinfo:{},
userRole:'',
cxsj:'',
_xzqh:'',
_yljgdm:'',
_group:'',
pageLevel:''
isShowBack: false,
userinfo: {},
userRole: '',
cxsj: '',
_xzqh: '',
_yljgdm: '',
_group: '',
pageLevel: ''
}
},
methods: {
showtab(num){
showtab(num) {
this.showtabnum = num
},
CityGetBack() {
......@@ -870,7 +851,7 @@
this.tablename = '各区'
this.thname = '各区'
}else if (this.pageLevel === 'sq') {
} else if (this.pageLevel === 'sq') {
// 此时 处于第二次点击下的状态
this._group = 'YLJGDM'
......@@ -898,7 +879,7 @@
this.tablename = '医院'
this.thname = '医院'
}else if (this.pageLevel === 'qj') {
} else if (this.pageLevel === 'qj') {
this._group = 'YWSJ'
this._yljgdm = code
this.pageLevel = 'sq'
......@@ -907,7 +888,7 @@
this.tablename = '时间'
this.thname = '月份'
}else if (this.pageLevel === 'sq') {
} else if (this.pageLevel === 'sq') {
return false
}
this.homeinit()
......@@ -915,7 +896,6 @@
},
dataSearch(cxsj) {
sessionStorage.setItem("ywsj", cxsj)
this.homeinit()
this.homebot()
......@@ -981,6 +961,10 @@
},
homeinit() {
let _this = this
if (_this.ChartsNo == 1) {
let wd = [{
"name": "YWSJ",
"endTime": this.cxsj,
......@@ -992,41 +976,41 @@
"value": this._xzqh,
"type": "1"
}]
//var zbcode="MBZFX_016";单独读取
let param = {
"themeId": _this.themeID,
"wd": JSON.stringify(wd),
}
commonMethod(param).then(res => {
if(res.data.content.length>0){
if (res.data.content.length > 0) {
_this.msgdata = res.data.content[0].zbxx
_this.msgdata.forEach((item, index) => {
if (item.ZBID == "1001") {
if (item.ZBID == "1002") {//肿瘤登记报告信息化情况
_this.msgopendata = item
}
if (item.ZBID == "1002") {
if (item.ZBID == "1000") {//肿瘤登记报告业务开展情况
_this.msgclosedata = item
}
if (item.ZBID == "1003") {
_this.orgopendata = item
}
if (item.ZBID == "1004") {
if (item.ZBID == "1001") {
_this.orgclosedata = item
}
if (item.ZBID == "1007") {
_this.msgbfb = item.ZXZ
}
if (item.ZBID == "1104") {
_this.orgbfb = item.ZXZ
}
})
_this.option1.series[0].data[0].value = _this.msgbfb
_this.option1.series[0].data[1].value = 100 - _this.msgbfb
_this.option1.series[0].data[0].name = '信息化业务开展机构数'
_this.option1.series[0].data[0].value = _this.msgopendata.ZXZ
_this.option1.series[0].data[1].name = '非信息化业务开展机构数'
_this.option1.series[0].data[1].value = _this.msgclosedata.ZXZ
_this.option2.series[0].data[0].value = _this.orgbfb
_this.option2.series[0].data[1].value = 100 - _this.orgbfb
}else{
_this.option2.series[0].data[0].name = '信息化登记报告数'
_this.option2.series[0].data[0].value = _this.msgopendata.ZXZ
_this.option2.series[0].data[1].name = '非信息化登记报告数'
_this.option2.series[0].data[1].value = _this.msgclosedata.ZXZ
} else {
_this.msgopendata = 0
_this.msgclosedata = 0
_this.orgopendata = 0
......@@ -1044,78 +1028,6 @@
console.log("--慢病监测肿瘤报错--");
})
let wd3 = [{
"name": "YWSJ",
"endTime": this.cxsj,
"type": "2",
"startTime": this.startTime,
"compare": "between"
}, {
"name": "XZQH",
"value": this._xzqh,
"type": "1"
}]
let param3 = {
"themeId": _this.themeID,
"wd": JSON.stringify(wd3)
}
commonMethod(param3).then(res => {
let zbdata = res.data.content.length > 0 ? res.data.content[0].zbxx : []
_this.msgdata.forEach((item, index) => {
if (item.ZBID == "1009") {
_this.msgone = item.BZZ
_this.msgtwo = item.ZXZ
_this.msgthr = item.ZZZ
_this.msgtotale = item.BZZ + item.ZXZ + item.ZZZ
}
if (item.ZBID == "1010") {
_this.nmsgone = item.BZZ
_this.nmsgtwo = item.ZXZ
_this.nmsgthr = item.ZZZ
_this.nmsgtotale = item.BZZ + item.ZXZ + item.ZZZ
}
if (item.ZBID == "1011") {
_this.orgone = item.BZZ
_this.orgtwo = item.ZXZ
_this.orgthr = item.ZZZ
_this.orgtotale = item.BZZ + item.ZXZ + item.ZZZ
}
if (item.ZBID == "1012") {
_this.norgone = item.BZZ
_this.norgtwo = item.ZXZ
_this.norgthr = item.ZZZ
_this.norgtotale = item.BZZ + item.ZXZ + item.ZZZ
}
})
_this.msgtotale = _this.msgtotale ? _this.msgtotale : 15
_this.nmsgtotale = _this.nmsgtotale ? _this.nmsgtotale : 15
_this.option3.series[0].data[0].value = _this.msgone ? _this.msgone : 10
_this.option3.series[0].data[1].value = _this.msgtwo ? _this.msgtwo : 10
_this.option3.series[0].data[2].value = _this.msgthr ? _this.msgthr : 10
_this.option3.series[0].data[3].value = _this.msgtotale * 0.5
_this.option3.series[1].data[0].value = _this.nmsgone ? _this.nmsgone : 10
_this.option3.series[1].data[1].value = _this.nmsgtwo ? _this.nmsgtwo : 10
_this.option3.series[1].data[2].value = _this.nmsgthr ? _this.nmsgthr : 10
_this.option3.series[1].data[3].value = _this.nmsgtotale * 0.5
_this.$echarts.init(document.getElementById("pag5-left2")).setOption(_this.option3, true)
_this.orgtotale = _this.orgtotale ? _this.orgtotale : 15
_this.norgtotale = _this.norgtotale ? _this.norgtotale : 15
_this.option4.series[0].data[0].value = _this.orgone ? _this.orgone : 10
_this.option4.series[0].data[1].value = _this.orgtwo ? _this.orgtwo : 10
_this.option4.series[0].data[2].value = _this.orgthr ? _this.orgthr : 10
_this.option4.series[0].data[3].value = _this.orgtotale * 0.5
_this.option4.series[1].data[0].value = _this.norgone ? _this.norgone : 10
_this.option4.series[1].data[1].value = _this.norgtwo ? _this.norgtwo : 10
_this.option4.series[1].data[2].value = _this.norgthr ? _this.norgthr : 10
_this.option4.series[1].data[3].value = _this.norgtotale * 0.5
_this.$echarts.init(document.getElementById("pag5-right2")).setOption(_this.option4, true)
if (_this.ChartsNo == 1) {
let series = [{
name: '登记数/去年',
type: 'bar',
......@@ -1237,7 +1149,112 @@
_this.option5.series = series
_this.$echarts.init(document.getElementById("middlebarbox5")).setOption(_this.option5, true)
} else {
let series = [{
let wd3 = [{
"name": "YWSJ",
"endTime": this.cxsj,
"type": "2",
"startTime": this.startTime,
"compare": "between"
}, {
"name": "XZQH",
"value": this._xzqh,
"type": "1"
}]
let param3 = {
"themeId": '18',
"wd": JSON.stringify(wd3),
"group": "JGLX"
}
commonMethod(param3).then(res => {
_this.msgdata = res.data.content
if (!checkIsNull(_this.msgdata) && _this.msgdata.length > 0) {
_this.msgdata.forEach((item, index) => {
if (item.JGLX == "1") {
item.zbxx.forEach((item2, index) => {
if (item2.ZBID == "1011") {//心脑血管登记报告信息化情况
_this.msgone = item2.ZXZ
}
if (item2.ZBID == "1009") {//心脑血管登记报告业务开展情况
_this.nmsgone = item2.ZXZ
}
if (item2.ZBID == "1012") {
_this.orgone = item2.ZXZ
}
if (item2.ZBID == "1010") {
_this.norgone = item2.ZXZ
}
})
} else if (item.JGLX == "2") {
item.zbxx.forEach((item2, index) => {
if (item2.ZBID == "1011") {//心脑血管登记报告信息化情况
_this.msgtwo = item2.ZXZ
}
if (item2.ZBID == "1009") {//心脑血管登记报告业务开展情况
_this.nmsgtwo = item2.ZXZ
}
if (item2.ZBID == "1012") {
_this.orgtwo = item2.ZXZ
}
if (item2.ZBID == "1010") {
_this.norgtwo = item2.ZXZ
}
})
} else if (item.JGLX == "3") {
item.zbxx.forEach((item2, index) => {
if (item2.ZBID == "1011") {//心脑血管登记报告信息化情况
_this.msgthr = item2.ZXZ
}
if (item2.ZBID == "1009") {//心脑血管登记报告业务开展情况
_this.nmsgthr = item2.ZXZ
}
if (item2.ZBID == "1012") {
_this.orgthr = item2.ZXZ
}
if (item2.ZBID == "1010") {
_this.norgthr = item2.ZXZ
}
})
}
})
_this.msgopendata = {}
_this.msgclosedata = {}
_this.orgopendata = {}
_this.orgclosedata = {}
_this.msgopendata.ZXZ = this.formatNum(_this.msgone) + this.formatNum(_this.msgtwo) + this.formatNum(_this.msgthr)
_this.msgclosedata.ZXZ = this.formatNum(_this.nmsgone) + this.formatNum(_this.nmsgtwo) + this.formatNum(_this.nmsgthr)
_this.orgopendata.ZXZ = this.formatNum(_this.orgone) + this.formatNum(_this.orgtwo) + this.formatNum(_this.orgthr)
_this.orgclosedata.ZXZ = this.formatNum(_this.norgone) + this.formatNum(_this.norgtwo) + this.formatNum(_this.norgthr)
_this.msgtotale = _this.msgtotale ? _this.msgtotale : 15
_this.nmsgtotale = _this.nmsgtotale ? _this.nmsgtotale : 15
_this.option3.series[0].data[0].value = _this.msgone ? _this.msgone : 10
_this.option3.series[0].data[1].value = _this.msgtwo ? _this.msgtwo : 10
_this.option3.series[0].data[2].value = _this.msgthr ? _this.msgthr : 10
_this.option3.series[0].data[3].value = _this.msgopendata.ZXZ * 0.5
_this.option3.series[1].data[0].value = _this.nmsgone ? _this.nmsgone : 10
_this.option3.series[1].data[1].value = _this.nmsgtwo ? _this.nmsgtwo : 10
_this.option3.series[1].data[2].value = _this.nmsgthr ? _this.nmsgthr : 10
_this.option3.series[1].data[3].value = _this.msgclosedata.ZXZ * 0.5
_this.$echarts.init(document.getElementById("pag5-left2")).setOption(_this.option3, true)
_this.orgtotale = _this.orgtotale ? _this.orgtotale : 15
_this.norgtotale = _this.norgtotale ? _this.norgtotale : 15
_this.option4.series[0].data[0].value = _this.orgone ? _this.orgone : 10
_this.option4.series[0].data[1].value = _this.orgtwo ? _this.orgtwo : 10
_this.option4.series[0].data[2].value = _this.orgthr ? _this.orgthr : 10
_this.option4.series[0].data[3].value = _this.orgopendata.ZXZ * 0.5
_this.option4.series[1].data[0].value = _this.norgone ? _this.norgone : 10
_this.option4.series[1].data[1].value = _this.norgtwo ? _this.norgtwo : 10
_this.option4.series[1].data[2].value = _this.norgthr ? _this.norgthr : 10
_this.option4.series[1].data[3].value = _this.orgclosedata.ZXZ * 0.5
_this.$echarts.init(document.getElementById("pag5-right2")).setOption(_this.option4, true)
}
let series = [
{
name: '登记数/去年',
type: 'bar',
barWidth: null,
......@@ -1331,11 +1348,11 @@
}
_this.option5.series = series
_this.$echarts.init(document.getElementById("middlebarbox5")).setOption(_this.option5, true)
}
}).catch(err => {
console.log("--慢病监测心脑血管报错--");
})
}
},
homebot() {
let _this = this
......@@ -1361,14 +1378,7 @@
_this.tabledata = []
commonMethod(param4).then(res => {
let obj = {
name: '',
tag1: '0.0',
tag2: '0.0',
tag3: '0.0',
tag4: '0.0',
areacode: 'v'
}
let obj = {}
res.data.content.forEach((item, index) => {
let obj = {
......@@ -1426,6 +1436,16 @@
}).catch(err => {
console.log("--慢病监测心脑血管报错--");
})
},
formatNum(str) {
if (checkIsNull(str) || str == "NaN" || str == "Infinity" || str == "-" || isNaN(str)) {
return 0;
} else {
return parseFloat(str);
}
},
getActiveNum(str) {
return getActiveNum(str)
}
},
mounted() {
......@@ -1525,14 +1545,52 @@
}
</script>
<style lang="stylus" scoped>
.card33-mod .pl10{ font-size: 12px;}
.card33-mod .pl10 td{ padding: 0 10px;}
.echarts-square{ height: 10px; width: 14px; display: inline-table;}
.page5left{ width:150px; height:150px }
#middlebarbox5{width:455px;height:280px}
.area >>> .el-input--mini .el-input__inner{padding:0; text-align:center; color: #FFF; border:1px solid #409EFF; background-color: #409EFF;}
.area >>> .el-input--mini .el-input__inner::-webkit-input-placeholder {color: #FFF;}
.area >>> .el-input--mini{ width: 60px; margin-left: 8px;}
.area >>> .el-input__icon.el-icon-date{display:none}
.area >>> .el-input__icon{display:none}
.card33-mod .pl10 {
font-size: 12px;
}
.card33-mod .pl10 td {
padding: 0 10px;
}
.echarts-square {
height: 10px;
width: 14px;
display: inline-table;
}
.page5left {
width: 150px;
height: 150px
}
#middlebarbox5 {
width: 455px;
height: 280px
}
.area >>> .el-input--mini .el-input__inner {
padding: 0;
text-align: center;
color: #FFF;
border: 1px solid #409EFF;
background-color: #409EFF;
}
.area >>> .el-input--mini .el-input__inner::-webkit-input-placeholder {
color: #FFF;
}
.area >>> .el-input--mini {
width: 60px;
margin-left: 8px;
}
.area >>> .el-input__icon.el-icon-date {
display: none
}
.area >>> .el-input__icon {
display: none
}
</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