Commit 62887365 by lihu541

页面数据核对,修改

parent a7fad53c
......@@ -2077,6 +2077,18 @@
})
temptableAllQ.forEach((item, index) => {
if (item.YWSJ) {
} else {
if (item.XZQH_TEXT) {
} else if (item.YLJGDM_EX2) {
} else {
return false
}
}
item.zbxx.forEach((item2, index2) => {
if (_this.mbType === 'gxy') {
......
......@@ -203,11 +203,11 @@
计算公式:<br>年内规范管理的{{pagedisname}}对象中末次报告{{bleedtype}}控制合格人数/已规范管理的{{pagedisname}}患者人数×100%
</div>
<tbody class="scrollTbody">
<tr v-for="(item, index) in listArrayFinal" :key="index">
<tr v-for="(item, index) in topListData" :key="index">
<td width="38"><span>{{index+1}}</span></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.g2}}/{{item.q2}}</td>
<td width="48" @click="changecity(item.code,item.name)" class="underline">{{item.name}}</td>
<td width="100">{{item.tag1}}/{{item.tag2}}</td>
<td width="100">{{item.tag3}}/{{item.tag4}}</td>
</tr>
</tbody>
</table>
......@@ -284,7 +284,7 @@
// 地区列表数组
listArray: [],
listArray2: [],
listArrayFinal: [],
topListData: [],
// 年龄段变量
G_ageList: [],
Q_ageList: [],
......@@ -393,27 +393,27 @@
if (params[0].seriesName == '管理/签约人群自动上传血压合格人数') {
var res = '<ul class="f12 pl10 pr15">';
res += '<li class="f13"> ' + params[0].axisValue + '</li>';
res += '<li>管理 / 签约人群高血压对象中末次自动上传血压控制<br/>合格人数:' + params[0].data + '/' + params[1].data + '万</li>';
res += '<li>去年管理 / 签约人群高血压对象中末次自动上传血压<br/>控制合格人数:' + params[2].data + '/' + params[2].data + '万</li>';
res += '<li>管.高血压规范管理人群自动上传血压控制率/去年:' + params[3].data + '/' + params[3].data + '%</li>';
res += '<li>签.高血压规范管理人群自动上传血压控制率/去年:' + params[4].data + '/' + params[5].data + '%</li>';
res += '<li class="f13"> ' + params[0].axisValue + '</li>';
res += '<li>管理 / 签约人群高血压对象中末次自动上传血压控制<br/>合格人数:' + params[0].data.num1 + '/' + params[0].data.num2 + '</li>';
res += '<li>去年管理 / 签约人群高血压对象中末次自动上传血压<br/>控制合格人数:' + params[0].data.num3 + '/' + params[0].data.num4 + '</li>';
res += '<li>管.高血压规范管理人群自动上传血压控制率/去年:' + params[0].data.num5 + '/' + params[0].data.num6 + '%</li>';
res += '<li>签.高血压规范管理人群自动上传血压控制率/去年:' + params[0].data.num7 + '/' + params[0].data.num8 + '%</li>';
res += '</ul>';
} else if (params[0].seriesName == '管·自动上传血压控制率/去年') {
var res = '<ul class="f12 pl10 pr15">';
res += '<li class="f13"> ' + params[0].axisValue + '</li>';
res += '<li>管理/签约人群高血压对象中末次自动上传血压控制<br/>合格人数:' + params[0].data + '/' + params[1].data + '万</li>';
res += '<li>去年管理/签约人群高血压对象中末次自动上传血压<br/>控制合格人数:' + params[2].data + '/' + params[2].data + '万</li>';
res += '<li>管.高血压管理人群自动上传血压控制率/去年:' + params[3].data + '/' + params[3].data + '%</li>';
res += '<li>签.高血压管理人群自动上传血压控制率/去年:' + params[4].data + '/' + params[5].data + '%</li>';
res += '<li class="f13"> ' + params[0].axisValue + '</li>';
res += '<li>管理/签约人群高血压对象中末次自动上传血压控制<br/>合格人数:' + params[0].data.num1 + '/' + params[0].data.num2 + '万</li>';
res += '<li>去年管理/签约人群高血压对象中末次自动上传血压<br/>控制合格人数:' + params[0].data.num3 + '/' + params[0].data.num4 + '万</li>';
res += '<li>管.高血压管理人群自动上传血压控制率/去年:' + params[0].data.num5 + '/' + params[0].data.num6 + '%</li>';
res += '<li>签.高血压管理人群自动上传血压控制率/去年:' + params[0].data.num7 + '/' + params[0].data.num8 + '%</li>';
res += '</ul>';
} else {
var res = '<ul class="f12 pl10 pr15">';
res += '<li class="f13"> ' + params[0].axisValue + '</li>';
res += '<li>管理/签约人群年内已管理的高血压患者中就诊人数:' + params[0].data + '/' + params[1].data + '万</li>';
res += '<li>去年管理/签约人群年内已管理的高血压患者中就诊人数:' + params[2].data + '/' + params[3].data + '万</li>';
res += '<li>管.高血压患者就诊率/去年:' + params[4].data + '/' + params[5].data + '%</li>';
res += '<li>签.高血压患者就诊率/去年:' + params[6].data + '/' + params[7].data + '%</li>';
res += '<li class="f13"> ' + params[0].axisValue + '</li>';
res += '<li>管理/签约人群年内已管理的高血压患者中就诊人数:' + params[0].data.num1 + '/' + params[0].data.num2 + '万</li>';
res += '<li>去年管理/签约人群年内已管理的高血压患者中就诊人数:' + params[0].data.num3 + '/' + params[0].data.num4 + '万</li>';
res += '<li>管.高血压患者就诊率/去年:' + params[0].data.num5 + '/' + params[0].data.num6 + '%</li>';
res += '<li>签.高血压患者就诊率/去年:' + params[0].data.num7 + '/' + params[0].data.num8 + '%</li>';
res += '</ul>';
}
return res
......@@ -432,9 +432,7 @@
itemWidth: 14,
itemGap: 5,
height: 50,
data: ['管理/签约人群自动上传血压合格人数', '去年管理/签约人群自动上传血压合格人数', '管·自动上传血压控制率/去年', '签·自动上传血压控制率/去年', '管·报告血压控制率/去年',
'签·报告血压控制率/去年', '管·BMI异常比/去年', '签·BMI异常比/去年'
],
data: [],
align: 'left',
selectedMode: true
},
......@@ -531,148 +529,107 @@
}],
series: [
{
name: '管理/签约人群自动上传血压合格人数',
type: 'bar',
stack: '1',
itemStyle: {
normal: {
color: new this.$echarts.graphic.LinearGradient(
0, 0, 0, 1,
[{
offset: 0,
color: '#115D5D'
},
{
offset: 0.5,
color: '#115D5D'
},
{
offset: 0.5,
color: '#4093E9'
},
{
offset: 1,
color: '#4093E9'
}
]
)
}
name: '管理/签约人群自动上传血压合格人数',
type: 'bar',
stack: '1',
itemStyle: {
normal: {
color: new this.$echarts.graphic.LinearGradient(
0, 0, 0, 1,
[
{offset: 0, color: '#2A5B78'},
{offset: 0.5, color: '#2A5B78'},
{offset: 0.6, color: '#4093E9'},
{offset: 1, color: '#4093E9'}
]
)
}
},
barWidth: null,
data: null,
},
barWidth: null,
data: [],
},
{
name: '管理/签约人群自动上传血压合格人数',
type: 'line',
stack: "1",
barWidth: null,
type: 'bar',
stack: '1',
itemStyle: {
normal: {
color: '#4093E9'
}
},
data: []
barWidth: 6,
data: [],
},
{
name: '去年管理/签约人群自动上传血压合格人数',
name: '管理/签约人群自动上传血压合格人数',
type: 'bar',
stack: '1',
itemStyle: {
normal: {
color: '#2A5B78'
}
},
barWidth: 6,
data: [],
},
{
name: '去年管理/签约人群自动上传血压合格人数',
type: 'bar',
stack: '2',
itemStyle: {
normal: {
color: new this.$echarts.graphic.LinearGradient(
0, 0, 0, 1,
[{
offset: 0,
color: '#115D5D'
},
{
offset: 0.5,
color: '#115D5D'
},
{
offset: 0.5,
color: '#099023'
},
{
offset: 1,
color: '#099023'
}
[
{offset: 0, color: '#115D5D'},
{offset: 0.5, color: '#115D5D'},
{offset: 0.6, color: '#00BEBE'},
{offset: 1, color: '#00BEBE'}
]
)
}
},
barWidth: null,
data: []
data: null,
},
{
name: '去年管理/签约人群自动上传血压合格人数',
type: 'line',
barWidth: 8,
type: 'bar',
stack: '2',
itemStyle: {
normal: {
color: new this.$echarts.graphic.LinearGradient(
0, 0, 0, 1,
[{
offset: 0,
color: '#115D5D'
},
{
offset: 0.5,
color: '#115D5D'
},
{
offset: 0.5,
color: '#099023'
},
{
offset: 1,
color: '#099023'
}
]
)
color: '#00BEBE'
}
},
barWidth: 6,
data: [],
},
{
name: '去年管理/签约人群自动上传血压合格人数',
type: 'bar',
stack: '2',
itemStyle: {
normal: {
color: '#115D5D'
}
},
barWidth: 6,
data: [],
stack: "1"
},
{
name: '管·自动上传血压控制率/去年',
type: 'line',
smooth: true,
yAxisIndex: 1,
symbol: 'circle',
symbolSize: 5,
smooth: 0.1,
lineStyle: {
normal: {
width: 2
}
},
symbolSize: 6,
itemStyle: {
normal: {
color: new this.$echarts.graphic.LinearGradient(
0, 0, 0, 1,
[{
offset: 0,
color: '#115D5D'
},
{
offset: 0.5,
color: '#115D5D'
},
{
offset: 0.5,
color: '#995D13'
},
{
offset: 1,
color: '#995D13'
}
]
)
color: '#FF8E00'
}
},
z: 6,
data: [],
},
{
name: '签·自动上传血压控制率/去年',
......@@ -681,37 +638,13 @@
yAxisIndex: 1,
symbol: 'circle',
symbolSize: 6,
lineStyle: {
normal: {
width: 0
}
},
itemStyle: {
normal: {
color: new this.$echarts.graphic.LinearGradient(
0, 0, 0, 1,
[{
offset: 0,
color: '#115D5D'
},
{
offset: 0.5,
color: '#115D5D'
},
{
offset: 0.5,
color: '#1A7B32'
},
{
offset: 1,
color: '#1A7B32'
}
]
)
color: '#ffc85a'
}
},
z: 11,
data: [],
z: 6,
data: []
},
{
name: '管·报告血压控制率/去年',
......@@ -720,37 +653,13 @@
yAxisIndex: 1,
symbol: 'circle',
symbolSize: 6,
lineStyle: {
normal: {
width: 2
}
},
itemStyle: {
normal: {
color: new this.$echarts.graphic.LinearGradient(
0, 0, 0, 1,
[{
offset: 0,
color: '#115D5D'
},
{
offset: 0.5,
color: '#115D5D'
},
{
offset: 0.5,
color: '#65FD82'
},
{
offset: 1,
color: '#65FD82'
}
]
)
color: '#1eb2fd'
}
},
z: 12,
data: [],
z: 11,
data: []
},
{
name: '签·报告血压控制率/去年',
......@@ -759,37 +668,13 @@
yAxisIndex: 1,
symbol: 'circle',
symbolSize: 6,
lineStyle: {
normal: {
width: 2
}
},
itemStyle: {
normal: {
color: new this.$echarts.graphic.LinearGradient(
0, 0, 0, 1,
[{
offset: 0,
color: '#115D5D'
},
{
offset: 0.5,
color: '#115D5D'
},
{
offset: 0.5,
color: '#F78387'
},
{
offset: 1,
color: '#F78387'
}
]
)
color: '#47f6fd'
}
},
z: 11,
data: [],
data: []
},
{
name: '管·BMI异常比/去年',
......@@ -798,38 +683,13 @@
yAxisIndex: 1,
symbol: 'circle',
symbolSize: 6,
lineStyle: {
normal: {
width: 2
}
},
itemStyle: {
normal: {
color: new this.$echarts.graphic.LinearGradient(
0, 0, 0, 1,
[{
offset: 0,
color: '#115D5D'
},
{
offset: 0.5,
color: '#115D5D'
},
{
offset: 0.5,
color: '#00D2DB'
},
{
offset: 1,
color: '#00D2DB'
}
]
)
color: '#0eff67'
}
},
z: 11,
data: [],
// 2,3,4,5,6,1,5,2
data: []
},
{
name: '签·BMI异常比/去年',
......@@ -838,38 +698,13 @@
yAxisIndex: 1,
symbol: 'circle',
symbolSize: 6,
lineStyle: {
normal: {
width: 2
}
},
itemStyle: {
normal: {
color: new this.$echarts.graphic.LinearGradient(
0, 0, 0, 1,
[{
offset: 0,
color: '#115D5D'
},
{
offset: 0.5,
color: '#115D5D'
},
{
offset: 0.5,
color: '#EEC55B'
},
{
offset: 1,
color: '#EEC55B'
}
]
)
color: '#69ffc4'
}
},
z: 11,
data: [],
// 2,3,4,5,6,1,5,2
data: []
}
]
},
......@@ -1021,1482 +856,29 @@
groupChange(grouplx) {
this.groupType = grouplx
if (grouplx === 'org') {
this._group = "XZQH"
this.homeinit()
} else {
this._group = "YWSJ"
this.homeinit()
}
},
rqlxChange(rqlx) {
this.rqType = rqlx
if (rqlx === 'gfgl') {
this.middlename = "规范管理人群"
this.homeinit()
} else {
this.middlename = "管理人群"
this.homeinit()
}
},
homeinit() {
this.pageHeadData()
this.listArray = []
this.listArray2 = []
this.listArrayFinal = []
let wd = [{
"name": "YWSJ",
"type": "2",
"startTime": '',
"endTime": this.cxsj,
"compare": "between",
}, {
"name": "XZQH",
"value": this._xzqh,
"type": "1"
}, {
"name": "YLJGDM",
"value": this._yljgdm,
"type": "1"
}]
// 签约数据 入参
let 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"
}
]
let placeparam = {
"themeId": this.themeId,
"wd": JSON.stringify(wd),
"group": this._group,
}
let placeparam2 = {
"themeId": this.themeId,
"wd": JSON.stringify(wd2),
"group": this._group,
}
// 右下角列表 + 图表 (数据共用)
// 管数据请求 --- 右下角列表
// XZQH --- YLJGDM
commonMethod(placeparam).then(res => {
res.data.content.forEach((item, index) => {
let obj = {
name: 'v',
g0: '0',
g1: '0',
g2: '0',
AreaCode: '0'
}
if (item.YWSJ) {
obj.name = parseInt(item.YWSJ.substring(6, 7))
} else {
if (item.XZQH_TEXT) {
obj.name = item.XZQH_TEXT
obj.AreaCode = item.XZQH ? item.XZQH : ''
} else if (item.YLJGDM_EX2) {
obj.name = item.YLJGDM_EX2
obj.AreaCode = item.YLJGDM ? item.YLJGDM : ''
} else {
obj.name = "地名缺失"
return false
}
}
item.zbxx.forEach((item2, index2) => {
if (this.rqType === 'gfgl') {
if (item2.ZBID == "1167" || item2.ZBID == "1143") {
obj.g0 = item2.ZXZ ? parseFloat(item2.ZXZ).toFixed(1) : 0
}
if (item2.ZBID == "1169" || item2.ZBID == "1145") {
obj.g1 = item2.ZXZ ? parseFloat(item2.ZXZ).toFixed(1) : 0
}
if (item2.ZBID == "1166" || item2.ZBID == "1142") {
obj.g2 = item2.ZXZ ? parseFloat(item2.ZXZ).toFixed(1) : 0
}
// 柱状图数据获取
if (item2.ZBID == "1170" || item2.ZBID == "1143") {
// 管理/签约人群自动上传血压合格人数
this.g_autoup_list.push(getActiveNum(item2.ZXZ / 10000))
}
if (item2.ZBID == "1176" || item2.ZBID == "1149") {
// 去年管理/签约人群自动上传血压合格人数
this.g_normal_list.push(item2.ZXZ ? item2.ZXZ : 0)
}
if (item2.ZBID == "1170" || item2.ZBID == "1146") {
this.g_personAutoNum.push(item2.ZXZ ? parseFloat(item2.ZXZ).toFixed(1) : 0)
}
// 去年的 规范管理 合格人数 数据 TBZ
if (item2.ZBID == "1170" || item2.ZBID == "1146") {
this.g_personAutoNumTbl.push(item2.TBZ ? parseFloat(item2.TBZ).toFixed(1) : 0)
}
// if (item2.ZBID == "1169" || item2.ZBID == "1145") {
// this.g_normal_list.push(item2.ZXZ ? item2.ZXZ : 0)
// }
} else {
if (item2.ZBID == "1180" || item2.ZBID == "1182") {
obj.g0 = item2.ZXZ ? parseFloat(item2.ZXZ).toFixed(1) : 0
}
if (item2.ZBID == "1175" || item2.ZBID == "1151") {
obj.g1 = item2.ZXZ ? parseFloat(item2.ZXZ).toFixed(1) : 0
}
if (item2.ZBID == "1172" || item2.ZBID == "1160") {
obj.g2 = item2.ZXZ ? parseFloat(item2.ZXZ).toFixed(1) : 0
}
// 柱状图数据获取
if (item2.ZBID == "1167" || item2.ZBID == "1143") {
this.g_autoup_list.push(item2.ZXZ ? item2.ZXZ : 0)
}
if (item2.ZBID == "1175" || item2.ZBID == "1151") {
this.g_normal_list.push(item2.ZXZ ? item2.ZXZ : 0)
}
}
})
this.listArray.push(obj)
})
// 签数据请求--- 右下角列表 + 图表 (数据共用)
commonMethod(placeparam2).then(res => {
this.g_autoup_list = [] // 再次请求 数据清空
this.q_autoup_list = [] // 再次请求 数据清空
this.g_normal_list = [] // 再次请求 数据清空
this.q_normal_list = [] // 再次请求 数据清空
res.data.content.forEach((item, index) => {
let obj = {
q0: '0',
q1: '0',
q2: '0'
}
item.zbxx.forEach((item2, index2) => {
// IBM 数据赋值
if (this.rqType === 'gfgl') {
if (item2.ZBID == "1167" || item2.ZBID == "1143") {
obj.q0 = item2.ZXZ ? parseFloat(item2.ZXZ).toFixed(1) : 0
}
if (item2.ZBID == "1169" || item2.ZBID == "1145") {
obj.q1 = item2.ZXZ ? parseFloat(item2.ZXZ).toFixed(1) : 0
}
if (item2.ZBID == "1166" || item2.ZBID == "1142") {
obj.q2 = item2.ZXZ ? parseFloat(item2.ZXZ).toFixed(1) : 0
}
// personAutoNum:[],
// personAutoNumTbl:[],
// 柱状图数据获取
// 今年的规范管理 合格人数 数据
if (item2.ZBID == "1170" || item2.ZBID == "1146") {
this.q_personAutoNum.push(item2.ZXZ ? parseFloat(item2.ZXZ).toFixed(1) : 0)
}
// 去年的 规范管理 合格人数 数据 TBZ
if (item2.ZBID == "1170" || item2.ZBID == "1146") {
this.q_personAutoNumTbl.push(item2.TBZ ? parseFloat(item2.TBZ).toFixed(1) : 0)
}
if (item2.ZBID == "1167" || item2.ZBID == "1143") {
this.q_autoup_list.push(item2.ZXZ ? item2.ZXZ : 0)
}
if (item2.ZBID == "1176" || item2.ZBID == "1149") {
this.q_normal_list.push(item2.ZXZ ? item2.ZXZ : 0)
}
// } else {
if (item2.ZBID == "1180" || item2.ZBID == "1182") {
obj.q0 = item2.ZXZ ? parseFloat(item2.ZXZ).toFixed(1) : 0
}
if (item2.ZBID == "1175" || item2.ZBID == "1151") {
obj.q1 = item2.ZXZ ? parseFloat(item2.ZXZ).toFixed(1) : 0
}
if (item2.ZBID == "1172" || item2.ZBID == "1160") {
obj.q2 = item2.ZXZ ? parseFloat(item2.ZXZ).toFixed(1) : 0
}
// 柱状图数据获取
if (item2.ZBID == "1167" || item2.ZBID == "1143") {
this.q_autoup_list.push(item2.ZXZ ? item2.ZXZ : 0)
}
if (item2.ZBID == "1175" || item2.ZBID == "1151") {
this.q_normal_list.push(item2.ZXZ ? item2.ZXZ : 0)
}
}
})
this.listArray2.push(obj)
})
if (this._group != 'YWSJ') {
for (var i = 0; i < this.listArray.length; i++) {
var obj = Object.assign(this.listArray[i], this.listArray2[i])
this.listArrayFinal.push(obj)
}
} else if (this._group === 'YWSJ') {
this.tablename = "时间"
this.thname = "季度"
this.listArrayFinal = [{
"name": "第一季度",
"g0": 0.0,
"g1": 0.0,
"g2": 0.0,
"AreaCode": "",
"q0": 0.0,
"q1": 0.0,
"q2": 0.0
},
{
"name": "第二季度",
"g0": 0.0,
"g1": 0.0,
"g2": 0.0,
"AreaCode": "",
"q0": 0.0,
"q1": 0.0,
"q2": 0.0
},
{
"name": "第三季度",
"g0": 0.0,
"g1": 0.0,
"g2": 0.0,
"AreaCode": "",
"q0": 0.0,
"q1": 0.0,
"q2": 0.0
},
{
"name": "第四季度",
"g0": 0.0,
"g1": 0.0,
"g2": 0.0,
"AreaCode": "",
"q0": 0.0,
"q1": 0.0,
"q2": 0.0
}
]
for (var i = 0; i < this.listArray.length; i++) {
if (this.listArray[i].name < 4) {
var obj = Object.assign(this.listArray[i], this.listArray2[i])
this.listArrayFinal[0].g0 = obj.g0
this.listArrayFinal[0].g1 = obj.g1
this.listArrayFinal[0].g2 = obj.g2
this.listArrayFinal[0].q0 = obj.q0
this.listArrayFinal[0].q1 = obj.q1
this.listArrayFinal[0].q2 = obj.q2
}
if (3 < this.listArray[i].name && this.listArray[i].name < 6) {
var obj = Object.assign(this.listArray[i], this.listArray2[i])
}
if (6 < this.listArray[i].name && this.listArray[i].name < 9) {
var obj = Object.assign(this.listArray[i], this.listArray2[i])
}
if (9 < this.listArray[i].name && this.listArray[i].name < 12) {
var obj = Object.assign(this.listArray[i], this.listArray2[i])
}
}
}
let Listtemp1 = [],
Listtemp2 = [],
Listtemp3 = [],
Listtemp4 = [],
Listtemp5 = [], // 用于获取IBM数据 管
Listtemp6 = [], // 用于获取IBM数据 签
ListPlace = []
this.listArrayFinal.forEach(item => {
ListPlace.push(item.name)
Listtemp1.push(item.g1) // 管1
Listtemp2.push(item.g2) // 管2
Listtemp3.push(item.q1) // 签1
Listtemp4.push(item.q2) // 签1
Listtemp5.push(item.g0) // BMI 异常数据获取
Listtemp6.push(item.q0) // BMI 异常数据获取
})
this.option2.xAxis[0].data = ListPlace
let legendMy = []
if (this.mbType === 'gxy') {
// 高血压板块
if (this.groupType === 'org' && this.rqType === 'glrq') {
legendMy = ['管理/签约人群自动上传血压合格人数', '去年管理/签约人群自动上传血压合格人数', '管·自动上传血压控制率/去年', '签·自动上传血压控制率/去年',
'管·报告血压控制率/去年', '签·报告血压控制率/去年', '管·BMI异常比/去年', '签·BMI异常比/去年'
]
this.option2.legend.data = legendMy
this.option2.series = [
{
name: '管理/签约人群自动上传血压合格人数',
type: 'bar',
stack: '1',
itemStyle: {
normal: {
color: new this.$echarts.graphic.LinearGradient(
0, 0, 0, 1,
[{
offset: 0,
color: '#115D5D'
},
{
offset: 0.5,
color: '#115D5D'
},
{
offset: 0.5,
color: '#4093E9'
},
{
offset: 1,
color: '#4093E9'
}
]
)
}
},
barWidth: 8,
data: this.g_autoup_list
},
{
name: '管理/签约人群自动上传血压合格人数',
type: 'bar',
stack: "2",
barWidth: 8,
itemStyle: {
normal: {
color: '#4093E9'
}
},
data: this.q_autoup_list
},
{
name: '去年管理/签约人群自动上传血压合格人数',
type: 'bar',
stack: '1',
itemStyle: {
normal: {
color: new this.$echarts.graphic.LinearGradient(
0, 0, 0, 1,
[{
offset: 0,
color: '#115D5D'
},
{
offset: 0.5,
color: '#115D5D'
},
{
offset: 0.5,
color: '#099023'
},
{
offset: 1,
color: '#099023'
}
]
)
}
},
barWidth: 8,
data: this.g_normal_list
},
{
name: '去年管理/签约人群自动上传血压合格人数',
type: 'bar',
stack: "2",
barWidth: 8,
itemStyle: {
normal: {
color: new this.$echarts.graphic.LinearGradient(
0, 0, 0, 1,
[{
offset: 0,
color: '#115D5D'
},
{
offset: 0.5,
color: '#115D5D'
},
{
offset: 0.5,
color: '#099023'
},
{
offset: 1,
color: '#099023'
}
]
)
}
},
data: this.q_normal_list
},
{
name: '管·自动上传血压控制率/去年',
type: 'line',
yAxisIndex: 1,
symbol: 'circle',
symbolSize: 5,
smooth: 0.1,
itemStyle: {
normal: {
color: new this.$echarts.graphic.LinearGradient(
0, 0, 0, 1,
[{
offset: 0,
color: '#115D5D'
},
{
offset: 0.5,
color: '#115D5D'
},
{
offset: 0.5,
color: '#995D13'
},
{
offset: 1,
color: '#995D13'
}
]
)
}
},
z: 6,
data: Listtemp1
},
{
name: '签·自动上传血压控制率/去年',
type: 'line',
smooth: true,
yAxisIndex: 1,
symbol: 'circle',
symbolSize: 6,
itemStyle: {
normal: {
color: new this.$echarts.graphic.LinearGradient(
0, 0, 0, 1,
[{
offset: 0,
color: '#115D5D'
},
{
offset: 0.5,
color: '#115D5D'
},
{
offset: 0.5,
color: '#1A7B32'
},
{
offset: 1,
color: '#1A7B32'
}
]
)
}
},
z: 11,
data: Listtemp3
},
{
name: '管·报告血压控制率/去年',
type: 'line',
smooth: true,
yAxisIndex: 1,
symbol: 'circle',
symbolSize: 6,
itemStyle: {
normal: {
color: new this.$echarts.graphic.LinearGradient(
0, 0, 0, 1,
[{
offset: 0,
color: '#115D5D'
},
{
offset: 0.5,
color: '#115D5D'
},
{
offset: 0.5,
color: '#65FD82'
},
{
offset: 1,
color: '#65FD82'
}
]
)
}
},
z: 12,
data: Listtemp2
},
{
name: '签·报告血压控制率/去年',
type: 'line',
smooth: true,
yAxisIndex: 1,
symbol: 'circle',
symbolSize: 6,
itemStyle: {
normal: {
color: new this.$echarts.graphic.LinearGradient(
0, 0, 0, 1,
[{
offset: 0,
color: '#115D5D'
},
{
offset: 0.5,
color: '#115D5D'
},
{
offset: 0.5,
color: '#F78387'
},
{
offset: 1,
color: '#F78387'
}
]
)
}
},
z: 11,
data: Listtemp4
},
{
name: '管·BMI异常比/去年',
type: 'line',
smooth: true,
yAxisIndex: 1,
symbol: 'circle',
symbolSize: 6,
itemStyle: {
normal: {
color: new this.$echarts.graphic.LinearGradient(
0, 0, 0, 1,
[{
offset: 0,
color: '#115D5D'
},
{
offset: 0.5,
color: '#115D5D'
},
{
offset: 0.5,
color: '#00D2DB'
},
{
offset: 1,
color: '#00D2DB'
}
]
)
}
},
z: 11,
data: Listtemp5
// 2,3,4,5,6,1,5,2
},
{
name: '签·BMI异常比/去年',
type: 'line',
smooth: true,
yAxisIndex: 1,
symbol: 'circle',
symbolSize: 6,
lineStyle: {
normal: {
width: 2
}
},
itemStyle: {
normal: {
color: new this.$echarts.graphic.LinearGradient(
0, 0, 0, 1,
[{
offset: 0,
color: '#115D5D'
},
{
offset: 0.5,
color: '#115D5D'
},
{
offset: 0.5,
color: '#EEC55B'
},
{
offset: 1,
color: '#EEC55B'
}
]
)
}
},
z: 11,
data: Listtemp6
}
]
} else {
legendMy = ['管理/签约人群自动上传血压合格人数', '去年管理/签约人群自动上传血压合格人数', '管·自动上传血压控制率/去年', '签·自动上传血压控制率/去年',
'管·报告血压控制率/去年', '签·报告血压控制率/去年'
]
this.option2.legend.data = legendMy
this.option2.series = [
{
name: '管理/签约人群自动上传血压合格人数',
type: 'bar',
stack: '1',
itemStyle: {
normal: {
color: new this.$echarts.graphic.LinearGradient(
0, 0, 0, 1,
[{
offset: 0,
color: '#115D5D'
},
{
offset: 0.5,
color: '#115D5D'
},
{
offset: 0.5,
color: '#4093E9'
},
{
offset: 1,
color: '#4093E9'
}
]
)
}
},
barWidth: 8,
data: this.g_autoup_list
},
{
name: '管理/签约人群自动上传血压合格人数',
type: 'bar',
stack: "2",
barWidth: 8,
itemStyle: {
normal: {
color: '#4093E9'
}
},
data: this.q_autoup_list
},
{
name: '去年管理/签约人群自动上传血压合格人数',
type: 'bar',
stack: '2',
itemStyle: {
normal: {
color: new this.$echarts.graphic.LinearGradient(
0, 0, 0, 1,
[{
offset: 0,
color: '#115D5D'
},
{
offset: 0.5,
color: '#115D5D'
},
{
offset: 0.5,
color: '#099023'
},
{
offset: 1,
color: '#099023'
}
]
)
}
},
barWidth: 8,
data: this.g_normal_list
},
{
name: '去年管理/签约人群自动上传血压合格人数',
type: 'bar',
stack: '1',
itemStyle: {
normal: {
color: new this.$echarts.graphic.LinearGradient(
0, 0, 0, 1,
[{
offset: 0,
color: '#115D5D'
},
{
offset: 0.5,
color: '#115D5D'
},
{
offset: 0.5,
color: '#099023'
},
{
offset: 1,
color: '#099023'
}
]
)
}
},
data: this.q_normal_list
},
{
name: '管·自动上传血压控制率/去年',
type: 'line',
yAxisIndex: 1,
symbol: 'circle',
symbolSize: 5,
smooth: 0.1,
itemStyle: {
normal: {
color: new this.$echarts.graphic.LinearGradient(
0, 0, 0, 1,
[{
offset: 0,
color: '#115D5D'
},
{
offset: 0.5,
color: '#115D5D'
},
{
offset: 0.5,
color: '#995D13'
},
{
offset: 1,
color: '#995D13'
}
]
)
}
},
z: 6,
data: Listtemp1
},
{
name: '签·自动上传血压控制率/去年',
type: 'line',
smooth: true,
yAxisIndex: 1,
symbol: 'circle',
symbolSize: 6,
itemStyle: {
normal: {
color: new this.$echarts.graphic.LinearGradient(
0, 0, 0, 1,
[{
offset: 0,
color: '#115D5D'
},
{
offset: 0.5,
color: '#115D5D'
},
{
offset: 0.5,
color: '#1A7B32'
},
{
offset: 1,
color: '#1A7B32'
}
]
)
}
},
z: 11,
data: Listtemp3
},
{
name: '管·报告血压控制率/去年',
type: 'line',
smooth: true,
yAxisIndex: 1,
symbol: 'circle',
symbolSize: 6,
itemStyle: {
normal: {
color: new this.$echarts.graphic.LinearGradient(
0, 0, 0, 1,
[{
offset: 0,
color: '#115D5D'
},
{
offset: 0.5,
color: '#115D5D'
},
{
offset: 0.5,
color: '#65FD82'
},
{
offset: 1,
color: '#65FD82'
}
]
)
}
},
z: 12,
data: Listtemp2
},
{
name: '签·报告血压控制率/去年',
type: 'line',
smooth: true,
yAxisIndex: 1,
symbol: 'circle',
symbolSize: 6,
itemStyle: {
normal: {
color: new this.$echarts.graphic.LinearGradient(
0, 0, 0, 1,
[{
offset: 0,
color: '#115D5D'
},
{
offset: 0.5,
color: '#115D5D'
},
{
offset: 0.5,
color: '#F78387'
},
{
offset: 1,
color: '#F78387'
}
]
)
}
},
z: 11,
data: Listtemp4
}
]
}
} else {
if (this.groupType === 'org' && this.rqType === 'glrq') {
legendMy = ['管理/签约人群自动上传血压合格人数', '去年管理/签约人群自动上传血压合格人数', '管·自动上传血压控制率/去年', '签·自动上传血压控制率/去年',
'管·报告血压控制率/去年', '签·报告血压控制率/去年', '管·BMI异常比/去年', '签·BMI异常比/去年'
]
this.option2.legend.data = legendMy
this.option2.series = [
{
name: '管理/签约人群自动上传血压合格人数',
type: 'bar',
stack: '1',
itemStyle: {
normal: {
color: new this.$echarts.graphic.LinearGradient(
0, 0, 0, 1,
[{
offset: 0,
color: '#115D5D'
},
{
offset: 0.5,
color: '#115D5D'
},
{
offset: 0.5,
color: '#4093E9'
},
{
offset: 1,
color: '#4093E9'
}
]
)
}
},
barWidth: null,
data: this.g_autoup_list
},
{
name: '管理/签约人群自动上传血压合格人数',
type: 'line',
stack: "1",
barWidth: null,
itemStyle: {
normal: {
color: '#4093E9'
}
},
data: this.q_autoup_list
},
{
name: '去年管理/签约人群自动上传血压合格人数',
type: 'bar',
stack: '1',
itemStyle: {
normal: {
color: new this.$echarts.graphic.LinearGradient(
0, 0, 0, 1,
[{
offset: 0,
color: '#115D5D'
},
{
offset: 0.5,
color: '#115D5D'
},
{
offset: 0.5,
color: '#099023'
},
{
offset: 1,
color: '#099023'
}
]
)
}
},
barWidth: null,
data: this.g_normal_list
},
{
name: '去年管理/签约人群自动上传血压合格人数',
type: 'line',
barWidth: 8,
itemStyle: {
normal: {
color: new this.$echarts.graphic.LinearGradient(
0, 0, 0, 1,
[{
offset: 0,
color: '#115D5D'
},
{
offset: 0.5,
color: '#115D5D'
},
{
offset: 0.5,
color: '#099023'
},
{
offset: 1,
color: '#099023'
}
]
)
}
},
stack: "1",
data: this.q_normal_list
},
{
name: '管·自动上传血压控制率/去年',
type: 'line',
yAxisIndex: 1,
symbol: 'circle',
symbolSize: 5,
smooth: 0.1,
itemStyle: {
normal: {
color: new this.$echarts.graphic.LinearGradient(
0, 0, 0, 1,
[{
offset: 0,
color: '#115D5D'
},
{
offset: 0.5,
color: '#115D5D'
},
{
offset: 0.5,
color: '#995D13'
},
{
offset: 1,
color: '#995D13'
}
]
)
}
},
z: 6,
data: Listtemp1
},
{
name: '签·自动上传血压控制率/去年',
type: 'line',
smooth: true,
yAxisIndex: 1,
symbol: 'circle',
symbolSize: 6,
itemStyle: {
normal: {
color: new this.$echarts.graphic.LinearGradient(
0, 0, 0, 1,
[{
offset: 0,
color: '#115D5D'
},
{
offset: 0.5,
color: '#115D5D'
},
{
offset: 0.5,
color: '#1A7B32'
},
{
offset: 1,
color: '#1A7B32'
}
]
)
}
},
z: 11,
data: Listtemp3
},
{
name: '管·报告血压控制率/去年',
type: 'line',
smooth: true,
yAxisIndex: 1,
symbol: 'circle',
symbolSize: 6,
itemStyle: {
normal: {
color: new this.$echarts.graphic.LinearGradient(
0, 0, 0, 1,
[{
offset: 0,
color: '#115D5D'
},
{
offset: 0.5,
color: '#115D5D'
},
{
offset: 0.5,
color: '#65FD82'
},
{
offset: 1,
color: '#65FD82'
}
]
)
}
},
z: 12,
data: Listtemp2
},
{
name: '签·报告血压控制率/去年',
type: 'line',
smooth: true,
yAxisIndex: 1,
symbol: 'circle',
symbolSize: 6,
itemStyle: {
normal: {
color: new this.$echarts.graphic.LinearGradient(
0, 0, 0, 1,
[{
offset: 0,
color: '#115D5D'
},
{
offset: 0.5,
color: '#115D5D'
},
{
offset: 0.5,
color: '#F78387'
},
{
offset: 1,
color: '#F78387'
}
]
)
}
},
z: 11,
data: Listtemp4
},
{
name: '管·BMI异常比/去年',
type: 'line',
smooth: true,
yAxisIndex: 1,
symbol: 'circle',
symbolSize: 6,
itemStyle: {
normal: {
color: new this.$echarts.graphic.LinearGradient(
0, 0, 0, 1,
[{
offset: 0,
color: '#115D5D'
},
{
offset: 0.5,
color: '#115D5D'
},
{
offset: 0.5,
color: '#00D2DB'
},
{
offset: 1,
color: '#00D2DB'
}
]
)
}
},
z: 11,
data: Listtemp5
// 2,3,4,5,6,1,5,2
},
{
name: '签·BMI异常比/去年',
type: 'line',
smooth: true,
yAxisIndex: 1,
symbol: 'circle',
symbolSize: 6,
lineStyle: {
normal: {
width: 2
}
},
itemStyle: {
normal: {
color: new this.$echarts.graphic.LinearGradient(
0, 0, 0, 1,
[{
offset: 0,
color: '#115D5D'
},
{
offset: 0.5,
color: '#115D5D'
},
{
offset: 0.5,
color: '#EEC55B'
},
{
offset: 1,
color: '#EEC55B'
}
]
)
}
},
z: 11,
data: Listtemp6
}
]
} else {
legendMy = ['管理/签约人群自动上传血压合格人数', '去年管理/签约人群自动上传血压合格人数', '管·自动上传血压控制率/去年', '签·自动上传血压控制率/去年',
'管·报告血压控制率/去年', '签·报告血压控制率/去年'
]
this.option2.legend.data = legendMy
this.option2.series = [
{
name: '管理/签约人群自动上传血压合格人数',
type: 'bar',
stack: '1',
itemStyle: {
normal: {
color: new this.$echarts.graphic.LinearGradient(
0, 0, 0, 1,
[{
offset: 0,
color: '#115D5D'
},
{
offset: 0.5,
color: '#115D5D'
},
{
offset: 0.5,
color: '#4093E9'
},
{
offset: 1,
color: '#4093E9'
}
]
)
}
},
barWidth: null,
data: this.g_autoup_list
},
{
name: '管理/签约人群自动上传血压合格人数',
type: 'line',
stack: "1",
barWidth: null,
itemStyle: {
normal: {
color: '#4093E9'
}
},
data: this.q_autoup_list
},
{
name: '去年管理/签约人群自动上传血压合格人数',
type: 'bar',
stack: '1',
itemStyle: {
normal: {
color: new this.$echarts.graphic.LinearGradient(
0, 0, 0, 1,
[{
offset: 0,
color: '#115D5D'
},
{
offset: 0.5,
color: '#115D5D'
},
{
offset: 0.5,
color: '#099023'
},
{
offset: 1,
color: '#099023'
}
]
)
}
},
barWidth: null,
data: this.g_normal_list
},
{
name: '去年管理/签约人群自动上传血压合格人数',
type: 'line',
barWidth: 8,
itemStyle: {
normal: {
color: new this.$echarts.graphic.LinearGradient(
0, 0, 0, 1,
[{
offset: 0,
color: '#115D5D'
},
{
offset: 0.5,
color: '#115D5D'
},
{
offset: 0.5,
color: '#099023'
},
{
offset: 1,
color: '#099023'
}
]
)
}
},
stack: "1",
data: this.q_normal_list
},
{
name: '管·自动上传血压控制率/去年',
type: 'line',
yAxisIndex: 1,
symbol: 'circle',
symbolSize: 5,
smooth: 0.1,
itemStyle: {
normal: {
color: new this.$echarts.graphic.LinearGradient(
0, 0, 0, 1,
[{
offset: 0,
color: '#115D5D'
},
{
offset: 0.5,
color: '#115D5D'
},
{
offset: 0.5,
color: '#995D13'
},
{
offset: 1,
color: '#995D13'
}
]
)
}
},
z: 6,
data: Listtemp1
},
{
name: '签·自动上传血压控制率/去年',
type: 'line',
smooth: true,
yAxisIndex: 1,
symbol: 'circle',
symbolSize: 6,
itemStyle: {
normal: {
color: new this.$echarts.graphic.LinearGradient(
0, 0, 0, 1,
[{
offset: 0,
color: '#115D5D'
},
{
offset: 0.5,
color: '#115D5D'
},
{
offset: 0.5,
color: '#1A7B32'
},
{
offset: 1,
color: '#1A7B32'
}
]
)
}
},
z: 11,
data: Listtemp3
},
{
name: '管·报告血压控制率/去年',
type: 'line',
smooth: true,
yAxisIndex: 1,
symbol: 'circle',
symbolSize: 6,
itemStyle: {
normal: {
color: new this.$echarts.graphic.LinearGradient(
0, 0, 0, 1,
[{
offset: 0,
color: '#115D5D'
},
{
offset: 0.5,
color: '#115D5D'
},
{
offset: 0.5,
color: '#65FD82'
},
{
offset: 1,
color: '#65FD82'
}
]
)
}
},
z: 12,
data: Listtemp2
},
{
name: '签·报告血压控制率/去年',
type: 'line',
smooth: true,
yAxisIndex: 1,
symbol: 'circle',
symbolSize: 6,
itemStyle: {
normal: {
color: new this.$echarts.graphic.LinearGradient(
0, 0, 0, 1,
[{
offset: 0,
color: '#115D5D'
},
{
offset: 0.5,
color: '#115D5D'
},
{
offset: 0.5,
color: '#F78387'
},
{
offset: 1,
color: '#F78387'
}
]
)
}
},
z: 11,
data: Listtemp4
}
]
}
}
this._group = "XZQH"
this.homeinit()
} else {
this._group = "YWSJ"
this.homeinit()
}
},
rqlxChange(rqlx) {
this.rqType = rqlx
if (rqlx === 'gfgl') {
this.middlename = "规范管理人群"
this.homeinit()
} else {
this.middlename = "管理人群"
this.homeinit()
}
},
homeinit() {
this.pageHeadData()
this.pageBottomData()
this.$echarts.init(document.getElementById("pag2bar")).setOption(this.option2, true)
}).catch(err => {
console.log("地址列表报错");
})
}).catch(err => {
console.log("地址列表报错");
})
},
pageHeadData() {
let _this = this
......@@ -2811,7 +1193,302 @@
})
},
pageBottomData(){
let wd = [{
"name": "YWSJ",
"type": "2",
"startTime": '',
"endTime": this.cxsj,
"compare": "between",
}, {
"name": "XZQH",
"value": this._xzqh,
"type": "1"
}, {
"name": "YLJGDM",
"value": this._yljgdm,
"type": "1"
}]
// 签约数据 入参
let 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"
}
]
let placeparam = {
"themeId": this.themeId,
"wd": JSON.stringify(wd),
"group": this._group,
}
let placeparam2 = {
"themeId": this.themeId,
"wd": JSON.stringify(wd2),
"group": this._group,
}
// 右下角列表 + 图表 (数据共用)
// 管数据请求 --- 右下角列表
let dataX = []
let dataCode = []
let bar1 = []
let bar1_g = []
let bar1_g_qn = []
let bar1_q = []
let bar1_q_qn = []
let line1 = []
let line1_qn = []
let line2 = []
let line2_qn = []
let line3 = []
let line3_qn = []
let line4 = []
let line4_qn = []
let line5 = []
let line5_qn = []
let line6 = []
let line6_qn = []
// XZQH --- YLJGDM
commonMethod(placeparam).then(res => {
let bottomData_g = res.data.content
// 签数据请求--- 右下角列表 + 图表 (数据共用)
commonMethod(placeparam2).then(res => {
let bottomData_q = res.data.content
bottomData_g.forEach((item, index) => {
let obj = {
name: 'v',
g0: '0',
g1: '0',
g2: '0',
AreaCode: '0'
}
if (item.YWSJ) {
obj.name = parseInt(item.YWSJ.substring(6, 7))
} else {
if (item.XZQH_TEXT) {
obj.name = item.XZQH_TEXT
obj.AreaCode = item.XZQH ? item.XZQH : ''
dataX.push(item.XZQH_TEXT)
dataCode.push(item.XZQH)
} else if (item.YLJGDM_EX2) {
obj.name = item.YLJGDM_EX2
obj.AreaCode = item.YLJGDM ? item.YLJGDM : ''
dataX.push(item.YLJGDM_EX2)
dataCode.push(item.YLJGDM)
} else {
obj.name = ""
return false
}
}
item.zbxx.forEach((item2, index2) => {
if (this.rqType === 'gfgl') {
if (item2.ZBID == "1170") {
// 管理/签约人群自动上传血压合格人数
bar1_g.push(getActiveNum(item2.ZXZ / 10000))
bar1_g_qn.push(getActiveNum(item2.TBZ / 10000))
}
if (item2.ZBID == "1169" ) {
// 管·自动上传血压控制率/去年
line1.push(getActiveNum(item2.ZXZ))
line1_qn.push(getActiveNum(item2.TBZ))
}
if (item2.ZBID == "1166" ) {
// 管·报告血压控制率/去年
line3.push(getActiveNum(item2.ZXZ))
line3_qn.push(getActiveNum(item2.TBZ))
}
} else {
if (item2.ZBID == "1176") {
// 管理/签约人群自动上传血压合格人数
bar1_g.push(getActiveNum(item2.ZXZ / 10000))
bar1_g_qn.push(getActiveNum(item2.TBZ / 10000))
}
if (item2.ZBID == "1175" ) {
// 管·自动上传血压控制率/去年
line1.push(getActiveNum(item2.ZXZ))
line1_qn.push(getActiveNum(item2.TBZ))
}
if (item2.ZBID == "1172" ) {
// 管·报告血压控制率/去年
line3.push(getActiveNum(item2.ZXZ))
line3_qn.push(getActiveNum(item2.TBZ))
}
if (item2.ZBID == "1180" ) {
// 管·报告血压控制率/去年
line5.push(getActiveNum(item2.ZXZ))
line5_qn.push(getActiveNum(item2.TBZ))
}
}
})
})
bottomData_q.forEach((item, index) => {
item.zbxx.forEach((item2, index2) => {
// IBM 数据赋值
if (this.rqType === 'gfgl') {
if (item2.ZBID == "1170") {
// 管理/签约人群自动上传血压合格人数
bar1_q.push(getActiveNum(item2.ZXZ / 10000))
bar1_q_qn.push(getActiveNum(item2.TBZ / 10000))
}
if (item2.ZBID == "1169" ) {
// 管·自动上传血压控制率/去年
line2.push(getActiveNum(item2.ZXZ))
line2_qn.push(getActiveNum(item2.TBZ))
}
if (item2.ZBID == "1166" ) {
// 管·报告血压控制率/去年
line4.push(getActiveNum(item2.ZXZ))
line4_qn.push(getActiveNum(item2.TBZ))
}
}else{
if (item2.ZBID == "1176") {
// 管理/签约人群自动上传血压合格人数
bar1_q.push(getActiveNum(item2.ZXZ / 10000))
bar1_q_qn.push(getActiveNum(item2.TBZ / 10000))
}
if (item2.ZBID == "1175" ) {
// 管·自动上传血压控制率/去年
line2.push(getActiveNum(item2.ZXZ))
line2_qn.push(getActiveNum(item2.TBZ))
}
if (item2.ZBID == "1172" ) {
// 管·报告血压控制率/去年
line4.push(getActiveNum(item2.ZXZ))
line4_qn.push(getActiveNum(item2.TBZ))
}
if (item2.ZBID == "1180" ) {
// 管·报告血压控制率/去年
line6.push(getActiveNum(item2.ZXZ))
line6_qn.push(getActiveNum(item2.TBZ))
}
}
})
})
bar1_g.forEach((item, index) => {
let obj = {}
let a = getActiveNum(bar1_g[index] - bar1_q[index])
let b = getActiveNum(bar1_g_qn[index] - bar1_q_qn[index])
obj.name = dataX[index]
obj.code = dataCode[index]
obj.tag1 = getActiveNum(line1[index])
obj.tag2 = getActiveNum(line2[index])
obj.tag3 = getActiveNum(line3[index])
obj.tag4 = getActiveNum(line4[index])
this.topListData.push(obj)
let tooltip = {}
tooltip.num1 = bar1_g[index]
tooltip.num2 = bar1_q[index]
tooltip.num3 = bar1_g_qn[index]
tooltip.num4 = bar1_q_qn[index]
tooltip.num5 = line1[index]
tooltip.num6 = line1_qn[index]
tooltip.num7 = line2[index]
tooltip.num8 = line2_qn[index]
bar1_q[index] = Object.assign({value:bar1_q[index]}, tooltip)
bar1[index] = Object.assign({value:a}, tooltip)
bar1_q_qn[index] = Object.assign({value:bar1_q_qn[index]}, tooltip)
bar1_g_qn[index] = Object.assign({value:b}, tooltip)
})
let legendMy = []
if (this.mbType === 'gxy') {
// 高血压板块
if (this.groupType === 'org' && this.rqType === 'glrq') {
legendMy = ['管理/签约人群自动上传血压合格人数', '去年管理/签约人群自动上传血压合格人数', '管·自动上传血压控制率/去年', '签·自动上传血压控制率/去年',
'管·报告血压控制率/去年', '签·报告血压控制率/去年', '管·BMI异常比/去年', '签·BMI异常比/去年'
]
this.option2.legend.data = legendMy
this.option2.xAxis[0].data = dataX
this.option2.series[1].data = bar1_q
this.option2.series[2].data = bar1
this.option2.series[4].data = bar1_q_qn
this.option2.series[5].data = bar1_g_qn
this.option2.series[6].data = line1
this.option2.series[7].data = line2
this.option2.series[8].data = line3
this.option2.series[9].data = line4
this.option2.series[10].data = line5
this.option2.series[11].data = line6
} else {
legendMy = ['管理/签约人群自动上传血压合格人数', '去年管理/签约人群自动上传血压合格人数', '管·自动上传血压控制率/去年', '签·自动上传血压控制率/去年',
'管·报告血压控制率/去年', '签·报告血压控制率/去年'
]
this.option2.legend.data = legendMy
this.option2.xAxis[0].data = dataX
this.option2.series[1].data = bar1_q
this.option2.series[2].data = bar1_g
this.option2.series[4].data = bar1_q_qn
this.option2.series[5].data = bar1_g_qn
this.option2.series[6].data = line1
this.option2.series[7].data = line2
this.option2.series[8].data = line3
this.option2.series[9].data = line4
this.option2.series[10].data = []
this.option2.series[11].data = []
}
} else {
if (this.groupType === 'org' && this.rqType === 'glrq') {
legendMy = ['管理/签约人群自动上传血压合格人数', '去年管理/签约人群自动上传血压合格人数', '管·自动上传血压控制率/去年', '签·自动上传血压控制率/去年',
'管·报告血压控制率/去年', '签·报告血压控制率/去年', '管·BMI异常比/去年', '签·BMI异常比/去年'
]
this.option2.legend.data = legendMy
} else {
legendMy = ['管理/签约人群自动上传血压合格人数', '去年管理/签约人群自动上传血压合格人数', '管·自动上传血压控制率/去年', '签·自动上传血压控制率/去年',
'管·报告血压控制率/去年', '签·报告血压控制率/去年'
]
this.option2.legend.data = legendMy
}
}
console.log(this.option2);
this.$echarts.init(document.getElementById("pag2bar")).setOption(this.option2, true)
}).catch(err => {
console.log("地址列表报错");
})
}).catch(err => {
console.log("地址列表报错");
})
},
mblxChange(mblx) {
......@@ -2832,6 +1509,29 @@
},
change_age(num) {
this.age_index = num
// 3 1189 THEME_GLXG_000036 年内管理的高血压患者因脑卒中粗发病的年龄别人数 GLXG_048
// 4 1190 THEME_GLXG_000036 年内管理的高血压患者年龄别人数 GLXG_049
// 6 1192 THEME_GLXG_000036 年内管理的高血压患者因脑卒中死亡的年龄别人数 GLXG_051
// 8 1194 THEME_GLXG_000036 年内管理的高血压患者因心脑血管疾病死亡的年龄别人数 GLXG_053
// 10 1196 THEME_GLXG_000036 年内管理的高血压患者死亡的年龄别人数 GLXG_055
// 12 1198 THEME_GLXG_000036 年内管理的糖尿病患者死亡的年龄别人数 GLXG_057
// 1 1199 THEME_GLXG_000036 年内管理的糖尿病患者年龄别人数 GLXG_058
let zbcode = 'GLXG_048'
if(num === 1){
zbcode = 'GLXG_048'
}else if(num === 2){
zbcode = 'GLXG_051'
}else if(num === 3){
zbcode = 'GLXG_053'
}else if(num === 4){
zbcode = 'GLXG_055'
}else if(num === 5){
zbcode = 'GLXG_048'
}else if(num === 6){
zbcode = 'GLXG_057'
}
// 右上柱状图 年龄结构 -themeId: 34 全市 35 区 36 社区
let wdnl = [{
"name": "YWSJ",
......@@ -2851,116 +1551,19 @@
let paramnl = {
"themeId": '36',
"wd": JSON.stringify(wdnl),
"zbcode":zbcode,
"group": "NL"
}
commonMethod(paramnl).then(res => {
this.G_ageList = []
if (this.age_index == 1) {
// this.age_index 代表 脑卒中粗发病率
res.data.content.forEach(item => {
let agestruct = {
"Age": '1',
"value": 9999
}
agestruct.Age = item.NL
item.zbxx.forEach(item2 => {
if (item2.ZBID == 1188) {
agestruct.value = item2.ZXZ
}
})
this.G_ageList.push(agestruct)
})
} else if (this.age_index == 2) {
// this.age_index 代表 脑卒中粗死亡率
res.data.content.forEach(item => {
let agestruct = {
"Age": '1',
"value": 9999
}
agestruct.Age = item.NL
item.zbxx.forEach(item2 => {
if (item2.ZBID == 1191) {
agestruct.value = item2.ZXZ
}
})
this.G_ageList.push(agestruct)
})
} else if (this.age_index == 3) {
// this.age_index 代表 心脑血管粗死亡率
res.data.content.forEach(item => {
let agestruct = {
"Age": '1',
"value": 9999
}
agestruct.Age = item.NL
item.zbxx.forEach(item2 => {
if (item2.ZBID == 1193) {
agestruct.value = item2.ZXZ
}
})
this.G_ageList.push(agestruct)
})
} else if (this.age_index == 4) {
// this.age_index 代表 粗死亡率
res.data.content.forEach(item => {
let agestruct = {
"Age": '1',
"value": 9999
}
agestruct.Age = item.NL
item.zbxx.forEach(item2 => {
if (item2.ZBID == 1195) {
agestruct.value = item2.ZXZ
}
})
this.G_ageList.push(agestruct)
})
} else if (this.age_index == 5) {
// this.age_index 代表 并发症
res.data.content.forEach(item => {
let agestruct = {
"Age": '1',
"value": 9999
}
agestruct.Age = item.NL
item.zbxx.forEach(item2 => {
if (item2.ZBID == 1184) {
agestruct.value = item2.ZXZ
}
})
this.G_ageList.push(agestruct)
})
} else if (this.age_index == 6) {
res.data.content.forEach(item => {
let agestruct = {
"Age": '1',
"value": 9999
}
agestruct.Age = item.NL
item.zbxx.forEach(item2 => {
if (item2.ZBID == 1197) {
agestruct.value = item2.ZXZ
}
})
this.G_ageList.push(agestruct)
})
let ageDataX = []
let ageData_g = []
let ageData_g1 = []
let ageData_q = []
let ageData_q1 = []
commonMethod(paramnl).then(res => {
}
ageData_g = res.data.content
// 为了避免异步带来的影响,于是在回调函数内部再次请求数据
let wdnl2 = [{
......@@ -2977,130 +1580,60 @@
"name": "YLJGDM",
"value": this._yljgdm,
"type": "1"
}]
},
{
"name": "QYBZ",
"value": "1",
"type": "1"
}]
let paramnl2 = {
"themeId": '36',
"wd": JSON.stringify(wdnl2),
"zbcode":zbcode,
"group": "NL"
}
//
commonMethod(paramnl2).then(res => {
this.Q_ageList = []
if (this.age_index == 1) {
// this.age_index 代表 脑卒中粗发死亡率
res.data.content.forEach(item => {
let agestruct2 = {
"value": 9999
}
item.zbxx.forEach(item2 => {
if (item2.ZBID == 1188) {
agestruct2.value = item2.ZXZ
}
})
this.Q_ageList.push(agestruct2)
})
} else if (this.age_index == 2) {
// this.age_index 代表 脑卒中粗发死亡率
res.data.content.forEach(item => {
let agestruct2 = {
"value": 9999
}
item.zbxx.forEach(item2 => {
if (item2.ZBID == 1191) {
agestruct2.value = item2.ZXZ
}
})
this.Q_ageList.push(agestruct2)
})
} else if (this.age_index == 3) {
// this.age_index 代表 脑卒中粗发死亡率
res.data.content.forEach(item => {
let agestruct2 = {
"value": 9999
}
item.zbxx.forEach(item2 => {
if (item2.ZBID == 1193) {
agestruct2.value = item2.ZXZ
}
})
this.Q_ageList.push(agestruct2)
})
} else if (this.age_index == 4) {
ageData_q = res.data.content
// this.age_index 代表 脑卒中粗发死亡率
res.data.content.forEach(item => {
let agestruct2 = {
"value": 9999
}
item.zbxx.forEach(item2 => {
if (item2.ZBID == 1195) {
agestruct2.value = item2.ZXZ
}
})
this.Q_ageList.push(agestruct2)
})
ageData_q.forEach((item, index) => {
ageData_q1.push(item.zbxx[0].ZXZ)
})
ageData_g.forEach((item, index) => {
ageData_g1.push(item.zbxx[0].ZXZ)
ageDataX.push(item.NL)
})
} else if (this.age_index == 5) {
// this.age_index 代表 脑卒中粗发死亡率
res.data.content.forEach(item => {
let temp1 = [], temp2 = [], temp3 = [], Temp = []
let agestruct2 = {
"value": 9999
}
item.zbxx.forEach(item2 => {
if (item2.ZBID == 1184) {
agestruct2.value = item2.ZXZ
}
})
this.Q_ageList.push(agestruct2)
})
} else if (this.age_index == 6) {
// this.age_index 代表 脑卒中粗发死亡率
res.data.content.forEach(item => {
for (var i = 0; i < ageDataX.length; i++) {
let agestructObj = {
age: 'v',
g_age: 'v',
q_age: 'v'
}
if (ageDataX[i]) {
let agestruct2 = {
"value": 9999
}
agestructObj.age = ageDataX[i]
agestructObj.g_age = ageData_g1[i]
agestructObj.q_age = ageData_q1[i]
Temp.push(agestructObj)
}
item.zbxx.forEach(item2 => {
if (item2.ZBID == 1197) {
agestruct2.value = item2.ZXZ
}
})
this.Q_ageList.push(agestruct2)
})
}
let temp1 = [],
temp2 = [],
temp3 = [],
Temp = []
this.G_ageList.forEach((item, index) => {
let ageObj = {
"age": 1.11,
"g_age": 2.22,
"q_age": 3.33
}
ageObj.age = item.Age ? item.Age : 0
ageObj.g_age = item.value ? item.value : 0
ageObj.q_age = this.Q_ageList[index].value ? this.Q_ageList[index].value : 0
Temp.push(ageObj)
})
Temp.sort((prev, next) => {
return parseInt(next.age.slice(0, 2)) - parseInt(prev.age.slice(0, 2))
})
Temp.forEach(item => {
temp1.push(item.age)
temp2.push(item.g_age)
temp3.push(item.q_age)
})
this.option.yAxis[0].data = temp1
this.option.series[0].data = temp2
this.option.series[1].data = temp3
......@@ -3153,36 +1686,7 @@
if (dom) {
const myChart = this.$echarts.init(dom)
let temp1 = [],
temp2 = [],
temp3 = [],
Temp = []
this.G_ageList.forEach((item, index) => {
let ageObj = {
"age": 1.11,
"g_age": 2.22,
"q_age": 3.33
}
ageObj.age = item.Age
ageObj.g_age = item.value
if (this.Q_ageList.length > 0) {
ageObj.q_age = this.Q_ageList[index].value ? this.Q_ageList[index].value : 0
}
Temp.push(ageObj)
})
Temp.sort((prev, next) => {
return parseInt(next.age.slice(0, 2)) - parseInt(prev.age.slice(0, 2))
})
Temp.forEach(item => {
temp1.push(item.age)
temp2.push(item.g_age)
temp3.push(item.q_age)
})
this.option.yAxis[0].data = temp1
this.option.series[0].data = temp2
this.option.series[1].data = temp3
if (this.option && typeof this.option === "object") {
myChart.setOption(this.option, true)
}
......
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