Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
提交反馈
为 GitLab 提交贡献
登录
切换导航
P
pica-learning-report
项目
项目
详情
动态
版本
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
计划
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
收起侧边栏
Close sidebar
动态
分支图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
com.pica.cloud.education.frontend
pica-learning-report
提交
2818cb38
提交
2818cb38
编写于
12月 10, 2019
作者:
guangjun.yang
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
图表样式、逻辑修改等
上级
9dcffebc
变更
12
隐藏空白字符变更
内嵌
并排
正在显示
12 个修改的文件
包含
94 行增加
和
22 行删除
+94
-22
chart-column-horizontal-tc-long.vue
...ents/bussiness/charts/chart-column-horizontal-tc-long.vue
+3
-3
chart-column-horizontal-tc.vue
components/bussiness/charts/chart-column-horizontal-tc.vue
+19
-3
chart-column-vertical-score.vue
components/bussiness/charts/chart-column-vertical-score.vue
+11
-2
chart-column-vertical-tc.vue
components/bussiness/charts/chart-column-vertical-tc.vue
+19
-3
chart-column-vertical-times.vue
components/bussiness/charts/chart-column-vertical-times.vue
+11
-2
chart-pie-edu.vue
components/bussiness/charts/chart-pie-edu.vue
+1
-1
chart-pie-title.vue
components/bussiness/charts/chart-pie-title.vue
+1
-1
tips-info.vue
components/bussiness/tips-info.vue
+11
-1
common-area-select.vue
components/common/common-area-select.vue
+1
-0
pica-area.vue
components/common/pica-area.vue
+10
-5
index.vue
pages/index.vue
+4
-1
klg-point.vue
pages/klg-point.vue
+3
-0
未找到文件。
components/bussiness/charts/chart-column-horizontal-tc-long.vue
浏览文件 @
2818cb38
...
...
@@ -100,8 +100,8 @@ export default {
},
grid
:
{
top
:
"3%"
,
left
:
"
3
%"
,
right
:
"
3
%"
,
left
:
"
5
%"
,
right
:
"
5
%"
,
bottom
:
"3%"
,
containLabel
:
true
,
borderWidth
:
0
...
...
@@ -153,7 +153,7 @@ export default {
color
:
"#676869"
,
width
:
0
}
}
}
,
},
series
:
[
{
...
...
components/bussiness/charts/chart-column-horizontal-tc.vue
浏览文件 @
2818cb38
...
...
@@ -39,7 +39,7 @@ export default {
handler
(
newVal
)
{
let
yAxisData
=
[],
series0Data
=
[],
series1Data
=
[]
yAxisData
=
newVal
.
map
(
item
=>
{
return
item
.
classifyName
;
return
this
.
shortName
(
item
.
classifyName
)
// return (item.classifyName || 0).toFixed(0) * 100 + '%'
})
series0Data
=
this
.
dataList
.
map
(
item
=>
{
...
...
@@ -115,7 +115,16 @@ export default {
color
:
"#efefef"
,
width
:
1
}
}
},
//设置网格线颜色
splitLine
:
{
show
:
true
,
lineStyle
:{
color
:
[
'#efefef'
],
width
:
1
,
type
:
'solid'
}
}
},
yAxis
:
{
axisTick
:
false
,
...
...
@@ -173,7 +182,14 @@ export default {
]
};
chartColumn
.
setOption
(
options
);
}
},
shortName
:
function
(
value
,
length
=
5
,
append
=
'...'
)
{
if
(
value
&&
value
.
length
>
length
)
{
return
value
.
substring
(
0
,
length
)
+
append
}
else
{
return
value
}
},
}
};
</
script
>
...
...
components/bussiness/charts/chart-column-vertical-score.vue
浏览文件 @
2818cb38
...
...
@@ -75,7 +75,16 @@ export default {
color
:
"#efefef"
,
width
:
1
}
}
},
//设置网格线颜色
splitLine
:
{
show
:
true
,
lineStyle
:{
color
:
[
'#efefef'
],
width
:
1
,
type
:
'solid'
}
}
},
xAxis
:
{
axisTick
:
false
,
...
...
@@ -97,7 +106,7 @@ export default {
color
:
"#efefef"
,
width
:
1
}
}
}
,
},
series
:
[
{
...
...
components/bussiness/charts/chart-column-vertical-tc.vue
浏览文件 @
2818cb38
...
...
@@ -48,7 +48,7 @@ export default {
handler
(
newVal
)
{
let
yAxisData
=
[],
series0Data
=
[],
series1Data
=
[]
yAxisData
=
newVal
.
map
(
item
=>
{
return
item
.
classifyName
return
this
.
shortName
(
item
.
classifyName
)
})
series0Data
=
this
.
dataList
.
map
(
item
=>
{
return
((
item
.
beforeRate
||
0
)
*
100
).
toFixed
(
0
);
...
...
@@ -114,7 +114,16 @@ export default {
color: "#efefef",
width: 1
}
}
},
//设置网格线颜色
splitLine: {
show: true,
lineStyle:{
color: ['
#
efefef
'],
width: 1,
type: '
solid
'
}
}
},
xAxis: {
axisTick: false,
...
...
@@ -156,7 +165,14 @@ export default {
]
};
chartColumn.setOption(options);
}
},
shortName: function (value, length = 5, append = '
...
') {
if (value && value.length > length) {
return value.substring(0, length) + append
} else {
return value
}
},
}
};
</
script
>
...
...
components/bussiness/charts/chart-column-vertical-times.vue
浏览文件 @
2818cb38
...
...
@@ -77,7 +77,16 @@ export default {
color
:
"#efefef"
,
width
:
1
}
}
},
//设置网格线颜色
splitLine
:
{
show
:
true
,
lineStyle
:{
color
:
[
'#efefef'
],
width
:
1
,
type
:
'solid'
}
}
},
xAxis
:
{
axisTick
:
false
,
...
...
@@ -99,7 +108,7 @@ export default {
color
:
"#efefef"
,
width
:
1
}
}
}
,
},
series
:
[
{
...
...
components/bussiness/charts/chart-pie-edu.vue
浏览文件 @
2818cb38
...
...
@@ -23,7 +23,7 @@ export default {
},
data
()
{
return
{
chartWidth
:
'3
0
0px'
,
chartWidth
:
'3
2
0px'
,
pieId
:
'eduPieId'
,
chartHeight
:
"1000px"
,
handledData
:
{},
...
...
components/bussiness/charts/chart-pie-title.vue
浏览文件 @
2818cb38
...
...
@@ -30,7 +30,7 @@ export default {
},
data
()
{
return
{
chartWidth
:
'3
0
0px'
,
chartWidth
:
'3
2
0px'
,
pieId
:
"titlePieId"
,
chartHeight
:
"1000px"
,
handledData
:
{},
...
...
components/bussiness/tips-info.vue
浏览文件 @
2818cb38
<
template
>
<div
class=
"tips-info-wrapper"
>
<span>
报表数据来源包括用户参加正式考试,不包含摸底考试
</span>
<span>
{{
content
}}
</span>
</div>
</
template
>
<
script
>
export
default
{
props
:
{
content
:
{
type
:
String
,
default
:
'报表数据来源包括用户参加正式考试,不包含摸底考试'
}
}
}
</
script
>
<
style
lang=
"less"
scoped
>
.tips-info-wrapper {
height: 44px;
...
...
components/common/common-area-select.vue
浏览文件 @
2818cb38
...
...
@@ -39,6 +39,7 @@ export default {
areaDegree
:
'areaDegree'
}),
isNotVisible
()
{
console
.
log
(
'this.areaDegree'
,
this
.
areaDegree
)
if
(
this
.
orgList
.
length
==
0
||
this
.
areaDegree
==
0
||
this
.
areaDegree
==
1
||
this
.
areaDegree
==
2
)
{
// if(this.areaDegree == 0 || this.areaDegree == 1 || this.areaDegree == 2) {
return
true
;
...
...
components/common/pica-area.vue
浏览文件 @
2818cb38
...
...
@@ -130,7 +130,8 @@ export default {
provinceName
:
""
,
townId
:
""
,
townName
:
""
,
regionId
:
""
regionId
:
""
,
areaDegree
:
0
},
isDisabled
:
true
,
isShowProvince
:
true
,
...
...
@@ -300,7 +301,8 @@ export default {
// 当前选中的样式
this
.
areaList
.
provinceList
.
map
(
a
=>
(
a
.
selected
=
false
));
this
.
areaList
.
provinceList
[
idx
].
selected
=
true
;
this
.
setAreaDegree
(
item
.
degree
)
// this.setAreaDegree(item.degree)
this
.
value
.
areaDegree
=
item
.
degree
;
if
(
item
.
degree
==
0
){
return
;
}
...
...
@@ -339,7 +341,8 @@ export default {
// 当前选中的样式
this
.
areaList
.
cityList
.
map
(
a
=>
(
a
.
selected
=
false
));
this
.
areaList
.
cityList
[
idx
].
selected
=
true
;
this
.
setAreaDegree
(
item
.
degree
)
// this.setAreaDegree(item.degree)
this
.
value
.
areaDegree
=
item
.
degree
;
if
(
item
.
degree
==
0
){
return
;
}
...
...
@@ -373,7 +376,8 @@ export default {
// 当前选中的样式
this
.
areaList
.
countyList
.
map
(
a
=>
(
a
.
selected
=
false
));
this
.
areaList
.
countyList
[
idx
].
selected
=
true
;
this
.
setAreaDegree
(
item
.
degree
)
// this.setAreaDegree(item.degree)
this
.
value
.
areaDegree
=
item
.
degree
;
if
(
item
.
degree
==
0
){
return
;
}
...
...
@@ -402,7 +406,8 @@ export default {
this
.
queryParams
.
regionId
=
item
.
id
;
this
.
value
.
townName
=
item
.
label
;
this
.
value
.
patientAddress
=
`
${
this
.
value
.
provinceName
}${
this
.
value
.
cityName
}${
this
.
value
.
countyName
}${
this
.
value
.
townName
}
`
;
this
.
setAreaDegree
(
item
.
degree
)
// this.setAreaDegree(item.degree)
this
.
value
.
areaDegree
=
item
.
degree
;
if
(
item
.
degree
==
0
){
return
;
}
...
...
pages/index.vue
浏览文件 @
2818cb38
...
...
@@ -526,6 +526,8 @@ export default {
this
.
CNTParams
.
regionId
=
selData
.
regionId
;
this
.
getHospitalsCNT
(
this
.
CNTParams
);
this
.
isShowArea
=
false
;
this
.
setAreaDegree
(
selData
.
areaDegree
);
// orgConfirm
if
(
selData
.
townName
||
selData
.
countyName
||
selData
.
cityName
||
selData
.
provinceName
)
{
this
.
areaName
=
selData
.
townName
||
selData
.
countyName
||
selData
.
cityName
||
selData
.
provinceName
}
...
...
@@ -650,7 +652,8 @@ export default {
setProvinceList
:
"setProvinceList"
,
setExamTimesList
:
"setExamTimesList"
,
setExamScoreList
:
"setExamScoreList"
,
setOrgList
:
"setOrgList"
setOrgList
:
"setOrgList"
,
setAreaDegree
:
"setAreaDegree"
})
}
};
...
...
pages/klg-point.vue
浏览文件 @
2818cb38
<
template
>
<section>
<CommonHeader
title=
"培训前后知识点掌握情况"
></CommonHeader>
<TipsInfo
:content=
"tipsContent"
></TipsInfo>
<TitleKLGPoint
:title=
"title"
></TitleKLGPoint>
<ChartColumnHorizontalTCLong
:dataList=
"knowledgeEffectList"
class=
"mt-10"
></ChartColumnHorizontalTCLong>
<CommonNoMore></CommonNoMore>
...
...
@@ -13,6 +14,7 @@ import { getStudyEffect } from "@/service";
import
CommonHeader
from
"@/components/common/common-header"
;
import
TitleKLGPoint
from
"@/components/bussiness/title-klg-point"
;
import
CommonNoMore
from
"@/components/common/common-no-more"
;
import
TipsInfo
from
'@/components/bussiness/tips-info'
import
ChartColumnHorizontalTCLong
from
"@/components/bussiness/charts/chart-column-horizontal-tc-long"
;
export
default
{
...
...
@@ -36,6 +38,7 @@ export default {
type
:
1
}
},
tipsContent
:
'报告数据来源仅包含摸底考和正式考的课程培训'
,
knowledgeEffectList
:
[]
};
},
...
...
写
预览
Markdown
格式
0%
请重试
or
附加一个文件
附加文件
取消
您添加了
0
人
到此讨论。请谨慎行事。
先完成此消息的编辑!
取消
想要评论请
注册
或
登录