Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
提交反馈
为 GitLab 提交贡献
登录
切换导航
P
pica.cloud.web-education-admin
项目
项目
详情
动态
版本
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Wiki
Wiki
代码片段
代码片段
成员
成员
收起侧边栏
Close sidebar
动态
分支图
统计图
创建新议题
提交
议题看板
打开侧边栏
jingqi.liu
pica.cloud.web-education-admin
提交
7aaa24d7
提交
7aaa24d7
编写于
12月 10, 2019
作者:
zhentian.jia
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
文案 颜色值问题
上级
9bdfd565
变更
6
隐藏空白字符变更
内嵌
并排
正在显示
6 个修改的文件
包含
25 行增加
和
14 行删除
+25
-14
filter.js
src/utils/filter.js
+9
-3
chartData.js
src/utils/learning/chartData.js
+4
-4
item-crowd-analysis.vue
src/views/learning/item-crowd-analysis.vue
+1
-0
item-data-all.vue
src/views/learning/item-data-all.vue
+8
-4
item-learning-effect.vue
src/views/learning/item-learning-effect.vue
+2
-2
name-list.vue
src/views/learning/name-list.vue
+1
-1
未找到文件。
src/utils/filter.js
浏览文件 @
7aaa24d7
...
@@ -236,7 +236,7 @@ const vueFilter = {
...
@@ -236,7 +236,7 @@ const vueFilter = {
let
s
=
parseInt
(
value
),
m
=
0
,
h
=
0
;
//秒,分,小时
let
s
=
parseInt
(
value
),
m
=
0
,
h
=
0
;
//秒,分,小时
if
(
s
==
NaN
){
//错误error
if
(
s
==
NaN
){
//错误error
return
''
;
return
''
;
}
}
if
(
s
>
60
)
{
if
(
s
>
60
)
{
m
=
parseInt
(
s
/
60
);
m
=
parseInt
(
s
/
60
);
s
=
parseInt
(
s
%
60
);
s
=
parseInt
(
s
%
60
);
...
@@ -320,17 +320,23 @@ const vueFilter = {
...
@@ -320,17 +320,23 @@ const vueFilter = {
joinFlagValue
:
(
value
)
=>
{
joinFlagValue
:
(
value
)
=>
{
if
(
value
==
1
)
{
if
(
value
==
1
)
{
return
'已参与'
;
return
'已参与'
;
}
else
if
(
value
==
2
)
{
}
else
if
(
value
==
2
||
value
==
0
)
{
return
'未参与'
;
return
'未参与'
;
}
}
},
},
finishFlagValue
:
(
value
)
=>
{
finishFlagValue
:
(
value
)
=>
{
if
(
value
==
1
)
{
if
(
value
==
1
)
{
return
'已完成'
;
return
'已完成'
;
}
else
if
(
value
==
2
)
{
}
else
if
(
value
==
2
||
value
==
0
)
{
return
'未完成'
;
return
'未完成'
;
}
}
},
},
departmentNameValue
:
(
value
)
=>
{
if
(
value
==
''
)
{
return
'-'
;
}
return
value
;
},
certGradeValue
:
(
value
)
=>
{
certGradeValue
:
(
value
)
=>
{
if
(
value
==
1
)
{
if
(
value
==
1
)
{
return
'优秀'
;
return
'优秀'
;
...
...
src/utils/learning/chartData.js
浏览文件 @
7aaa24d7
...
@@ -364,8 +364,8 @@ export function educationEffect(xAxisData, seriesBefore, seriesAfter) {
...
@@ -364,8 +364,8 @@ export function educationEffect(xAxisData, seriesBefore, seriesAfter) {
formatter
:
function
(
params
)
{
formatter
:
function
(
params
)
{
let
relVal
=
params
[
0
].
name
+
""
;
let
relVal
=
params
[
0
].
name
+
""
;
let
divList
=
[];
let
divList
=
[];
divList
[
0
]
=
"<div style='background: #
5D7092
;height: 12px;width: 20px;margin: 5px 5px 0 2px;float: left;border-radius:2px;'></div>"
;
divList
[
0
]
=
"<div style='background: #
FEBB3C
;height: 12px;width: 20px;margin: 5px 5px 0 2px;float: left;border-radius:2px;'></div>"
;
divList
[
1
]
=
"<div style='background: #
FFB01B
;height: 12px;width: 20px;margin: 5px 5px 0 2px;float: left;border-radius:2px;'></div>"
;
divList
[
1
]
=
"<div style='background: #
39AF9A
;height: 12px;width: 20px;margin: 5px 5px 0 2px;float: left;border-radius:2px;'></div>"
;
for
(
let
j
=
0
;
j
<=
params
.
length
-
1
;
j
++
)
{
for
(
let
j
=
0
;
j
<=
params
.
length
-
1
;
j
++
)
{
relVal
+=
relVal
+=
"<br/>"
+
divList
[
j
]
+
"<br/>"
+
divList
[
j
]
+
...
@@ -454,8 +454,8 @@ export function knowledgeEffect(xAxisData, seriesBefore, seriesAfter) {
...
@@ -454,8 +454,8 @@ export function knowledgeEffect(xAxisData, seriesBefore, seriesAfter) {
formatter
:
function
(
params
)
{
formatter
:
function
(
params
)
{
let
relVal
=
params
[
0
].
name
+
""
;
let
relVal
=
params
[
0
].
name
+
""
;
let
divList
=
[];
let
divList
=
[];
divList
[
0
]
=
"<div style='background: #
5D7092
;height: 12px;width: 20px;margin: 5px 5px 0 2px;float: left;border-radius:2px;'></div>"
;
divList
[
0
]
=
"<div style='background: #
FFB01B
;height: 12px;width: 20px;margin: 5px 5px 0 2px;float: left;border-radius:2px;'></div>"
;
divList
[
1
]
=
"<div style='background: #
FFB01B
;height: 12px;width: 20px;margin: 5px 5px 0 2px;float: left;border-radius:2px;'></div>"
;
divList
[
1
]
=
"<div style='background: #
5D7092
;height: 12px;width: 20px;margin: 5px 5px 0 2px;float: left;border-radius:2px;'></div>"
;
for
(
let
j
=
0
;
j
<=
params
.
length
-
1
;
j
++
)
{
for
(
let
j
=
0
;
j
<=
params
.
length
-
1
;
j
++
)
{
relVal
+=
relVal
+=
"<br/>"
+
divList
[
j
]
+
"<br/>"
+
divList
[
j
]
+
...
...
src/views/learning/item-crowd-analysis.vue
浏览文件 @
7aaa24d7
...
@@ -369,6 +369,7 @@ export default {
...
@@ -369,6 +369,7 @@ export default {
// background: #fff;
// background: #fff;
overflow
:
hidden
;
overflow
:
hidden
;
// padding: 10px;
// padding: 10px;
overflow-x
:
auto
;
.header-title
{
.header-title
{
padding
:
10px
12px
;
padding
:
10px
12px
;
font-size
:
12px
;
font-size
:
12px
;
...
...
src/views/learning/item-data-all.vue
浏览文件 @
7aaa24d7
...
@@ -104,7 +104,7 @@
...
@@ -104,7 +104,7 @@
<el-radio-button
label=
"3"
>
按参与人数排名
</el-radio-button>
<el-radio-button
label=
"3"
>
按参与人数排名
</el-radio-button>
</el-radio-group>
</el-radio-group>
</div>
</div>
<div
v-if=
"showCertificateChart === true"
>
<div
v-if=
"showCertificateChart === true"
class=
"overflow-chart"
>
<div
class=
"chartCert"
id=
"certificateChart"
ref=
"certificateChart"
></div>
<div
class=
"chartCert"
id=
"certificateChart"
ref=
"certificateChart"
></div>
</div>
</div>
<div
v-if=
"showCertificateChart === false"
class=
"empty-img"
>
<div
v-if=
"showCertificateChart === false"
class=
"empty-img"
>
...
@@ -112,7 +112,7 @@
...
@@ -112,7 +112,7 @@
</div>
</div>
<div
class=
"spacing"
></div>
<div
class=
"spacing"
></div>
<div
class=
"chart-title"
>
在线培训完成时长情况
</div>
<div
class=
"chart-title"
>
在线培训完成时长情况
</div>
<div
v-if=
"showDurationChart === true"
>
<div
v-if=
"showDurationChart === true"
class=
"overflow-chart"
>
<div
class=
"chartDuration"
id=
"durationChart"
ref=
"durationChart"
></div>
<div
class=
"chartDuration"
id=
"durationChart"
ref=
"durationChart"
></div>
</div>
</div>
<div
v-if=
"showDurationChart === false"
class=
"empty-img"
>
<div
v-if=
"showDurationChart === false"
class=
"empty-img"
>
...
@@ -200,7 +200,11 @@
...
@@ -200,7 +200,11 @@
<span>
{{
scope
.
row
.
sex
|
sexValue
}}
</span>
<span>
{{
scope
.
row
.
sex
|
sexValue
}}
</span>
</
template
>
</
template
>
</el-table-column>
</el-table-column>
<el-table-column
prop=
"departmentName"
label=
"科室"
align=
"center"
></el-table-column>
<el-table-column
prop=
"departmentName"
label=
"科室"
align=
"center"
>
<
template
slot-scope=
"scope"
>
<span>
{{
scope
.
row
.
departmentName
|
departmentNameValue
}}
</span>
</
template
>
</el-table-column>
<el-table-column
prop=
"joinFlag"
label=
"是否参与项目"
align=
"center"
>
<el-table-column
prop=
"joinFlag"
label=
"是否参与项目"
align=
"center"
>
<
template
slot-scope=
"scope"
>
<
template
slot-scope=
"scope"
>
<span>
{{
scope
.
row
.
joinFlag
|
joinFlagValue
}}
</span>
<span>
{{
scope
.
row
.
joinFlag
|
joinFlagValue
}}
</span>
...
@@ -255,7 +259,7 @@
...
@@ -255,7 +259,7 @@
<span>
{{
scope
.
row
.
certGrade
|
certGradeValue
}}
</span>
<span>
{{
scope
.
row
.
certGrade
|
certGradeValue
}}
</span>
</
template
>
</
template
>
</el-table-column>
</el-table-column>
<el-table-column
prop=
"finishDate"
label=
"
获证
日期"
align=
"center"
></el-table-column>
<el-table-column
prop=
"finishDate"
label=
"
完成项目
日期"
align=
"center"
></el-table-column>
<el-table-column
prop=
"score"
label=
"成绩"
align=
"center"
></el-table-column>
<el-table-column
prop=
"score"
label=
"成绩"
align=
"center"
></el-table-column>
<el-table-column
prop=
"learnTime"
min-width=
"150"
label=
"学习时长"
align=
"center"
>
<el-table-column
prop=
"learnTime"
min-width=
"150"
label=
"学习时长"
align=
"center"
>
<
template
slot-scope=
"scope"
>
<
template
slot-scope=
"scope"
>
...
...
src/views/learning/item-learning-effect.vue
浏览文件 @
7aaa24d7
...
@@ -10,7 +10,7 @@
...
@@ -10,7 +10,7 @@
</div>
</div>
<div
class=
"spacing"
></div>
<div
class=
"spacing"
></div>
<div
class=
"chart-title"
>
不同学历完成项目前后正确率对比
</div>
<div
class=
"chart-title"
>
不同学历完成项目前后正确率对比
</div>
<div
v-if=
"showChartEdu === true"
>
<div
v-if=
"showChartEdu === true"
class=
"overflow-chart"
>
<div
class=
"chartEdu"
ref=
"education"
></div>
<div
class=
"chartEdu"
ref=
"education"
></div>
</div>
</div>
<div
v-if=
"showChartEdu === false"
class=
"empty-img"
>
<div
v-if=
"showChartEdu === false"
class=
"empty-img"
>
...
@@ -19,7 +19,7 @@
...
@@ -19,7 +19,7 @@
<div
class=
"chart-remarks"
>
注:本报表数据来源仅仅统计同时包含摸底考和正式考的课程培训。
</div>
<div
class=
"chart-remarks"
>
注:本报表数据来源仅仅统计同时包含摸底考和正式考的课程培训。
</div>
<div
class=
"spacing"
></div>
<div
class=
"spacing"
></div>
<div
class=
"chart-title"
>
培训前后知识点掌握情况
</div>
<div
class=
"chart-title"
>
培训前后知识点掌握情况
</div>
<div
v-if=
"showChartLearn === true"
>
<div
v-if=
"showChartLearn === true"
class=
"overflow-chart"
>
<div
class=
"chartLearn"
ref=
"learning"
></div>
<div
class=
"chartLearn"
ref=
"learning"
></div>
</div>
</div>
<div
v-if=
"showChartLearn === false"
class=
"empty-img"
>
<div
v-if=
"showChartLearn === false"
class=
"empty-img"
>
...
...
src/views/learning/name-list.vue
浏览文件 @
7aaa24d7
...
@@ -238,7 +238,7 @@ export default {
...
@@ -238,7 +238,7 @@ export default {
},
},
{
{
value
:
1
,
value
:
1
,
label
:
"已
经参
"
label
:
"已
参与
"
},
},
]
]
}
}
...
...
写
预览
Markdown
格式
0%
请重试
or
附加一个文件
附加文件
取消
您添加了
0
人
到此讨论。请谨慎行事。
先完成此消息的编辑!
取消
想要评论请
注册
或
登录