Commit f8ba08c7 by pcc

慢病管理--数据问题

parent a86e564b
...@@ -648,11 +648,8 @@ ...@@ -648,11 +648,8 @@
this.showtabnum = num this.showtabnum = num
}, },
dataSearch(cxsj) { dataSearch(cxsj) {
sessionStorage.setItem("ywsj", cxsj) sessionStorage.setItem("ywsj", cxsj)
this.homeinit() this.homeinit()
this.homebot()
}, },
pageChage(page) { pageChage(page) {
this.$emit('screenTwoPagefunc', page) this.$emit('screenTwoPagefunc', page)
...@@ -699,7 +696,6 @@ ...@@ -699,7 +696,6 @@
} }
this.homeinit() this.homeinit()
this.homebot()
}, },
groupChange(num) { groupChange(num) {
this.groupNo = num this.groupNo = num
...@@ -716,13 +712,13 @@ ...@@ -716,13 +712,13 @@
this.thname = '医院' this.thname = '医院'
} }
} }
this.homebot() this.homeinit()
} else { } else {
this.showTab = false this.showTab = false
this._group = "YWSJ" this._group = "YWSJ"
this.tablename = '时间' this.tablename = '时间'
this.thname = '月份' this.thname = '月份'
this.homebot() this.homeinit()
} }
}, },
bingChange(num) { bingChange(num) {
...@@ -732,7 +728,7 @@ ...@@ -732,7 +728,7 @@
} else { } else {
this.showtime = false this.showtime = false
} }
this.homebot() this.homeinit()
}, },
exitFn() { exitFn() {
this.$router.push({ this.$router.push({
...@@ -776,7 +772,6 @@ ...@@ -776,7 +772,6 @@
} }
this.homeinit() this.homeinit()
this.homebot()
this.groupChange(1) this.groupChange(1)
this.bingChange(1) this.bingChange(1)
}, },
...@@ -811,8 +806,7 @@ ...@@ -811,8 +806,7 @@
_this.option.series[3].data[1].value = 100 - parseInt(_this.topqzdldata.ZXZ) _this.option.series[3].data[1].value = 100 - parseInt(_this.topqzdldata.ZXZ)
this.showTab = false this.showTab = false
} }
this.homeinit()
this.homebot()
_this.$echarts.init(document.getElementById("charts1")).setOption(this.option, true) _this.$echarts.init(document.getElementById("charts1")).setOption(this.option, true)
}, },
changecity(code, name) { changecity(code, name) {
...@@ -831,7 +825,6 @@ ...@@ -831,7 +825,6 @@
this.thname = '医院' this.thname = '医院'
sessionStorage.setItem("xzqh",code) sessionStorage.setItem("xzqh",code)
this.homeinit() 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
...@@ -845,13 +838,15 @@ ...@@ -845,13 +838,15 @@
this.tablename = '时间' this.tablename = '时间'
this.thname = '月份' this.thname = '月份'
this.homeinit() this.homeinit()
this.homebot()
}else if (this.pageLevel === 'sq') { }else if (this.pageLevel === 'sq') {
return false return false
} }
}, },
homeinit() { homeinit() {
this.pageHeadData()
this.pageBottomData()
},
pageHeadData() {
let _this = this let _this = this
//{\"name\":\"QYBZ\",\"value\":\"1\",\"type\":\"1\"}不加这个管 //{\"name\":\"QYBZ\",\"value\":\"1\",\"type\":\"1\"}不加这个管
let wd = [{ let wd = [{
...@@ -1032,7 +1027,7 @@ ...@@ -1032,7 +1027,7 @@
console.log("--早发现上部分签报错--"); console.log("--早发现上部分签报错--");
}) })
}, },
homebot() { pageBottomData() {
let _this = this let _this = this
_this.dataY01 = [] _this.dataY01 = []
_this.dataY02 = [] _this.dataY02 = []
...@@ -1063,26 +1058,15 @@ ...@@ -1063,26 +1058,15 @@
"type": "1" "type": "1"
} }
] ]
let param3 = {
"themeId": _this.themeID2,
"wd": JSON.stringify(wd3),
"group": this._group
}
commonMethod(param3).then(res => {
// 用于在下文 对管数据进行赋值 可搜索 tableg
this.tableg = res.data.content
}).catch(err => {
console.log("--测试定义接口报错--");
})
/******************下半部分**签*******************/ /******************下半部分**签*******************/
let wd4 = [{ let wd4 = [{
"name": "YWSJ", "name": "YWSJ",
"endTime": this.cxsj, "endTime": this.cxsj,
"type": "2", "type": "2",
"startTime": this.startTime, "startTime": this.startTime,
"compare": "between" "compare": "between"
}, },
{ {
"name": "XZQH", "name": "XZQH",
"value": this._xzqh, "value": this._xzqh,
...@@ -1099,6 +1083,13 @@ ...@@ -1099,6 +1083,13 @@
"type": "1" "type": "1"
} }
] ]
let param3 = {
"themeId": _this.themeID2,
"wd": JSON.stringify(wd3),
"group": this._group
}
//var zbcode="MBZFX_016";单独读取 //var zbcode="MBZFX_016";单独读取
let param4 = { let param4 = {
"themeId": _this.themeID2, "themeId": _this.themeID2,
...@@ -1106,81 +1097,115 @@ ...@@ -1106,81 +1097,115 @@
"group": this._group "group": this._group
} }
commonMethod(param4).then(res => { commonMethod(param3).then(res => {
// console.log('早发现---底部签') // 用于在下文 对管数据进行赋值 可搜索 tableg
this.tableq = res.data.content
if (this._group == 'YWSJ') {
this.tableq.sort(function(prev, next) {
return parseInt(prev.YWSJ.substring(5, 7)) - parseInt(next.YWSJ.substring(5, 7))
})
}
this.tableq.forEach((item, index) => { this.tableg = res.data.content
let obj = { commonMethod(param4).then(res => {
name: '', // console.log('早发现---底部签')
code: '', this.tableq = res.data.content
tag1: '0',
tag2: '0',
tag3: '0',
tag4: '0'
}
if (item.YWSJ) { if (this._group == 'YWSJ') {
obj.name = item.YWSJ.substring(5, 7) + '月' this.tableq.sort(function(prev, next) {
} else { return parseInt(prev.YWSJ.substring(5, 7)) - parseInt(next.YWSJ.substring(5, 7))
obj.name = item.XZQH_TEXT ? item.XZQH_TEXT : item.YLJGDM_EX2 })
obj.name = obj.name ? obj.name.replace('社区', '') : '返回空'
} }
//obj.name = item.XZQH_TEXT ? item.XZQH_TEXT : item.YWSJ.substring(6, 7) + '月'
obj.code = item.XZQH? item.XZQH : item.YLJGDM
//绘制顶部图标x轴
if (this._group != 'YWSJ') {
// _this.data_x.push(obj.name)
}
_this.data_x.push(obj.name)
item.zbxx.forEach((item2, index2) => {
if (_this.DieaNo == 1) {
if (_this.bingNo == 1) {
/*柱状图*/
if (item2.ZBID == '1016') {
this.dataY01.push((parseFloat(this.tableg[index].zbxx[index2].ZXZ?this.tableg[index].zbxx[index2].ZXZ:0)/10000).toFixed(1))
this.dataY02.push((parseFloat(item2.ZXZ?item2.ZXZ:0)/10000).toFixed(1))
/*去年*/ this.tableq.forEach((item, index) => {
this.dataY03.push((parseFloat(this.tableg[index].zbxx[index2].TBZ?this.tableg[index].zbxx[index2].TBZ:0)/10000).toFixed(1)) let obj = {
this.dataY04.push((parseFloat(item2.TBZ?item2.TBZ:0)/10000).toFixed(1)) name: '',
} code: '',
tag1: '0',
tag2: '0',
tag3: '0',
tag4: '0'
}
/*折线图*/ if (item.YWSJ) {
if (item2.ZBID == '1017') { obj.name = item.YWSJ.substring(5, 7) + '月'
this.dataY05.push(this.tableg[index].zbxx[index2].ZXZ ? this.tableg[index].zbxx[index2].ZXZ : 0) } else {
this.dataY07.push(item2.ZXZ ? item2.ZXZ : 0) obj.name = item.XZQH_TEXT ? item.XZQH_TEXT : item.YLJGDM_EX2
/*去年*/ obj.name = obj.name ? obj.name.replace('社区', '') : '返回空'
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.name = item.XZQH_TEXT ? item.XZQH_TEXT : item.YWSJ.substring(6, 7) + '月'
obj.code = item.XZQH? item.XZQH : item.YLJGDM
//绘制顶部图标x轴
if (this._group != 'YWSJ') {
// _this.data_x.push(obj.name)
}
_this.data_x.push(obj.name)
item.zbxx.forEach((item2, index2) => {
if (_this.DieaNo == 1) {
if (_this.bingNo == 1) {
/*柱状图*/
if (item2.ZBID == '1016') {
this.dataY01.push((parseFloat(this.tableg[index].zbxx[index2].ZXZ?this.tableg[index].zbxx[index2].ZXZ:0)/10000).toFixed(1))
this.dataY02.push((parseFloat(item2.ZXZ?item2.ZXZ:0)/10000).toFixed(1))
/*右侧列表数据*/ /*去年*/
obj.tag1 = this.tableg[index].zbxx[index2].ZXZ ? getActiveNum(this.tableg[index].zbxx[index2].ZXZ) : 0; this.dataY03.push((parseFloat(this.tableg[index].zbxx[index2].TBZ?this.tableg[index].zbxx[index2].TBZ:0)/10000).toFixed(1))
obj.tag2 = this.tableg[index].zbxx[index2].PZL ? getActiveNum(this.tableg[index].zbxx[index2].PZL) : 0; this.dataY04.push((parseFloat(item2.TBZ?item2.TBZ:0)/10000).toFixed(1))
}
obj.tag3 = item2.ZXZ ? getActiveNum(item2.ZXZ) : 0; /*折线图*/
obj.tag4 = this.tableg[index].zbxx[index2].PZL ? getActiveNum(this.tableg[index].zbxx[index2].PZL) : 0; if (item2.ZBID == '1017') {
} this.dataY05.push(this.tableg[index].zbxx[index2].ZXZ ? this.tableg[index].zbxx[index2].ZXZ : 0)
} else { this.dataY07.push(item2.ZXZ ? item2.ZXZ : 0)
/*柱状图*/ /*去年*/
if (item2.ZBID == '1022') { this.dataY06.push(this.tableg[index].zbxx[index2].TBZ ? this.tableg[index].zbxx[index2].TBZ : 0)
this.dataY01.push(this.tableg[index].zbxx[index2].ZXZ?this.tableg[index].zbxx[index2].ZXZ:0) this.dataY08.push(item2.TBZ ? item2.TBZ : 0)
this.dataY02.push(item2.ZXZ?item2.ZXZ: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;
}
} else {
/*柱状图*/
if (item2.ZBID == '1022') {
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.dataY03.push(this.tableg[index].zbxx[index2].TBZ?this.tableg[index].zbxx[index2].TBZ:0)
this.dataY04.push(item2.TBZ?item2.TBZ:0)
}
/*折线图*/
if (item2.ZBID == '1021') {
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;
}
}
} else if (_this.DieaNo == 2) {
if (this.tableg[index].zbxx[index2].ZXZ < 10000){
this.option2.yAxis[0].name = '数量'
}
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.tableg[index].zbxx[index2].TBZ?this.tableg[index].zbxx[index2].TBZ:0) this.dataY03.push(this.formatnum2(this.tableg[index].zbxx[index2].TBZ))
this.dataY04.push(item2.TBZ?item2.TBZ:0) this.dataY04.push(this.formatnum2(item2.TBZ))
} }
/*折线图*/ if (item2.ZBID == '1026') {
if (item2.ZBID == '1021') {
this.dataY05.push(this.tableg[index].zbxx[index2].ZXZ ? this.tableg[index].zbxx[index2].ZXZ : 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.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)
...@@ -1192,43 +1217,14 @@ ...@@ -1192,43 +1217,14 @@
obj.tag3 = item2.ZXZ ? getActiveNum(item2.ZXZ) : 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; obj.tag4 = this.tableg[index].zbxx[index2].PZL ? getActiveNum(this.tableg[index].zbxx[index2].PZL) : 0;
} }
}
} else if (_this.DieaNo == 2) {
if (this.tableg[index].zbxx[index2].ZXZ < 10000){
this.option2.yAxis[0].name = '数量'
} }
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 == '1026') {
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.tableAll.push(obj)
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) //默认进来首诊测压
}) let series01 = [{
//默认进来首诊测压
let series01 = [{
name: '管理/签约人群首诊测压人数', name: '管理/签约人群首诊测压人数',
type: 'bar', type: 'bar',
stack: '1', stack: '1',
...@@ -1237,9 +1233,9 @@ ...@@ -1237,9 +1233,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: '#2A5B78' color: '#2A5B78'
}, },
{ {
offset: 0.5, offset: 0.5,
color: '#2A5B78' color: '#2A5B78'
...@@ -1259,789 +1255,796 @@ ...@@ -1259,789 +1255,796 @@
data: null, data: null,
barWidth: null barWidth: null
}, },
{ {
name: '管理/签约人群首诊测压人数', name: '管理/签约人群首诊测压人数',
type: 'bar', type: 'bar',
barWidth: 8, barWidth: 8,
itemStyle: { itemStyle: {
normal: { normal: {
color: '#4093E9' color: '#4093E9'
} }
}, },
data: this.dataY01, data: this.dataY01,
stack: "1" stack: "1"
}, },
{ {
name: '管理/签约人群首诊测压人数', name: '管理/签约人群首诊测压人数',
type: 'bar', type: 'bar',
barWidth: 8, barWidth: 8,
itemStyle: { itemStyle: {
normal: { normal: {
color: '#2A5B78' color: '#2A5B78'
} }
}, },
data: this.dataY02, data: this.dataY02,
stack: "1" stack: "1"
}, },
{ {
name: '去年管理/签约人群首诊测压人数', 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: '#00BEBE'
},
{
offset: 1,
color: '#00BEBE'
}
]
)
}
},
data: null,
barWidth: null
},
{
name: '去年管理/签约人群首诊测压人数',
type: 'bar',
barWidth: 8,
itemStyle: {
normal: {
color: '#00BEBE'
}
},
data: this.dataY03,
stack: "2"
},{
name: '去年管理/签约人群首诊测压人数',
type: 'bar',
barWidth: 8,
itemStyle: {
normal: {
color: '#115D5D'
}
},
data: this.dataY04,
stack: "2"
},
{
name: '管·首诊测压血压异常率/去年',
type: 'line',
smooth: false,
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: '#00D1DA'
},
{
offset: 0.5,
color: '#00D1DA'
},
{
offset: 0.5,
color: '#666'
},
{
offset: 1,
color: '#666'
}
]
)
}
},
data: null
},
{
name: '管·首诊测压血压异常率/去年',
type: 'line',
smooth: false,
yAxisIndex: 1,
symbol: 'circle',
symbolSize: 6,
lineStyle: {
normal: {
width: 2
}
},
itemStyle: {
normal: {
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,
data: this.dataY06
},
{
name: '签·首诊测压血压异常率/去年',
type: 'line',
smooth: false,
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: '#FFC24D'
},
{
offset: 0.5,
color: '#FFC24D'
},
{
offset: 0.5,
color: '#666'
},
{
offset: 1,
color: '#666'
}
]
)
}
},
data: null
},
{
name: '签·首诊测压血压异常率/去年',
type: 'line',
smooth: false,
yAxisIndex: 1,
symbol: 'circle',
symbolSize: 6,
lineStyle: {
normal: {
width: 2
}
},
itemStyle: {
normal: {
color: '#FFC24D'
}
},
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
}
]
//易患监测
let series02 = [{
name: '管理/签约易患人群血压规范监测数',
type: 'bar', type: 'bar',
stack: '2', stack: '1',
itemStyle: { itemStyle: {
normal: { normal: {
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: '#2A5B78'
}, },
{ {
offset: 0.5, offset: 0.5,
color: '#115D5D' color: '#2A5B78'
}, },
{ {
offset: 0.5, offset: 0.5,
color: '#00BEBE' color: '#4093E9'
}, },
{ {
offset: 1, offset: 1,
color: '#00BEBE' color: '#4093E9'
} }
] ]
) )
} }
}, },
data: null, data: null,
barWidth: null barWidth: null,
}, },
{ {
name: '去年管理/签约人群首诊测压人数', name: '管理/签约易患人群血压规范监测数',
type: 'bar', type: 'bar',
barWidth: 8, barWidth: 8,
itemStyle: { itemStyle: {
normal: { normal: {
color: '#00BEBE' color: '#4093E9'
} }
}, },
data: this.dataY03, data: this.dataY01,
stack: "2" stack: "1"
},{ },{
name: '去年管理/签约人群首诊测压人数', name: '管理/签约易患人群血压规范监测数',
type: 'bar',
barWidth: 8,
itemStyle: {
normal: {
color: '#2A5B78'
}
},
data: this.dataY02,
stack: "1"
},
{
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: '#00BEBE'
},
{
offset: 1,
color: '#00BEBE'
}
]
)
}
},
data: null,
barWidth: null,
},
{
name: '去年管理/签约易患人群血压规范监测数',
type: 'bar',
barWidth: 8,
itemStyle: {
normal: {
color: '#00BEBE'
}
},
data: this.dataY03,
stack: "2"
},{
name: '去年管理/签约易患人群血压规范监测数',
type: 'bar',
barWidth: 8,
itemStyle: {
normal: {
color: '#115D5D'
}
},
data: this.dataY04,
stack: "2"
},
{
name: '管·易患人群血压规范监测率/去年',
type: 'line',
smooth: false,
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: '#00D1DA'
},
{
offset: 0.5,
color: '#00D1DA'
},
{
offset: 0.5,
color: '#666'
},
{
offset: 1,
color: '#666'
}
]
)
}
},
data: null,
},
{
name: '管·易患人群血压规范监测率/去年',
type: 'line',
smooth: false,
yAxisIndex: 1,
symbol: 'circle',
symbolSize: 6,
lineStyle: {
normal: {
width: 2
}
},
itemStyle: {
normal: {
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,
data: this.dataY06,
},
{
name: '签·易患人群血压规范监测率/去年',
type: 'line',
smooth: false,
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: '#FFC24D'
},
{
offset: 0.5,
color: '#FFC24D'
},
{
offset: 0.5,
color: '#666'
},
{
offset: 1,
color: '#666'
}
]
)
}
},
data: this.dataY07,
},
{
name: '签·易患人群血压规范监测率/去年',
type: 'line',
smooth: false,
yAxisIndex: 1,
symbol: 'circle',
symbolSize: 6,
lineStyle: {
normal: {
width: 2
}
},
itemStyle: {
normal: {
color: '#FFC24D'
}
},
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
}
]
//易患监测
let series03 = [{
name: '管理/签约人群首诊测压诊断人数',
type: 'bar', type: 'bar',
barWidth: 8, stack: '1',
itemStyle: {
normal: {
color: '#115D5D'
}
},
data: this.dataY04,
stack: "2"
},
{
name: '管·首诊测压血压异常率/去年',
type: 'line',
smooth: false,
yAxisIndex: 1,
symbol: 'circle',
symbolSize: 6,
lineStyle: {
normal: {
width: 0
}
},
itemStyle: { itemStyle: {
normal: { normal: {
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: '#00D1DA' color: '#2A5B78'
}, },
{ {
offset: 0.5, offset: 0.5,
color: '#00D1DA' color: '#2A5B78'
}, },
{ {
offset: 0.5, offset: 0.5,
color: '#666' color: '#4093E9'
}, },
{ {
offset: 1, offset: 1,
color: '#666' color: '#4093E9'
} }
] ]
) )
} }
}, },
data: null data: null,
barWidth: null,
}, },
{ {
name: '管·首诊测压血压异常率/去年', name: '管理/签约人群首诊测压诊断人数',
type: 'line', type: 'bar',
smooth: false, barWidth: 8,
yAxisIndex: 1, itemStyle: {
symbol: 'circle', normal: {
symbolSize: 6, color: '#4093E9'
lineStyle: { }
normal: { },
width: 2 data: this.dataY01,
} stack: "1"
}, },{
itemStyle: { name: '管理/签约人群首诊测压诊断人数',
normal: { type: 'bar',
color: '#00D1DA' barWidth: 8,
} itemStyle: {
}, normal: {
z: 11, color: '#2A5B78'
data: this.dataY05 }
},{ },
name: '管·首诊测压血压异常率/去年', data: this.dataY02,
type: 'line', stack: "1"
smooth: false, },
yAxisIndex: 1, {
symbol: 'circle', name: '去年管理/签约人群首诊测压诊断人数',
symbolSize: 6, type: 'bar',
lineStyle: { stack: '2',
normal: { itemStyle: {
width: 2 normal: {
} color: new this.$echarts.graphic.LinearGradient(
}, 0, 0, 0, 1,
itemStyle: { [{
normal: {
color: '#666'
}
},
z: 12,
data: this.dataY06
},
{
name: '签·首诊测压血压异常率/去年',
type: 'line',
smooth: false,
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: '#FFC24D'
},
{
offset: 0.5,
color: '#FFC24D'
},
{
offset: 0.5,
color: '#666'
},
{
offset: 1,
color: '#666'
}
]
)
}
},
data: null
},
{
name: '签·首诊测压血压异常率/去年',
type: 'line',
smooth: false,
yAxisIndex: 1,
symbol: 'circle',
symbolSize: 6,
lineStyle: {
normal: {
width: 2
}
},
itemStyle: {
normal: {
color: '#FFC24D'
}
},
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
}
]
//易患监测
let series02 = [{
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.5,
color: '#4093E9'
},
{
offset: 1,
color: '#4093E9'
}
]
)
}
},
data: null,
barWidth: null,
},
{
name: '管理/签约易患人群血压规范监测数',
type: 'bar',
barWidth: 8,
itemStyle: {
normal: {
color: '#4093E9'
}
},
data: this.dataY01,
stack: "1"
},{
name: '管理/签约易患人群血压规范监测数',
type: 'bar',
barWidth: 8,
itemStyle: {
normal: {
color: '#2A5B78'
}
},
data: this.dataY02,
stack: "1"
},
{
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: '#00BEBE'
},
{
offset: 1,
color: '#00BEBE'
}
]
)
}
},
data: null,
barWidth: null,
},
{
name: '去年管理/签约易患人群血压规范监测数',
type: 'bar',
barWidth: 8,
itemStyle: {
normal: {
color: '#00BEBE'
}
},
data: this.dataY03,
stack: "2"
},{
name: '去年管理/签约易患人群血压规范监测数',
type: 'bar',
barWidth: 8,
itemStyle: {
normal: {
color: '#115D5D'
}
},
data: this.dataY04,
stack: "2"
},
{
name: '管·易患人群血压规范监测率/去年',
type: 'line',
smooth: false,
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: '#00D1DA'
},
{
offset: 0.5,
color: '#00D1DA'
},
{
offset: 0.5,
color: '#666'
},
{
offset: 1,
color: '#666'
}
]
)
}
},
data: null,
},
{
name: '管·易患人群血压规范监测率/去年',
type: 'line',
smooth: false,
yAxisIndex: 1,
symbol: 'circle',
symbolSize: 6,
lineStyle: {
normal: {
width: 2
}
},
itemStyle: {
normal: {
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,
data: this.dataY06,
},
{
name: '签·易患人群血压规范监测率/去年',
type: 'line',
smooth: false,
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: '#FFC24D'
},
{
offset: 0.5,
color: '#FFC24D'
},
{
offset: 0.5,
color: '#666'
},
{
offset: 1,
color: '#666'
}
]
)
}
},
data: this.dataY07,
},
{
name: '签·易患人群血压规范监测率/去年',
type: 'line',
smooth: false,
yAxisIndex: 1,
symbol: 'circle',
symbolSize: 6,
lineStyle: {
normal: {
width: 2
}
},
itemStyle: {
normal: {
color: '#FFC24D'
}
},
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
}
]
//易患监测
let series03 = [{
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.5,
color: '#4093E9'
},
{
offset: 1,
color: '#4093E9'
}
]
)
}
},
data: null,
barWidth: null,
},
{
name: '管理/签约人群首诊测压诊断人数',
type: 'bar',
barWidth: 8,
itemStyle: {
normal: {
color: '#4093E9'
}
},
data: this.dataY01,
stack: "1"
},{
name: '管理/签约人群首诊测压诊断人数',
type: 'bar',
barWidth: 8,
itemStyle: {
normal: {
color: '#2A5B78'
}
},
data: this.dataY02,
stack: "1"
},
{
name: '去年管理/签约人群首诊测压诊断人数',
type: 'bar',
stack: '2',
itemStyle: {
normal: {
color: new this.$echarts.graphic.LinearGradient(
0, 0, 0, 1,
[{
offset: 0, offset: 0,
color: '#115D5D' color: '#115D5D'
}, },
{ {
offset: 0.5, offset: 0.5,
color: '#115D5D' color: '#115D5D'
}, },
{ {
offset: 0.5, offset: 0.5,
color: '#00BEBE' color: '#00BEBE'
}, },
{ {
offset: 1, offset: 1,
color: '#00BEBE' color: '#00BEBE'
} }
] ]
) )
} }
}, },
data: null, data: null,
barWidth: null, barWidth: null,
}, },
{ {
name: '去年管理/签约人群首诊测压诊断人数', name: '去年管理/签约人群首诊测压诊断人数',
type: 'bar', type: 'bar',
barWidth: 8, barWidth: 8,
itemStyle: { itemStyle: {
normal: { normal: {
color: '#00BEBE' color: '#00BEBE'
} }
}, },
data: this.dataY03, data: this.dataY03,
stack: "2" stack: "2"
},{ },{
name: '去年管理/签约人群首诊测压诊断人数', name: '去年管理/签约人群首诊测压诊断人数',
type: 'bar', type: 'bar',
barWidth: 8, barWidth: 8,
itemStyle: { itemStyle: {
normal: { normal: {
color: '#115D5D' color: '#115D5D'
} }
}, },
data: this.dataY04, data: this.dataY04,
stack: "2" stack: "2"
}, },
{ {
name: '管·首诊测压血压异常者诊断率/去年', name: '管·首诊测压血压异常者诊断率/去年',
type: 'line', type: 'line',
smooth: false, smooth: false,
yAxisIndex: 1, yAxisIndex: 1,
symbol: 'circle', symbol: 'circle',
symbolSize: 6, symbolSize: 6,
lineStyle: { lineStyle: {
normal: { normal: {
width: 0 width: 0
} }
}, },
itemStyle: { itemStyle: {
normal: { normal: {
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: '#00D1DA' color: '#00D1DA'
}, },
{ {
offset: 0.5, offset: 0.5,
color: '#00D1DA' color: '#00D1DA'
}, },
{ {
offset: 0.5, offset: 0.5,
color: '#666' color: '#666'
}, },
{ {
offset: 1, offset: 1,
color: '#666' color: '#666'
} }
] ]
) )
} }
}, },
data: null data: null
}, },
{ {
name: '管·首诊测压血压异常者诊断率/去年', name: '管·首诊测压血压异常者诊断率/去年',
type: 'line', type: 'line',
smooth: false, smooth: false,
yAxisIndex: 1, yAxisIndex: 1,
symbol: 'circle', symbol: 'circle',
symbolSize: 6, symbolSize: 6,
lineStyle: { lineStyle: {
normal: { normal: {
width: 2 width: 2
} }
}, },
itemStyle: { itemStyle: {
normal: { normal: {
color: '#00D1DA' color: '#00D1DA'
} }
}, },
z: 11, z: 11,
data: this.dataY05, data: this.dataY05,
},{ },{
name: '管·首诊测压血压异常者诊断率/去年', name: '管·首诊测压血压异常者诊断率/去年',
type: 'line', type: 'line',
smooth: false, smooth: false,
yAxisIndex: 1, yAxisIndex: 1,
symbol: 'circle', symbol: 'circle',
symbolSize: 6, symbolSize: 6,
lineStyle: { lineStyle: {
normal: { normal: {
width: 2 width: 2
} }
}, },
itemStyle: { itemStyle: {
normal: { normal: {
color: '#666' color: '#666'
} }
}, },
z: 12, z: 12,
data: this.dataY06, data: this.dataY06,
}, },
{ {
name: '签·首诊测压血糖异常者诊断率/去年', name: '签·首诊测压血糖异常者诊断率/去年',
type: 'line', type: 'line',
smooth: false, smooth: false,
yAxisIndex: 1, yAxisIndex: 1,
symbol: 'circle', symbol: 'circle',
symbolSize: 6, symbolSize: 6,
lineStyle: { lineStyle: {
normal: { normal: {
width: 0 width: 0
} }
}, },
itemStyle: { itemStyle: {
normal: { normal: {
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: '#FFC24D' color: '#FFC24D'
}, },
{ {
offset: 0.5, offset: 0.5,
color: '#FFC24D' color: '#FFC24D'
}, },
{ {
offset: 0.5, offset: 0.5,
color: '#666' color: '#666'
}, },
{ {
offset: 1, offset: 1,
color: '#666' color: '#666'
} }
] ]
) )
} }
}, },
data: this.dataY07, data: this.dataY07,
}, },
{ {
name: '签·首诊测压血糖异常者诊断率/去年', name: '签·首诊测压血糖异常者诊断率/去年',
type: 'line', type: 'line',
smooth: false, smooth: false,
yAxisIndex: 1, yAxisIndex: 1,
symbol: 'circle', symbol: 'circle',
symbolSize: 6, symbolSize: 6,
lineStyle: { lineStyle: {
normal: { normal: {
width: 2 width: 2
} }
}, },
itemStyle: { itemStyle: {
normal: { normal: {
color: '#FFC24D' color: '#FFC24D'
} }
}, },
z: 13, z: 13,
data: this.dataY07 data: this.dataY07
}, },
{ {
name: '签·首诊测压血糖异常者诊断率/去年', name: '签·首诊测压血糖异常者诊断率/去年',
type: 'line', type: 'line',
smooth: false, smooth: false,
yAxisIndex: 1, yAxisIndex: 1,
symbol: 'circle', symbol: 'circle',
symbolSize: 6, symbolSize: 6,
lineStyle: { lineStyle: {
normal: { normal: {
width: 2 width: 2
} }
}, },
itemStyle: { itemStyle: {
normal: { normal: {
color: '#666' color: '#666'
} }
}, },
z: 14, z: 14,
data: this.dataY08 data: this.dataY08
} }
] ]
_this.option2.xAxis[0].data = _this.data_x _this.option2.xAxis[0].data = _this.data_x
if (_this.DieaNo == 1) { if (_this.DieaNo == 1) {
if (_this.bingNo == 1) { if (_this.bingNo == 1) {
_this.option2.series = series01 _this.option2.series = series01
} else { } else {
_this.option2.series = series03 _this.option2.series = series03
}
} else if (_this.DieaNo == 2) {
//_this.groupNo==1 各区,2时间
_this.option2.series = series02
} }
} else if (_this.DieaNo == 2) {
//_this.groupNo==1 各区,2时间
_this.option2.series = series02
}
_this.$echarts.init(document.getElementById("middlebarbox4")).setOption(_this.option2, true) _this.$echarts.init(document.getElementById("middlebarbox4")).setOption(_this.option2, true)
}).catch(err => {
console.log("--2底部报错签--");
})
}).catch(err => { }).catch(err => {
console.log("--2底部报错签--"); console.log("--测试定义接口报错--");
}) })
} }
}, },
mounted() { mounted() {
...@@ -2053,7 +2056,6 @@ ...@@ -2053,7 +2056,6 @@
this._group = "XZQH" this._group = "XZQH"
this.pageLevel = 'sj' this.pageLevel = 'sj'
this.homeinit() this.homeinit()
this.homebot()
} else if ('area' === this.userRole) {//区角色 } else if ('area' === this.userRole) {//区角色
this._xzqh = sessionStorage.getItem("organizcode") this._xzqh = sessionStorage.getItem("organizcode")
...@@ -2067,7 +2069,6 @@ ...@@ -2067,7 +2069,6 @@
this.areaname = sessionStorage.getItem("organizcodeName") this.areaname = sessionStorage.getItem("organizcodeName")
this.homeinit() 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"
...@@ -2078,7 +2079,6 @@ ...@@ -2078,7 +2079,6 @@
this.arname = '社区' this.arname = '社区'
this.areaname = sessionStorage.getItem("organizcodeName") this.areaname = sessionStorage.getItem("organizcodeName")
this.homeinit() this.homeinit()
this.homebot()
} }
const obj = setInterval(() => { const obj = setInterval(() => {
......
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