Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
md-vue-chc
Project
Project
Details
Activity
Releases
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
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
何鹏程
md-vue-chc
Commits
78d76529
Commit
78d76529
authored
May 13, 2022
by
xieshoubao
💂
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
协同平台 展示的三个页面
parent
96eab0e6
Changes
7
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
408 additions
and
316 deletions
+408
-316
hospital.js
src/api/hospital.js
+18
-3
index.vue
src/page/InHosFirstAid/index.vue
+106
-41
index.vue
src/page/collStatis/index.vue
+145
-145
index.vue
src/page/overview/index.vue
+11
-5
index.vue
src/page/runStatis/index.vue
+124
-51
actions.js
src/store/actions.js
+0
-70
ajax.js
src/util/ajax.js
+4
-1
No files found.
src/api/hospital.js
View file @
78d76529
...
...
@@ -67,11 +67,26 @@ export function businessOperationStatistics(params){
data
:
params
})
}
export
function
queryHospitalList
(
params
,
str
){
var
name
=
str
?
str
:
''
;
export
function
queryHospitalList
(
params
,
str
,
area
){
return
request
({
url
:
`/api/team/hospital/queryHospitalList?name=
${
name
}
`
,
url
:
`/api/team/hospital/queryHospitalList?name=
${
str
?
str
:
''
}
&area=
${
area
?
area
:
''
}
`
,
method
:
'GET'
,
data
:
params
})
}
export
function
getList
(
params
){
return
request
({
url
:
`/api/team/importExcel/getList`
,
method
:
'POST'
,
data
:
params
})
}
export
function
uploadExcel
(
params
){
return
request
({
url
:
`/api/team/importExcel/uploadExcel`
,
method
:
'POST'
,
data
:
params
})
}
\ No newline at end of file
src/page/InHosFirstAid/index.vue
View file @
78d76529
This diff is collapsed.
Click to expand it.
src/page/collStatis/index.vue
View file @
78d76529
...
...
@@ -118,9 +118,9 @@
<div
class=
"p-title"
>
<span>
区域院前急救统计
</span>
<div
class=
"right-Box"
>
<el-button
type=
"text"
@
click=
"ChangeDateCharts(1)"
>
近三个月
</el-button>
<el-button
type=
"text"
@
click=
"ChangeDateCharts(1)"
:class=
"
{sel:activePanel=='v1'}"
>近三个月
</el-button>
<div
class=
"vh"
>
|
</div>
<el-button
type=
"text"
@
click=
"ChangeDateCharts(2)"
>
近一年
</el-button>
<el-button
type=
"text"
@
click=
"ChangeDateCharts(2)"
:class=
"
{sel:activePanel=='v2'}"
>近一年
</el-button>
</div>
</div>
<div>
...
...
@@ -136,7 +136,7 @@
<div
class=
"padding-right12"
>
<div
class=
"panel"
>
<div
class=
"p-title"
>
<span>
院前急救转运平均时间
</span>
<span>
院前急救转运平均时间
(分钟)
</span>
</div>
<div>
<div
class=
"c50_charts"
ref=
"c50Bar"
></div>
...
...
@@ -204,12 +204,9 @@ export default{
}
},
mounted
(){
this
.
$nextTick
(()
=>
{
this
.
getv1Data
();
this
.
getv2Data
();
this
.
$nextTick
(()
=>
{
// this.barChartsInit();
this
.
drawc50Bar
();
this
.
drawc50Pie
();
});
},
methods
:{
...
...
@@ -224,7 +221,6 @@ export default{
}
})
},
getv2Data
(){
var
that
=
this
;
var
d
=
new
Date
();
var
yar
=
d
.
getFullYear
(),
moth
=
d
.
getMonth
()
+
1
,
dey
=
d
.
getDate
();
moth
=
(
moth
<
10
)?(
'0'
+
moth
):
moth
;
dey
=
(
dey
<
10
)?(
'0'
+
dey
):
dey
;
...
...
@@ -232,7 +228,7 @@ export default{
businessTeamStatistics
(
params
).
then
((
res
)
=>
{
if
(
res
.
msg
==
201
)
{
var
areaPreTotal
=
that
.
gv
(
res
.
respData
.
areaPreTotal
,[]);
var
kys
=
[
'chest
Total'
,
'strokeTotal'
,
'traumaTotal'
,
'burnTotal
'
];
var
kys
=
[
'chest
Count'
,
'strokeCount'
,
'traumaCount'
,
'burnCount
'
];
var
result
=
areaPreTotal
.
reduce
(
function
(
prv
,
cur
,
i
,
arr
){
prv
.
Names
.
push
(
cur
.
areaStr
);
kys
.
forEach
((
ky
,
j
)
=>
{
prv
.
arr
[
j
].
push
(
cur
[
ky
]
||
0
)
})
...
...
@@ -261,7 +257,7 @@ export default{
traumaCount
:
that
.
gv
(
p2
.
traumaCount
,
'0'
),
burnCount
:
that
.
gv
(
p2
.
burnCount
,
'0'
),
};
var
kys
=
[
'chest
Total'
,
'strokeTotal'
,
'traumaTotal'
,
'burnTotal
'
];
var
kys
=
[
'chest
Count'
,
'strokeCount'
,
'traumaCount'
,
'burnCount
'
];
var
areaPreTotal
=
that
.
gv
(
respData
.
areaPreTotal
,[]);
var
result
=
areaPreTotal
.
reduce
(
function
(
prv
,
cur
,
i
,
arr
){
prv
.
Names
.
push
(
cur
.
areaStr
);
...
...
@@ -283,7 +279,7 @@ export default{
var
Oc
=
{
datakey
:
'BarData'
,
dom
:
'BarEl'
,
scBox
:
'BarScBox'
,
scline
:
'BarScLine'
,
vlen
:
'persw'
};
var
drData
=
that
[(
Oc
.
datakey
+
that
.
activePanel
)];
var
Namelis
=
drData
.
Namelis
;
if
(
Namelis
.
length
==
'0'
){
return
;
}
//
if(Namelis.length=='0'){ return; }
var
Arr
=
drData
.
Arr
;
var
Wh
=
(
that
.
$refs
[(
Oc
.
scBox
)]).
offsetWidth
;
var
ViLen
=
Math
.
ceil
((
Wh
-
150
)
/
200
);
...
...
@@ -316,8 +312,9 @@ export default{
},
drawBarEchart
(
dom
,
NameLis
,
arr
){
var
that
=
this
;
let
myChart
=
that
.
getCtx
(
dom
)
var
option
=
{
let
myChart
=
that
.
getCtx
(
dom
);
if
(
NameLis
.
length
===
0
){
myChart
.
clear
();
};
var
opts
=
{
grid
:{
left
:
40
,
// 默认10%,给24就挺合适的。
top
:
60
,
// 默认60
...
...
@@ -443,8 +440,7 @@ export default{
}
]
};
//console.log(option)
myChart
.
setOption
(
option
);
myChart
.
setOption
(
opts
);
},
drawc50Bar
(
data
){
var
that
=
this
;
...
...
@@ -541,7 +537,7 @@ export default{
};
myChart
.
setOption
(
opts
);
},
ChangeDateCharts
(
num
){
this
.
activePanel
=
(
num
==
1
)?
'v1'
:
'v2'
;
this
.
barChartsInit
();},
ChangeDateCharts
(
num
){
this
.
activePanel
=
`v
${
num
}
`
;
this
.
barChartsInit
();},
getCtx
(
refName
){
return
echarts
.
init
((
this
.
$refs
)[
refName
]);
}
}
}
...
...
@@ -577,6 +573,10 @@ export default{
button
{
padding-top
:
1px
;
padding-bottom
:
1px
;
color
:
#444444
;
&
.sel
{
color
:
#4294EA
;
}
}
}
}
...
...
src/page/overview/index.vue
View file @
78d76529
...
...
@@ -18,7 +18,7 @@
<img
src=
"@/assets/icon_img/v2.png"
alt=
""
/>
</div>
<div
class=
"txt"
>
<div
class=
"type-desc"
>
胸痛
中心
</div>
<div
class=
"type-desc"
>
卒中
中心
</div>
<div
class=
"num-desc"
><span>
{{
strokeTotal
}}
</span>
个
</div>
</div>
</div>
...
...
@@ -27,7 +27,7 @@
<img
src=
"@/assets/icon_img/v3.png"
alt=
""
>
</div>
<div
class=
"txt"
>
<div
class=
"type-desc"
>
胸痛
中心
</div>
<div
class=
"type-desc"
>
创伤
中心
</div>
<div
class=
"num-desc"
><span>
{{
traumaTotal
}}
</span>
个
</div>
</div>
</div>
...
...
@@ -36,7 +36,7 @@
<img
src=
"@/assets/icon_img/v4.png"
alt=
""
>
</div>
<div
class=
"txt"
>
<div
class=
"type-desc"
>
胸痛
中心
</div>
<div
class=
"type-desc"
>
烧伤
中心
</div>
<div
class=
"num-desc"
><span>
{{
burnTotal
}}
</span>
个
</div>
</div>
</div>
...
...
@@ -47,11 +47,11 @@
</div>
<div
class=
"w50"
>
<div
class=
"div-charts"
>
<div
class=
"charts-title"
>
2021年武汉市各中心授牌数量(
{{
p1itemTotal
}}
)
<span
>
{{
descTxt
}}
<i
:class=
"[addOrReduce==1?`el-icon-top`:`el-icon-bottom`,`bold`]"
></i></span></div>
<div
class=
"charts-title"
>
{{
newyear
}}
年武汉市各中心授牌数量(
{{
p1itemTotal
}}
)
<span
:class=
"
{down:addOrReduce!=1}"
>
{{
descTxt
}}
<i
:class=
"[addOrReduce==1?`el-icon-top`:`el-icon-bottom`,`bold`]"
></i></span></div>
<div
class=
"charts-cont"
ref=
"pie01"
></div>
</div>
<div
class=
"div-charts"
>
<div
class=
"charts-title"
>
2021
年武汉市各中心授牌数量(
{{
p2itemTotal
}}
)
</div>
<div
class=
"charts-title"
>
{{
oldyear
}}
年武汉市各中心授牌数量(
{{
p2itemTotal
}}
)
</div>
<div
class=
"charts-cont"
ref=
"pie02"
></div>
</div>
</div>
...
...
@@ -78,7 +78,10 @@ import {constructionStatistics} from '@/api/hospital';
export
default
{
name
:
'overviewIndex'
,
data
()
{
var
year
=
(
new
Date
()).
getFullYear
(),
oldYear
=
year
-
1
;
return
{
oldyear
:
oldYear
,
newyear
:
year
,
chestTotal
:
''
,
strokeTotal
:
''
,
traumaTotal
:
''
,
...
...
@@ -619,6 +622,9 @@ export default{
span
{
font-size
:
16px
;
color
:
#3CBF2D
;
&
.down
{
color
:red
;
}
.bold
{
font-weight
:bold
;
}
...
...
src/page/runStatis/index.vue
View file @
78d76529
This diff is collapsed.
Click to expand it.
src/store/actions.js
View file @
78d76529
...
...
@@ -44,76 +44,6 @@ export const LoginByToken = function({
token
,
userDto
}
=
res
.
respData
;
// debugger;
// console.log(parentMenuList[4].secondMenuList[0]);
// parentMenuList[4].secondMenuList.splice(1,0,
// {
// isAvailable: null,
// isCheck: 1,
// isDelete: 0,
// keyName: "overview",
// menuId: 13,
// menuName: "建设概览",
// menuType: 2,
// parentMenuId: 18,
// roleId: 1,
// secondMenuList: null,
// sortId: 2,
// url: "/business/overview"
// },
// {
// isAvailable: null,
// isCheck: 1,
// isDelete: 0,
// keyName: "collStatis",
// menuId: 19,
// menuName: "业务协同统计",
// menuType: 2,
// parentMenuId: 18,
// roleId: 1,
// secondMenuList: null,
// sortId: 3,
// url: "/business/collStatis"
// },
// {
// isAvailable: null,
// isCheck: 1,
// isDelete: 0,
// keyName: "runStatis",
// menuId: 24,
// menuName: "业务运行统计",
// menuType: 2,
// parentMenuId: 18,
// roleId: 1,
// secondMenuList: null,
// sortId: 4,
// url: "/business/runStatis"
// }
// )
// debugger;
/*
parentMenuList[4].secondMenuList.splice(1,0,{
isAvailable: null,
isCheck: 1,
isDelete: 0,
keyName: "InHosFirstAid",
menuId:19,
menuName: "院内急救信息",
menuType: 2,
parentMenuId: 18,
roleId: 1,
secondMenuList: null,
sortId: 2,
url: "/business/inhosfirstaid"
})
parentMenuList.forEach(function(item,index){
console.log(index+" menuId:"+item.menuId+" menuType:"+item.menuType+" parentMenuId:"+item.parentMenuId+" sortId:"+item.sortId);
(Array.isArray(item.secondMenuList)?(item.secondMenuList):[]).forEach(function(lik,i){
console.log(" "+index+'-'+i+"menuId:"+lik.menuId+" menuType:"+lik.menuType+" parentMenuId:"+lik.parentMenuId+" sortId:"+lik.sortId)
})
})
*/
if
(
res
.
msg
===
201
&&
parentMenuList
&&
parentMenuList
.
length
>
0
)
{
await
commit
(
types
.
SET_MENUMAP
,
Cache
.
setMenuMap
(
parentMenuList
))
await
commit
(
types
.
SET_USERINFO
,
Cache
.
setUserInfo
(
userDto
))
...
...
src/util/ajax.js
View file @
78d76529
...
...
@@ -28,7 +28,10 @@ service.interceptors.request.use(
config
=>
{
if
(
Auth
.
getLoginInfo
())
{
config
.
headers
[
'token'
]
=
Auth
.
getLoginInfo
()
}
};
if
(
config
.
url
==
`/api/team/importExcel/uploadExcel`
){
//上传文件接口
config
.
headers
[
'productType'
]
=
config
.
data
.
get
(
'productType'
);
};
return
config
},
err
=>
{
...
...
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