Commit bdf3c8d9 by pcc

慢病管理--易患监测下半部分

parent 087fb044
...@@ -671,43 +671,57 @@ ...@@ -671,43 +671,57 @@
} }
}, },
CityGetBack() { CityGetBack() {
this.showtime = true
this.showTab = true
this.bingNo = 1
if (this.pageLevel === 'qj') { if (this.pageLevel === 'qj') {
this.isShowBack = false this.isShowBack = false
// 此时 处于第一次点击下的状态 // 此时 处于第一次点击下的状态
this._xzqh = '' this._xzqh = ''
this._yljgdm = ''
this._group = 'XZQH' this._group = 'XZQH'
this.pageLevel = 'sj' this.pageLevel = 'sj'
this.areaname = '' this.areaname = ''
this.aename = '各区'
this.tablename = '各区' this.tablename = '各区'
this.thname = '各区' this.thname = '各区'
}else if (this.pageLevel === 'sq') { }else if (this.pageLevel === 'sq') {
// 此时 处于第二次点击下的状态 // 此时 处于第二次点击下的状态
this._xzqh = sessionStorage.getItem('xzqh')
this._yljgdm = '' this._yljgdm = ''
this._group = 'YLJGDM' this._group = 'YLJGDM'
this.pageLevel = 'qj' this.pageLevel = 'qj'
this.aename = '社区' this.aename = '社区'
this.tablename = '医院' this.tablename = '医院'
this.thname = '医院' this.thname = '医院'
this.areaname = this.areaname2 this.areaname = this.areaname2
} }
this.homeinit() this.homeinit()
this.homebot() this.homebot()
}, },
groupChange(num) { groupChange(num) {
this.groupNo = num this.groupNo = num
if (num == 1) { if (num == 1) {
this._group = "XZQH"
if (this.DieaNo == 1) { if (this.DieaNo == 1) {
this.showTab = true this.showTab = true
if (this.pageLevel === 'sj') {
this.tablename = '各区'
this.thname = '各区'
this._group = "XZQH"
}else if (this.pageLevel === 'sq') {
this._group = "YLJGDM"
this.tablename = '社区'
this.thname = '医院'
}
} }
this.homebot() this.homebot()
} else { } else {
this.showTab = false this.showTab = false
this._group = "YWSJ" this._group = "YWSJ"
this.tablename = '时间'
this.thname = '月份'
this.homebot() this.homebot()
} }
}, },
...@@ -730,6 +744,7 @@ ...@@ -730,6 +744,7 @@
this.cxsj = sessionStorage.getItem("ywsj") this.cxsj = sessionStorage.getItem("ywsj")
this.userinfo = JSON.parse(sessionStorage.getItem("userinfo")) this.userinfo = JSON.parse(sessionStorage.getItem("userinfo"))
this.userRole = sessionStorage.getItem("userRole") this.userRole = sessionStorage.getItem("userRole")
if ('city' === this.userRole) {//市角色 if ('city' === this.userRole) {//市角色
this._xzqh = "" this._xzqh = ""
this._yljgdm = "" this._yljgdm = ""
...@@ -762,6 +777,8 @@ ...@@ -762,6 +777,8 @@
this.homeinit() this.homeinit()
this.homebot() this.homebot()
this.groupChange(1)
this.bingChange(1)
}, },
// cansertopShow // cansertopShow
DieaChange(num) { DieaChange(num) {
...@@ -806,27 +823,33 @@ ...@@ -806,27 +823,33 @@
this.pageLevel = 'qj' this.pageLevel = 'qj'
this._xzqh = code this._xzqh = code
this._group = 'YLJGDM' this._group = 'YLJGDM'
this.isShowBack = true
this.isShowBack = true
this.areaname2 = name this.areaname2 = name
this.aename = '社区' this.aename = '社区'
this.tablename = '医院' this.tablename = '医院'
this.thname = '医院' this.thname = '医院'
sessionStorage.setItem("xzqh",code)
this.homeinit()
this.homebot()
}else if (this.pageLevel === 'qj') { }else if (this.pageLevel === 'qj') {
this._group = 'YWSJ' this._group = 'YWSJ'
this._yljgdm = code this._yljgdm = code
this.pageLevel = 'sq' this.pageLevel = 'sq'
this.isShowBack = true
this.isShowBack = true
this.showtime = false
this.showTab = false
this.bingNo = 1
this.aename = '时间'
this.tablename = '时间' this.tablename = '时间'
this.thname = '月份' this.thname = '月份'
this.homeinit()
this.homebot()
}else if (this.pageLevel === 'sq') { }else if (this.pageLevel === 'sq') {
return false return false
} }
this.homeinit()
this.homebot()
}, },
homeinit() { homeinit() {
let _this = this let _this = this
...@@ -1134,7 +1157,7 @@ ...@@ -1134,7 +1157,7 @@
this.dataY07.push(item2.ZXZ ? item2.ZXZ : 0) this.dataY07.push(item2.ZXZ ? item2.ZXZ : 0)
/*去年*/ /*去年*/
this.dataY06.push(this.tableg[index].zbxx[index2].TBZ ? this.tableg[index].zbxx[index2].TBZ : 0) this.dataY06.push(this.tableg[index].zbxx[index2].TBZ ? this.tableg[index].zbxx[index2].TBZ : 0)
this.dataY08.push(item2.TBZ ? item2.TBZ :0) this.dataY08.push(item2.TBZ ? item2.TBZ : 0)
/*右侧列表数据*/ /*右侧列表数据*/
obj.tag1 = this.tableg[index].zbxx[index2].ZXZ ? getActiveNum(this.tableg[index].zbxx[index2].ZXZ) : 0; obj.tag1 = this.tableg[index].zbxx[index2].ZXZ ? getActiveNum(this.tableg[index].zbxx[index2].ZXZ) : 0;
...@@ -1146,7 +1169,6 @@ ...@@ -1146,7 +1169,6 @@
} else { } else {
/*柱状图*/ /*柱状图*/
if (item2.ZBID == '1022') { if (item2.ZBID == '1022') {
this.dataY01.push(this.tableg[index].zbxx[index2].ZXZ?this.tableg[index].zbxx[index2].ZXZ:0) this.dataY01.push(this.tableg[index].zbxx[index2].ZXZ?this.tableg[index].zbxx[index2].ZXZ:0)
this.dataY02.push(item2.ZXZ?item2.ZXZ:0) this.dataY02.push(item2.ZXZ?item2.ZXZ:0)
...@@ -1172,19 +1194,37 @@ ...@@ -1172,19 +1194,37 @@
} }
} }
} else if (_this.DieaNo == 2) { } else if (_this.DieaNo == 2) {
if (item2.ZBID == '1111') { if (this.tableg[index].zbxx[index2].ZXZ < 10000){
this.dataY01.push(this.tableg[index].zbxx[index2].ZXZ ? this.tableg[index].zbxx[index2].ZXZ : 0) this.option2.yAxis[0].name = '数量'
this.dataY02.push(this.tableg[index].zbxx[index2].PZL ? this.tableg[index].zbxx[index2].PZL : 0) }
if (item2.ZBID == '1027') {
this.dataY01.push(this.formatnum2(this.tableg[index].zbxx[index2].ZXZ))
this.dataY02.push(this.formatnum2(item2.ZXZ))
/*去年*/
this.dataY03.push(this.formatnum2(this.tableg[index].zbxx[index2].TBZ))
this.dataY04.push(this.formatnum2(item2.TBZ))
} }
if (item2.ZBID == '1110') {
this.dataY03.push(item2.ZXZ ? parseFloat(item2.ZXZ).toFixed(1) : 0) if (item2.ZBID == '1026') {
this.dataY04.push(item2.PZL ? parseFloat(item2.PZL).toFixed(1) : 0) this.dataY05.push(this.tableg[index].zbxx[index2].ZXZ ? this.tableg[index].zbxx[index2].ZXZ : 0)
this.dataY07.push(item2.ZXZ ? item2.ZXZ : 0)
/*去年*/
this.dataY06.push(this.tableg[index].zbxx[index2].TBZ ? this.tableg[index].zbxx[index2].TBZ : 0)
this.dataY08.push(item2.TBZ ? item2.TBZ :0)
/*右侧列表数据*/
obj.tag1 = this.tableg[index].zbxx[index2].ZXZ ? getActiveNum(this.tableg[index].zbxx[index2].ZXZ) : 0;
obj.tag2 = this.tableg[index].zbxx[index2].PZL ? getActiveNum(this.tableg[index].zbxx[index2].PZL) : 0;
obj.tag3 = item2.ZXZ ? getActiveNum(item2.ZXZ) : 0;
obj.tag4 = this.tableg[index].zbxx[index2].PZL ? getActiveNum(this.tableg[index].zbxx[index2].PZL) : 0;
} }
} }
}) })
_this.tableAll.push(obj) _this.tableAll.push(obj)
console.log( _this.tableAll)
}) })
//默认进来首诊测压 //默认进来首诊测压
...@@ -1482,7 +1522,7 @@ ...@@ -1482,7 +1522,7 @@
) )
} }
}, },
data: this.dataY01, data: null,
barWidth: null, barWidth: null,
}, },
{ {
...@@ -1494,6 +1534,17 @@ ...@@ -1494,6 +1534,17 @@
color: '#4093E9' color: '#4093E9'
} }
}, },
data: this.dataY01,
stack: "1"
},{
name: '管理/签约易患人群血压规范监测数',
type: 'bar',
barWidth: 8,
itemStyle: {
normal: {
color: '#2A5B78'
}
},
data: this.dataY02, data: this.dataY02,
stack: "1" stack: "1"
}, },
...@@ -1525,7 +1576,7 @@ ...@@ -1525,7 +1576,7 @@
) )
} }
}, },
data: this.dataY03, data: null,
barWidth: null, barWidth: null,
}, },
{ {
...@@ -1537,6 +1588,17 @@ ...@@ -1537,6 +1588,17 @@
color: '#00BEBE' color: '#00BEBE'
} }
}, },
data: this.dataY03,
stack: "2"
},{
name: '去年管理/签约易患人群血压规范监测数',
type: 'bar',
barWidth: 8,
itemStyle: {
normal: {
color: '#115D5D'
}
},
data: this.dataY04, data: this.dataY04,
stack: "2" stack: "2"
}, },
...@@ -1576,7 +1638,7 @@ ...@@ -1576,7 +1638,7 @@
) )
} }
}, },
data: this.dataY05, data: null,
}, },
{ {
name: '管·易患人群血压规范监测率/去年', name: '管·易患人群血压规范监测率/去年',
...@@ -1595,6 +1657,25 @@ ...@@ -1595,6 +1657,25 @@
color: '#00D1DA' color: '#00D1DA'
} }
}, },
z: 11,
data: this.dataY05,
},{
name: '管·易患人群血压规范监测率/去年',
type: 'line',
smooth: false,
yAxisIndex: 1,
symbol: 'circle',
symbolSize: 6,
lineStyle: {
normal: {
width: 2
}
},
itemStyle: {
normal: {
color: '#666'
}
},
z: 12, z: 12,
data: this.dataY06, data: this.dataY06,
}, },
...@@ -1653,7 +1734,27 @@ ...@@ -1653,7 +1734,27 @@
color: '#FFC24D' color: '#FFC24D'
} }
}, },
z: 12, z: 13,
data: this.dataY07
},
{
name: '签·易患人群血压规范监测率/去年',
type: 'line',
smooth: false,
yAxisIndex: 1,
symbol: 'circle',
symbolSize: 6,
lineStyle: {
normal: {
width: 2
}
},
itemStyle: {
normal: {
color: '#666'
}
},
z: 14,
data: this.dataY08 data: this.dataY08
} }
] ]
...@@ -1951,7 +2052,8 @@ ...@@ -1951,7 +2052,8 @@
this._xzqh = "" this._xzqh = ""
this._group = "XZQH" this._group = "XZQH"
this.pageLevel = 'sj' this.pageLevel = 'sj'
this.homeinit()
this.homebot()
} else if ('area' === this.userRole) {//区角色 } else if ('area' === this.userRole) {//区角色
this._xzqh = sessionStorage.getItem("organizcode") this._xzqh = sessionStorage.getItem("organizcode")
...@@ -1964,6 +2066,8 @@ ...@@ -1964,6 +2066,8 @@
this.arname = '社区' this.arname = '社区'
this.areaname = sessionStorage.getItem("organizcodeName") this.areaname = sessionStorage.getItem("organizcodeName")
this.homeinit()
this.homebot()
} 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"
...@@ -1973,9 +2077,10 @@ ...@@ -1973,9 +2077,10 @@
this.thname = "医院" this.thname = "医院"
this.arname = '社区' this.arname = '社区'
this.areaname = sessionStorage.getItem("organizcodeName") this.areaname = sessionStorage.getItem("organizcodeName")
this.homeinit()
this.homebot()
} }
this.homeinit()
this.homebot()
const obj = setInterval(() => { const obj = setInterval(() => {
const dom = document.getElementById("charts1") const dom = document.getElementById("charts1")
if (dom) { if (dom) {
......
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