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
提交
6db52d96
提交
6db52d96
编写于
12月 14, 2019
作者:
guangjun.yang
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
解决多个token问题
上级
d5abdc70
变更
7
隐藏空白字符变更
内嵌
并排
正在显示
7 个修改的文件
包含
25 行增加
和
18 行删除
+25
-18
examscore.vue
pages/examscore.vue
+2
-2
examtimes.vue
pages/examtimes.vue
+2
-2
index.vue
pages/index.vue
+14
-7
klgpoint.vue
pages/klgpoint.vue
+2
-2
rankdays.vue
pages/rankdays.vue
+2
-2
rankedu.vue
pages/rankedu.vue
+2
-2
api.js
service/api.js
+1
-1
未找到文件。
pages/examscore.vue
浏览文件 @
6db52d96
...
@@ -99,8 +99,8 @@ export default {
...
@@ -99,8 +99,8 @@ export default {
this
.
queryGDParams
.
regionId
=
cQuery
.
regionId
||
''
;
this
.
queryGDParams
.
regionId
=
cQuery
.
regionId
||
''
;
let
hospitalIdList
=
cQuery
.
hospitalIdList
||
''
let
hospitalIdList
=
cQuery
.
hospitalIdList
||
''
this
.
queryGDParams
.
hospitalIdList
=
hospitalIdList
&&
hospitalIdList
.
split
(
','
)
||
[];
this
.
queryGDParams
.
hospitalIdList
=
hospitalIdList
&&
hospitalIdList
.
split
(
','
)
||
[];
cookies
.
remove
(
"token"
);
//
cookies.remove("token");
cookies
.
set
(
"token"
,
cQuery
.
token
||
''
);
cookies
.
set
(
"
lreport
token"
,
cQuery
.
token
||
''
);
this
.
getGeneralExam
(
this
.
queryGDParams
);
this
.
getGeneralExam
(
this
.
queryGDParams
);
}
}
}
}
...
...
pages/examtimes.vue
浏览文件 @
6db52d96
...
@@ -86,8 +86,8 @@ export default {
...
@@ -86,8 +86,8 @@ export default {
this
.
queryGDParams
.
projectId
=
cQuery
.
projectId
||
''
;
this
.
queryGDParams
.
projectId
=
cQuery
.
projectId
||
''
;
this
.
queryGDParams
.
regionId
=
cQuery
.
regionId
||
''
;
this
.
queryGDParams
.
regionId
=
cQuery
.
regionId
||
''
;
this
.
queryGDParams
.
hospitalIdList
=
hospitalIdList
&&
hospitalIdList
.
split
(
','
)
||
[];
this
.
queryGDParams
.
hospitalIdList
=
hospitalIdList
&&
hospitalIdList
.
split
(
','
)
||
[];
cookies
.
remove
(
"token"
);
//
cookies.remove("token");
cookies
.
set
(
"token"
,
cQuery
.
token
||
''
);
cookies
.
set
(
"
lreport
token"
,
cQuery
.
token
||
''
);
this
.
getGeneralExam
(
this
.
queryGDParams
);
this
.
getGeneralExam
(
this
.
queryGDParams
);
}
}
}
}
...
...
pages/index.vue
浏览文件 @
6db52d96
...
@@ -341,8 +341,8 @@ export default {
...
@@ -341,8 +341,8 @@ export default {
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
);
cookies
.
remove
(
"token"
);
//
cookies.remove("token");
cookies
.
set
(
"token"
,
this
.
token
);
cookies
.
set
(
"
lreport
token"
,
this
.
token
);
this
.
setProjectId
(
this
.
projectId
);
this
.
setProjectId
(
this
.
projectId
);
}
else
{
}
else
{
this
.
getUserInfo
();
this
.
getUserInfo
();
...
@@ -560,15 +560,22 @@ export default {
...
@@ -560,15 +560,22 @@ export default {
});
});
// this.queryGDParams.hospitalIdList = hospitalIds
// this.queryGDParams.hospitalIdList = hospitalIds
// 如果没有选择机构,则重新获取所有数据
this
.
isShowOrg
=
false
;
this
.
orgName
=
this
.
shortName
(
hospitalNames
[
0
]
||
'全部机构'
,
6
);
if
(
hospitalIds
.
length
==
0
)
{
this
.
getHospitalsCNT
(
this
.
CNTParams
);
return
;
}
this
.
queryGDParams
.
hospitalIdList
=
hospitalIds
;
this
.
queryGDParams
.
hospitalIdList
=
hospitalIds
;
if
(
hospitalIds
.
length
===
1
)
{
if
(
hospitalIds
.
length
===
1
)
{
this
.
isSingleOrg
=
hospitalIds
.
length
===
1
;
// this.hospitalCnt = 1
this
.
isSingleOrg
=
true
;
this
.
getGeneralPersonal
(
this
.
queryGDParams
);
this
.
getGeneralPersonal
(
this
.
queryGDParams
);
}
else
{
}
else
{
this
.
isSingleOrg
=
false
;
this
.
getGeneralData
(
this
.
queryGDParams
);
this
.
getGeneralData
(
this
.
queryGDParams
);
}
}
this
.
isShowOrg
=
false
;
this
.
orgName
=
this
.
shortName
(
hospitalNames
[
0
]
||
'全部机构'
,
6
);
this
.
getGeneralExam
(
this
.
queryGDParams
);
this
.
getGeneralExam
(
this
.
queryGDParams
);
this
.
getUserAnalysis
(
this
.
queryGDParams
);
this
.
getUserAnalysis
(
this
.
queryGDParams
);
this
.
getGeneralCourse
(
this
.
queryGDParams
);
this
.
getGeneralCourse
(
this
.
queryGDParams
);
...
@@ -640,8 +647,8 @@ export default {
...
@@ -640,8 +647,8 @@ export default {
this
.
$rocNative
.
getUserInfo
&&
this
.
$rocNative
.
getUserInfo
&&
this
.
$rocNative
.
getUserInfo
().
then
(
params
=>
{
this
.
$rocNative
.
getUserInfo
().
then
(
params
=>
{
this
.
token
=
params
.
userToken
;
this
.
token
=
params
.
userToken
;
cookies
.
remove
(
"token"
);
//
cookies.remove("token");
cookies
.
set
(
"token"
,
this
.
token
);
cookies
.
set
(
"
lreport
token"
,
this
.
token
);
this
.
setUserToken
(
this
.
token
);
this
.
setUserToken
(
this
.
token
);
this
.
setProjectId
(
this
.
projectId
);
this
.
setProjectId
(
this
.
projectId
);
this
.
getProvinceData
(
this
.
queryParams
);
this
.
getProvinceData
(
this
.
queryParams
);
...
...
pages/klgpoint.vue
浏览文件 @
6db52d96
...
@@ -56,8 +56,8 @@ export default {
...
@@ -56,8 +56,8 @@ export default {
this
.
queryGDParams
.
projectId
=
cQuery
.
projectId
||
""
;
this
.
queryGDParams
.
projectId
=
cQuery
.
projectId
||
""
;
this
.
queryGDParams
.
regionId
=
cQuery
.
regionId
||
""
;
this
.
queryGDParams
.
regionId
=
cQuery
.
regionId
||
""
;
this
.
queryGDParams
.
hospitalIdList
=
hospitalIdList
&&
hospitalIdList
.
split
(
','
)
||
[];
this
.
queryGDParams
.
hospitalIdList
=
hospitalIdList
&&
hospitalIdList
.
split
(
','
)
||
[];
cookies
.
remove
(
"token"
);
//
cookies.remove("token");
cookies
.
set
(
"token"
,
cQuery
.
token
||
""
);
cookies
.
set
(
"
lreport
token"
,
cQuery
.
token
||
""
);
this
.
getStudyEffect
(
this
.
queryGDParams
);
this
.
getStudyEffect
(
this
.
queryGDParams
);
}
}
}
}
...
...
pages/rankdays.vue
浏览文件 @
6db52d96
...
@@ -63,8 +63,8 @@ export default {
...
@@ -63,8 +63,8 @@ export default {
this
.
queryGDParams
.
regionId
=
cQuery
.
regionId
||
""
;
this
.
queryGDParams
.
regionId
=
cQuery
.
regionId
||
""
;
this
.
queryGDParams
.
hospitalIdList
=
this
.
queryGDParams
.
hospitalIdList
=
(
hospitalIdList
&&
hospitalIdList
.
split
(
","
))
||
[];
(
hospitalIdList
&&
hospitalIdList
.
split
(
","
))
||
[];
cookies
.
remove
(
"token"
);
//
cookies.remove("token");
cookies
.
set
(
"token"
,
cQuery
.
token
||
""
);
cookies
.
set
(
"
lreport
token"
,
cQuery
.
token
||
""
);
this
.
getStudyTimeData
(
this
.
queryGDParams
);
this
.
getStudyTimeData
(
this
.
queryGDParams
);
}
}
},
},
...
...
pages/rankedu.vue
浏览文件 @
6db52d96
...
@@ -77,8 +77,8 @@ export default {
...
@@ -77,8 +77,8 @@ export default {
type
:
3
type
:
3
}]
}]
}
}
cookies
.
remove
(
"token"
);
//
cookies.remove("token");
cookies
.
set
(
"token"
,
cQuery
.
token
||
''
);
cookies
.
set
(
"
lreport
token"
,
cQuery
.
token
||
''
);
this
.
getStudyRankData
(
this
.
queryGDParams
);
this
.
getStudyRankData
(
this
.
queryGDParams
);
console
.
log
(
this
.
queryGDParams
)
console
.
log
(
this
.
queryGDParams
)
}
}
...
...
service/api.js
浏览文件 @
6db52d96
...
@@ -20,7 +20,7 @@ Axios.interceptors.request.use(
...
@@ -20,7 +20,7 @@ Axios.interceptors.request.use(
if
(
method
===
'post'
||
method
===
'put'
||
method
===
'delete'
)
{}
if
(
method
===
'post'
||
method
===
'put'
||
method
===
'delete'
)
{}
if
(
config
.
withCredentials
)
{
if
(
config
.
withCredentials
)
{
// config.headers.token = '3EB9111164E84A45B5B00428D52BC966';
// config.headers.token = '3EB9111164E84A45B5B00428D52BC966';
config
.
headers
.
token
=
cookies
.
get
(
'token'
)
||
'8F88F86408314155B6840723FAB7DAEC'
||
'299F66567E7C48C78ADE418B364C5A35'
||
'F24CD42F1CFA46829639228E9CFE1E3D'
||
'C284B868425D494386EAEF6C9AE99937'
;
config
.
headers
.
token
=
cookies
.
get
(
'
lreport
token'
)
||
'8F88F86408314155B6840723FAB7DAEC'
||
'299F66567E7C48C78ADE418B364C5A35'
||
'F24CD42F1CFA46829639228E9CFE1E3D'
||
'C284B868425D494386EAEF6C9AE99937'
;
}
}
return
config
;
return
config
;
},
},
...
...
写
预览
Markdown
格式
0%
请重试
or
附加一个文件
附加文件
取消
您添加了
0
人
到此讨论。请谨慎行事。
先完成此消息的编辑!
取消
想要评论请
注册
或
登录