Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
提交反馈
为 GitLab 提交贡献
登录
切换导航
P
pica.cloud.web-education-admin
项目
项目
详情
动态
版本
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
成员
成员
收起侧边栏
Close sidebar
动态
分支图
统计图
提交
打开侧边栏
com.pica.cloud.education.frontend
pica.cloud.web-education-admin
提交
c6e1e30c
提交
c6e1e30c
编写于
4月 28, 2020
作者:
haochangdi
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
优化学情报告的显示
上级
634f91bb
变更
3
隐藏空白字符变更
内嵌
并排
正在显示
3 个修改的文件
包含
93 行增加
和
21 行删除
+93
-21
fetch.js
src/utils/fetch.js
+1
-1
filter.js
src/utils/filter.js
+7
-0
item-data-all.vue
src/views/learning/item-data-all.vue
+85
-20
未找到文件。
src/utils/fetch.js
浏览文件 @
c6e1e30c
...
@@ -55,7 +55,7 @@ service.interceptors.request.use(config => {
...
@@ -55,7 +55,7 @@ service.interceptors.request.use(config => {
if
(
process
.
env
.
BUILD_ENV
==
"development"
){
// 本地开发环境
if
(
process
.
env
.
BUILD_ENV
==
"development"
){
// 本地开发环境
// console.log('环境变量>>>> ', process.env.BUILD_ENV);
// console.log('环境变量>>>> ', process.env.BUILD_ENV);
// config.headers['token'] = '29D71EAAB92E4580AFB16A8011BE7206';
// config.headers['token'] = '29D71EAAB92E4580AFB16A8011BE7206';
config
.
headers
[
'token'
]
=
'
83C6DADDC9804239B226D5C86F156D58
'
;
config
.
headers
[
'token'
]
=
'
EE215844495047A0ABFE62DEBF6D9CBA
'
;
// config.headers['token'] = localStorage.getItem('storageToken')
// config.headers['token'] = localStorage.getItem('storageToken')
}
else
{
}
else
{
config
.
headers
[
'token'
]
=
localStorage
.
getItem
(
'storageToken'
)
config
.
headers
[
'token'
]
=
localStorage
.
getItem
(
'storageToken'
)
...
...
src/utils/filter.js
浏览文件 @
c6e1e30c
...
@@ -430,6 +430,13 @@ const vueFilter = {
...
@@ -430,6 +430,13 @@ const vueFilter = {
}
else
if
(
value
==
1
)
{
}
else
if
(
value
==
1
)
{
return
'已开通'
;
return
'已开通'
;
}
}
},
replaceStr
:
(
value
)
=>
{
if
(
value
===
''
||
value
===
null
)
{
return
'一'
}
else
{
return
value
}
}
}
}
}
export
default
vueFilter
export
default
vueFilter
\ No newline at end of file
src/views/learning/item-data-all.vue
浏览文件 @
c6e1e30c
...
@@ -35,17 +35,54 @@
...
@@ -35,17 +35,54 @@
</el-radio-group>
</el-radio-group>
<div
v-if=
"showRadioValue === 1"
class=
"change-radio"
>
{{
changeRadio
[
checkTime
]
}}
</div>
<div
v-if=
"showRadioValue === 1"
class=
"change-radio"
>
{{
changeRadio
[
checkTime
]
}}
</div>
<el-table
:data=
"tableDateTime"
style=
"width: 100%"
>
<el-table
:data=
"tableDateTime"
style=
"width: 100%"
>
<el-table-column
prop=
"date"
label=
"日期"
align=
"center"
min-width=
"100"
></el-table-column>
<el-table-column
prop=
"date"
label=
"日期"
align=
"center"
min-width=
"100"
>
<el-table-column
prop=
"hospitalCount"
label=
"应参与机构数"
align=
"center"
></el-table-column>
</el-table-column>
<el-table-column
prop=
"hospitalJoinCount"
label=
"已参与机构数"
align=
"center"
></el-table-column>
<el-table-column
prop=
"hospitalCount"
label=
"应参与机构数"
align=
"center"
>
<el-table-column
prop=
"doctorCount"
label=
"应参与人数"
align=
"center"
></el-table-column>
<template
slot-scope=
"scope"
>
<el-table-column
prop=
"doctorJoinCount"
label=
"已参与人数"
align=
"center"
></el-table-column>
<span>
{{
scope
.
row
.
hospitalCount
|
replaceStr
}}
</span>
<el-table-column
prop=
"finishCount"
:label=
"finishCountLabel"
align=
"center"
></el-table-column>
</
template
>
</el-table-column>
<el-table-column
prop=
"hospitalJoinCount"
label=
"已参与机构数"
align=
"center"
>
<
template
slot-scope=
"scope"
>
<span>
{{
scope
.
row
.
hospitalJoinCount
|
replaceStr
}}
</span>
</
template
>
</el-table-column>
<el-table-column
prop=
"doctorCount"
label=
"应参与人数"
align=
"center"
>
<
template
slot-scope=
"scope"
>
<span>
{{
scope
.
row
.
doctorCount
|
replaceStr
}}
</span>
</
template
>
</el-table-column>
<el-table-column
prop=
"doctorJoinCount"
label=
"已参与人数"
align=
"center"
>
<
template
slot-scope=
"scope"
>
<span>
{{
scope
.
row
.
doctorJoinCount
|
replaceStr
}}
</span>
</
template
>
</el-table-column>
<el-table-column
prop=
"finishCount"
:label=
"finishCountLabel"
align=
"center"
>
<
template
slot-scope=
"scope"
>
<span>
{{
scope
.
row
.
finishCount
|
replaceStr
}}
</span>
</
template
>
</el-table-column>
<el-table-column
v-if=
"gradeFlag[0] == true"
prop=
"grade1Count"
label=
"优秀"
align=
"center"
></el-table-column>
<el-table-column
v-if=
"gradeFlag[0] == true"
prop=
"grade1Count"
label=
"优秀"
align=
"center"
>
<el-table-column
v-if=
"gradeFlag[1] == true"
prop=
"grade2Count"
label=
"良好"
align=
"center"
></el-table-column>
<
template
slot-scope=
"scope"
>
<el-table-column
v-if=
"gradeFlag[2] == true"
prop=
"grade3Count"
label=
"及格"
align=
"center"
></el-table-column>
<span>
{{
scope
.
row
.
grade1Count
|
replaceStr
}}
</span>
<el-table-column
v-if=
"gradeFlag[3] == true"
prop=
"grade4Count"
label=
"不及格"
align=
"center"
></el-table-column>
</
template
>
</el-table-column>
<el-table-column
v-if=
"gradeFlag[1] == true"
prop=
"grade2Count"
label=
"良好"
align=
"center"
>
<
template
slot-scope=
"scope"
>
<span>
{{
scope
.
row
.
grade2Count
|
replaceStr
}}
</span>
</
template
>
</el-table-column>
<el-table-column
v-if=
"gradeFlag[2] == true"
prop=
"grade3Count"
label=
"及格"
align=
"center"
>
<
template
slot-scope=
"scope"
>
<span>
{{
scope
.
row
.
grade3Count
|
replaceStr
}}
</span>
</
template
>
</el-table-column>
<el-table-column
v-if=
"gradeFlag[3] == true"
prop=
"grade4Count"
label=
"不及格"
align=
"center"
>
<
template
slot-scope=
"scope"
>
<span>
{{
scope
.
row
.
grade4Count
|
replaceStr
}}
</span>
</
template
>
</el-table-column>
<div
slot=
"empty"
>
<div
slot=
"empty"
>
<div
class=
"table-empty"
>
<div
class=
"table-empty"
>
<img
src=
"../../assets/image/noData.png"
/>
<img
src=
"../../assets/image/noData.png"
/>
...
@@ -58,7 +95,7 @@
...
@@ -58,7 +95,7 @@
@
size-change=
"handleSizeDwmy"
@
size-change=
"handleSizeDwmy"
@
current-change=
"handleCurrentDwmy"
@
current-change=
"handleCurrentDwmy"
:current-page=
"formDwmy.pageNo"
:current-page=
"formDwmy.pageNo"
:page-sizes=
"[
20, 30, 100 ,20
0]"
:page-sizes=
"[
1
0]"
:page-size=
"formDwmy.pageSize"
:page-size=
"formDwmy.pageSize"
layout=
"total, sizes, prev, pager, next, jumper"
layout=
"total, sizes, prev, pager, next, jumper"
:total=
"totalCount"
:total=
"totalCount"
...
@@ -162,14 +199,42 @@
...
@@ -162,14 +199,42 @@
<div
v-if=
"showRadioValue === 1"
class=
"change-radio"
>
{{ changeRadio[checkTime] }}
</div>
<div
v-if=
"showRadioValue === 1"
class=
"change-radio"
>
{{ changeRadio[checkTime] }}
</div>
<el-table
:data=
"tableDateTime"
style=
"width: 100%"
>
<el-table
:data=
"tableDateTime"
style=
"width: 100%"
>
<el-table-column
prop=
"date"
label=
"日期"
align=
"center"
min-width=
"100"
></el-table-column>
<el-table-column
prop=
"date"
label=
"日期"
align=
"center"
min-width=
"100"
></el-table-column>
<el-table-column
prop=
"doctorCount"
label=
"应参与人数"
align=
"center"
></el-table-column>
<el-table-column
prop=
"doctorCount"
label=
"应参与人数"
align=
"center"
>
<el-table-column
prop=
"doctorJoinCount"
label=
"已参与人数"
align=
"center"
></el-table-column>
<
template
slot-scope=
"scope"
>
<el-table-column
prop=
"finishCount"
:label=
"finishCountLabel"
align=
"center"
></el-table-column>
<span>
{{
scope
.
row
.
doctorCount
|
replaceStr
}}
</span>
</
template
>
</el-table-column>
<el-table-column
prop=
"doctorJoinCount"
label=
"已参与人数"
align=
"center"
>
<
template
slot-scope=
"scope"
>
<span>
{{
scope
.
row
.
doctorJoinCount
|
replaceStr
}}
</span>
</
template
>
</el-table-column>
<el-table-column
prop=
"finishCount"
:label=
"finishCountLabel"
align=
"center"
>
<
template
slot-scope=
"scope"
>
<span>
{{
scope
.
row
.
finishCount
|
replaceStr
}}
</span>
</
template
>
</el-table-column>
<el-table-column
v-if=
"gradeFlag[0] == true"
prop=
"grade1Count"
label=
"优秀"
align=
"center"
></el-table-column>
<el-table-column
v-if=
"gradeFlag[0] == true"
prop=
"grade1Count"
label=
"优秀"
align=
"center"
>
<el-table-column
v-if=
"gradeFlag[1] == true"
prop=
"grade2Count"
label=
"良好"
align=
"center"
></el-table-column>
<
template
slot-scope=
"scope"
>
<el-table-column
v-if=
"gradeFlag[2] == true"
prop=
"grade3Count"
label=
"及格"
align=
"center"
></el-table-column>
<span>
{{
scope
.
row
.
grade1Count
|
replaceStr
}}
</span>
<el-table-column
v-if=
"gradeFlag[3] == true"
prop=
"grade4Count"
label=
"不及格"
align=
"center"
></el-table-column>
</
template
>
</el-table-column>
<el-table-column
v-if=
"gradeFlag[1] == true"
prop=
"grade2Count"
label=
"良好"
align=
"center"
>
<
template
slot-scope=
"scope"
>
<span>
{{
scope
.
row
.
grade2Count
|
replaceStr
}}
</span>
</
template
>
</el-table-column>
<el-table-column
v-if=
"gradeFlag[2] == true"
prop=
"grade3Count"
label=
"及格"
align=
"center"
>
<
template
slot-scope=
"scope"
>
<span>
{{
scope
.
row
.
grade3Count
|
replaceStr
}}
</span>
</
template
>
</el-table-column>
<el-table-column
v-if=
"gradeFlag[3] == true"
prop=
"grade4Count"
label=
"不及格"
align=
"center"
>
<
template
slot-scope=
"scope"
>
<span>
{{
scope
.
row
.
grade4Count
|
replaceStr
}}
</span>
</
template
>
</el-table-column>
<div
slot=
"empty"
>
<div
slot=
"empty"
>
<div
class=
"table-empty"
>
<div
class=
"table-empty"
>
<img
src=
"../../assets/image/noData.png"
/>
<img
src=
"../../assets/image/noData.png"
/>
...
@@ -182,7 +247,7 @@
...
@@ -182,7 +247,7 @@
@
size-change=
"handleSizeDwmy"
@
size-change=
"handleSizeDwmy"
@
current-change=
"handleCurrentDwmy"
@
current-change=
"handleCurrentDwmy"
:current-page=
"formDwmy.pageNo"
:current-page=
"formDwmy.pageNo"
:page-sizes=
"[
20, 30, 100 ,20
0]"
:page-sizes=
"[
1
0]"
:page-size=
"formDwmy.pageSize"
:page-size=
"formDwmy.pageSize"
layout=
"total, sizes, prev, pager, next, jumper"
layout=
"total, sizes, prev, pager, next, jumper"
:total=
"totalCount"
:total=
"totalCount"
...
@@ -383,7 +448,7 @@ export default {
...
@@ -383,7 +448,7 @@ export default {
totalRows
:
0
,
totalRows
:
0
,
formDwmy
:
{
formDwmy
:
{
pageNo
:
1
,
pageNo
:
1
,
pageSize
:
2
0
,
pageSize
:
1
0
,
},
},
formTable
:
{
formTable
:
{
pageNo
:
1
,
pageNo
:
1
,
...
...
写
预览
Markdown
格式
0%
请重试
or
附加一个文件
附加文件
取消
您添加了
0
人
到此讨论。请谨慎行事。
先完成此消息的编辑!
取消
想要评论请
注册
或
登录