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
提交
6addd07e
提交
6addd07e
编写于
12月 09, 2019
作者:
guangjun.yang
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
样式调整等
上级
6fb72ac9
变更
3
隐藏空白字符变更
内嵌
并排
正在显示
3 个修改的文件
包含
36 行增加
和
22 行删除
+36
-22
chart-column-horizontal-tc-long.vue
...ents/bussiness/charts/chart-column-horizontal-tc-long.vue
+26
-14
pica-process.vue
components/common/pica-process.vue
+1
-1
index.vue
pages/index.vue
+9
-7
未找到文件。
components/bussiness/charts/chart-column-horizontal-tc-long.vue
浏览文件 @
6addd07e
...
@@ -32,23 +32,35 @@ export default {
...
@@ -32,23 +32,35 @@ export default {
data
()
{
data
()
{
return
{
return
{
chartWidth
:
"300px"
,
chartWidth
:
"300px"
,
chartHeight
:
"350px"
,
chartHeight
:
"350px"
};
};
},
},
watch
:
{
watch
:
{
dataList
:
{
dataList
:
{
handler
(
newVal
)
{
handler
(
newVal
)
{
let
yAxisData
=
[],
series0Data
=
[],
series1Data
=
[]
let
yAxisData
=
[],
yAxisData
=
newVal
.
map
(
item
=>
{
series0Data
=
[],
return
item
.
classifyName
series1Data
=
[];
})
yAxisData
=
newVal
.
map
(
item
=>
{
series0Data
=
this
.
dataList
.
map
(
item
=>
{
return
item
.
classifyName
;
return
item
.
beforeRate
});
})
series0Data
=
this
.
dataList
.
map
(
item
=>
{
series1Data
=
this
.
dataList
.
map
(
item
=>
{
return
item
.
beforeRate
;
return
item
.
afterRate
});
})
series1Data
=
this
.
dataList
.
map
(
item
=>
{
this
.
drawColumn
(
yAxisData
,
series0Data
,
series1Data
);
return
item
.
afterRate
;
});
if
(
process
.
client
)
{
let
clientWidth
=
window
.
outerWidth
||
document
.
body
.
clientWidth
||
document
.
documentElement
.
clientWidth
;
this
.
chartWidth
=
clientWidth
+
"px"
;
this
.
chartHeight
=
54
*
3
+
"px"
;
this
.
chartHeight
=
54
*
this
.
dataList
.
length
+
"px"
;
this
.
drawColumn
(
yAxisData
,
series0Data
,
series1Data
);
}
// this.drawColumn(yAxisData, series0Data, series1Data);
},
},
deep
:
false
deep
:
false
}
}
...
@@ -68,7 +80,7 @@ export default {
...
@@ -68,7 +80,7 @@ export default {
mounted
()
{
mounted
()
{
vm
=
this
;
vm
=
this
;
// chartColumn = this.$echarts.init(document.getElementById(this.id));
// chartColumn = this.$echarts.init(document.getElementById(this.id));
this
.
drawColumn
([],
[],
[]);
//
this.drawColumn([], [], []);
},
},
methods
:
{
methods
:
{
// 画
// 画
...
...
components/common/pica-process.vue
浏览文件 @
6addd07e
...
@@ -59,7 +59,7 @@ export default {
...
@@ -59,7 +59,7 @@ export default {
if
(
this
.
value
&&
this
.
maxValue
>
this
.
value
)
{
if
(
this
.
value
&&
this
.
maxValue
>
this
.
value
)
{
ratio
=
this
.
value
/
this
.
maxValue
;
ratio
=
this
.
value
/
this
.
maxValue
;
}
}
if
(
this
.
value
<=
1
||
this
.
maxValue
<=
1
)
{
if
(
this
.
value
<=
1
||
this
.
maxValue
<=
1
||
ratio
<=
0.01
)
{
this
.
maxPocessWidth
=
'1px'
this
.
maxPocessWidth
=
'1px'
}
else
{
}
else
{
this
.
maxPocessWidth
=
Math
.
round
(
ratio
*
maxWidth
)
+
'px'
this
.
maxPocessWidth
=
Math
.
round
(
ratio
*
maxWidth
)
+
'px'
...
...
pages/index.vue
浏览文件 @
6addd07e
<
template
>
<
template
>
<section
class=
"container"
>
<section
class=
"container"
>
<CommonHeader
title=
"2019年基础高血压管理
"
></CommonHeader>
<CommonHeader
:title=
"projectInfo.projectName
"
></CommonHeader>
<CommonAreaSelect
<CommonAreaSelect
@
areaClick=
"areaTabClick"
@
areaClick=
"areaTabClick"
@
orgClick=
"orgTabClick"
@
orgClick=
"orgTabClick"
...
@@ -217,6 +217,7 @@ export default {
...
@@ -217,6 +217,7 @@ export default {
allData
:
{},
allData
:
{},
projectId
:
""
,
projectId
:
""
,
token
:
token
:
"B10441890E2940499621C76667675B2D"
||
// "17B31C94D44947829097A953BC7C2732" ||
// "17B31C94D44947829097A953BC7C2732" ||
"A0E52265D31B4D2380C7CFC9E1ACCDCE"
||
"A0E52265D31B4D2380C7CFC9E1ACCDCE"
||
"A7F0A8A4BB5C4EC4B78E71261B753C9C"
||
"A7F0A8A4BB5C4EC4B78E71261B753C9C"
||
...
@@ -245,10 +246,10 @@ export default {
...
@@ -245,10 +246,10 @@ export default {
type
:
1
type
:
1
}
}
},
},
examSingleParams
:
{
//
examSingleParams: {
projectId
:
""
,
//
projectId: "",
hospitalId
:
""
//
hospitalId: ""
},
//
},
echartsData
:
null
,
echartsData
:
null
,
analysisData
:
{
analysisData
:
{
eduList
:
[],
eduList
:
[],
...
@@ -268,6 +269,7 @@ export default {
...
@@ -268,6 +269,7 @@ export default {
noJoinList
:
[]
noJoinList
:
[]
},
},
projectInfo
:
{
projectInfo
:
{
projectName
:
'项目名称'
,
certFlag
:
0
,
// 项目证书情况 0:无证;1:单证书;2:多证书
certFlag
:
0
,
// 项目证书情况 0:无证;1:单证书;2:多证书
existCourse
:
2
,
// 是否显示课程分析 1:显示 2:不显示
existCourse
:
2
,
// 是否显示课程分析 1:显示 2:不显示
existEffect
:
2
,
// 是否显示学习效果分析 1:显示 2:不显示
existEffect
:
2
,
// 是否显示学习效果分析 1:显示 2:不显示
...
@@ -318,7 +320,7 @@ export default {
...
@@ -318,7 +320,7 @@ export default {
374
;
374
;
this
.
queryGDParams
.
projectId
=
this
.
projectId
;
this
.
queryGDParams
.
projectId
=
this
.
projectId
;
this
.
CNTParams
.
projectId
=
this
.
projectId
;
this
.
CNTParams
.
projectId
=
this
.
projectId
;
this
.
examSingleParams
.
projectId
=
this
.
projectId
;
//
this.examSingleParams.projectId = this.projectId;
this
.
queryParams
.
projectId
=
this
.
projectId
;
this
.
queryParams
.
projectId
=
this
.
projectId
;
if
(
this
.
$rocNative
.
isWeb
)
{
if
(
this
.
$rocNative
.
isWeb
)
{
this
.
setUserToken
(
this
.
token
);
this
.
setUserToken
(
this
.
token
);
...
@@ -541,7 +543,7 @@ export default {
...
@@ -541,7 +543,7 @@ export default {
this
.
getGeneralData
(
this
.
queryGDParams
);
this
.
getGeneralData
(
this
.
queryGDParams
);
}
}
this
.
isShowOrg
=
false
;
this
.
isShowOrg
=
false
;
this
.
orgName
=
hospitalNames
[
0
]
||
this
.
orgName
this
.
orgName
=
hospitalNames
[
0
]
||
'全部机构'
this
.
getGeneralExam
(
this
.
queryGDParams
);
this
.
getGeneralExam
(
this
.
queryGDParams
);
this
.
getUserAnalysis
(
this
.
queryGDParams
);
this
.
getUserAnalysis
(
this
.
queryGDParams
);
this
.
getGeneralCourse
(
this
.
queryGDParams
);
this
.
getGeneralCourse
(
this
.
queryGDParams
);
...
...
写
预览
Markdown
格式
0%
请重试
or
附加一个文件
附加文件
取消
您添加了
0
人
到此讨论。请谨慎行事。
先完成此消息的编辑!
取消
想要评论请
注册
或
登录