Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
提交反馈
为 GitLab 提交贡献
登录
切换导航
P
pica.cloud.web-education-admin
项目
项目
详情
动态
版本
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
成员
成员
收起侧边栏
Close sidebar
动态
分支图
统计图
提交
打开侧边栏
com.pica.cloud.education.frontend
pica.cloud.web-education-admin
提交
74ea3bb1
提交
74ea3bb1
编写于
12月 19, 2019
作者:
zhentian.jia
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
PDF导出时间问题 loading问题
上级
4a5b2aba
变更
7
隐藏空白字符变更
内嵌
并排
正在显示
7 个修改的文件
包含
20 行增加
和
51 行删除
+20
-51
item-course-analysis.vue
src/views/learning/item-course-analysis.vue
+0
-3
item-crowd-analysis.vue
src/views/learning/item-crowd-analysis.vue
+0
-3
item-data-all.vue
src/views/learning/item-data-all.vue
+2
-15
item-examination-analysis.vue
src/views/learning/item-examination-analysis.vue
+0
-3
item-learning-effect.vue
src/views/learning/item-learning-effect.vue
+2
-4
item-list.vue
src/views/learning/item-list.vue
+14
-21
report-list.vue
src/views/learning/report-list.vue
+2
-2
未找到文件。
src/views/learning/item-course-analysis.vue
浏览文件 @
74ea3bb1
...
@@ -197,10 +197,7 @@ export default {
...
@@ -197,10 +197,7 @@ export default {
pageNo
:
vm
.
pageNo
,
pageNo
:
vm
.
pageNo
,
pageSize
:
vm
.
pageSize
,
pageSize
:
vm
.
pageSize
,
};
};
// console.log("3 req", req);
// openLoading(vm);
vm
.
POST
(
"stats/report/course"
,
req
).
then
(
res
=>
{
vm
.
POST
(
"stats/report/course"
,
req
).
then
(
res
=>
{
// closeLoading(vm);
if
(
res
.
code
==
"000000"
)
{
if
(
res
.
code
==
"000000"
)
{
if
(
type
!==
2
)
{
if
(
type
!==
2
)
{
vm
.
setCardData
(
res
.
data
);
vm
.
setCardData
(
res
.
data
);
...
...
src/views/learning/item-crowd-analysis.vue
浏览文件 @
74ea3bb1
...
@@ -193,10 +193,7 @@ export default {
...
@@ -193,10 +193,7 @@ export default {
regionId
:
vm
.
formInline
.
region
[
vm
.
formInline
.
region
.
length
-
1
],
regionId
:
vm
.
formInline
.
region
[
vm
.
formInline
.
region
.
length
-
1
],
timeFlag
:
vm
.
formInline
.
timeFlag
timeFlag
:
vm
.
formInline
.
timeFlag
};
};
// console.log("2 req", req);
// openLoading(vm);
vm
.
POST
(
"stats/report/userAnalysis_pc/"
+
vm
.
radio
,
req
).
then
(
res
=>
{
vm
.
POST
(
"stats/report/userAnalysis_pc/"
+
vm
.
radio
,
req
).
then
(
res
=>
{
// closeLoading(vm);
if
(
res
.
code
==
"000000"
)
{
if
(
res
.
code
==
"000000"
)
{
// if(res.data.educationList.length == 0 && res.data.jobTitle.length == 0 ) {
// if(res.data.educationList.length == 0 && res.data.jobTitle.length == 0 ) {
// vm.$message("没有相关数据,请重新选择查询范围");
// vm.$message("没有相关数据,请重新选择查询范围");
...
...
src/views/learning/item-data-all.vue
浏览文件 @
74ea3bb1
...
@@ -82,7 +82,7 @@
...
@@ -82,7 +82,7 @@
</div>
</div>
</div>
</div>
<div
class=
"spacing"
></div>
<div
class=
"spacing"
></div>
<div
class=
"chart-title"
>
证书级别按学历
发
布情况
</div>
<div
class=
"chart-title"
>
证书级别按学历
分
布情况
</div>
<div
class=
"overflow-chart"
>
<div
class=
"overflow-chart"
>
<div
v-if=
"showRecordChart === true"
class=
"chart-recordChart"
>
<div
v-if=
"showRecordChart === true"
class=
"chart-recordChart"
>
<div
class=
"recordChart"
id=
"recordChart"
ref=
"recordChart"
></div>
<div
class=
"recordChart"
id=
"recordChart"
ref=
"recordChart"
></div>
...
@@ -298,7 +298,7 @@
...
@@ -298,7 +298,7 @@
</div>
</div>
</el-table>
</el-table>
</div>
</div>
<div
class=
"chart-remarks"
>
注:
本报表数据来源仅包括有摸底考的课程培训。
</div>
<div
class=
"chart-remarks"
>
注:
成绩=完成项目要求的所有考试平均分(不包含摸底考试)
</div>
<div
class=
"pagination"
>
<div
class=
"pagination"
>
<el-pagination
<el-pagination
class=
"pagination"
class=
"pagination"
...
@@ -531,9 +531,7 @@ export default {
...
@@ -531,9 +531,7 @@ export default {
let
reqInfo
=
{
let
reqInfo
=
{
projectId
:
vm
.
projectId
,
projectId
:
vm
.
projectId
,
};
};
openLoading
(
vm
);
vm
.
GET
(
"stats/region/info"
,
reqInfo
).
then
(
res
=>
{
vm
.
GET
(
"stats/region/info"
,
reqInfo
).
then
(
res
=>
{
closeLoading
(
vm
);
if
(
res
.
code
==
"000000"
)
{
if
(
res
.
code
==
"000000"
)
{
vm
.
certFlag
=
res
.
data
.
certFlag
;
vm
.
certFlag
=
res
.
data
.
certFlag
;
vm
.
containOfficialFlag
=
res
.
data
.
containOfficialFlag
;
vm
.
containOfficialFlag
=
res
.
data
.
containOfficialFlag
;
...
@@ -582,10 +580,7 @@ export default {
...
@@ -582,10 +580,7 @@ export default {
req
.
hospitalIdList
=
[];
req
.
hospitalIdList
=
[];
req
.
hospitalIdList
[
0
]
=
vm
.
hospitalCutList
[
0
].
hospitalId
;
req
.
hospitalIdList
[
0
]
=
vm
.
hospitalCutList
[
0
].
hospitalId
;
}
}
openLoading
(
vm
);
// console.log("0 req", req);
vm
.
POST
(
"stats/report/generalPersonal/"
+
vm
.
tableType
,
req
).
then
(
res
=>
{
vm
.
POST
(
"stats/report/generalPersonal/"
+
vm
.
tableType
,
req
).
then
(
res
=>
{
closeLoading
(
vm
);
if
(
res
.
code
==
"000000"
)
{
if
(
res
.
code
==
"000000"
)
{
if
(
type
!=
1
)
{
if
(
type
!=
1
)
{
vm
.
initCard
(
res
.
data
.
percentData
);
vm
.
initCard
(
res
.
data
.
percentData
);
...
@@ -610,10 +605,7 @@ export default {
...
@@ -610,10 +605,7 @@ export default {
regionId
:
vm
.
formInline
.
region
[
vm
.
formInline
.
region
.
length
-
1
],
regionId
:
vm
.
formInline
.
region
[
vm
.
formInline
.
region
.
length
-
1
],
timeFlag
:
vm
.
formInline
.
timeFlag
,
timeFlag
:
vm
.
formInline
.
timeFlag
,
};
};
openLoading
(
vm
);
// console.log("0 req", req);
vm
.
POST
(
"stats/report/general_pc"
,
req
).
then
(
res
=>
{
vm
.
POST
(
"stats/report/general_pc"
,
req
).
then
(
res
=>
{
closeLoading
(
vm
);
if
(
res
.
code
==
"000000"
)
{
if
(
res
.
code
==
"000000"
)
{
vm
.
initCard
(
res
.
data
.
percentData
);
vm
.
initCard
(
res
.
data
.
percentData
);
if
(
vm
.
certFlag
!==
0
)
{
if
(
vm
.
certFlag
!==
0
)
{
...
@@ -659,12 +651,7 @@ export default {
...
@@ -659,12 +651,7 @@ export default {
pageSize
:
vm
.
formDwmy
.
pageSize
,
pageSize
:
vm
.
formDwmy
.
pageSize
,
};
};
}
}
// openLoading(vm);
// if(req.regionId == '000') {
// req.regionId = '0';
// }
vm
.
POST
(
"stats/dwmy/"
,
req
).
then
(
res
=>
{
vm
.
POST
(
"stats/dwmy/"
,
req
).
then
(
res
=>
{
// closeLoading(vm);
if
(
res
.
code
==
"000000"
)
{
if
(
res
.
code
==
"000000"
)
{
vm
.
tableDateTime
=
res
.
data
.
list
;
vm
.
tableDateTime
=
res
.
data
.
list
;
vm
.
totalCount
=
res
.
data
.
totalCount
;
vm
.
totalCount
=
res
.
data
.
totalCount
;
...
...
src/views/learning/item-examination-analysis.vue
浏览文件 @
74ea3bb1
...
@@ -243,10 +243,7 @@ export default {
...
@@ -243,10 +243,7 @@ export default {
regionId
:
vm
.
formInline
.
region
[
vm
.
formInline
.
region
.
length
-
1
],
regionId
:
vm
.
formInline
.
region
[
vm
.
formInline
.
region
.
length
-
1
],
timeFlag
:
vm
.
formInline
.
timeFlag
timeFlag
:
vm
.
formInline
.
timeFlag
};
};
// console.log("4 req", req);
// openLoading(vm);
vm
.
POST
(
"stats/report/exam"
,
req
).
then
(
res
=>
{
vm
.
POST
(
"stats/report/exam"
,
req
).
then
(
res
=>
{
// closeLoading(vm);
if
(
res
.
code
==
"000000"
)
{
if
(
res
.
code
==
"000000"
)
{
vm
.
examData
=
res
.
data
;
vm
.
examData
=
res
.
data
;
vm
.
setCardData
(
res
.
data
);
vm
.
setCardData
(
res
.
data
);
...
...
src/views/learning/item-learning-effect.vue
浏览文件 @
74ea3bb1
...
@@ -16,7 +16,7 @@
...
@@ -16,7 +16,7 @@
<div
v-if=
"showChartEdu === false"
class=
"empty-img"
>
<div
v-if=
"showChartEdu === false"
class=
"empty-img"
>
<img
src=
"../../assets/image/noData.png"
/>
<img
src=
"../../assets/image/noData.png"
/>
</div>
</div>
<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"
class=
"overflow-chart"
>
<div
v-if=
"showChartLearn === true"
class=
"overflow-chart"
>
...
@@ -25,7 +25,7 @@
...
@@ -25,7 +25,7 @@
<div
v-if=
"showChartLearn === false"
class=
"empty-img"
>
<div
v-if=
"showChartLearn === false"
class=
"empty-img"
>
<img
src=
"../../assets/image/noData.png"
/>
<img
src=
"../../assets/image/noData.png"
/>
</div>
</div>
<div
class=
"chart-remarks"
>
注:本报表数据来源仅
仅
统计同时包含摸底考和正式考的课程培训。
</div>
<div
class=
"chart-remarks"
>
注:本报表数据来源仅统计同时包含摸底考和正式考的课程培训。
</div>
</div>
</div>
</
template
>
</
template
>
...
@@ -106,9 +106,7 @@ export default {
...
@@ -106,9 +106,7 @@ export default {
regionId
:
vm
.
formInline
.
region
[
vm
.
formInline
.
region
.
length
-
1
],
regionId
:
vm
.
formInline
.
region
[
vm
.
formInline
.
region
.
length
-
1
],
timeFlag
:
vm
.
formInline
.
timeFlag
timeFlag
:
vm
.
formInline
.
timeFlag
};
};
// openLoading(vm);
vm
.
POST
(
"stats/report/studyEffect"
,
req
).
then
(
res
=>
{
vm
.
POST
(
"stats/report/studyEffect"
,
req
).
then
(
res
=>
{
// closeLoading(vm);
if
(
res
.
code
==
"000000"
)
{
if
(
res
.
code
==
"000000"
)
{
vm
.
initCard
(
res
.
data
);
vm
.
initCard
(
res
.
data
);
setTimeout
(
function
()
{
setTimeout
(
function
()
{
...
...
src/views/learning/item-list.vue
浏览文件 @
74ea3bb1
...
@@ -428,9 +428,7 @@ export default {
...
@@ -428,9 +428,7 @@ export default {
let
reqInfo
=
{
let
reqInfo
=
{
projectId
:
vm
.
projectId
,
projectId
:
vm
.
projectId
,
};
};
openLoading
(
vm
);
vm
.
GET
(
"stats/region/info"
,
reqInfo
).
then
(
res
=>
{
vm
.
GET
(
"stats/region/info"
,
reqInfo
).
then
(
res
=>
{
// closeLoading(vm);
if
(
res
.
code
==
"000000"
)
{
if
(
res
.
code
==
"000000"
)
{
vm
.
showOriginal
=
res
.
data
.
status
;
vm
.
showOriginal
=
res
.
data
.
status
;
vm
.
roleType
=
res
.
data
.
roleType
;
vm
.
roleType
=
res
.
data
.
roleType
;
...
@@ -592,9 +590,7 @@ export default {
...
@@ -592,9 +590,7 @@ export default {
let
req
=
{
let
req
=
{
projectId
:
vm
.
projectId
,
projectId
:
vm
.
projectId
,
};
};
openLoading
(
vm
);
vm
.
GET
(
"stats/region"
,
req
).
then
(
res
=>
{
vm
.
GET
(
"stats/region"
,
req
).
then
(
res
=>
{
closeLoading
(
vm
);
if
(
res
.
code
==
"000000"
)
{
if
(
res
.
code
==
"000000"
)
{
vm
.
formInline
.
region
=
[];
vm
.
formInline
.
region
=
[];
vm
.
formInline
.
region
[
0
]
=
res
.
data
.
list
[
0
].
id
;
vm
.
formInline
.
region
[
0
]
=
res
.
data
.
list
[
0
].
id
;
...
@@ -627,9 +623,7 @@ export default {
...
@@ -627,9 +623,7 @@ export default {
projectId
:
vm
.
projectId
,
projectId
:
vm
.
projectId
,
regionId
:
regionId
regionId
:
regionId
};
};
openLoading
(
vm
);
vm
.
GET
(
"stats/region/hospital"
,
req
).
then
(
res
=>
{
vm
.
GET
(
"stats/region/hospital"
,
req
).
then
(
res
=>
{
closeLoading
(
vm
);
if
(
res
.
code
==
"000000"
)
{
if
(
res
.
code
==
"000000"
)
{
this
.
organizationList
=
operationData
.
getLearnOrganization
(
this
.
organizationList
=
operationData
.
getLearnOrganization
(
res
.
data
.
list
res
.
data
.
list
...
@@ -862,19 +856,18 @@ export default {
...
@@ -862,19 +856,18 @@ export default {
if
(
element
==
null
)
{
if
(
element
==
null
)
{
return
return
}
}
let
opts
=
{
//
let opts = {
scale
:
window
.
devicePixelRatio
,
// 添加的scale 参数
//
scale:window.devicePixelRatio, // 添加的scale 参数
logging
:
true
,
//日志开关
//
logging: true, //日志开关
width
:
element
.
offsetWidth
,
//dom 原始宽度
//
width:element.offsetWidth, //dom 原始宽度
height
:
element
.
offsetHeight
,
//dom 原始高度
//
height:element.offsetHeight, //dom 原始高度
useCORS
:
true
,
//
useCORS: true,
taintTest
:
true
,
//是否在渲染前测试图片
//
taintTest: true, //是否在渲染前测试图片
dpi
:
300
//
dpi:300
};
//
};
vm
.
showRadio
=
1
;
vm
.
showRadio
=
1
;
console
.
log
(
'导出参数opts'
,
opts
);
setTimeout
(()
=>
{
setTimeout
(()
=>
{
html2Canvas
(
element
,
opts
).
then
(
function
(
canvas
)
{
html2Canvas
(
element
).
then
(
function
(
canvas
)
{
let
contentWidth
=
canvas
.
width
;
let
contentWidth
=
canvas
.
width
;
let
contentHeight
=
canvas
.
height
;
let
contentHeight
=
canvas
.
height
;
...
@@ -888,13 +881,13 @@ export default {
...
@@ -888,13 +881,13 @@ export default {
let
imgWidth
=
595.28
;
let
imgWidth
=
595.28
;
let
imgHeight
=
592.28
/
contentWidth
*
contentHeight
;
let
imgHeight
=
592.28
/
contentWidth
*
contentHeight
;
//
let pageData = canvas.toDataURL('image/jpeg', 1.0);
let
pageData
=
canvas
.
toDataURL
(
'image/jpeg'
,
1.0
);
let
pageData
=
canvas
.
toDataURL
(
'image/png'
);
//
let pageData = canvas.toDataURL('image/png');
let
pdf
=
new
JsPDF
(
''
,
'pt'
,
[
contentWidth
*
0.8
,
contentHeight
*
0.8
]);
let
pdf
=
new
JsPDF
(
''
,
'pt'
,
[
contentWidth
*
0.8
,
contentHeight
*
0.8
]);
//
pdf.addImage(pageData, 'JPEG', 0, position, contentWidth*0.8, contentHeight*0.8)
pdf
.
addImage
(
pageData
,
'JPEG'
,
0
,
position
,
contentWidth
*
0.8
,
contentHeight
*
0.8
)
pdf
.
addImage
(
pageData
,
'PNG'
,
0
,
position
,
contentWidth
*
0.8
,
contentHeight
*
0.8
)
//
pdf.addImage(pageData, 'PNG', 0, position, contentWidth*0.8, contentHeight*0.8)
let
title
=
"导出学情报告"
;
let
title
=
"导出学情报告"
;
pdf
.
save
(
title
+
'.pdf'
);
pdf
.
save
(
title
+
'.pdf'
);
...
...
src/views/learning/report-list.vue
浏览文件 @
74ea3bb1
...
@@ -133,9 +133,9 @@ export default {
...
@@ -133,9 +133,9 @@ export default {
search
()
{
search
()
{
let
req
=
{};
let
req
=
{};
req
=
this
.
formData
;
req
=
this
.
formData
;
openLoading
(
vm
);
vm
.
GET
(
"portal/portalInfo/getPortalReportProject"
,
req
).
then
(
res
=>
{
vm
.
GET
(
"portal/portalInfo/getPortalReportProject"
,
req
).
then
(
res
=>
{
closeLoading
(
vm
);
if
(
res
.
code
==
"000000"
)
{
if
(
res
.
code
==
"000000"
)
{
if
(
res
.
data
.
totalRows
==
0
)
{
if
(
res
.
data
.
totalRows
==
0
)
{
vm
.
$message
(
"没有找到符合的结果"
);
vm
.
$message
(
"没有找到符合的结果"
);
...
...
写
预览
Markdown
格式
0%
请重试
or
附加一个文件
附加文件
取消
您添加了
0
人
到此讨论。请谨慎行事。
先完成此消息的编辑!
取消
想要评论请
注册
或
登录