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
提交
051b2cef
提交
051b2cef
编写于
12月 11, 2019
作者:
guangjun.yang
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
修改两个页面的逻辑
上级
aba432d7
变更
4
隐藏空白字符变更
内嵌
并排
正在显示
4 个修改的文件
包含
160 行增加
和
132 行删除
+160
-132
org-doctor-list.vue
components/bussiness/org-doctor-list.vue
+20
-9
examscore.vue
pages/examscore.vue
+70
-70
examtimes.vue
pages/examtimes.vue
+68
-51
index.vue
pages/index.vue
+2
-2
未找到文件。
components/bussiness/org-doctor-list.vue
浏览文件 @
051b2cef
...
...
@@ -8,23 +8,21 @@
</ul>
<ul
v-show=
"cIndex === 0"
class=
"list"
>
<li
v-for=
"(item, index) in certUserList"
:key=
"index"
>
<span>
{{
item
.
doctor
Name
}}
</span>
<span>
{{
item
.
departmen
tName
}}
</span>
<span>
成绩
{{
item
.
score
}}
分
</span>
<span>
{{
(
item
.
doctorName
||
'- '
)
|
short
Name
}}
</span>
<span>
{{
(
item
.
departmentName
||
'- '
)
|
shor
tName
}}
</span>
<span>
成绩
{{
item
.
score
||
'- '
}}
分
</span>
</li>
</ul>
<ul
v-show=
"cIndex === 1"
class=
"list"
>
<li
v-for=
"(item, index) in noCertUserList"
:key=
"index"
>
<span>
{{
item
.
doctorName
}}
</span>
<span>
{{
item
.
departmentName
}}
</span>
<!--
<span>
成绩
{{
item
.
score
}}
分
</span>
-->
<span>
{{
(
item
.
doctorName
||
'- '
)
|
shortName
}}
</span>
<span>
{{
(
item
.
departmentName
||
'- '
)
|
shortName
}}
</span>
</li>
</ul>
<ul
v-show=
"cIndex === 2"
class=
"list"
>
<li
v-for=
"(item, index) in noJoinList"
:key=
"index"
>
<span>
{{
item
.
doctorName
}}
</span>
<span>
{{
item
.
departmentName
}}
</span>
<!--
<span>
成绩
{{
item
.
score
}}
分
</span>
-->
<span>
{{
(
item
.
doctorName
||
'- '
)
|
shortName
}}
</span>
<span>
{{
(
item
.
departmentName
||
'- '
)
|
shortName
}}
</span>
</li>
</ul>
<NoContent
v-show=
"((cIndex === 0 && !certUserList.length) || (cIndex === 1 && !noCertUserList.length) || (cIndex === 2 && !noJoinList.length))"
></NoContent>
...
...
@@ -70,6 +68,15 @@ export default {
this
.
cIndex
=
newVal
;
}
},
filters
:
{
shortName
:
function
(
value
,
length
=
5
,
append
=
'...'
)
{
if
(
value
&&
value
.
length
>
length
)
{
return
value
.
substring
(
0
,
length
)
+
append
}
else
{
return
value
}
},
},
methods
:
{
tabClick
(
index
)
{
this
.
cIndex
=
index
;
...
...
@@ -125,6 +132,10 @@ export default {
// flex: 1;
text-align
:
center
;
font-weight
:
400
;
color
:
#676869
;
}
span
:first-child
{
font-weight
:
700
;
color
:
#373839
;
}
}
...
...
pages/examscore.vue
浏览文件 @
051b2cef
...
...
@@ -20,28 +20,28 @@ import ExamScoreList from "@/components/bussiness/exam-score-list";
export
default
{
data
()
{
return
{
//
title: "共0条数据",
title
:
"共0条数据"
,
needRightBtn
:
true
,
token
:
""
,
//
//
查询概况数据
//
queryGDParams: {
//
appSelectType: 2,
//
beginDate: "",
//
endDate: "",
//
hospitalIdList: [],
//
originalFlag: 1, // 默认值0:0不查看原始数据
//
projectId: 374,
//
regionId: "",
//
timeFlag: 1,
//
pageNo: 0,
//
pageSize: 0,
//
sourceType: 1,
//
pageCfg: {
//
type: 1
//
}
//
},
//
allData: {},
//
dataList: [],
// 查询概况数据
queryGDParams
:
{
appSelectType
:
2
,
beginDate
:
""
,
endDate
:
""
,
hospitalIdList
:
[],
originalFlag
:
1
,
// 默认值0:0不查看原始数据
projectId
:
374
,
regionId
:
""
,
timeFlag
:
1
,
pageNo
:
0
,
pageSize
:
0
,
sourceType
:
1
,
pageCfg
:
{
type
:
1
}
},
allData
:
{},
dataList
:
[],
dropdownList
:
[{
desc
:
'1分'
,
type
:
1
...
...
@@ -61,63 +61,63 @@ export default {
CommonNoMore
,
ExamScoreList
},
async
asyncData
(
{
query
}
)
{
let
queryGDParams
=
{
appSelectType
:
2
,
beginDate
:
""
,
endDate
:
""
,
hospitalIdList
:
[],
originalFlag
:
1
,
// 默认值0:0不查看原始数据
projectId
:
374
,
regionId
:
""
,
timeFlag
:
1
,
pageNo
:
0
,
pageSize
:
0
,
sourceType
:
1
,
pageCfg
:
{
type
:
1
// async asyncData( { query } ) {
// let queryGDParams = {
// appSelectType: 2,
// beginDate: "",
// endDate: "",
// hospitalIdList: [],
// originalFlag: 1, // 默认值0:0不查看原始数据
// projectId: 374,
// regionId: "",
// timeFlag: 1,
// pageNo: 0,
// pageSize: 0,
// sourceType: 1,
// pageCfg: {
// type: 1
// }
// };
// let hospitalIdList = query.hospitalIdList || ''
// queryGDParams.projectId = query.projectId || '';
// queryGDParams.regionId = query.regionId || '';
// queryGDParams.hospitalIdList = hospitalIdList && hospitalIdList.split(',') || [];
// cookies.set("token", query.token || '');
// let examData = await getGeneralExam(queryGDParams);
// console.log(examData);
// return {
// allData: examData.data,
// dataList: examData.data && examData.data.examScoreList || [],
// title: `共${examData.data && examData.data.examScoreList && examData.data.examScoreList.length || 0}条数据`
// }
// },
created
()
{
if
(
process
.
client
)
{
if
(
this
.
$route
&&
this
.
$route
.
query
)
{
let
cQuery
=
this
.
$route
.
query
this
.
queryGDParams
.
projectId
=
cQuery
.
projectId
||
''
;
this
.
queryGDParams
.
regionId
=
cQuery
.
regionId
||
''
;
let
hospitalIdList
=
cQuery
.
hospitalIdList
||
''
this
.
queryGDParams
.
hospitalIdList
=
hospitalIdList
&&
hospitalIdList
.
split
(
','
)
||
[];
cookies
.
set
(
"token"
,
cQuery
.
token
||
''
);
this
.
getGeneralExam
(
this
.
queryGDParams
);
}
};
let
hospitalIdList
=
query
.
hospitalIdList
||
''
queryGDParams
.
projectId
=
query
.
projectId
||
''
;
queryGDParams
.
regionId
=
query
.
regionId
||
''
;
queryGDParams
.
hospitalIdList
=
hospitalIdList
&&
hospitalIdList
.
split
(
','
)
||
[];
cookies
.
set
(
"token"
,
query
.
token
||
''
);
let
examData
=
await
getGeneralExam
(
queryGDParams
);
console
.
log
(
examData
);
return
{
allData
:
examData
.
data
,
dataList
:
examData
.
data
&&
examData
.
data
.
examScoreList
||
[],
title
:
`共
${
examData
.
data
&&
examData
.
data
.
examScoreList
&&
examData
.
data
.
examScoreList
.
length
||
0
}
条数据`
}
},
created
()
{
// if (process.client) {
// if(this.$route && this.$route.query) {
// let cQuery = this.$route.query
// this.queryGDParams.projectId = cQuery.projectId || '';
// this.queryGDParams.regionId = cQuery.regionId || '';
// let hospitalIdList = cQuery.hospitalIdList || ''
// this.queryGDParams.hospitalIdList = hospitalIdList && hospitalIdList.split(',') || [];
// cookies.set("token", cQuery.token || '');
// this.getGeneralExam(this.queryGDParams);
// }
// }
},
mounted
()
{
},
methods
:
{
//
//
考试分析
//
async getGeneralExam(queryData) {
//
await getGeneralExam(queryData).then(res => {
//
if (res.code === "000000") {
//
this.allData = res.data;
//
this.dataList = res.data.examScoreList;
//
this.title = `共${this.dataList.length}条数据`;
//
}
//
});
//
},
// 考试分析
async
getGeneralExam
(
queryData
)
{
await
getGeneralExam
(
queryData
).
then
(
res
=>
{
if
(
res
.
code
===
"000000"
)
{
this
.
allData
=
res
.
data
;
this
.
dataList
=
res
.
data
.
examScoreList
;
this
.
title
=
`共
${
this
.
dataList
.
length
}
条数据`
;
}
});
},
selectSortItem
(
type
)
{
if
(
type
==
1
)
{
this
.
dataList
=
this
.
allData
.
examScoreList
||
[];
...
...
pages/examtimes.vue
浏览文件 @
051b2cef
...
...
@@ -18,10 +18,27 @@ import ExamTimesList from "@/components/bussiness/exam-times-list";
export
default
{
data
()
{
return
{
//
title: "共0条数据",
title
:
"共0条数据"
,
needRightBtn
:
false
,
token
:
""
,
// dataList: []
// 查询概况数据
queryGDParams
:
{
appSelectType
:
1
,
beginDate
:
""
,
endDate
:
""
,
hospitalIdList
:
[],
originalFlag
:
1
,
// 默认值0:0不查看原始数据
projectId
:
374
,
regionId
:
""
,
timeFlag
:
1
,
pageNo
:
0
,
pageSize
:
0
,
sourceType
:
1
,
pageCfg
:
{
type
:
1
}
},
dataList
:
[]
};
},
components
:
{
...
...
@@ -30,63 +47,63 @@ export default {
CommonNoMore
,
ExamTimesList
},
async
asyncData
(
{
query
}
)
{
let
queryGDParams
=
{
appSelectType
:
1
,
beginDate
:
""
,
endDate
:
""
,
hospitalIdList
:
[],
originalFlag
:
1
,
// 默认值0:0不查看原始数据
projectId
:
374
,
regionId
:
""
,
timeFlag
:
1
,
pageNo
:
0
,
pageSize
:
0
,
sourceType
:
1
,
pageCfg
:
{
type
:
1
}
};
let
hospitalIdList
=
query
.
hospitalIdList
||
''
queryGDParams
.
projectId
=
query
.
projectId
||
''
;
queryGDParams
.
regionId
=
query
.
regionId
||
''
;
queryGDParams
.
hospitalIdList
=
hospitalIdList
&&
hospitalIdList
.
split
(
','
)
||
[];
cookies
.
set
(
"token"
,
query
.
token
||
''
);
let
examData
=
await
getGeneralExam
(
queryGDParams
);
//
async asyncData( { query } ) {
//
let queryGDParams = {
//
appSelectType: 1,
//
beginDate: "",
//
endDate: "",
//
hospitalIdList: [],
//
originalFlag: 1, // 默认值0:0不查看原始数据
//
projectId: 374,
//
regionId: "",
//
timeFlag: 1,
//
pageNo: 0,
//
pageSize: 0,
//
sourceType: 1,
//
pageCfg: {
//
type: 1
//
}
//
};
//
let hospitalIdList = query.hospitalIdList || ''
//
queryGDParams.projectId = query.projectId || '';
//
queryGDParams.regionId = query.regionId || '';
//
queryGDParams.hospitalIdList = hospitalIdList && hospitalIdList.split(',') || [];
//
cookies.set("token", query.token || '');
//
let examData = await getGeneralExam(queryGDParams);
console
.
log
(
examData
);
return
{
dataList
:
examData
.
data
&&
examData
.
data
.
examTimesList
,
title
:
`共
${(
examData
.
data
&&
examData
.
data
.
examTimesList
&&
examData
.
data
.
examTimesList
.
length
)
||
0
}
条数据`
}
},
//
console.log(examData);
//
return {
//
dataList: examData.data && examData.data.examTimesList,
//
title: `共${(examData.data && examData.data.examTimesList && examData.data.examTimesList.length) || 0}条数据`
//
}
//
},
created
()
{
//
if (process.client) {
//
if(this.$route && this.$route.query) {
//
let cQuery = this.$route.query
//
let hospitalIdList = cQuery.hospitalIdList || ''
//
this.queryGDParams.projectId = cQuery.projectId || '';
//
this.queryGDParams.regionId = cQuery.regionId || '';
//
this.queryGDParams.hospitalIdList = hospitalIdList && hospitalIdList.split(',') || [];
//
cookies.set("token", cQuery.token || '');
//
this.getGeneralExam(this.queryGDParams);
//
}
//
}
if
(
process
.
client
)
{
if
(
this
.
$route
&&
this
.
$route
.
query
)
{
let
cQuery
=
this
.
$route
.
query
let
hospitalIdList
=
cQuery
.
hospitalIdList
||
''
this
.
queryGDParams
.
projectId
=
cQuery
.
projectId
||
''
;
this
.
queryGDParams
.
regionId
=
cQuery
.
regionId
||
''
;
this
.
queryGDParams
.
hospitalIdList
=
hospitalIdList
&&
hospitalIdList
.
split
(
','
)
||
[];
cookies
.
set
(
"token"
,
cQuery
.
token
||
''
);
this
.
getGeneralExam
(
this
.
queryGDParams
);
}
}
},
mounted
()
{
},
methods
:
{
//
//
考试分析
//
async getGeneralExam(queryData) {
//
await getGeneralExam(queryData).then(res => {
//
if (res.code === "000000") {
//
this.dataList = res.data.examTimesList;
//
this.title = `共${this.dataList.length}条数据`
//
}
//
});
//
},
// 考试分析
async
getGeneralExam
(
queryData
)
{
await
getGeneralExam
(
queryData
).
then
(
res
=>
{
if
(
res
.
code
===
"000000"
)
{
this
.
dataList
=
res
.
data
.
examTimesList
;
this
.
title
=
`共
${
this
.
dataList
.
length
}
条数据`
}
});
},
}
};
</
script
>
...
...
pages/index.vue
浏览文件 @
051b2cef
...
...
@@ -70,7 +70,7 @@
<CommonSplitLine></CommonSplitLine>
<CommonTitle
title=
"完成项目考试次数情况"
></CommonTitle>
<ChartColumnVerticalTimes
:dataList=
"generalExamData.examTimesList"
id=
"chartCourseTimesId"
:colors=
"colors"
></ChartColumnVerticalTimes>
<ShowAll
@
action=
"gotoPage('/examtimes')"
class=
"mt-10"
></ShowAll>
<ShowAll
v-show=
"generalExamData && generalExamData.examTimesList.length > 5"
@
action=
"gotoPage('/examtimes')"
class=
"mt-10"
></ShowAll>
<CommonSplitLine></CommonSplitLine>
<CommonTitle
title=
"完成项目考试分数情况"
></CommonTitle>
<ChartColumnVerticalScore
id=
"chartCourseScoreId"
:dataList=
"generalExamData.examScoreList"
></ChartColumnVerticalScore>
...
...
@@ -219,7 +219,7 @@ export default {
allData
:
{},
projectId
:
""
,
token
:
"
11B8076631AE45999D350EC08A7E66AE
"
||
"
93650BA5D0BB4D8B97E9C75859B54495
"
||
"A220943B006347799F277CC524EBB662"
||
"B10441890E2940499621C76667675B2D"
||
// "17B31C94D44947829097A953BC7C2732" ||
...
...
写
预览
Markdown
格式
0%
请重试
or
附加一个文件
附加文件
取消
您添加了
0
人
到此讨论。请谨慎行事。
先完成此消息的编辑!
取消
想要评论请
注册
或
登录