Commit f8ba08c7 by pcc

慢病管理--数据问题

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