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
提交
d307d61d
提交
d307d61d
编写于
1月 06, 2020
作者:
guangjun.yang
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
1、接口超时提示优化
2、所有页面增加加载loading 3、部分样式优化
上级
e43dc65e
变更
13
展开全部
隐藏空白字符变更
内嵌
并排
正在显示
13 个修改的文件
包含
89 行增加
和
763 行删除
+89
-763
pop-tips.vue
components/bussiness/pop-tips.vue
+3
-3
common-loading.vue
components/common/common-loading.vue
+6
-6
common-title-mini.vue
components/common/common-title-mini.vue
+1
-1
common-title-with-dropdown.vue
components/common/common-title-with-dropdown.vue
+1
-1
examscore.vue
pages/examscore.vue
+12
-8
examtimes.vue
pages/examtimes.vue
+12
-8
index-old.vue
pages/index-old.vue
+0
-709
index.vue
pages/index.vue
+7
-0
klgpoint.vue
pages/klgpoint.vue
+11
-6
rankdays.vue
pages/rankdays.vue
+14
-9
rankedu.vue
pages/rankedu.vue
+12
-7
api.js
service/api.js
+8
-4
enumerate.js
utils/enumerate.js
+2
-1
未找到文件。
components/bussiness/pop-tips.vue
浏览文件 @
d307d61d
...
@@ -59,20 +59,20 @@ export default {
...
@@ -59,20 +59,20 @@ export default {
height
:
100%
;
height
:
100%
;
left
:
0
;
left
:
0
;
top
:
0
;
top
:
0
;
z-index
:
100000001
5
;
z-index
:
100000001
7
;
font-size
:
20px
;
font-size
:
20px
;
.mask
{
.mask
{
position
:
absolute
;
position
:
absolute
;
background
:
rgba
(
0
,
0
,
0
,
0
.5
);
background
:
rgba
(
0
,
0
,
0
,
0
.5
);
width
:
100%
;
width
:
100%
;
height
:
100%
;
height
:
100%
;
z-index
:
100000001
6
;
z-index
:
100000001
8
;
}
}
.content
{
.content
{
position
:
absolute
;
position
:
absolute
;
left
:
50%
;
left
:
50%
;
top
:
50%
;
top
:
50%
;
z-index
:
100000001
7
;
z-index
:
100000001
9
;
width
:
300px
;
width
:
300px
;
// height: 185px;
// height: 185px;
margin
:
-150px
0
0
-150px
;
margin
:
-150px
0
0
-150px
;
...
...
components/common/common-loading.vue
浏览文件 @
d307d61d
...
@@ -34,20 +34,20 @@
...
@@ -34,20 +34,20 @@
<
style
lang=
"scss"
scoped
>
<
style
lang=
"scss"
scoped
>
.common-loader
{
.common-loader
{
&
-mask
{
.loader
-mask
{
position
:
fixed
;
position
:
fixed
;
top
:
0
;
top
:
0
;
left
:
0
;
left
:
0
;
bottom
:
0
;
bottom
:
0
;
right
:
0
;
right
:
0
;
z-index
:
100
;
z-index
:
100
0000020
;
background
:
rgba
(
0
,
0
,
0
,
0
.
5
);
background
:
rgba
(
0
,
0
,
0
,
0
.
1
);
}
}
svg
{
svg
{
position
:
absolute
;
position
:
fixed
;
top
:
28
0px
;
top
:
30
0px
;
left
:
172px
;
left
:
172px
;
z-index
:
101
;
z-index
:
10
0000002
1
;
}
}
}
}
...
...
components/common/common-title-mini.vue
浏览文件 @
d307d61d
...
@@ -22,7 +22,7 @@ export default {
...
@@ -22,7 +22,7 @@ export default {
position
:
fixed
;
position
:
fixed
;
width
:
100%
;
width
:
100%
;
left
:
0
;
left
:
0
;
top
:
7
4
px
;
top
:
7
3
px
;
z-index
:
1
;
z-index
:
1
;
height
:
44px
;
height
:
44px
;
line-height
:
44px
;
line-height
:
44px
;
...
...
components/common/common-title-with-dropdown.vue
浏览文件 @
d307d61d
...
@@ -59,7 +59,7 @@ export default {
...
@@ -59,7 +59,7 @@ export default {
position
:
fixed
;
position
:
fixed
;
width
:
100%
;
width
:
100%
;
left
:
0
;
left
:
0
;
top
:
7
4
px
;
top
:
7
3
px
;
z-index
:
1001
;
z-index
:
1001
;
height
:
44px
;
height
:
44px
;
line-height
:
44px
;
line-height
:
44px
;
...
...
pages/examscore.vue
浏览文件 @
d307d61d
...
@@ -4,6 +4,7 @@
...
@@ -4,6 +4,7 @@
<CommonTitleWithDropdown
:dataList=
"dropdownList"
:title=
"title"
:needRightBtn=
"needRightBtn"
@
selectSortItem=
"selectSortItem"
></CommonTitleWithDropdown>
<CommonTitleWithDropdown
:dataList=
"dropdownList"
:title=
"title"
:needRightBtn=
"needRightBtn"
@
selectSortItem=
"selectSortItem"
></CommonTitleWithDropdown>
<ExamScoreList
class=
"pdt-50"
:dataList=
"dataList"
></ExamScoreList>
<ExamScoreList
class=
"pdt-50"
:dataList=
"dataList"
></ExamScoreList>
<CommonNoMore
v-if=
"dataList.length >= 10"
class=
"mt-10"
></CommonNoMore>
<CommonNoMore
v-if=
"dataList.length >= 10"
class=
"mt-10"
></CommonNoMore>
<Loading
v-show=
"isShowLoading"
></Loading>
</section>
</section>
</
template
>
</
template
>
<
script
>
<
script
>
...
@@ -14,10 +15,19 @@ import CommonHeader from "@/components/common/common-header";
...
@@ -14,10 +15,19 @@ import CommonHeader from "@/components/common/common-header";
import
CommonTitleWithDropdown
from
"@/components/common/common-title-with-dropdown"
;
import
CommonTitleWithDropdown
from
"@/components/common/common-title-with-dropdown"
;
import
CommonNoMore
from
"@/components/common/common-no-more"
;
import
CommonNoMore
from
"@/components/common/common-no-more"
;
import
ExamScoreList
from
"@/components/bussiness/exam-score-list"
;
import
ExamScoreList
from
"@/components/bussiness/exam-score-list"
;
import
Loading
from
"@/components/common/common-loading"
;
export
default
{
export
default
{
components
:
{
CommonHeader
,
CommonTitleWithDropdown
,
CommonNoMore
,
ExamScoreList
,
Loading
},
data
()
{
data
()
{
return
{
return
{
isShowLoading
:
true
,
title
:
"共0条数据"
,
title
:
"共0条数据"
,
needRightBtn
:
true
,
needRightBtn
:
true
,
token
:
""
,
token
:
""
,
...
@@ -50,15 +60,8 @@ export default {
...
@@ -50,15 +60,8 @@ export default {
desc
:
'10分'
,
desc
:
'10分'
,
type
:
3
type
:
3
}],
}],
};
};
},
},
components
:
{
CommonHeader
,
CommonTitleWithDropdown
,
CommonNoMore
,
ExamScoreList
},
created
()
{
created
()
{
if
(
process
.
client
)
{
if
(
process
.
client
)
{
if
(
this
.
$route
&&
this
.
$route
.
query
)
{
if
(
this
.
$route
&&
this
.
$route
.
query
)
{
...
@@ -80,6 +83,7 @@ export default {
...
@@ -80,6 +83,7 @@ export default {
async
getGeneralExam
(
queryData
)
{
async
getGeneralExam
(
queryData
)
{
await
getGeneralExam
(
queryData
).
then
(
res
=>
{
await
getGeneralExam
(
queryData
).
then
(
res
=>
{
if
(
res
.
code
===
"000000"
)
{
if
(
res
.
code
===
"000000"
)
{
this
.
isShowLoading
=
false
;
this
.
allData
=
res
.
data
;
this
.
allData
=
res
.
data
;
this
.
dataList
=
res
.
data
.
examScoreList
;
this
.
dataList
=
res
.
data
.
examScoreList
;
this
.
title
=
`共
${
this
.
dataList
.
length
}
条数据`
;
this
.
title
=
`共
${
this
.
dataList
.
length
}
条数据`
;
...
@@ -101,7 +105,7 @@ export default {
...
@@ -101,7 +105,7 @@ export default {
</
script
>
</
script
>
<
style
lang=
"less"
scoped
>
<
style
lang=
"less"
scoped
>
.pdt-50 {
.pdt-50 {
padding-top:
49
px;
padding-top:
50
px;
}
}
.mt-10 {
.mt-10 {
margin-top: 10px !important;
margin-top: 10px !important;
...
...
pages/examtimes.vue
浏览文件 @
d307d61d
...
@@ -4,6 +4,7 @@
...
@@ -4,6 +4,7 @@
<CommonTitleMini
:title=
"title"
:needRightBtn=
"needRightBtn"
></CommonTitleMini>
<CommonTitleMini
:title=
"title"
:needRightBtn=
"needRightBtn"
></CommonTitleMini>
<ExamTimesList
class=
"pdt-50"
:dataList=
"dataList"
></ExamTimesList>
<ExamTimesList
class=
"pdt-50"
:dataList=
"dataList"
></ExamTimesList>
<CommonNoMore
v-if=
"dataList.length >= 10"
class=
"mt-10"
></CommonNoMore>
<CommonNoMore
v-if=
"dataList.length >= 10"
class=
"mt-10"
></CommonNoMore>
<Loading
v-show=
"isShowLoading"
></Loading>
</section>
</section>
</
template
>
</
template
>
<
script
>
<
script
>
...
@@ -14,10 +15,19 @@ import CommonHeader from "@/components/common/common-header";
...
@@ -14,10 +15,19 @@ import CommonHeader from "@/components/common/common-header";
import
CommonTitleMini
from
"@/components/common/common-title-mini"
;
import
CommonTitleMini
from
"@/components/common/common-title-mini"
;
import
CommonNoMore
from
"@/components/common/common-no-more"
;
import
CommonNoMore
from
"@/components/common/common-no-more"
;
import
ExamTimesList
from
"@/components/bussiness/exam-times-list"
;
import
ExamTimesList
from
"@/components/bussiness/exam-times-list"
;
import
Loading
from
"@/components/common/common-loading"
;
export
default
{
export
default
{
components
:
{
CommonHeader
,
CommonTitleMini
,
CommonNoMore
,
ExamTimesList
,
Loading
},
data
()
{
data
()
{
return
{
return
{
isShowLoading
:
true
,
title
:
"共0条数据"
,
title
:
"共0条数据"
,
needRightBtn
:
false
,
needRightBtn
:
false
,
token
:
""
,
token
:
""
,
...
@@ -41,13 +51,6 @@ export default {
...
@@ -41,13 +51,6 @@ export default {
dataList
:
[]
dataList
:
[]
};
};
},
},
components
:
{
CommonHeader
,
CommonTitleMini
,
CommonNoMore
,
ExamTimesList
},
created
()
{
created
()
{
if
(
process
.
client
)
{
if
(
process
.
client
)
{
if
(
this
.
$route
&&
this
.
$route
.
query
)
{
if
(
this
.
$route
&&
this
.
$route
.
query
)
{
...
@@ -69,6 +72,7 @@ export default {
...
@@ -69,6 +72,7 @@ export default {
async
getGeneralExam
(
queryData
)
{
async
getGeneralExam
(
queryData
)
{
await
getGeneralExam
(
queryData
).
then
(
res
=>
{
await
getGeneralExam
(
queryData
).
then
(
res
=>
{
if
(
res
.
code
===
"000000"
)
{
if
(
res
.
code
===
"000000"
)
{
this
.
isShowLoading
=
false
;
this
.
dataList
=
res
.
data
.
examTimesList
;
this
.
dataList
=
res
.
data
.
examTimesList
;
this
.
title
=
`共
${
this
.
dataList
.
length
}
条数据`
this
.
title
=
`共
${
this
.
dataList
.
length
}
条数据`
}
}
...
@@ -79,7 +83,7 @@ export default {
...
@@ -79,7 +83,7 @@ export default {
</
script
>
</
script
>
<
style
lang=
"less"
scoped
>
<
style
lang=
"less"
scoped
>
.pdt-50 {
.pdt-50 {
padding-top:
49
px;
padding-top:
50
px;
}
}
.mt-10 {
.mt-10 {
margin-top: 10px !important;
margin-top: 10px !important;
...
...
pages/index-old.vue
已删除
100644 → 0
浏览文件 @
e43dc65e
此差异已折叠。
点击以展开。
pages/index.vue
浏览文件 @
d307d61d
...
@@ -86,6 +86,7 @@
...
@@ -86,6 +86,7 @@
<PicaOrg
v-show=
"isShowOrg"
@
confirm=
"orgConfirm"
@
cancel=
"orgCancel"
></PicaOrg>
<PicaOrg
v-show=
"isShowOrg"
@
confirm=
"orgConfirm"
@
cancel=
"orgCancel"
></PicaOrg>
<CommonLoading
v-show=
"false"
></CommonLoading>
<CommonLoading
v-show=
"false"
></CommonLoading>
<PopTips
:tipsContent=
"tipsContent"
@
clickTips=
"clickTips"
v-show=
"isShowTips"
></PopTips>
<PopTips
:tipsContent=
"tipsContent"
@
clickTips=
"clickTips"
v-show=
"isShowTips"
></PopTips>
<Loading
v-show=
"isShowLoading"
></Loading>
</section>
</section>
</
template
>
</
template
>
...
@@ -141,6 +142,8 @@ import OrgDoctorList from "@/components/bussiness/org-doctor-list";
...
@@ -141,6 +142,8 @@ import OrgDoctorList from "@/components/bussiness/org-doctor-list";
import
ExamList
from
"@/components/bussiness/exam-list"
;
import
ExamList
from
"@/components/bussiness/exam-list"
;
import
PopTips
from
"@/components/bussiness/pop-tips"
;
import
PopTips
from
"@/components/bussiness/pop-tips"
;
import
CommonCard
from
"@/components/common/common-card"
;
import
CommonCard
from
"@/components/common/common-card"
;
import
Loading
from
"@/components/common/common-loading"
;
import
{
import
{
getGeneralData
getGeneralData
}
from
"@/service/index"
;
}
from
"@/service/index"
;
...
@@ -178,9 +181,11 @@ export default {
...
@@ -178,9 +181,11 @@ export default {
ChartColumnVerticalScore
,
ChartColumnVerticalScore
,
PopTips
,
PopTips
,
CommonTitleWithWhat
,
CommonTitleWithWhat
,
Loading
},
},
data
()
{
data
()
{
return
{
return
{
isShowLoading
:
true
,
isScroll
:
false
,
isScroll
:
false
,
isShowArea
:
false
,
isShowArea
:
false
,
isShowOrg
:
false
,
isShowOrg
:
false
,
...
@@ -455,6 +460,7 @@ export default {
...
@@ -455,6 +460,7 @@ export default {
getGeneralPersonal
(
params
)
{
getGeneralPersonal
(
params
)
{
getGeneralPersonal
(
params
).
then
(
res
=>
{
getGeneralPersonal
(
params
).
then
(
res
=>
{
if
(
res
.
code
===
"000000"
)
{
if
(
res
.
code
===
"000000"
)
{
this
.
isShowLoading
=
false
;
this
.
allData
=
res
.
data
;
this
.
allData
=
res
.
data
;
this
.
studyRankList
=
this
.
allData
.
studyRank
||
[];
this
.
studyRankList
=
this
.
allData
.
studyRank
||
[];
this
.
costRankList
=
this
.
allData
.
costRank
||
[];
this
.
costRankList
=
this
.
allData
.
costRank
||
[];
...
@@ -473,6 +479,7 @@ export default {
...
@@ -473,6 +479,7 @@ export default {
getGeneralData
(
queryData
)
{
getGeneralData
(
queryData
)
{
getGeneralData
(
queryData
).
then
(
res
=>
{
getGeneralData
(
queryData
).
then
(
res
=>
{
if
(
res
.
code
===
"000000"
)
{
if
(
res
.
code
===
"000000"
)
{
this
.
isShowLoading
=
false
;
this
.
allData
=
res
.
data
;
this
.
allData
=
res
.
data
;
this
.
studyRankList
=
this
.
allData
.
studyRank
||
[]
this
.
studyRankList
=
this
.
allData
.
studyRank
||
[]
this
.
costRankList
=
this
.
allData
.
costRank
||
[];
this
.
costRankList
=
this
.
allData
.
costRank
||
[];
...
...
pages/klgpoint.vue
浏览文件 @
d307d61d
...
@@ -4,6 +4,7 @@
...
@@ -4,6 +4,7 @@
<TitleKLGPoint
:title=
"title"
></TitleKLGPoint>
<TitleKLGPoint
:title=
"title"
></TitleKLGPoint>
<TipsInfo
:content=
"tipsContent"
></TipsInfo>
<TipsInfo
:content=
"tipsContent"
></TipsInfo>
<ChartColumnHorizontalTCLong
:dataList=
"knowledgeEffectList"
class=
"mt-10"
></ChartColumnHorizontalTCLong>
<ChartColumnHorizontalTCLong
:dataList=
"knowledgeEffectList"
class=
"mt-10"
></ChartColumnHorizontalTCLong>
<Loading
v-show=
"isShowLoading"
></Loading>
</section>
</section>
</
template
>
</
template
>
<
script
>
<
script
>
...
@@ -14,10 +15,19 @@ import CommonHeader from "@/components/common/common-header";
...
@@ -14,10 +15,19 @@ import CommonHeader from "@/components/common/common-header";
import
TitleKLGPoint
from
"@/components/bussiness/title-klg-point"
;
import
TitleKLGPoint
from
"@/components/bussiness/title-klg-point"
;
import
TipsInfo
from
'@/components/bussiness/tips-info'
import
TipsInfo
from
'@/components/bussiness/tips-info'
import
ChartColumnHorizontalTCLong
from
"@/components/bussiness/charts/chart-column-horizontal-tc-long"
;
import
ChartColumnHorizontalTCLong
from
"@/components/bussiness/charts/chart-column-horizontal-tc-long"
;
import
Loading
from
"@/components/common/common-loading"
;
export
default
{
export
default
{
components
:
{
CommonHeader
,
TitleKLGPoint
,
ChartColumnHorizontalTCLong
,
TipsInfo
,
Loading
},
data
()
{
data
()
{
return
{
return
{
isShowLoading
:
true
,
title
:
"共0个知识点"
,
title
:
"共0个知识点"
,
token
:
''
,
token
:
''
,
queryGDParams
:
{
queryGDParams
:
{
...
@@ -40,12 +50,6 @@ export default {
...
@@ -40,12 +50,6 @@ export default {
knowledgeEffectList
:
[],
knowledgeEffectList
:
[],
};
};
},
},
components
:
{
CommonHeader
,
TitleKLGPoint
,
ChartColumnHorizontalTCLong
,
TipsInfo
},
created
()
{
created
()
{
if
(
process
.
client
)
{
if
(
process
.
client
)
{
...
@@ -65,6 +69,7 @@ export default {
...
@@ -65,6 +69,7 @@ export default {
async
getStudyEffect
(
params
)
{
async
getStudyEffect
(
params
)
{
await
getStudyEffect
(
params
).
then
(
res
=>
{
await
getStudyEffect
(
params
).
then
(
res
=>
{
if
(
res
.
code
===
"000000"
)
{
if
(
res
.
code
===
"000000"
)
{
this
.
isShowLoading
=
false
;
this
.
knowledgeEffectList
=
res
.
data
.
knowledgeEffectList
||
[];
this
.
knowledgeEffectList
=
res
.
data
.
knowledgeEffectList
||
[];
this
.
title
=
`共
${
this
.
knowledgeEffectList
.
length
}
个知识点`
;
this
.
title
=
`共
${
this
.
knowledgeEffectList
.
length
}
个知识点`
;
}
}
...
...
pages/rankdays.vue
浏览文件 @
d307d61d
<
template
>
<
template
>
<section>
<section>
<CommonHeader
title=
"完成天数排名"
></CommonHeader>
<CommonHeader
title=
"完成天数排名"
></CommonHeader>
<CommonTitle
MiniWithDropdown
:title=
"listTitle"
@
selectSortItem=
"selectSortItem"
></CommonTitleMini
WithDropdown>
<CommonTitle
WithDropdown
:title=
"listTitle"
@
selectSortItem=
"selectSortItem"
></CommonTitle
WithDropdown>
<RankingItemDays
class=
"pdt-50"
:rankList=
"rankList"
></RankingItemDays>
<RankingItemDays
class=
"pdt-50"
:rankList=
"rankList"
></RankingItemDays>
<CommonNoMore
v-if=
"rankList.length >= 10"
class=
"mt-10"
></CommonNoMore>
<CommonNoMore
v-if=
"rankList.length >= 10"
class=
"mt-10"
></CommonNoMore>
<Loading
v-show=
"isShowLoading"
></Loading>
</section>
</section>
</
template
>
</
template
>
<
script
>
<
script
>
...
@@ -11,13 +12,22 @@ const cookies = require("cookie-universal")();
...
@@ -11,13 +12,22 @@ const cookies = require("cookie-universal")();
import
{
getStudyTimeData
}
from
"@/service"
;
import
{
getStudyTimeData
}
from
"@/service"
;
import
CommonHeader
from
"@/components/common/common-header"
;
import
CommonHeader
from
"@/components/common/common-header"
;
import
CommonTitle
Mini
WithDropdown
from
"@/components/common/common-title-with-dropdown"
;
import
CommonTitleWithDropdown
from
"@/components/common/common-title-with-dropdown"
;
import
RankingItemDays
from
"@/components/bussiness/ranking-item-days"
;
import
RankingItemDays
from
"@/components/bussiness/ranking-item-days"
;
import
CommonNoMore
from
"@/components/common/common-no-more"
;
import
CommonNoMore
from
"@/components/common/common-no-more"
;
import
Loading
from
"@/components/common/common-loading"
;
export
default
{
export
default
{
components
:
{
CommonHeader
,
CommonTitleWithDropdown
,
RankingItemDays
,
CommonNoMore
,
Loading
},
data
()
{
data
()
{
return
{
return
{
isShowLoading
:
true
,
listTitle
:
'共0条数据'
,
listTitle
:
'共0条数据'
,
rankList
:
[],
rankList
:
[],
queryGDParams
:
{
queryGDParams
:
{
...
@@ -37,12 +47,6 @@ export default {
...
@@ -37,12 +47,6 @@ export default {
},
},
};
};
},
},
components
:
{
CommonHeader
,
CommonTitleMiniWithDropdown
,
RankingItemDays
,
CommonNoMore
},
created
()
{
created
()
{
if
(
process
.
client
)
{
if
(
process
.
client
)
{
...
@@ -62,6 +66,7 @@ export default {
...
@@ -62,6 +66,7 @@ export default {
async
getStudyTimeData
(
params
)
{
async
getStudyTimeData
(
params
)
{
await
getStudyTimeData
(
params
).
then
(
res
=>
{
await
getStudyTimeData
(
params
).
then
(
res
=>
{
if
(
res
.
code
===
"000000"
)
{
if
(
res
.
code
===
"000000"
)
{
this
.
isShowLoading
=
false
;
this
.
rankList
=
res
.
data
.
costRank
;
this
.
rankList
=
res
.
data
.
costRank
;
// this.listTitle = `共${this.rankList.length}个省`
// this.listTitle = `共${this.rankList.length}个省`
this
.
listTitle
=
`共
${
this
.
rankList
.
length
}
条数据`
this
.
listTitle
=
`共
${
this
.
rankList
.
length
}
条数据`
...
@@ -78,7 +83,7 @@ export default {
...
@@ -78,7 +83,7 @@ export default {
</
script
>
</
script
>
<
style
lang=
"less"
scoped
>
<
style
lang=
"less"
scoped
>
.pdt-50 {
.pdt-50 {
padding-top:
49
px;
padding-top:
50
px;
}
}
.mt-10 {
.mt-10 {
margin-top: 10px !important;
margin-top: 10px !important;
...
...
pages/rankedu.vue
浏览文件 @
d307d61d
...
@@ -4,6 +4,7 @@
...
@@ -4,6 +4,7 @@
<CommonTitleWithDropdown
:dataList=
"dropdownList"
:title=
"title"
:needRightBtn=
"needRightBtn"
@
selectSortItem=
"selectSortItem"
></CommonTitleWithDropdown>
<CommonTitleWithDropdown
:dataList=
"dropdownList"
:title=
"title"
:needRightBtn=
"needRightBtn"
@
selectSortItem=
"selectSortItem"
></CommonTitleWithDropdown>
<RankingList
class=
"pdt-50"
:certFlag=
"certFlag"
:rankList=
"rankList"
></RankingList>
<RankingList
class=
"pdt-50"
:certFlag=
"certFlag"
:rankList=
"rankList"
></RankingList>
<CommonNoMore
v-if=
"rankList.length >= 10"
class=
"mt-10"
></CommonNoMore>
<CommonNoMore
v-if=
"rankList.length >= 10"
class=
"mt-10"
></CommonNoMore>
<Loading
v-show=
"isShowLoading"
></Loading>
</section>
</section>
</
template
>
</
template
>
<
script
>
<
script
>
...
@@ -14,10 +15,19 @@ import CommonHeader from "@/components/common/common-header";
...
@@ -14,10 +15,19 @@ import CommonHeader from "@/components/common/common-header";
import
CommonTitleWithDropdown
from
"@/components/common/common-title-with-dropdown"
;
import
CommonTitleWithDropdown
from
"@/components/common/common-title-with-dropdown"
;
import
CommonNoMore
from
"@/components/common/common-no-more"
;
import
CommonNoMore
from
"@/components/common/common-no-more"
;
import
RankingList
from
"@/components/bussiness/ranking-item"
;
import
RankingList
from
"@/components/bussiness/ranking-item"
;
import
Loading
from
"@/components/common/common-loading"
;
export
default
{
export
default
{
components
:
{
CommonHeader
,
CommonTitleWithDropdown
,
CommonNoMore
,
RankingList
,
Loading
},
data
()
{
data
()
{
return
{
return
{
isShowLoading
:
true
,
title
:
'共0条数据'
,
title
:
'共0条数据'
,
rankList
:
[],
rankList
:
[],
needRightBtn
:
true
,
needRightBtn
:
true
,
...
@@ -49,12 +59,6 @@ export default {
...
@@ -49,12 +59,6 @@ export default {
certFlag
:
0
certFlag
:
0
};
};
},
},
components
:
{
CommonHeader
,
CommonTitleWithDropdown
,
CommonNoMore
,
RankingList
},
created
()
{
created
()
{
if
(
process
.
client
)
{
if
(
process
.
client
)
{
if
(
this
.
$route
&&
this
.
$route
.
query
)
{
if
(
this
.
$route
&&
this
.
$route
.
query
)
{
...
@@ -86,6 +90,7 @@ export default {
...
@@ -86,6 +90,7 @@ export default {
async
getStudyRankData
(
params
)
{
async
getStudyRankData
(
params
)
{
await
getStudyRankData
(
params
).
then
(
res
=>
{
await
getStudyRankData
(
params
).
then
(
res
=>
{
if
(
res
.
code
===
"000000"
)
{
if
(
res
.
code
===
"000000"
)
{
this
.
isShowLoading
=
false
;
this
.
rankList
=
res
.
data
.
studyRank
;
this
.
rankList
=
res
.
data
.
studyRank
;
this
.
title
=
`共
${
this
.
rankList
.
length
}
条数据`
this
.
title
=
`共
${
this
.
rankList
.
length
}
条数据`
}
}
...
@@ -101,7 +106,7 @@ export default {
...
@@ -101,7 +106,7 @@ export default {
</
script
>
</
script
>
<
style
lang=
"less"
scoped
>
<
style
lang=
"less"
scoped
>
.pdt-50 {
.pdt-50 {
padding-top:
49
px;
padding-top:
50
px;
}
}
.mt-10 {
.mt-10 {
margin-top: 10px !important;
margin-top: 10px !important;
...
...
service/api.js
浏览文件 @
d307d61d
...
@@ -22,6 +22,7 @@ Axios.interceptors.request.use(
...
@@ -22,6 +22,7 @@ Axios.interceptors.request.use(
// config.headers.token = '3EB9111164E84A45B5B00428D52BC966';
// config.headers.token = '3EB9111164E84A45B5B00428D52BC966';
config
.
headers
.
token
=
cookies
.
get
(
'lreporttoken'
)
||
'8F88F86408314155B6840723FAB7DAEC'
||
'299F66567E7C48C78ADE418B364C5A35'
||
'F24CD42F1CFA46829639228E9CFE1E3D'
||
'C284B868425D494386EAEF6C9AE99937'
;
config
.
headers
.
token
=
cookies
.
get
(
'lreporttoken'
)
||
'8F88F86408314155B6840723FAB7DAEC'
||
'299F66567E7C48C78ADE418B364C5A35'
||
'F24CD42F1CFA46829639228E9CFE1E3D'
||
'C284B868425D494386EAEF6C9AE99937'
;
}
}
// config.timeout = 30000;
return
config
;
return
config
;
},
},
error
=>
{
error
=>
{
...
@@ -30,7 +31,8 @@ Axios.interceptors.request.use(
...
@@ -30,7 +31,8 @@ Axios.interceptors.request.use(
error
.
code
===
'ECONNABORTED'
&&
error
.
code
===
'ECONNABORTED'
&&
error
.
message
.
indexOf
(
'timeout'
)
!==
-
1
error
.
message
.
indexOf
(
'timeout'
)
!==
-
1
)
{
)
{
VUE_ENV
===
'client'
&&
Toast
({
message
:
'请求超时'
,
duration
:
1000
});
VUE_ENV
===
'client'
&&
Toast
({
message
:
'系统繁忙,请稍后重新进入页面查询'
,
duration
:
1000
});
// VUE_ENV === 'client' && Toast({ message: '请求超时', duration: 1000 });
}
}
return
Promise
.
reject
(
error
);
return
Promise
.
reject
(
error
);
}
}
...
@@ -46,7 +48,7 @@ export default function(options) {
...
@@ -46,7 +48,7 @@ export default function(options) {
return
new
Promise
((
resolve
,
reject
)
=>
{
return
new
Promise
((
resolve
,
reject
)
=>
{
Axios
(
options
)
Axios
(
options
)
.
then
(
res
=>
{
.
then
(
res
=>
{
const
{
status
,
data
}
=
res
;
const
{
status
,
data
}
=
res
;
if
(
status
!==
200
)
{
if
(
status
!==
200
)
{
let
cmsg
=
REPONSE_CODE
[
status
];
let
cmsg
=
REPONSE_CODE
[
status
];
...
@@ -59,12 +61,14 @@ export default function(options) {
...
@@ -59,12 +61,14 @@ export default function(options) {
if
(
data
.
code
!=
'000000'
)
{
if
(
data
.
code
!=
'000000'
)
{
// 如果要是有其他特殊需求在此处添加
// 如果要是有其他特殊需求在此处添加
console
.
log
(
`调用后台接口报错,CODE:
${
data
.
code
}
,MESSAGE:
${
data
.
message
}
。`
);
console
.
log
(
`调用后台接口报错,CODE:
${
data
.
code
}
,MESSAGE:
${
data
.
message
}
。`
);
// console.log(`调用后台接口报错,CODE: ${data.code},MESSAGE: ${data.message}。`);
}
}
resolve
(
res
.
data
);
resolve
(
res
.
data
);
})
})
.
catch
(
error
=>
{
.
catch
(
error
=>
{
console
.
log
(
'axios catch error: '
,
error
.
message
);
// console.log('axios catch error: ', error.message);
VUE_ENV
===
'client'
&&
Toast
({
message
:
error
.
message
,
duration
:
1000
});
VUE_ENV
===
'client'
&&
Toast
({
message
:
'系统繁忙,请稍后重新进入页面查询'
,
duration
:
1000
});
// VUE_ENV === 'client' && Toast({ message: error.message, duration: 1000 });
// reject(error);
// reject(error);
})
})
})
})
...
...
utils/enumerate.js
浏览文件 @
d307d61d
...
@@ -2,7 +2,8 @@ const { NUXT_ENV_APP } = process.env;
...
@@ -2,7 +2,8 @@ const { NUXT_ENV_APP } = process.env;
export
const
BASE_URL
=
{
export
const
BASE_URL
=
{
// dev: 'https://dev-sc.yunqueyi.com',
// dev: 'https://dev-sc.yunqueyi.com',
dev
:
'https://uat-sc.yunqueyi.com'
,
// dev: 'https://uat-sc.yunqueyi.com',
dev
:
'https://sc.yunqueyi.com'
,
test
:
'https://test1-sc.yunqueyi.com'
,
test
:
'https://test1-sc.yunqueyi.com'
,
uat
:
'https://uat-sc.yunqueyi.com'
,
uat
:
'https://uat-sc.yunqueyi.com'
,
prod
:
'https://sc.yunqueyi.com'
prod
:
'https://sc.yunqueyi.com'
...
...
写
预览
Markdown
格式
0%
请重试
or
附加一个文件
附加文件
取消
您添加了
0
人
到此讨论。请谨慎行事。
先完成此消息的编辑!
取消
想要评论请
注册
或
登录