Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
D
diseaseControlManage
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
diseaseControlManage-Develop
diseaseControlManage
Commits
df09e670
Commit
df09e670
authored
Sep 14, 2020
by
lihu541
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
去掉日志输出
parent
12ab2c1a
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
121 additions
and
253 deletions
+121
-253
src/components/userJoin/screenTwoPag1.vue
+67
-139
src/components/userJoin/screenTwoPag2.vue
+54
-114
No files found.
src/components/userJoin/screenTwoPag1.vue
View file @
df09e670
...
@@ -455,8 +455,7 @@
...
@@ -455,8 +455,7 @@
tooltip
:
{
tooltip
:
{
/*返回需要的信息*/
/*返回需要的信息*/
formatter
:
function
(
param
)
{
formatter
:
function
(
param
)
{
console
.
log
();
// clog
return
'<div style="border-bottom: 1px solid rgba(255,255,255,.3); font-size: 13px;padding-bottom: 7px;margin-bottom: 7px;"> '
+
param
.
seriesName
+
'('
+
param
.
name
+
')'
+
':'
+
param
.
value
+
'人</div>'
;
return
'<div style="border-bottom: 1px solid rgba(255,255,255,.3); font-size: 13px;padding-bottom: 7px;margin-bottom: 7px;"> '
+
param
.
seriesName
+
'('
+
param
.
name
+
')'
+
':'
+
param
.
value
+
'人</div>'
;
}
}
},
},
...
@@ -550,9 +549,7 @@
...
@@ -550,9 +549,7 @@
padding
:
10
,
padding
:
10
,
trigger
:
'axis'
,
trigger
:
'axis'
,
formatter
:
function
(
params
)
{
formatter
:
function
(
params
)
{
// console.log(params.length)
// console.log('打印params长度')
// console.log(params)
if
(
params
[
0
].
seriesName
==
'管理/签约人群正常随访一次的人数'
)
{
if
(
params
[
0
].
seriesName
==
'管理/签约人群正常随访一次的人数'
)
{
var
res
=
'<ul class="f12 pl10 pr15">'
;
var
res
=
'<ul class="f12 pl10 pr15">'
;
res
+=
'<li class="f13"> '
+
params
[
0
].
axisValue
+
'区</li>'
;
res
+=
'<li class="f13"> '
+
params
[
0
].
axisValue
+
'区</li>'
;
...
@@ -933,7 +930,7 @@
...
@@ -933,7 +930,7 @@
this
.
showtabnum
=
num
this
.
showtabnum
=
num
},
},
CityGetBack
()
{
CityGetBack
()
{
console
.
log
(
"this.SheQuCode :"
+
this
.
SheQuCode
);
if
(
this
.
SheQuCode
==
2
)
{
if
(
this
.
SheQuCode
==
2
)
{
// 使用 this.SheQuCode 的值来判断现在处于的区镇状态
// 使用 this.SheQuCode 的值来判断现在处于的区镇状态
// 此时 处于第一次点击下的状态
// 此时 处于第一次点击下的状态
...
@@ -965,7 +962,7 @@
...
@@ -965,7 +962,7 @@
this
.
SheQuCode
=
2
this
.
SheQuCode
=
2
this
.
tablename
=
"社区"
this
.
tablename
=
"社区"
this
.
thname
=
"医院"
this
.
thname
=
"医院"
console
.
log
(
this
.
lastStatus
);
}
}
this
.
homeinit
()
this
.
homeinit
()
this
.
reApplyCharts
()
this
.
reApplyCharts
()
...
@@ -1040,8 +1037,7 @@
...
@@ -1040,8 +1037,7 @@
this
.
lastStatus
.
BarType
=
this
.
BarType
this
.
lastStatus
.
BarType
=
this
.
BarType
this
.
lastStatus
.
BeginCode
=
this
.
BeginCode
this
.
lastStatus
.
BeginCode
=
this
.
BeginCode
this
.
lastStatus
.
areaclick
=
this
.
areaclick
this
.
lastStatus
.
areaclick
=
this
.
areaclick
// console.log(this.lastStatus);
// console.log(this.PlaceCode);
this
.
homeinit
()
this
.
homeinit
()
this
.
reApplyCharts
()
this
.
reApplyCharts
()
this
.
bottominit
()
this
.
bottominit
()
...
@@ -1055,7 +1051,7 @@
...
@@ -1055,7 +1051,7 @@
this
.
_group
=
"YWSJ"
this
.
_group
=
"YWSJ"
this
.
pageLevel
=
'sq'
this
.
pageLevel
=
'sq'
console
.
log
(
111
);
this
.
closeareaclick
=
false
this
.
closeareaclick
=
false
// this.PlaceCode = yldm
// this.PlaceCode = yldm
this
.
areaname
=
sessionStorage
.
getItem
(
"organizcodeName"
)
this
.
areaname
=
sessionStorage
.
getItem
(
"organizcodeName"
)
...
@@ -1069,7 +1065,6 @@
...
@@ -1069,7 +1065,6 @@
this
.
tablename
=
'时间'
this
.
tablename
=
'时间'
this
.
thname
=
'月份'
this
.
thname
=
'月份'
}
}
console
.
log
(
111
);
},
},
groupChange
(
num
)
{
groupChange
(
num
)
{
...
@@ -1087,7 +1082,7 @@
...
@@ -1087,7 +1082,7 @@
this
.
bottominit
()
this
.
bottominit
()
},
},
dataSearch
(
value
)
{
dataSearch
(
value
)
{
console
.
log
(
value
)
sessionStorage
.
setItem
(
"ywsj"
,
value
)
sessionStorage
.
setItem
(
"ywsj"
,
value
)
this
.
DieaChange
(
this
.
DieaNo
)
this
.
DieaChange
(
this
.
DieaNo
)
...
@@ -1119,11 +1114,10 @@
...
@@ -1119,11 +1114,10 @@
this
.
pagedisname
=
'肿瘤'
this
.
pagedisname
=
'肿瘤'
}
}
console
.
log
(
_this
.
DieaNo
);
_this
.
agedatayq
=
[]
_this
.
agedatayq
=
[]
_this
.
agedatayg
=
[]
_this
.
agedatayg
=
[]
if
(
_this
.
DieaNo
==
1
)
{
if
(
_this
.
DieaNo
==
1
)
{
console
.
log
(
_this
.
agdata
)
this
.
themeidnow
=
13
// 柱状图请求ID
this
.
themeidnow
=
13
// 柱状图请求ID
this
.
bottominit
()
// 数据请求、柱状图图标渲染
this
.
bottominit
()
// 数据请求、柱状图图标渲染
...
@@ -1178,21 +1172,11 @@
...
@@ -1178,21 +1172,11 @@
_this
.
gxbdata1
=
_this
.
agxbdata1
[
1
]
_this
.
gxbdata1
=
_this
.
agxbdata1
[
1
]
_this
.
qxbdata0
=
_this
.
aqxbdata0
[
1
]
_this
.
qxbdata0
=
_this
.
aqxbdata0
[
1
]
_this
.
qxbdata1
=
_this
.
aqxbdata1
[
1
]
_this
.
qxbdata1
=
_this
.
aqxbdata1
[
1
]
console
.
log
(
_this
.
agdata
[
1
])
console
.
log
(
_this
.
aqdata
[
1
])
console
.
log
(
this
.
agxjdata
[
1
])
console
.
log
(
this
.
aqxjdata
[
1
])
console
.
log
(
this
.
agsfdata
[
1
])
console
.
log
(
this
.
aqsfdata
[
1
])
console
.
log
(
_this
.
agxbdata0
[
1
])
console
.
log
(
_this
.
agxbdata1
[
1
])
console
.
log
(
_this
.
aqxbdata0
[
1
])
console
.
log
(
_this
.
aqxbdata1
[
1
])
_this
.
gtnbdata
.
forEach
((
item
,
index
)
=>
{
_this
.
gtnbdata
.
forEach
((
item
,
index
)
=>
{
// console.log(JSON.stringify(item));
// console.log(JSON.stringify(item.ZBID));
if
(
item
.
ZBID
==
1051
)
{
if
(
item
.
ZBID
==
1051
)
{
console
.
log
(
JSON
.
stringify
(
item
));
_this
.
gglrs
=
item
.
ZXZ
_this
.
gglrs
=
item
.
ZXZ
}
}
if
(
item
.
ZBID
==
1056
)
{
if
(
item
.
ZBID
==
1056
)
{
...
@@ -1201,7 +1185,6 @@
...
@@ -1201,7 +1185,6 @@
})
})
_this
.
qtnbdata
.
forEach
((
item
,
index
)
=>
{
_this
.
qtnbdata
.
forEach
((
item
,
index
)
=>
{
if
(
item
.
ZBID
==
1051
)
{
if
(
item
.
ZBID
==
1051
)
{
console
.
log
(
555555555555555555
);
_this
.
qglrs
=
item
.
ZXZ
_this
.
qglrs
=
item
.
ZXZ
}
}
if
(
item
.
ZBID
==
1056
)
{
if
(
item
.
ZBID
==
1056
)
{
...
@@ -1249,18 +1232,13 @@
...
@@ -1249,18 +1232,13 @@
"wd"
:
JSON
.
stringify
(
wd
),
"wd"
:
JSON
.
stringify
(
wd
),
// "group": this.BarType
// "group": this.BarType
}
//zbcode : zbcode
}
//zbcode : zbcode
// console.log(param);
commonMethod
(
param
).
then
(
res
=>
{
commonMethod
(
param
).
then
(
res
=>
{
// console.log('慢病管理在管')
// console.log(res);
_this
.
agdata
=
res
.
data
.
content
[
0
].
zbxx
_this
.
agdata
=
res
.
data
.
content
[
0
].
zbxx
// console.log(JSON.stringify(_this.agdata))
_this
.
gtopdata
=
_this
.
agdata
[
0
]
_this
.
gtopdata
=
_this
.
agdata
[
0
]
// console.log(JSON.stringify(_this.agdata));
// console.log(JSON.stringify(_this.gtopdata.ZXZ));
// console.log(JSON.stringify(_this.gtopdata.TBZ));
// console.log(JSON.stringify(_this.gtopdata.TBL));
//
}).
catch
(
err
=>
{
}).
catch
(
err
=>
{
console
.
log
(
"--慢病管理在管报错--"
);
console
.
log
(
"--慢病管理在管报错--"
);
})
})
...
@@ -1286,14 +1264,13 @@
...
@@ -1286,14 +1264,13 @@
"wd"
:
JSON
.
stringify
(
wdq
),
"wd"
:
JSON
.
stringify
(
wdq
),
// "group": this.BarType,
// "group": this.BarType,
}
//zbcode : zbcode
}
//zbcode : zbcode
// console.log(_this.themeID);
commonMethod
(
paramq
).
then
(
res
=>
{
commonMethod
(
paramq
).
then
(
res
=>
{
// console.log('慢病管理在签')
// console.log(res)
_this
.
aqdata
=
res
.
data
.
content
[
0
].
zbxx
_this
.
aqdata
=
res
.
data
.
content
[
0
].
zbxx
_this
.
qtopdata
=
_this
.
aqdata
[
0
]
_this
.
qtopdata
=
_this
.
aqdata
[
0
]
// console.log("" + qtopdata);
}).
catch
(
err
=>
{
}).
catch
(
err
=>
{
console
.
log
(
"--慢病管理在签报错--"
);
console
.
log
(
"--慢病管理在签报错--"
);
})
})
...
@@ -1319,15 +1296,10 @@
...
@@ -1319,15 +1296,10 @@
// "group": this.BarType,
// "group": this.BarType,
}
}
commonMethod
(
paramxj
).
then
(
res
=>
{
commonMethod
(
paramxj
).
then
(
res
=>
{
// 1045
// console.log(JSON.stringify(res));
_this
.
agxjdata
=
res
.
data
.
content
[
0
].
zbxx
_this
.
agxjdata
=
res
.
data
.
content
[
0
].
zbxx
_this
.
gxjdata
=
_this
.
agxjdata
[
0
]
_this
.
gxjdata
=
_this
.
agxjdata
[
0
]
// console.log("管新建数 累计 " + _this.gxjdata.ZXZ);
// console.log(this.PlaceCode);
// console.log("失访数(累计) " + _this.qxjdata.ZXZ);
// console.log("管新建数 本周" + _this.gxjdata.TBZ);
// console.log("失访数/本周 " + _this.qxjdata.TBZ);
}).
catch
(
err
=>
{
}).
catch
(
err
=>
{
console
.
log
(
"--慢病管理新建-管报错--"
);
console
.
log
(
"--慢病管理新建-管报错--"
);
})
})
...
@@ -1357,14 +1329,12 @@
...
@@ -1357,14 +1329,12 @@
// "group": this.BarType,
// "group": this.BarType,
}
}
commonMethod
(
paramxjq
).
then
(
res
=>
{
commonMethod
(
paramxjq
).
then
(
res
=>
{
// console.log('慢病管理新建-签')
// console.log(JSON.stringify(res))
_this
.
aqxjdata
=
res
.
data
.
content
[
0
].
zbxx
_this
.
aqxjdata
=
res
.
data
.
content
[
0
].
zbxx
_this
.
qxjdata
=
_this
.
aqxjdata
[
0
]
_this
.
qxjdata
=
_this
.
aqxjdata
[
0
]
}).
catch
(
err
=>
{
}).
catch
(
err
=>
{
console
.
log
(
"--慢病管理新建-签报错--"
);
console
.
log
(
"--慢病管理新建-签报错--"
);
})
})
// console.log(this.PlaceCode);
let
wdsf
=
[{
let
wdsf
=
[{
"name"
:
"YWSJ"
,
"name"
:
"YWSJ"
,
...
@@ -1387,18 +1357,16 @@
...
@@ -1387,18 +1357,16 @@
// "group": this.BarType,
// "group": this.BarType,
}
}
commonMethod
(
paramsf
).
then
(
res
=>
{
commonMethod
(
paramsf
).
then
(
res
=>
{
// console.log('慢病管理失访-管')
// console.log(res)
res
.
data
.
content
[
0
].
zbxx
.
forEach
(
item
=>
{
res
.
data
.
content
[
0
].
zbxx
.
forEach
(
item
=>
{
console
.
log
(
item
.
ZBID
);
if
(
item
.
ZBID
==
"1045"
){
if
(
item
.
ZBID
==
"1045"
){
_this
.
agsfdata
=
item
_this
.
agsfdata
=
item
}
}
})
})
// console.log( _this.agsfdata);
_this
.
gsfdata
=
_this
.
aqsfdata
[
0
]
_this
.
gsfdata
=
_this
.
aqsfdata
[
0
]
// console.log("签失访数累计 " + _this.gsfdata.ZXZ);
// console.log("签失访数本周 " + _this.gsfdata.TBZ);
}).
catch
(
err
=>
{
}).
catch
(
err
=>
{
console
.
log
(
"--慢病管理失访-管报错--"
);
console
.
log
(
"--慢病管理失访-管报错--"
);
})
})
...
@@ -1428,11 +1396,10 @@
...
@@ -1428,11 +1396,10 @@
// "group": this.BarType
// "group": this.BarType
}
}
commonMethod
(
paramsfq
).
then
(
res
=>
{
commonMethod
(
paramsfq
).
then
(
res
=>
{
// console.log('慢病管理失访-签')
// console.log(res)
_this
.
aqsfdata
=
res
.
data
.
content
[
0
].
zbxx
_this
.
aqsfdata
=
res
.
data
.
content
[
0
].
zbxx
_this
.
qsfdata
=
_this
.
aqsfdata
[
0
]
_this
.
qsfdata
=
_this
.
aqsfdata
[
0
]
console
.
log
(
222222
);
}).
catch
(
err
=>
{
}).
catch
(
err
=>
{
console
.
log
(
"--慢病管理失访-签报错--"
);
console
.
log
(
"--慢病管理失访-签报错--"
);
})
})
...
@@ -1455,8 +1422,7 @@
...
@@ -1455,8 +1422,7 @@
// "group": this.BarType
// "group": this.BarType
}
}
commonMethod
(
param2
).
then
(
res
=>
{
commonMethod
(
param2
).
then
(
res
=>
{
// console.log('慢病管理高血压-管')
// console.log(res)
_this
.
ggxydata
=
res
.
data
.
content
[
0
].
zbxx
_this
.
ggxydata
=
res
.
data
.
content
[
0
].
zbxx
_this
.
ggxydata
.
forEach
((
item
,
index
)
=>
{
_this
.
ggxydata
.
forEach
((
item
,
index
)
=>
{
if
(
item
.
ZBID
==
1048
)
{
if
(
item
.
ZBID
==
1048
)
{
...
@@ -1493,13 +1459,12 @@
...
@@ -1493,13 +1459,12 @@
// "group": this.BarType
// "group": this.BarType
}
}
commonMethod
(
param2q
).
then
(
res
=>
{
commonMethod
(
param2q
).
then
(
res
=>
{
// console.log('慢病管理高血压-签')
// console.log(res)
_this
.
qgxydata
=
res
.
data
.
content
[
0
].
zbxx
_this
.
qgxydata
=
res
.
data
.
content
[
0
].
zbxx
_this
.
qgxydata
.
forEach
((
item
,
index
)
=>
{
_this
.
qgxydata
.
forEach
((
item
,
index
)
=>
{
if
(
item
.
ZBID
==
1051
&&
this
.
areaname
!=
''
)
{
if
(
item
.
ZBID
==
1051
&&
this
.
areaname
!=
''
)
{
console
.
log
(
555555555555555555
);
_this
.
qglrs
=
item
.
ZXZ
_this
.
qglrs
=
item
.
ZXZ
}
}
if
(
item
.
ZBID
==
1054
&&
this
.
areaname
!=
''
)
{
if
(
item
.
ZBID
==
1054
&&
this
.
areaname
!=
''
)
{
...
@@ -1528,8 +1493,7 @@
...
@@ -1528,8 +1493,7 @@
// "group": this.BarType
// "group": this.BarType
}
}
commonMethod
(
paramtnbg
).
then
(
res
=>
{
commonMethod
(
paramtnbg
).
then
(
res
=>
{
// console.log('慢病管理糖尿病-管')
// console.log(res)
_this
.
gtnbdata
=
res
.
data
.
content
[
0
].
zbxx
_this
.
gtnbdata
=
res
.
data
.
content
[
0
].
zbxx
}).
catch
(
err
=>
{
}).
catch
(
err
=>
{
console
.
log
(
"--慢病管理糖尿病报错--"
);
console
.
log
(
"--慢病管理糖尿病报错--"
);
...
@@ -1556,8 +1520,7 @@
...
@@ -1556,8 +1520,7 @@
// "group": this.BarType
// "group": this.BarType
}
}
commonMethod
(
paramtnbq
).
then
(
res
=>
{
commonMethod
(
paramtnbq
).
then
(
res
=>
{
// console.log('慢病管理糖尿病-签')
// console.log(res)
_this
.
qtnbdata
=
res
.
data
.
content
[
0
].
zbxx
_this
.
qtnbdata
=
res
.
data
.
content
[
0
].
zbxx
}).
catch
(
err
=>
{
}).
catch
(
err
=>
{
console
.
log
(
"--慢病管理糖尿病报错--"
);
console
.
log
(
"--慢病管理糖尿病报错--"
);
...
@@ -1585,8 +1548,7 @@
...
@@ -1585,8 +1548,7 @@
// "group": this.BarType
// "group": this.BarType
}
}
commonMethod
(
paramxb
).
then
(
res
=>
{
commonMethod
(
paramxb
).
then
(
res
=>
{
// console.log('女性别-管')
// console.log(res)
_this
.
agxbdata0
=
res
.
data
.
content
[
0
].
zbxx
_this
.
agxbdata0
=
res
.
data
.
content
[
0
].
zbxx
_this
.
gxbdata0
=
_this
.
agxbdata0
[
0
]
_this
.
gxbdata0
=
_this
.
agxbdata0
[
0
]
}).
catch
(
err
=>
{
}).
catch
(
err
=>
{
...
@@ -1614,8 +1576,7 @@
...
@@ -1614,8 +1576,7 @@
// "group": this.BarType
// "group": this.BarType
}
}
commonMethod
(
paramxb1
).
then
(
res
=>
{
commonMethod
(
paramxb1
).
then
(
res
=>
{
// console.log('男性别-管')
// console.log(res)
_this
.
agxbdata1
=
res
.
data
.
content
[
0
].
zbxx
_this
.
agxbdata1
=
res
.
data
.
content
[
0
].
zbxx
_this
.
gxbdata1
=
_this
.
agxbdata1
[
0
]
_this
.
gxbdata1
=
_this
.
agxbdata1
[
0
]
}).
catch
(
err
=>
{
}).
catch
(
err
=>
{
...
@@ -1647,8 +1608,7 @@
...
@@ -1647,8 +1608,7 @@
// "group": this.BarType
// "group": this.BarType
}
}
commonMethod
(
paramxbq
).
then
(
res
=>
{
commonMethod
(
paramxbq
).
then
(
res
=>
{
// console.log('女性别-签---')
// console.log(res)
_this
.
aqxbdata0
=
res
.
data
.
content
[
0
].
zbxx
_this
.
aqxbdata0
=
res
.
data
.
content
[
0
].
zbxx
_this
.
qxbdata0
=
_this
.
aqxbdata0
[
0
]
_this
.
qxbdata0
=
_this
.
aqxbdata0
[
0
]
}).
catch
(
err
=>
{
}).
catch
(
err
=>
{
...
@@ -1680,8 +1640,6 @@
...
@@ -1680,8 +1640,6 @@
// "group": this.BarType
// "group": this.BarType
}
}
commonMethod
(
paramxbq1
).
then
(
res
=>
{
commonMethod
(
paramxbq1
).
then
(
res
=>
{
// console.log('男性别-签---')
// console.log(res)
_this
.
aqxbdata1
=
res
.
data
.
content
[
0
].
zbxx
_this
.
aqxbdata1
=
res
.
data
.
content
[
0
].
zbxx
_this
.
qxbdata1
=
_this
.
aqxbdata1
[
0
]
_this
.
qxbdata1
=
_this
.
aqxbdata1
[
0
]
...
@@ -1708,13 +1666,12 @@
...
@@ -1708,13 +1666,12 @@
}
}
commonMethod
(
paramnl
).
then
(
res
=>
{
commonMethod
(
paramnl
).
then
(
res
=>
{
// console.log('年龄-管--')
// console.log(res)
_this
.
agegl
=
res
.
data
.
content
_this
.
agegl
=
res
.
data
.
content
_this
.
agegl
.
forEach
((
item
,
index
)
=>
{
_this
.
agegl
.
forEach
((
item
,
index
)
=>
{
item
.
NL
?
_this
.
agedatax
.
push
(
item
.
NL
)
:
''
item
.
NL
?
_this
.
agedatax
.
push
(
item
.
NL
)
:
''
})
})
// console.log(_this.agedatax)
}).
catch
(
err
=>
{
}).
catch
(
err
=>
{
console
.
log
(
"--年龄报错--"
);
console
.
log
(
"--年龄报错--"
);
})
})
...
@@ -1741,9 +1698,7 @@
...
@@ -1741,9 +1698,7 @@
}
}
commonMethod
(
paramnl2
).
then
(
res
=>
{
commonMethod
(
paramnl2
).
then
(
res
=>
{
// console.log('年龄-签agedatayq--')
// console.log(JSON.stringify(paramnl2));
// console.log(res)
_this
.
ageqy
=
res
.
data
.
content
_this
.
ageqy
=
res
.
data
.
content
_this
.
ageqy
.
forEach
((
item
,
index
)
=>
{
_this
.
ageqy
.
forEach
((
item
,
index
)
=>
{
_this
.
agedatayq
.
push
(
item
.
zbxx
[
0
].
ZXZ
)
_this
.
agedatayq
.
push
(
item
.
zbxx
[
0
].
ZXZ
)
...
@@ -1752,10 +1707,6 @@
...
@@ -1752,10 +1707,6 @@
_this
.
agedatayg
.
push
(
item
.
zbxx
[
0
].
ZXZ
)
_this
.
agedatayg
.
push
(
item
.
zbxx
[
0
].
ZXZ
)
})
})
// console.log(this.agedatax)
// console.log(this.agedatayg)
// console.log(this.agedatayq)
let
temp1
=
[],
let
temp1
=
[],
temp2
=
[],
temp2
=
[],
temp3
=
[],
temp3
=
[],
...
@@ -1787,10 +1738,7 @@
...
@@ -1787,10 +1738,7 @@
this
.
option3
.
yAxis
[
0
].
data
=
temp1
this
.
option3
.
yAxis
[
0
].
data
=
temp1
this
.
option3
.
series
[
0
].
data
=
temp2
this
.
option3
.
series
[
0
].
data
=
temp2
this
.
option3
.
series
[
1
].
data
=
temp3
this
.
option3
.
series
[
1
].
data
=
temp3
// console.log(temp1)
// console.log(temp2)
// console.log(temp3)
// console.log(JSON.stringify(Temp));
// setTimeout(function(){
// setTimeout(function(){
// _this.$echarts.init(document.getElementById("rightupbar2")).setOption(this.option3, true)
// _this.$echarts.init(document.getElementById("rightupbar2")).setOption(this.option3, true)
const
obj2
=
setInterval
(()
=>
{
const
obj2
=
setInterval
(()
=>
{
...
@@ -1831,13 +1779,11 @@
...
@@ -1831,13 +1779,11 @@
}
}
commonMethod
(
param
).
then
(
res
=>
{
commonMethod
(
param
).
then
(
res
=>
{
// console.log('慢病管理肿瘤')
console
.
log
(
JSON
.
stringify
(
res
))
let
datalist
=
res
.
data
.
content
[
0
].
zbxx
let
datalist
=
res
.
data
.
content
[
0
].
zbxx
datalist
.
forEach
((
item
,
index
)
=>
{
datalist
.
forEach
((
item
,
index
)
=>
{
if
(
item
.
ZBID
==
1038
)
{
if
(
item
.
ZBID
==
1038
)
{
_this
.
wcdata
=
item
_this
.
wcdata
=
item
console
.
log
(
item
);
}
}
if
(
item
.
ZBID
==
1037
)
{
if
(
item
.
ZBID
==
1037
)
{
_this
.
wclv
=
item
.
ZXZ
?
item
.
ZXZ
:
0
_this
.
wclv
=
item
.
ZXZ
?
item
.
ZXZ
:
0
...
@@ -1869,7 +1815,6 @@
...
@@ -1869,7 +1815,6 @@
_this
.
option
.
series
[
2
].
data
[
0
].
value
=
_this
.
gflv
_this
.
option
.
series
[
2
].
data
[
0
].
value
=
_this
.
gflv
_this
.
option
.
series
[
2
].
data
[
1
].
value
=
100
-
_this
.
gflv
_this
.
option
.
series
[
2
].
data
[
1
].
value
=
100
-
_this
.
gflv
_this
.
$echarts
.
init
(
document
.
getElementById
(
"chartsright"
)).
setOption
(
_this
.
option
,
true
)
_this
.
$echarts
.
init
(
document
.
getElementById
(
"chartsright"
)).
setOption
(
_this
.
option
,
true
)
// console.log(_this.option)
}).
catch
(
err
=>
{
}).
catch
(
err
=>
{
console
.
log
(
"--慢病管理肿瘤报错--"
);
console
.
log
(
"--慢病管理肿瘤报错--"
);
...
@@ -1879,7 +1824,6 @@
...
@@ -1879,7 +1824,6 @@
if
(
this
.
areaclick
&&
this
.
closeareaclick
)
{
if
(
this
.
areaclick
&&
this
.
closeareaclick
)
{
this
.
commun
=
"社区"
this
.
commun
=
"社区"
console
.
log
(
"此处是第一次点击"
);
console
.
log
(
"此处是第一次点击"
);
console
.
log
(
"diann"
);
this
.
areaname
=
name
this
.
areaname
=
name
this
.
PlaceCode
=
code
this
.
PlaceCode
=
code
this
.
BackCLick
=
true
this
.
BackCLick
=
true
...
@@ -1891,23 +1835,19 @@
...
@@ -1891,23 +1835,19 @@
this
.
lastStatus
.
BarType
=
this
.
BarType
this
.
lastStatus
.
BarType
=
this
.
BarType
this
.
lastStatus
.
BeginCode
=
this
.
BeginCode
this
.
lastStatus
.
BeginCode
=
this
.
BeginCode
this
.
lastStatus
.
areaclick
=
this
.
areaclick
this
.
lastStatus
.
areaclick
=
this
.
areaclick
// console.log(this.lastStatus);
// console.log(this.PlaceCode);
this
.
homeinit
()
this
.
homeinit
()
this
.
reApplyCharts
()
this
.
reApplyCharts
()
this
.
bottominit
()
this
.
bottominit
()
this
.
SheQuCode
=
2
this
.
SheQuCode
=
2
this
.
tablename
=
'社区'
this
.
tablename
=
'社区'
this
.
thname
=
'医院'
this
.
thname
=
'医院'
console
.
log
(
111
);
return
false
return
false
}
}
if
(
this
.
SheQuCode
==
2
)
{
if
(
this
.
SheQuCode
==
2
)
{
// console.log("此处是第二次点击");
// console.log("显示市区");
// console.log(yldm);
console
.
log
(
111
);
this
.
closeareaclick
=
false
this
.
closeareaclick
=
false
// this.PlaceCode = yldm
// this.PlaceCode = yldm
this
.
areaname
=
name
this
.
areaname
=
name
...
@@ -1925,9 +1865,9 @@
...
@@ -1925,9 +1865,9 @@
bottominit
()
{
bottominit
()
{
let
_this
=
this
let
_this
=
this
let
wd
,
param
,
wdq
,
paramq
let
wd
,
param
,
wdq
,
paramq
//console.log(this.areaclick);
if
(
this
.
areaclick
&&
this
.
closeareaclick
)
{
if
(
this
.
areaclick
&&
this
.
closeareaclick
)
{
// console.log('初次渲染:展示二级区');
wd
=
[{
wd
=
[{
"name"
:
"YWSJ"
,
"name"
:
"YWSJ"
,
"type"
:
"2"
,
"type"
:
"2"
,
...
@@ -2043,21 +1983,17 @@
...
@@ -2043,21 +1983,17 @@
// "group": this.BarType,
// "group": this.BarType,
}
}
}
}
console
.
log
(
JSON
.
stringify
(
param
));
commonMethod
(
param
).
then
(
res
=>
{
commonMethod
(
param
).
then
(
res
=>
{
// console.log('底部')
// console.log(res);
// console.log(JSON.stringify(res))
let
temptableAll
=
res
.
data
.
content
let
temptableAll
=
res
.
data
.
content
// console.log(temptableAll[0]);
// if (temptableAll[0].YWSJ) {console.log(222);}
if
(
temptableAll
[
0
]
&&
temptableAll
[
0
].
YWSJ
)
{
if
(
temptableAll
[
0
]
&&
temptableAll
[
0
].
YWSJ
)
{
temptableAll
.
sort
((
prev
,
next
)
=>
{
temptableAll
.
sort
((
prev
,
next
)
=>
{
return
parseInt
(
prev
.
YWSJ
.
substring
(
5
,
7
))
-
parseInt
(
next
.
YWSJ
.
substring
(
5
,
7
))
return
parseInt
(
prev
.
YWSJ
.
substring
(
5
,
7
))
-
parseInt
(
next
.
YWSJ
.
substring
(
5
,
7
))
})
})
}
}
// console.log(temptableAll);
// console.log(res.data.content);
_this
.
data_x
=
[]
_this
.
data_x
=
[]
_this
.
tableAll
=
[]
_this
.
tableAll
=
[]
_this
.
gxyseriesA
=
[]
_this
.
gxyseriesA
=
[]
...
@@ -2068,10 +2004,10 @@
...
@@ -2068,10 +2004,10 @@
_this
.
gxyseriesF
=
[]
_this
.
gxyseriesF
=
[]
_this
.
gxyseriesG
=
[]
_this
.
gxyseriesG
=
[]
_this
.
gxyseriesH
=
[]
_this
.
gxyseriesH
=
[]
// console.log(this.BarSelect);
if
(
this
.
BarSelect
==
1
)
{
if
(
this
.
BarSelect
==
1
)
{
// 随访 - 标签数据获取
// 随访 - 标签数据获取
// console.log('我是随访');
res
.
data
.
content
.
forEach
((
item
,
index
)
=>
{
res
.
data
.
content
.
forEach
((
item
,
index
)
=>
{
let
obj
=
{
let
obj
=
{
name
:
''
,
name
:
''
,
...
@@ -2084,7 +2020,7 @@
...
@@ -2084,7 +2020,7 @@
tag6
:
''
,
tag6
:
''
,
YLDM
:
''
YLDM
:
''
}
}
// console.log(item.XZQH);
if
(
item
.
YWSJ
)
{
if
(
item
.
YWSJ
)
{
obj
.
name
=
item
.
YWSJ
.
substring
(
5
,
7
)
+
'月'
obj
.
name
=
item
.
YWSJ
.
substring
(
5
,
7
)
+
'月'
}
else
{
}
else
{
...
@@ -2099,8 +2035,6 @@
...
@@ -2099,8 +2035,6 @@
obj
.
code
=
item
.
XZQH
obj
.
code
=
item
.
XZQH
obj
.
YLDM
=
item
.
YLJGDM
obj
.
YLDM
=
item
.
YLJGDM
// console.log(obj);
// console.log(item);
let
NameTemp
let
NameTemp
if
(
_this
.
groupNo
==
1
)
{
if
(
_this
.
groupNo
==
1
)
{
NameTemp
=
item
.
XZQH_TEXT
?
item
.
XZQH_TEXT
:
item
.
YLJGDM_EX2
NameTemp
=
item
.
XZQH_TEXT
?
item
.
XZQH_TEXT
:
item
.
YLJGDM_EX2
...
@@ -2113,7 +2047,7 @@
...
@@ -2113,7 +2047,7 @@
if
(
!
this
.
PlaceCode
)
{
if
(
!
this
.
PlaceCode
)
{
item
.
zbxx
.
forEach
((
item2
,
index2
)
=>
{
item
.
zbxx
.
forEach
((
item2
,
index2
)
=>
{
console
.
log
(
JSON
.
stringify
(
item2
));
if
(
item2
.
ZBID
==
'1058'
||
item2
.
ZBID
==
'1050'
)
{
if
(
item2
.
ZBID
==
'1058'
||
item2
.
ZBID
==
'1050'
)
{
_this
.
gxyseriesA
.
push
(
parseFloat
(
item2
.
ZXZ
/
10000
))
_this
.
gxyseriesA
.
push
(
parseFloat
(
item2
.
ZXZ
/
10000
))
_this
.
gxyseriesB
.
push
(
item2
.
TBZ
)
_this
.
gxyseriesB
.
push
(
item2
.
TBZ
)
...
@@ -2121,7 +2055,7 @@
...
@@ -2121,7 +2055,7 @@
if
(
item2
.
ZBID
==
'1053'
||
item2
.
ZBID
==
'1055'
)
{
if
(
item2
.
ZBID
==
'1053'
||
item2
.
ZBID
==
'1055'
)
{
_this
.
gxyseriesC
.
push
(
item2
.
ZXZ
)
_this
.
gxyseriesC
.
push
(
item2
.
ZXZ
)
_this
.
gxyseriesD
.
push
(
item2
.
ZXZ
)
_this
.
gxyseriesD
.
push
(
item2
.
ZXZ
)
// console.log(item2);
obj
.
tag1
=
item2
.
ZXZ
?
parseFloat
(
item2
.
ZXZ
).
toFixed
(
1
)
:
0
obj
.
tag1
=
item2
.
ZXZ
?
parseFloat
(
item2
.
ZXZ
).
toFixed
(
1
)
:
0
obj
.
tag2
=
item2
.
ZXZ
?
parseFloat
(
item2
.
ZXZ
).
toFixed
(
1
)
:
0
obj
.
tag2
=
item2
.
ZXZ
?
parseFloat
(
item2
.
ZXZ
).
toFixed
(
1
)
:
0
}
}
...
@@ -2140,32 +2074,30 @@
...
@@ -2140,32 +2074,30 @@
})
})
_this
.
tableAll
.
push
(
obj
)
_this
.
tableAll
.
push
(
obj
)
}
else
{
}
else
{
// console.log('PlaceCode :' + this.PlaceCode);
// console.log('YLJGDM :' + item.YLJGDM);
// if (this.PlaceCode == item.YLJGDM) {
// if (this.PlaceCode == item.YLJGDM) {
item
.
zbxx
.
forEach
((
item2
,
index2
)
=>
{
item
.
zbxx
.
forEach
((
item2
,
index2
)
=>
{
if
(
item2
.
ZBID
==
'1058'
||
item2
.
ZBID
==
'1050'
)
{
if
(
item2
.
ZBID
==
'1058'
||
item2
.
ZBID
==
'1050'
)
{
// console.log(item2.ZBID);
// console.log(item2.ZXZ);
_this
.
gxyseriesA
.
push
(
parseFloat
(
item2
.
ZXZ
/
10000
))
_this
.
gxyseriesA
.
push
(
parseFloat
(
item2
.
ZXZ
/
10000
))
_this
.
gxyseriesB
.
push
(
item2
.
TBZ
)
_this
.
gxyseriesB
.
push
(
item2
.
TBZ
)
}
}
if
(
item2
.
ZBID
==
'1053'
||
item2
.
ZBID
==
'1055'
)
{
if
(
item2
.
ZBID
==
'1053'
||
item2
.
ZBID
==
'1055'
)
{
// console.log(item2.ZBID);
_this
.
gxyseriesC
.
push
(
item2
.
ZXZ
)
_this
.
gxyseriesC
.
push
(
item2
.
ZXZ
)
_this
.
gxyseriesD
.
push
(
item2
.
ZXZ
)
_this
.
gxyseriesD
.
push
(
item2
.
ZXZ
)
obj
.
tag1
=
item2
.
ZXZ
?
parseFloat
(
item2
.
ZXZ
).
toFixed
(
1
)
:
0
obj
.
tag1
=
item2
.
ZXZ
?
parseFloat
(
item2
.
ZXZ
).
toFixed
(
1
)
:
0
obj
.
tag2
=
item2
.
ZXZ
?
parseFloat
(
item2
.
ZXZ
).
toFixed
(
1
)
:
0
obj
.
tag2
=
item2
.
ZXZ
?
parseFloat
(
item2
.
ZXZ
).
toFixed
(
1
)
:
0
}
}
if
(
item2
.
ZBID
==
'104'
||
item2
.
ZBID
==
'1060'
)
{
if
(
item2
.
ZBID
==
'104'
||
item2
.
ZBID
==
'1060'
)
{
// console.log(item2.ZBID);
_this
.
gxyseriesE
.
push
(
item2
.
ZXZ
)
_this
.
gxyseriesE
.
push
(
item2
.
ZXZ
)
_this
.
gxyseriesF
.
push
(
item2
.
ZXZ
)
_this
.
gxyseriesF
.
push
(
item2
.
ZXZ
)
obj
.
tag3
=
item2
.
ZXZ
?
parseFloat
(
item2
.
ZXZ
).
toFixed
(
1
)
:
0
obj
.
tag3
=
item2
.
ZXZ
?
parseFloat
(
item2
.
ZXZ
).
toFixed
(
1
)
:
0
obj
.
tag4
=
item2
.
ZXZ
?
parseFloat
(
item2
.
ZXZ
).
toFixed
(
1
)
:
0
obj
.
tag4
=
item2
.
ZXZ
?
parseFloat
(
item2
.
ZXZ
).
toFixed
(
1
)
:
0
}
}
if
(
item2
.
ZBID
==
'1057'
||
item2
.
ZBID
==
'1061'
)
{
if
(
item2
.
ZBID
==
'1057'
||
item2
.
ZBID
==
'1061'
)
{
// console.log(item2.ZBID);
_this
.
gxyseriesG
.
push
(
item2
.
ZXZ
)
_this
.
gxyseriesG
.
push
(
item2
.
ZXZ
)
_this
.
gxyseriesH
.
push
(
item2
.
ZXZ
)
_this
.
gxyseriesH
.
push
(
item2
.
ZXZ
)
obj
.
tag5
=
item2
.
ZXZ
?
parseFloat
(
item2
.
ZXZ
).
toFixed
(
1
)
:
0
obj
.
tag5
=
item2
.
ZXZ
?
parseFloat
(
item2
.
ZXZ
).
toFixed
(
1
)
:
0
...
@@ -2176,19 +2108,19 @@
...
@@ -2176,19 +2108,19 @@
// }
// }
}
}
})
})
// console.log(JSON.stringify(_this.tableAll));
// DieaNo : 1-高血压 2-糖尿病
// DieaNo : 1-高血压 2-糖尿病
// groupNo :1-各区 2- 时间
// groupNo :1-各区 2- 时间
let
legendMy
=
[
`管理/签约人群正常随访一次的人数`
,
`去年管理/签约人群正常随访一次的人数`
,
`管·年随访率/去年`
,
`签·年随访率/去年`
,
`管·规范管理率/去年`
,
let
legendMy
=
[
`管理/签约人群正常随访一次的人数`
,
`去年管理/签约人群正常随访一次的人数`
,
`管·年随访率/去年`
,
`签·年随访率/去年`
,
`管·规范管理率/去年`
,
`签·规范管理率/去年`
,
`管·随访完成比/去年`
,
`签·随访完成比/去年`
`签·规范管理率/去年`
,
`管·随访完成比/去年`
,
`签·随访完成比/去年`
]
]
if
(
this
.
groupNo
==
1
)
{
if
(
this
.
groupNo
==
1
)
{
// console.log(2222);
legendMy
=
[
`管理/签约人群正常随访一次的人数`
,
`去年管理/签约人群正常随访一次的人数`
,
`管·年随访率/去年`
,
`签·年随访率/去年`
,
`管·规范管理率/去年`
,
legendMy
=
[
`管理/签约人群正常随访一次的人数`
,
`去年管理/签约人群正常随访一次的人数`
,
`管·年随访率/去年`
,
`签·年随访率/去年`
,
`管·规范管理率/去年`
,
`签·规范管理率/去年`
,
`管·随访完成比/去年`
,
`签·随访完成比/去年`
`签·规范管理率/去年`
,
`管·随访完成比/去年`
,
`签·随访完成比/去年`
]
]
}
else
if
(
this
.
groupNo
==
2
)
{
}
else
if
(
this
.
groupNo
==
2
)
{
// console.log(12312312334234);
legendMy
=
[
`管理/签约人群正常随访一次的人数`
,
`去年管理/签约人群正常随访一次的人数`
,
`管·年随访率/去年`
,
`签·年随访率/去年`
,
`签·随访完成比/去年`
]
legendMy
=
[
`管理/签约人群正常随访一次的人数`
,
`去年管理/签约人群正常随访一次的人数`
,
`管·年随访率/去年`
,
`签·年随访率/去年`
,
`签·随访完成比/去年`
]
}
}
_this
.
option4
.
legend
.
data
=
legendMy
_this
.
option4
.
legend
.
data
=
legendMy
...
@@ -2205,7 +2137,7 @@
...
@@ -2205,7 +2137,7 @@
_this
.
option4
.
series
[
6
].
data
=
_this
.
gxyseriesG
_this
.
option4
.
series
[
6
].
data
=
_this
.
gxyseriesG
_this
.
option4
.
series
[
7
].
data
=
_this
.
gxyseriesH
_this
.
option4
.
series
[
7
].
data
=
_this
.
gxyseriesH
_this
.
option4
.
xAxis
[
0
].
data
=
_this
.
data_x
_this
.
option4
.
xAxis
[
0
].
data
=
_this
.
data_x
//console.log(JSON.stringify(_this.option4.xAxis[0].data));
_this
.
$echarts
.
init
(
document
.
getElementById
(
"middlebarbox1"
)).
setOption
(
_this
.
option4
,
true
)
_this
.
$echarts
.
init
(
document
.
getElementById
(
"middlebarbox1"
)).
setOption
(
_this
.
option4
,
true
)
this
.
rightlist1
=
'规范管理率'
this
.
rightlist1
=
'规范管理率'
this
.
rightlist2
=
'随访率'
this
.
rightlist2
=
'随访率'
...
@@ -2242,17 +2174,16 @@
...
@@ -2242,17 +2174,16 @@
_this
.
data_x
.
push
(
item
.
YWSJ
.
substring
(
6
,
7
)
+
'月'
)
_this
.
data_x
.
push
(
item
.
YWSJ
.
substring
(
6
,
7
)
+
'月'
)
}
}
item
.
zbxx
.
forEach
((
item2
,
index2
)
=>
{
item
.
zbxx
.
forEach
((
item2
,
index2
)
=>
{
// console.log(JSON.stringify(item2));
if
(
item2
.
ZBID
==
'1048'
||
item2
.
ZBID
==
'1064'
)
{
if
(
item2
.
ZBID
==
'1048'
||
item2
.
ZBID
==
'1064'
)
{
// console.log(item2.ZXZ);
_this
.
gxyseriesA
.
push
(
item2
.
ZXZ
)
_this
.
gxyseriesA
.
push
(
item2
.
ZXZ
)
_this
.
gxyseriesB
.
push
(
item2
.
TBZ
)
_this
.
gxyseriesB
.
push
(
item2
.
TBZ
)
}
}
if
(
item2
.
ZBID
==
'1063'
||
item2
.
ZBID
==
'1055'
)
{
if
(
item2
.
ZBID
==
'1063'
||
item2
.
ZBID
==
'1055'
)
{
_this
.
gxyseriesC
.
push
(
item2
.
ZXZ
)
_this
.
gxyseriesC
.
push
(
item2
.
ZXZ
)
_this
.
gxyseriesD
.
push
(
item2
.
ZXZ
)
_this
.
gxyseriesD
.
push
(
item2
.
ZXZ
)
console
.
log
(
JSON
.
stringify
(
item2
));
console
.
log
(
item2
.
ZXZ
);
obj
.
tag1
=
item2
.
ZXZ
?
item2
.
ZXZ
:
0
obj
.
tag1
=
item2
.
ZXZ
?
item2
.
ZXZ
:
0
obj
.
tag2
=
item2
.
ZXZ
?
item2
.
ZXZ
:
0
obj
.
tag2
=
item2
.
ZXZ
?
item2
.
ZXZ
:
0
}
}
...
@@ -2418,7 +2349,7 @@
...
@@ -2418,7 +2349,7 @@
this
.
rightlist2
=
'住院率'
this
.
rightlist2
=
'住院率'
this
.
rightlist3
=
''
this
.
rightlist3
=
''
}
}
// console.log(' data_x:' + _this.data_x)
_this
.
option4
.
xAxis
[
0
].
data
=
_this
.
data_x
_this
.
option4
.
xAxis
[
0
].
data
=
_this
.
data_x
_this
.
$echarts
.
init
(
document
.
getElementById
(
"middlebarbox1"
)).
setOption
(
_this
.
option4
,
true
)
_this
.
$echarts
.
init
(
document
.
getElementById
(
"middlebarbox1"
)).
setOption
(
_this
.
option4
,
true
)
}).
catch
(
err
=>
{
}).
catch
(
err
=>
{
...
@@ -2496,8 +2427,6 @@
...
@@ -2496,8 +2427,6 @@
this
.
lastStatus
.
BarType
=
this
.
BarType
this
.
lastStatus
.
BarType
=
this
.
BarType
this
.
lastStatus
.
BeginCode
=
this
.
BeginCode
this
.
lastStatus
.
BeginCode
=
this
.
BeginCode
this
.
lastStatus
.
areaclick
=
this
.
areaclick
this
.
lastStatus
.
areaclick
=
this
.
areaclick
// console.log(this.lastStatus);
// console.log(this.PlaceCode);
this
.
homeinit
()
this
.
homeinit
()
this
.
reApplyCharts
()
this
.
reApplyCharts
()
this
.
bottominit
()
this
.
bottominit
()
...
@@ -2511,7 +2440,6 @@
...
@@ -2511,7 +2440,6 @@
this
.
_group
=
"YWSJ"
this
.
_group
=
"YWSJ"
this
.
pageLevel
=
'sq'
this
.
pageLevel
=
'sq'
console
.
log
(
111
);
this
.
closeareaclick
=
false
this
.
closeareaclick
=
false
// this.PlaceCode = yldm
// this.PlaceCode = yldm
this
.
areaname
=
sessionStorage
.
getItem
(
"organizcodeName"
)
this
.
areaname
=
sessionStorage
.
getItem
(
"organizcodeName"
)
...
...
src/components/userJoin/screenTwoPag2.vue
View file @
df09e670
...
@@ -362,9 +362,7 @@
...
@@ -362,9 +362,7 @@
padding
:
10
,
padding
:
10
,
trigger
:
'axis'
,
trigger
:
'axis'
,
formatter
:
function
(
params
)
{
formatter
:
function
(
params
)
{
// console.log(params.length)
// console.log('打印params长度')
// console.log(params)
if
(
params
[
0
].
seriesName
==
'管理/签约人群自动上传血压合格人数'
)
{
if
(
params
[
0
].
seriesName
==
'管理/签约人群自动上传血压合格人数'
)
{
var
res
=
'<ul class="f12 pl10 pr15">'
;
var
res
=
'<ul class="f12 pl10 pr15">'
;
res
+=
'<li class="f13"> '
+
params
[
0
].
axisValue
+
'区</li>'
;
res
+=
'<li class="f13"> '
+
params
[
0
].
axisValue
+
'区</li>'
;
...
@@ -1046,7 +1044,6 @@
...
@@ -1046,7 +1044,6 @@
bingChange
(
num
)
{
bingChange
(
num
)
{
this
.
bingNo
=
num
this
.
bingNo
=
num
// console.log("this.themeId: " + this.themeId);
if
(
num
==
1
)
{
if
(
num
==
1
)
{
this
.
selectID
=
1
this
.
selectID
=
1
this
.
middlename
=
"规范管理人群"
this
.
middlename
=
"规范管理人群"
...
@@ -1058,7 +1055,7 @@
...
@@ -1058,7 +1055,7 @@
}
}
},
},
homeinit
(
diastype
)
{
homeinit
(
diastype
)
{
// console.log(22);
let
_this
=
this
let
_this
=
this
// 管数据 入参
// 管数据 入参
let
wd
=
[{
let
wd
=
[{
...
@@ -1117,16 +1114,9 @@
...
@@ -1117,16 +1114,9 @@
}
}
// =================================管部份 请求 ======================================
// =================================管部份 请求 ======================================
// 请求 管的 自动上传血压控制率 与 报告血压控制率 高糖并用
// 请求 管的 自动上传血压控制率 与 报告血压控制率 高糖并用
// console.log('param: ' + JSON.stringify(param));
commonMethod
(
param
).
then
(
res
=>
{
commonMethod
(
param
).
then
(
res
=>
{
// console.log('管理效果')
console
.
log
(
JSON
.
stringify
(
res
));
console
.
log
(
this
.
bingNo
)
console
.
log
(
this
.
DieaNo
)
// console.log(res.data.content[0].zbxx);
// console.log(this.DieaNo);
// console.log(res.data.content[0].zbxx[47].ZXZ);
// ==1
if
(
res
.
data
.
content
.
length
==
0
)
{
if
(
res
.
data
.
content
.
length
==
0
)
{
this
.
aualperNum_g
=
0
this
.
aualperNum_g
=
0
this
.
aualperNum_gNum
=
0
this
.
aualperNum_gNum
=
0
...
@@ -1162,11 +1152,9 @@
...
@@ -1162,11 +1152,9 @@
// 高血压 & 糖尿病
// 高血压 & 糖尿病
if
((
item
.
ZBID
==
1205
&&
this
.
bingNo
==
1
&&
this
.
DieaNo
==
1
)
||
(
item
.
ZBID
==
1204
&&
this
.
bingNo
==
2
&&
this
.
DieaNo
==
1
)
||
(
item
.
ZBID
==
1207
&&
this
.
bingNo
==
1
&&
this
.
DieaNo
==
2
)
||
(
item
.
ZBID
==
1206
&&
this
.
bingNo
==
2
&&
this
.
DieaNo
==
2
))
{
if
((
item
.
ZBID
==
1205
&&
this
.
bingNo
==
1
&&
this
.
DieaNo
==
1
)
||
(
item
.
ZBID
==
1204
&&
this
.
bingNo
==
2
&&
this
.
DieaNo
==
1
)
||
(
item
.
ZBID
==
1207
&&
this
.
bingNo
==
1
&&
this
.
DieaNo
==
2
)
||
(
item
.
ZBID
==
1206
&&
this
.
bingNo
==
2
&&
this
.
DieaNo
==
2
))
{
console
.
log
(
JSON
.
stringify
(
item
));
// 本季血压合格
// 本季血压合格
// console.log(item.ZXZ);
this
.
aualperNum_g
=
item
.
ZXZ
this
.
aualperNum_g
=
item
.
ZXZ
console
.
log
(
this
.
aualperNum_g
);
this
.
aualperNum_gNum
=
item
.
TBL
?
item
.
TBL
:
0
this
.
aualperNum_gNum
=
item
.
TBL
?
item
.
TBL
:
0
}
}
...
@@ -1205,7 +1193,7 @@
...
@@ -1205,7 +1193,7 @@
"themeId"
:
13
,
"themeId"
:
13
,
"wd"
:
JSON
.
stringify
(
wd
)
"wd"
:
JSON
.
stringify
(
wd
)
}).
then
(
res
=>
{
}).
then
(
res
=>
{
// console.log('管理效果')
res
.
data
.
zbdic
.
forEach
((
item
,
index
)
=>
{
res
.
data
.
zbdic
.
forEach
((
item
,
index
)
=>
{
if
(
item
.
CODE
==
"MBGL_060"
)
{
if
(
item
.
CODE
==
"MBGL_060"
)
{
// 住院人数
// 住院人数
...
@@ -1222,12 +1210,10 @@
...
@@ -1222,12 +1210,10 @@
"themeId"
:
35
,
"themeId"
:
35
,
"wd"
:
JSON
.
stringify
(
wd
)
"wd"
:
JSON
.
stringify
(
wd
)
}).
then
(
res
=>
{
}).
then
(
res
=>
{
// console.log('管理效果')
// console.log(JSON.stringify(res));
res
.
data
.
content
[
0
].
zbxx
.
forEach
((
item
,
index
)
=>
{
res
.
data
.
content
[
0
].
zbxx
.
forEach
((
item
,
index
)
=>
{
if
(
item
.
ZBID
==
"1196"
)
{
if
(
item
.
ZBID
==
"1196"
)
{
// 住院人数
// 住院人数
console
.
log
(
item
);
this
.
deadNum_g
=
res
.
data
.
content
[
0
].
zbxx
[
index
].
ZXZ
this
.
deadNum_g
=
res
.
data
.
content
[
0
].
zbxx
[
index
].
ZXZ
this
.
deadNum_gTbl
=
res
.
data
.
content
[
0
].
zbxx
[
index
].
TBL
?
res
.
data
.
content
[
0
].
zbxx
[
index
].
TBL
:
0
this
.
deadNum_gTbl
=
res
.
data
.
content
[
0
].
zbxx
[
index
].
TBL
?
res
.
data
.
content
[
0
].
zbxx
[
index
].
TBL
:
0
}
}
...
@@ -1241,11 +1227,9 @@
...
@@ -1241,11 +1227,9 @@
// ================================= 签 部份 请求 ======================================
// ================================= 签 部份 请求 ======================================
// 请求 签的 自动上传血压控制率 与 报告血压控制率 高糖并用
// 请求 签的 自动上传血压控制率 与 报告血压控制率 高糖并用
commonMethod
(
param2
).
then
(
res
=>
{
commonMethod
(
param2
).
then
(
res
=>
{
// console.log('签理效果')
console
.
log
(
res
);
res
.
data
.
content
[
0
].
zbxx
.
forEach
((
item
,
index
)
=>
{
res
.
data
.
content
[
0
].
zbxx
.
forEach
((
item
,
index
)
=>
{
// 高糖 --- 并用 签 左上角数据
// 高糖 --- 并用 签 左上角数据
// console.log(item.ZBID);
if
(
item
.
ZBID
==
1166
||
item
.
ZBID
==
1142
)
{
if
(
item
.
ZBID
==
1166
||
item
.
ZBID
==
1142
)
{
// 自动上传血糖控制率
// 自动上传血糖控制率
this
.
ReportPre_q
=
item
.
ZXZ
?
parseFloat
(
item
.
ZXZ
).
toFixed
(
1
)
:
0
this
.
ReportPre_q
=
item
.
ZXZ
?
parseFloat
(
item
.
ZXZ
).
toFixed
(
1
)
:
0
...
@@ -1256,8 +1240,6 @@
...
@@ -1256,8 +1240,6 @@
if
((
item
.
ZBID
==
1205
&&
this
.
bingNo
==
1
&&
this
.
DieaNo
==
1
)
||
(
item
.
ZBID
==
1204
&&
this
.
bingNo
==
2
&&
this
.
DieaNo
==
1
)
||
(
item
.
ZBID
==
1207
&&
this
.
bingNo
==
1
&&
this
.
DieaNo
==
2
)
||
(
item
.
ZBID
==
1206
&&
this
.
bingNo
==
2
&&
this
.
DieaNo
==
2
))
{
if
((
item
.
ZBID
==
1205
&&
this
.
bingNo
==
1
&&
this
.
DieaNo
==
1
)
||
(
item
.
ZBID
==
1204
&&
this
.
bingNo
==
2
&&
this
.
DieaNo
==
1
)
||
(
item
.
ZBID
==
1207
&&
this
.
bingNo
==
1
&&
this
.
DieaNo
==
2
)
||
(
item
.
ZBID
==
1206
&&
this
.
bingNo
==
2
&&
this
.
DieaNo
==
2
))
{
// 本季血糖合格
// 本季血糖合格
// console.log(item.ZBID);
console
.
log
(
JSON
.
stringify
(
item
));
this
.
aualperNum_q
=
item
.
ZXZ
?
parseFloat
(
item
.
ZXZ
).
toFixed
(
1
)
:
0
this
.
aualperNum_q
=
item
.
ZXZ
?
parseFloat
(
item
.
ZXZ
).
toFixed
(
1
)
:
0
this
.
aualperNum_qNum
=
item
.
TBL
?
parseFloat
(
item
.
TBL
).
toFixed
(
1
)
:
0
this
.
aualperNum_qNum
=
item
.
TBL
?
parseFloat
(
item
.
TBL
).
toFixed
(
1
)
:
0
}
}
...
@@ -1284,7 +1266,6 @@
...
@@ -1284,7 +1266,6 @@
"themeId"
:
13
,
"themeId"
:
13
,
"wd"
:
JSON
.
stringify
(
wd2
)
"wd"
:
JSON
.
stringify
(
wd2
)
}).
then
(
res
=>
{
}).
then
(
res
=>
{
// console.log('签理/效果')
res
.
data
.
zbdic
.
forEach
((
item
,
index
)
=>
{
res
.
data
.
zbdic
.
forEach
((
item
,
index
)
=>
{
if
(
item
.
CODE
==
"MBGL_060"
)
{
if
(
item
.
CODE
==
"MBGL_060"
)
{
// 住院人数
// 住院人数
...
@@ -1302,7 +1283,6 @@
...
@@ -1302,7 +1283,6 @@
"themeId"
:
35
,
"themeId"
:
35
,
"wd"
:
JSON
.
stringify
(
wd2
)
"wd"
:
JSON
.
stringify
(
wd2
)
}).
then
(
res
=>
{
}).
then
(
res
=>
{
// console.log('签签理效果')
res
.
data
.
content
[
0
].
zbxx
.
forEach
((
item
,
index
)
=>
{
res
.
data
.
content
[
0
].
zbxx
.
forEach
((
item
,
index
)
=>
{
if
(
item
.
ZBID
==
"1196"
)
{
if
(
item
.
ZBID
==
"1196"
)
{
// 住院人数
// 住院人数
...
@@ -1321,26 +1301,22 @@
...
@@ -1321,26 +1301,22 @@
"themeId"
:
35
,
"themeId"
:
35
,
"wd"
:
JSON
.
stringify
(
wd
)
"wd"
:
JSON
.
stringify
(
wd
)
}).
then
(
res
=>
{
}).
then
(
res
=>
{
// console.log('管理效果')
res
.
data
.
content
[
0
].
zbxx
.
forEach
((
item
,
index
)
=>
{
res
.
data
.
content
[
0
].
zbxx
.
forEach
((
item
,
index
)
=>
{
// hyper1_g:0,
// hyper1_g:0,
if
(
item
.
ZBID
==
"1188"
)
{
if
(
item
.
ZBID
==
"1188"
)
{
// 脑卒中粗发病率
// 脑卒中粗发病率
console
.
log
(
item
.
ZBID
);
this
.
hyper1_g
=
item
.
ZXZ
this
.
hyper1_g
=
item
.
ZXZ
}
}
if
(
item
.
ZBID
==
"1191"
)
{
if
(
item
.
ZBID
==
"1191"
)
{
// 脑卒中粗死亡率
// 脑卒中粗死亡率
console
.
log
(
item
.
ZBID
);
this
.
hyper2_g
=
item
.
ZXZ
this
.
hyper2_g
=
item
.
ZXZ
}
}
if
(
item
.
ZBID
==
"1193"
)
{
if
(
item
.
ZBID
==
"1193"
)
{
// 心脑血管中粗死亡率
// 心脑血管中粗死亡率
console
.
log
(
item
.
ZBID
);
this
.
hyper3_g
=
item
.
ZXZ
this
.
hyper3_g
=
item
.
ZXZ
}
}
if
(
item
.
ZBID
==
"1195"
)
{
if
(
item
.
ZBID
==
"1195"
)
{
console
.
log
(
item
.
ZBID
);
// 粗死亡率
// 粗死亡率
this
.
hyper4_g
=
item
.
ZXZ
this
.
hyper4_g
=
item
.
ZXZ
}
}
...
@@ -1400,7 +1376,6 @@
...
@@ -1400,7 +1376,6 @@
// 点击市区之后,改变入参
// 点击市区之后,改变入参
if
(
this
.
pageLevel
===
'qj'
)
{
if
(
this
.
pageLevel
===
'qj'
)
{
console
.
log
(
'第一次点击事件执行 区-->城镇'
);
console
.
log
(
'第一次点击事件执行 区-->城镇'
);
console
.
log
(
this
.
PlaceCode
);
wd
=
[{
wd
=
[{
"name"
:
"YWSJ"
,
"name"
:
"YWSJ"
,
"type"
:
"2"
,
"type"
:
"2"
,
...
@@ -1445,7 +1420,6 @@
...
@@ -1445,7 +1420,6 @@
}
else
if
(
this
.
pageLevel
===
'sq'
)
{
}
else
if
(
this
.
pageLevel
===
'sq'
)
{
this
.
_group
=
'YWSJ'
this
.
_group
=
'YWSJ'
console
.
log
(
'第二次点击:展示区镇 时间数据'
);
console
.
log
(
'第二次点击:展示区镇 时间数据'
);
console
.
log
(
this
.
_xzqh
);
wd
=
[{
wd
=
[{
"name"
:
"YWSJ"
,
"name"
:
"YWSJ"
,
"type"
:
"2"
,
"type"
:
"2"
,
...
@@ -1489,7 +1463,7 @@
...
@@ -1489,7 +1463,7 @@
}
}
// 右下角列表 + 图表 (数据共用)
// 右下角列表 + 图表 (数据共用)
// 管数据请求 --- 右下角列表
// 管数据请求 --- 右下角列表
console
.
log
(
JSON
.
stringify
(
placeparam
));
// XZQH --- YLJGDM
// XZQH --- YLJGDM
commonMethod
(
placeparam
).
then
(
res
=>
{
commonMethod
(
placeparam
).
then
(
res
=>
{
res
.
data
.
content
.
forEach
((
item
,
index
)
=>
{
res
.
data
.
content
.
forEach
((
item
,
index
)
=>
{
...
@@ -1513,9 +1487,9 @@
...
@@ -1513,9 +1487,9 @@
obj
.
name
=
"地名缺失"
obj
.
name
=
"地名缺失"
}
}
}
}
// console.log(obj.name);
obj
.
AreaCode
=
item
.
XZQH
?
item
.
XZQH
:
''
obj
.
AreaCode
=
item
.
XZQH
?
item
.
XZQH
:
''
// console.log(obj.AreaCode);
item
.
zbxx
.
forEach
((
item2
,
index2
)
=>
{
item
.
zbxx
.
forEach
((
item2
,
index2
)
=>
{
if
(
this
.
selectID
==
1
)
{
if
(
this
.
selectID
==
1
)
{
if
(
item2
.
ZBID
==
"1167"
||
item2
.
ZBID
==
"1143"
)
{
if
(
item2
.
ZBID
==
"1167"
||
item2
.
ZBID
==
"1143"
)
{
...
@@ -1572,9 +1546,7 @@
...
@@ -1572,9 +1546,7 @@
})
})
// 签数据请求--- 右下角列表 + 图表 (数据共用)
// 签数据请求--- 右下角列表 + 图表 (数据共用)
// console.log(JSON.stringify(placeparam2));
commonMethod
(
placeparam2
).
then
(
res
=>
{
commonMethod
(
placeparam2
).
then
(
res
=>
{
// console.log(res);
this
.
g_autoup_list
=
[]
// 再次请求 数据清空
this
.
g_autoup_list
=
[]
// 再次请求 数据清空
this
.
q_autoup_list
=
[]
// 再次请求 数据清空
this
.
q_autoup_list
=
[]
// 再次请求 数据清空
this
.
g_normal_list
=
[]
// 再次请求 数据清空
this
.
g_normal_list
=
[]
// 再次请求 数据清空
...
@@ -1639,14 +1611,14 @@
...
@@ -1639,14 +1611,14 @@
this
.
listArray2
.
push
(
obj
)
this
.
listArray2
.
push
(
obj
)
})
})
// console.log(JSON.stringify(this.listArray2));
if
(
this
.
_group
!=
'YWSJ'
)
{
if
(
this
.
_group
!=
'YWSJ'
)
{
for
(
var
i
=
0
;
i
<
this
.
listArray
.
length
;
i
++
)
{
for
(
var
i
=
0
;
i
<
this
.
listArray
.
length
;
i
++
)
{
var
obj
=
Object
.
assign
(
this
.
listArray
[
i
],
this
.
listArray2
[
i
])
var
obj
=
Object
.
assign
(
this
.
listArray
[
i
],
this
.
listArray2
[
i
])
this
.
listArrayFinal
.
push
(
obj
)
this
.
listArrayFinal
.
push
(
obj
)
}
}
}
else
if
(
this
.
_group
===
'YWSJ'
)
{
}
else
if
(
this
.
_group
===
'YWSJ'
)
{
console
.
log
(
2222222222222222222
);
this
.
tablename
=
"时间"
this
.
tablename
=
"时间"
this
.
thname
=
"季度"
this
.
thname
=
"季度"
this
.
listArrayFinal
=
[{
this
.
listArrayFinal
=
[{
...
@@ -1702,23 +1674,19 @@
...
@@ -1702,23 +1674,19 @@
}
}
if
(
3
<
this
.
listArray
[
i
].
name
&&
this
.
listArray
[
i
].
name
<
6
)
{
if
(
3
<
this
.
listArray
[
i
].
name
&&
this
.
listArray
[
i
].
name
<
6
)
{
var
obj
=
Object
.
assign
(
this
.
listArray
[
i
],
this
.
listArray2
[
i
])
var
obj
=
Object
.
assign
(
this
.
listArray
[
i
],
this
.
listArray2
[
i
])
console
.
log
(
obj
);
}
}
if
(
6
<
this
.
listArray
[
i
].
name
&&
this
.
listArray
[
i
].
name
<
9
)
{
if
(
6
<
this
.
listArray
[
i
].
name
&&
this
.
listArray
[
i
].
name
<
9
)
{
var
obj
=
Object
.
assign
(
this
.
listArray
[
i
],
this
.
listArray2
[
i
])
var
obj
=
Object
.
assign
(
this
.
listArray
[
i
],
this
.
listArray2
[
i
])
console
.
log
(
obj
);
}
}
if
(
9
<
this
.
listArray
[
i
].
name
&&
this
.
listArray
[
i
].
name
<
12
)
{
if
(
9
<
this
.
listArray
[
i
].
name
&&
this
.
listArray
[
i
].
name
<
12
)
{
var
obj
=
Object
.
assign
(
this
.
listArray
[
i
],
this
.
listArray2
[
i
])
var
obj
=
Object
.
assign
(
this
.
listArray
[
i
],
this
.
listArray2
[
i
])
console
.
log
(
obj
);
}
}
}
console
.
log
(
JSON
.
stringify
(
this
.
listArray
));
// console.log(JSON.stringify(this.listArray2));
}
}
// console.log(JSON.stringify(this.listArray2));
}
// console.log(JSON.stringify(this.listArrayFinal));
let
Listtemp1
=
[],
let
Listtemp1
=
[],
Listtemp2
=
[],
Listtemp2
=
[],
...
@@ -1740,11 +1708,7 @@
...
@@ -1740,11 +1708,7 @@
// this.q_autoup_list = []
// this.q_autoup_list = []
// this.g_normal_list = []
// this.g_normal_list = []
// this.q_normal_list = []
// this.q_normal_list = []
// console.log();
// console.log(this.g_autoup_list)
// console.log(this.q_autoup_list)
// console.log(this.g_normal_list)
// console.log(this.q_normal_list)
// g_personAutoNum:[], //
// g_personAutoNum:[], //
// g_personAutoNumTbl:[],
// g_personAutoNumTbl:[],
// this.option2.series[0].data = this.g_autoup_list
// this.option2.series[0].data = this.g_autoup_list
...
@@ -1760,10 +1724,7 @@
...
@@ -1760,10 +1724,7 @@
// this.option2.series[9].data = Listtemp6
// this.option2.series[9].data = Listtemp6
this
.
option2
.
xAxis
[
0
].
data
=
ListPlace
this
.
option2
.
xAxis
[
0
].
data
=
ListPlace
let
legendMy
=
[]
let
legendMy
=
[]
console
.
log
(
this
.
selectID
);
// console.log("病种:" + this.DieaNo);
// console.log("各区/时间:" + this.groupNo);
// console.log("管理/规范管理:" + this.bingNo);
if
(
this
.
DieaNo
==
1
)
{
if
(
this
.
DieaNo
==
1
)
{
// 高血压板块
// 高血压板块
if
(
this
.
groupNo
==
1
&&
this
.
bingNo
==
2
)
{
if
(
this
.
groupNo
==
1
&&
this
.
bingNo
==
2
)
{
...
@@ -2088,17 +2049,11 @@
...
@@ -2088,17 +2049,11 @@
}
}
]
]
}
else
{
}
else
{
// console.log(22222222222222);
legendMy
=
[
'管理/签约人群自动上传血压合格人数'
,
'去年管理/签约人群自动上传血压合格人数'
,
'管·自动上传血压控制率/去年'
,
'签·自动上传血压控制率/去年'
,
legendMy
=
[
'管理/签约人群自动上传血压合格人数'
,
'去年管理/签约人群自动上传血压合格人数'
,
'管·自动上传血压控制率/去年'
,
'签·自动上传血压控制率/去年'
,
'管·报告血压控制率/去年'
,
'签·报告血压控制率/去年'
'管·报告血压控制率/去年'
,
'签·报告血压控制率/去年'
]
]
// console.log(Listtemp1)
// console.log(Listtemp3)
// console.log(Listtemp2)
// console.log(Listtemp4)
// console.log(Listtemp5)
// console.log(Listtemp6)
this
.
option2
.
legend
.
data
=
legendMy
this
.
option2
.
legend
.
data
=
legendMy
this
.
option2
.
series
=
[{
this
.
option2
.
series
=
[{
name
:
'管理/签约人群自动上传血压合格人数'
,
name
:
'管理/签约人群自动上传血压合格人数'
,
...
@@ -2922,7 +2877,7 @@
...
@@ -2922,7 +2877,7 @@
// _this.option2.series[index].name = item
// _this.option2.series[index].name = item
// })
// })
//
//
console
.
log
(
this
.
option2
);
this
.
$echarts
.
init
(
document
.
getElementById
(
"pag2bar"
)).
setOption
(
this
.
option2
,
true
)
this
.
$echarts
.
init
(
document
.
getElementById
(
"pag2bar"
)).
setOption
(
this
.
option2
,
true
)
}).
catch
(
err
=>
{
}).
catch
(
err
=>
{
...
@@ -2933,7 +2888,7 @@
...
@@ -2933,7 +2888,7 @@
})
})
},
},
DieaChange
(
Num
)
{
DieaChange
(
Num
)
{
// console.log(Num);
this
.
DieaNo
=
Num
this
.
DieaNo
=
Num
if
(
Num
==
1
)
{
if
(
Num
==
1
)
{
this
.
themeId
=
28
this
.
themeId
=
28
...
@@ -2967,17 +2922,14 @@
...
@@ -2967,17 +2922,14 @@
"wd"
:
JSON
.
stringify
(
wdnl
),
"wd"
:
JSON
.
stringify
(
wdnl
),
"group"
:
"NL"
"group"
:
"NL"
}
}
console
.
log
(
"执行"
);
console
.
log
(
paramnl
);
commonMethod
(
paramnl
).
then
(
res
=>
{
commonMethod
(
paramnl
).
then
(
res
=>
{
console
.
log
(
'年龄-管--'
)
// console.log(JSON.stringify(res))
// console.log(this.age_index);
this
.
G_ageList
=
[]
this
.
G_ageList
=
[]
if
(
this
.
age_index
==
1
)
{
if
(
this
.
age_index
==
1
)
{
// this.age_index 代表 脑卒中粗发病率
// this.age_index 代表 脑卒中粗发病率
res
.
data
.
content
.
forEach
(
item
=>
{
res
.
data
.
content
.
forEach
(
item
=>
{
// console.log(JSONs.stringify(item));
let
agestruct
=
{
let
agestruct
=
{
"Age"
:
'1'
,
"Age"
:
'1'
,
"value"
:
9999
"value"
:
9999
...
@@ -2986,12 +2938,11 @@
...
@@ -2986,12 +2938,11 @@
item
.
zbxx
.
forEach
(
item2
=>
{
item
.
zbxx
.
forEach
(
item2
=>
{
if
(
item2
.
ZBID
==
1188
)
{
if
(
item2
.
ZBID
==
1188
)
{
agestruct
.
value
=
item2
.
ZXZ
agestruct
.
value
=
item2
.
ZXZ
console
.
log
(
agestruct
.
value
);
}
}
})
})
this
.
G_ageList
.
push
(
agestruct
)
this
.
G_ageList
.
push
(
agestruct
)
})
})
// console.log(this.G_ageList);
}
else
if
(
this
.
age_index
==
2
)
{
}
else
if
(
this
.
age_index
==
2
)
{
// this.age_index 代表 脑卒中粗死亡率
// this.age_index 代表 脑卒中粗死亡率
res
.
data
.
content
.
forEach
(
item
=>
{
res
.
data
.
content
.
forEach
(
item
=>
{
...
@@ -3000,11 +2951,9 @@
...
@@ -3000,11 +2951,9 @@
"value"
:
9999
"value"
:
9999
}
}
agestruct
.
Age
=
item
.
NL
agestruct
.
Age
=
item
.
NL
// console.log(JSON.stringify(item));
item
.
zbxx
.
forEach
(
item2
=>
{
item
.
zbxx
.
forEach
(
item2
=>
{
if
(
item2
.
ZBID
==
1191
)
{
if
(
item2
.
ZBID
==
1191
)
{
console
.
log
(
"g2"
);
agestruct
.
value
=
item2
.
ZXZ
agestruct
.
value
=
item2
.
ZXZ
}
}
})
})
...
@@ -3018,10 +2967,9 @@
...
@@ -3018,10 +2967,9 @@
"value"
:
9999
"value"
:
9999
}
}
agestruct
.
Age
=
item
.
NL
agestruct
.
Age
=
item
.
NL
// console.log(JSON.stringify(item));
item
.
zbxx
.
forEach
(
item2
=>
{
item
.
zbxx
.
forEach
(
item2
=>
{
if
(
item2
.
ZBID
==
1193
)
{
if
(
item2
.
ZBID
==
1193
)
{
console
.
log
(
"g3"
);
agestruct
.
value
=
item2
.
ZXZ
agestruct
.
value
=
item2
.
ZXZ
}
}
})
})
...
@@ -3035,10 +2983,10 @@
...
@@ -3035,10 +2983,10 @@
"value"
:
9999
"value"
:
9999
}
}
agestruct
.
Age
=
item
.
NL
agestruct
.
Age
=
item
.
NL
// console.log(JSON.stringify(item));
item
.
zbxx
.
forEach
(
item2
=>
{
item
.
zbxx
.
forEach
(
item2
=>
{
if
(
item2
.
ZBID
==
1195
)
{
if
(
item2
.
ZBID
==
1195
)
{
console
.
log
(
"g4"
);
agestruct
.
value
=
item2
.
ZXZ
agestruct
.
value
=
item2
.
ZXZ
}
}
})
})
...
@@ -3046,42 +2994,41 @@
...
@@ -3046,42 +2994,41 @@
})
})
}
else
if
(
this
.
age_index
==
5
)
{
}
else
if
(
this
.
age_index
==
5
)
{
// this.age_index 代表 并发症
// this.age_index 代表 并发症
// console.log(res.data.content);
res
.
data
.
content
.
forEach
(
item
=>
{
res
.
data
.
content
.
forEach
(
item
=>
{
let
agestruct
=
{
let
agestruct
=
{
"Age"
:
'1'
,
"Age"
:
'1'
,
"value"
:
9999
"value"
:
9999
}
}
agestruct
.
Age
=
item
.
NL
agestruct
.
Age
=
item
.
NL
// console.log(JSON.stringify(item));
item
.
zbxx
.
forEach
(
item2
=>
{
item
.
zbxx
.
forEach
(
item2
=>
{
if
(
item2
.
ZBID
==
1184
)
{
if
(
item2
.
ZBID
==
1184
)
{
console
.
log
(
"g5"
);
agestruct
.
value
=
item2
.
ZXZ
agestruct
.
value
=
item2
.
ZXZ
}
}
})
})
this
.
G_ageList
.
push
(
agestruct
)
this
.
G_ageList
.
push
(
agestruct
)
})
})
console
.
log
(
this
.
G_ageList
);
}
else
if
(
this
.
age_index
==
6
)
{
}
else
if
(
this
.
age_index
==
6
)
{
console
.
log
(
"糖尿病"
);
res
.
data
.
content
.
forEach
(
item
=>
{
res
.
data
.
content
.
forEach
(
item
=>
{
let
agestruct
=
{
let
agestruct
=
{
"Age"
:
'1'
,
"Age"
:
'1'
,
"value"
:
9999
"value"
:
9999
}
}
agestruct
.
Age
=
item
.
NL
agestruct
.
Age
=
item
.
NL
// console.log(JSON.stringify(item));
item
.
zbxx
.
forEach
(
item2
=>
{
item
.
zbxx
.
forEach
(
item2
=>
{
if
(
item2
.
ZBID
==
1197
)
{
if
(
item2
.
ZBID
==
1197
)
{
console
.
log
(
"g6"
);
agestruct
.
value
=
item2
.
ZXZ
agestruct
.
value
=
item2
.
ZXZ
}
}
})
})
this
.
G_ageList
.
push
(
agestruct
)
this
.
G_ageList
.
push
(
agestruct
)
})
})
console
.
log
(
this
.
G_ageList
);
}
}
// 为了避免异步带来的影响,于是在回调函数内部再次请求数据
// 为了避免异步带来的影响,于是在回调函数内部再次请求数据
...
@@ -3103,9 +3050,7 @@
...
@@ -3103,9 +3050,7 @@
}
}
//
//
commonMethod
(
paramnl2
).
then
(
res
=>
{
commonMethod
(
paramnl2
).
then
(
res
=>
{
// console.log('年龄-管--')
// console.log(JSON.stringify(res))
// console.log(JSON.stringify(this.Q_ageList));
this
.
Q_ageList
=
[]
this
.
Q_ageList
=
[]
if
(
this
.
age_index
==
1
)
{
if
(
this
.
age_index
==
1
)
{
// this.age_index 代表 脑卒中粗发死亡率
// this.age_index 代表 脑卒中粗发死亡率
...
@@ -3113,7 +3058,7 @@
...
@@ -3113,7 +3058,7 @@
let
agestruct2
=
{
let
agestruct2
=
{
"value"
:
9999
"value"
:
9999
}
}
// console.log(JSON.stringify(item.NL));
item
.
zbxx
.
forEach
(
item2
=>
{
item
.
zbxx
.
forEach
(
item2
=>
{
if
(
item2
.
ZBID
==
1188
)
{
if
(
item2
.
ZBID
==
1188
)
{
agestruct2
.
value
=
item2
.
ZXZ
agestruct2
.
value
=
item2
.
ZXZ
...
@@ -3127,7 +3072,7 @@
...
@@ -3127,7 +3072,7 @@
let
agestruct2
=
{
let
agestruct2
=
{
"value"
:
9999
"value"
:
9999
}
}
// console.log(JSON.stringify(item.NL));
item
.
zbxx
.
forEach
(
item2
=>
{
item
.
zbxx
.
forEach
(
item2
=>
{
if
(
item2
.
ZBID
==
1191
)
{
if
(
item2
.
ZBID
==
1191
)
{
agestruct2
.
value
=
item2
.
ZXZ
agestruct2
.
value
=
item2
.
ZXZ
...
@@ -3141,7 +3086,7 @@
...
@@ -3141,7 +3086,7 @@
let
agestruct2
=
{
let
agestruct2
=
{
"value"
:
9999
"value"
:
9999
}
}
// console.log(JSON.stringify(item.NL));
item
.
zbxx
.
forEach
(
item2
=>
{
item
.
zbxx
.
forEach
(
item2
=>
{
if
(
item2
.
ZBID
==
1193
)
{
if
(
item2
.
ZBID
==
1193
)
{
agestruct2
.
value
=
item2
.
ZXZ
agestruct2
.
value
=
item2
.
ZXZ
...
@@ -3150,13 +3095,13 @@
...
@@ -3150,13 +3095,13 @@
this
.
Q_ageList
.
push
(
agestruct2
)
this
.
Q_ageList
.
push
(
agestruct2
)
})
})
}
else
if
(
this
.
age_index
==
4
)
{
}
else
if
(
this
.
age_index
==
4
)
{
// console.log(444444444444444444444);
// this.age_index 代表 脑卒中粗发死亡率
// this.age_index 代表 脑卒中粗发死亡率
res
.
data
.
content
.
forEach
(
item
=>
{
res
.
data
.
content
.
forEach
(
item
=>
{
let
agestruct2
=
{
let
agestruct2
=
{
"value"
:
9999
"value"
:
9999
}
}
// console.log(JSON.stringify(item.NL));
item
.
zbxx
.
forEach
(
item2
=>
{
item
.
zbxx
.
forEach
(
item2
=>
{
if
(
item2
.
ZBID
==
1195
)
{
if
(
item2
.
ZBID
==
1195
)
{
agestruct2
.
value
=
item2
.
ZXZ
agestruct2
.
value
=
item2
.
ZXZ
...
@@ -3164,15 +3109,14 @@
...
@@ -3164,15 +3109,14 @@
})
})
this
.
Q_ageList
.
push
(
agestruct2
)
this
.
Q_ageList
.
push
(
agestruct2
)
})
})
// console.log(444444444444444444444);
}
else
if
(
this
.
age_index
==
5
)
{
}
else
if
(
this
.
age_index
==
5
)
{
// this.age_index 代表 脑卒中粗发死亡率
// this.age_index 代表 脑卒中粗发死亡率
res
.
data
.
content
.
forEach
(
item
=>
{
res
.
data
.
content
.
forEach
(
item
=>
{
console
.
log
(
JSON
.
stringify
(
item
));
let
agestruct2
=
{
let
agestruct2
=
{
"value"
:
9999
"value"
:
9999
}
}
// console.log(JSON.stringify(item.NL));
item
.
zbxx
.
forEach
(
item2
=>
{
item
.
zbxx
.
forEach
(
item2
=>
{
if
(
item2
.
ZBID
==
1184
)
{
if
(
item2
.
ZBID
==
1184
)
{
agestruct2
.
value
=
item2
.
ZXZ
agestruct2
.
value
=
item2
.
ZXZ
...
@@ -3183,11 +3127,11 @@
...
@@ -3183,11 +3127,11 @@
}
else
if
(
this
.
age_index
==
6
)
{
}
else
if
(
this
.
age_index
==
6
)
{
// this.age_index 代表 脑卒中粗发死亡率
// this.age_index 代表 脑卒中粗发死亡率
res
.
data
.
content
.
forEach
(
item
=>
{
res
.
data
.
content
.
forEach
(
item
=>
{
// console.log(JSON.stringify(item));
let
agestruct2
=
{
let
agestruct2
=
{
"value"
:
9999
"value"
:
9999
}
}
// console.log(JSON.stringify(item.NL));
item
.
zbxx
.
forEach
(
item2
=>
{
item
.
zbxx
.
forEach
(
item2
=>
{
if
(
item2
.
ZBID
==
1197
)
{
if
(
item2
.
ZBID
==
1197
)
{
agestruct2
.
value
=
item2
.
ZXZ
agestruct2
.
value
=
item2
.
ZXZ
...
@@ -3200,9 +3144,9 @@
...
@@ -3200,9 +3144,9 @@
temp2
=
[],
temp2
=
[],
temp3
=
[],
temp3
=
[],
Temp
=
[]
Temp
=
[]
// console.log(JSON.stringify(this.G_ageList))
this
.
G_ageList
.
forEach
((
item
,
index
)
=>
{
this
.
G_ageList
.
forEach
((
item
,
index
)
=>
{
// console.log(item);
let
ageObj
=
{
let
ageObj
=
{
"age"
:
1.11
,
"age"
:
1.11
,
"g_age"
:
2.22
,
"g_age"
:
2.22
,
...
@@ -3225,12 +3169,9 @@
...
@@ -3225,12 +3169,9 @@
this
.
option
.
yAxis
[
0
].
data
=
temp1
this
.
option
.
yAxis
[
0
].
data
=
temp1
this
.
option
.
series
[
0
].
data
=
temp2
this
.
option
.
series
[
0
].
data
=
temp2
this
.
option
.
series
[
1
].
data
=
temp3
this
.
option
.
series
[
1
].
data
=
temp3
// console.log(JSON.stringify(temp1));
// console.log(JSON.stringify(temp2));
// console.log(JSON.stringify(temp3));
this
.
$echarts
.
init
(
document
.
getElementById
(
"rightTop"
)).
setOption
(
this
.
option
,
true
)
this
.
$echarts
.
init
(
document
.
getElementById
(
"rightTop"
)).
setOption
(
this
.
option
,
true
)
// console.log(JSON.stringify(this.Q_ageList));
// console.log(JSON.stringify(this.G_ageList));
}).
catch
(
err
=>
{
}).
catch
(
err
=>
{
console
.
log
(
"--年龄报错--"
);
console
.
log
(
"--年龄报错--"
);
})
})
...
@@ -3288,8 +3229,7 @@
...
@@ -3288,8 +3229,7 @@
const
obj
=
setInterval
(()
=>
{
const
obj
=
setInterval
(()
=>
{
const
dom
=
document
.
getElementById
(
"rightTop"
)
const
dom
=
document
.
getElementById
(
"rightTop"
)
if
(
dom
)
{
if
(
dom
)
{
console
.
log
(
JSON
.
stringify
(
this
.
G_ageList
));
console
.
log
(
JSON
.
stringify
(
this
.
Q_ageList
));
const
myChart
=
this
.
$echarts
.
init
(
dom
)
const
myChart
=
this
.
$echarts
.
init
(
dom
)
let
temp1
=
[],
let
temp1
=
[],
temp2
=
[],
temp2
=
[],
...
@@ -3304,7 +3244,7 @@
...
@@ -3304,7 +3244,7 @@
ageObj
.
age
=
item
.
Age
ageObj
.
age
=
item
.
Age
ageObj
.
g_age
=
item
.
value
ageObj
.
g_age
=
item
.
value
// console.log(this.Q_ageList);
if
(
this
.
Q_ageList
.
length
>
0
)
{
if
(
this
.
Q_ageList
.
length
>
0
)
{
ageObj
.
q_age
=
this
.
Q_ageList
[
index
].
value
?
this
.
Q_ageList
[
index
].
value
:
0
ageObj
.
q_age
=
this
.
Q_ageList
[
index
].
value
?
this
.
Q_ageList
[
index
].
value
:
0
}
}
...
@@ -3313,7 +3253,7 @@
...
@@ -3313,7 +3253,7 @@
Temp
.
sort
((
prev
,
next
)
=>
{
Temp
.
sort
((
prev
,
next
)
=>
{
return
parseInt
(
next
.
age
.
slice
(
0
,
2
))
-
parseInt
(
prev
.
age
.
slice
(
0
,
2
))
return
parseInt
(
next
.
age
.
slice
(
0
,
2
))
-
parseInt
(
prev
.
age
.
slice
(
0
,
2
))
})
})
console
.
log
(
2222
);
Temp
.
forEach
(
item
=>
{
Temp
.
forEach
(
item
=>
{
temp1
.
push
(
item
.
age
)
temp1
.
push
(
item
.
age
)
temp2
.
push
(
item
.
g_age
)
temp2
.
push
(
item
.
g_age
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment