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
提交
ad565851
提交
ad565851
编写于
12月 08, 2019
作者:
guangjun.yang
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
个人数据的bug
上级
d7ab01c9
变更
2
显示空白字符变更
内嵌
并排
正在显示
2 个修改的文件
包含
9 行增加
和
7 行删除
+9
-7
pica-process.vue
components/common/pica-process.vue
+6
-6
index.vue
pages/index.vue
+3
-1
未找到文件。
components/common/pica-process.vue
浏览文件 @
ad565851
...
@@ -49,16 +49,16 @@ export default {
...
@@ -49,16 +49,16 @@ export default {
// }
// }
// },
// },
watch
:
{
watch
:
{
value
Obj
:
{
processData
Obj
:
{
handler
(
newVal
)
{
handler
(
newVal
)
{
if
(
process
.
client
)
{
if
(
process
.
client
)
{
let
clientWidth
=
window
.
outerWidth
||
document
.
body
.
clientWidth
||
document
.
documentElement
.
clientWidth
;
let
clientWidth
=
window
.
outerWidth
||
document
.
body
.
clientWidth
||
document
.
documentElement
.
clientWidth
;
let
maxWidth
=
clientWidth
-
this
.
valueDescWidth
;
let
maxWidth
=
clientWidth
-
this
.
valueDescWidth
;
let
ratio
=
1
;
let
ratio
=
1
;
if
(
this
.
processDataObj
.
value
&&
this
.
processDataObj
.
value
<
this
.
processDataObj
.
maxValue
)
{
if
(
this
.
processDataObj
.
maxDuration
&&
this
.
processDataObj
.
maxDuration
<
this
.
processDataObj
.
avgDuration
)
{
ratio
=
this
.
processDataObj
.
value
/
this
.
processDataOb
.
maxValue
;
ratio
=
this
.
processDataObj
.
maxDuration
/
this
.
processDataObj
.
avgDuration
;
}
}
if
(
!
this
.
processDataObj
.
value
)
{
if
(
!
this
.
processDataObj
.
maxDuration
)
{
ratio
=
0.01
;
ratio
=
0.01
;
}
}
this
.
maxPocessWidth
=
Math
.
round
(
ratio
*
maxWidth
)
+
'px'
this
.
maxPocessWidth
=
Math
.
round
(
ratio
*
maxWidth
)
+
'px'
...
@@ -74,8 +74,8 @@ export default {
...
@@ -74,8 +74,8 @@ export default {
// let clientWidth = window.outerWidth || document.body.clientWidth || document.documentElement.clientWidth;
// let clientWidth = window.outerWidth || document.body.clientWidth || document.documentElement.clientWidth;
// let maxWidth = clientWidth - this.valueDescWidth;
// let maxWidth = clientWidth - this.valueDescWidth;
// let ratio = 1;
// let ratio = 1;
// if(this.value && this.value
<
this
.
maxValue
)
{
// if(this.value && this.value
<
this
.
avgDuration
)
{
// ratio = this.value / this.
maxValue
;
// ratio = this.value / this.
avgDuration
;
// }
// }
// if(!this.value) {
// if(!this.value) {
// ratio = 0.01;
// ratio = 0.01;
...
...
pages/index.vue
浏览文件 @
ad565851
...
@@ -55,7 +55,7 @@
...
@@ -55,7 +55,7 @@
<!-- 课程分析 -->
<!-- 课程分析 -->
<article
v-show=
"(cIndex === 2) && (projectInfo.existCourse == 1)"
style=
"padding-top: 8px;"
>
<article
v-show=
"(cIndex === 2) && (projectInfo.existCourse == 1)"
style=
"padding-top: 8px;"
>
<CourseTimesStat
:
:
processDataObj=
"processDataObj"
:totalSize=
"courseInfo.totalSize"
:maxDuration=
"courseInfo.pCourseTotalTime"
:avgDuration=
"courseInfo.pCourseAvg"
></CourseTimesStat>
<CourseTimesStat
:processDataObj=
"processDataObj"
:totalSize=
"courseInfo.totalSize"
:maxDuration=
"courseInfo.pCourseTotalTime"
:avgDuration=
"courseInfo.pCourseAvg"
></CourseTimesStat>
<CommonSplitLine></CommonSplitLine>
<CommonSplitLine></CommonSplitLine>
<CommonTitle
title=
"课程列表"
></CommonTitle>
<CommonTitle
title=
"课程列表"
></CommonTitle>
<CourseTimesList
:dataList=
"courseInfo.pCourseList"
></CourseTimesList>
<CourseTimesList
:dataList=
"courseInfo.pCourseList"
></CourseTimesList>
...
@@ -217,6 +217,7 @@ export default {
...
@@ -217,6 +217,7 @@ export default {
allData
:
{},
allData
:
{},
projectId
:
""
,
projectId
:
""
,
token
:
token
:
// "17B31C94D44947829097A953BC7C2732" ||
"A0E52265D31B4D2380C7CFC9E1ACCDCE"
||
"A0E52265D31B4D2380C7CFC9E1ACCDCE"
||
"A7F0A8A4BB5C4EC4B78E71261B753C9C"
||
"A7F0A8A4BB5C4EC4B78E71261B753C9C"
||
"4281940A6A0C49F69F06BBC9E83DA90D"
||
"4281940A6A0C49F69F06BBC9E83DA90D"
||
...
@@ -397,6 +398,7 @@ export default {
...
@@ -397,6 +398,7 @@ export default {
async
getGeneralPersonal
(
params
)
{
async
getGeneralPersonal
(
params
)
{
await
getGeneralPersonal
(
params
).
then
(
res
=>
{
await
getGeneralPersonal
(
params
).
then
(
res
=>
{
if
(
res
.
code
===
"000000"
)
{
if
(
res
.
code
===
"000000"
)
{
this
.
allData
=
res
.
data
;
if
(
params
.
pageCfg
.
type
===
1
)
{
if
(
params
.
pageCfg
.
type
===
1
)
{
this
.
orgDoctorTabData
.
certUserList
=
res
.
data
.
personData
;
this
.
orgDoctorTabData
.
certUserList
=
res
.
data
.
personData
;
}
else
if
(
params
.
pageCfg
.
type
===
2
)
{
}
else
if
(
params
.
pageCfg
.
type
===
2
)
{
...
...
写
预览
Markdown
格式
0%
请重试
or
附加一个文件
附加文件
取消
您添加了
0
人
到此讨论。请谨慎行事。
先完成此消息的编辑!
取消
想要评论请
注册
或
登录