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
提交
ef4ec7c0
提交
ef4ec7c0
编写于
12月 29, 2021
作者:
张磊
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
for test
上级
5fbaa593
变更
8
隐藏空白字符变更
内嵌
并排
正在显示
8 个修改的文件
包含
9 行增加
和
13 行删除
+9
-13
httpExtension.js
src/plugins/httpExtension.js
+0
-4
examscore.vue
src/views/examscore.vue
+1
-1
examtimes.vue
src/views/examtimes.vue
+1
-1
index.vue
src/views/index.vue
+2
-2
klgpoint.vue
src/views/klgpoint.vue
+1
-1
prolist.vue
src/views/prolist.vue
+2
-2
rankdays.vue
src/views/rankdays.vue
+1
-1
rankedu.vue
src/views/rankedu.vue
+1
-1
未找到文件。
src/plugins/httpExtension.js
浏览文件 @
ef4ec7c0
import
$http
from
'mn-template/plugins/http'
;
import
$http
from
'mn-template/plugins/http'
;
import
cookies
from
'js-cookie'
;
$http
.
setDefaults
({
$http
.
setDefaults
({
headers
:
{},
headers
:
{},
});
});
...
@@ -14,9 +13,6 @@ $http.setOptions({
...
@@ -14,9 +13,6 @@ $http.setOptions({
// 新增前置钩子
// 新增前置钩子
$http
.
addBeforeHook
((
config
)
=>
{
$http
.
addBeforeHook
((
config
)
=>
{
console
.
log
(
'我是新增的前置钩子'
,
config
);
console
.
log
(
'我是新增的前置钩子'
,
config
);
console
.
log
(
'---'
,
cookies
.
get
(
'lreporttoken'
));
config
.
headers
.
token
=
cookies
.
get
(
'lreporttoken'
);
console
.
log
(
'修改后----'
,
config
);
},
0
);
},
0
);
// 新增后置钩子
// 新增后置钩子
...
...
src/views/examscore.vue
浏览文件 @
ef4ec7c0
...
@@ -92,7 +92,7 @@ export default {
...
@@ -92,7 +92,7 @@ export default {
const
hospitalIdList
=
cQuery
.
hospitalIdList
||
''
;
const
hospitalIdList
=
cQuery
.
hospitalIdList
||
''
;
this
.
queryGDParams
.
hospitalIdList
=
this
.
queryGDParams
.
hospitalIdList
=
(
hospitalIdList
&&
hospitalIdList
.
split
(
','
))
||
[];
(
hospitalIdList
&&
hospitalIdList
.
split
(
','
))
||
[];
cookies
.
set
(
'
lreportt
oken'
,
cQuery
.
token
||
''
);
cookies
.
set
(
'
conslT
oken'
,
cQuery
.
token
||
''
);
this
.
queryGDParams
.
originalFlag
=
cQuery
.
originalFlag
;
this
.
queryGDParams
.
originalFlag
=
cQuery
.
originalFlag
;
this
.
getGeneralExam
(
this
.
queryGDParams
);
this
.
getGeneralExam
(
this
.
queryGDParams
);
}
}
...
...
src/views/examtimes.vue
浏览文件 @
ef4ec7c0
...
@@ -75,7 +75,7 @@ export default {
...
@@ -75,7 +75,7 @@ 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
.
set
(
'
lreportt
oken'
,
cQuery
.
token
||
''
);
cookies
.
set
(
'
conslT
oken'
,
cQuery
.
token
||
''
);
this
.
queryGDParams
.
originalFlag
=
cQuery
.
originalFlag
;
this
.
queryGDParams
.
originalFlag
=
cQuery
.
originalFlag
;
this
.
getGeneralExam
(
this
.
queryGDParams
);
this
.
getGeneralExam
(
this
.
queryGDParams
);
}
}
...
...
src/views/index.vue
浏览文件 @
ef4ec7c0
...
@@ -425,7 +425,7 @@ export default {
...
@@ -425,7 +425,7 @@ 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
.
set
(
'
lreportt
oken'
,
this
.
token
);
cookies
.
set
(
'
conslT
oken'
,
this
.
token
);
this
.
setProjectId
(
this
.
projectId
);
this
.
setProjectId
(
this
.
projectId
);
}
else
{
}
else
{
this
.
getUserInfo
();
this
.
getUserInfo
();
...
@@ -785,7 +785,7 @@ export default {
...
@@ -785,7 +785,7 @@ 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
.
set
(
'
lreportt
oken'
,
this
.
token
);
cookies
.
set
(
'
conslT
oken'
,
this
.
token
);
this
.
setUserToken
(
this
.
token
);
this
.
setUserToken
(
this
.
token
);
this
.
setProjectId
(
this
.
projectId
);
this
.
setProjectId
(
this
.
projectId
);
this
.
getProjectInfo
(
this
.
queryParams
);
this
.
getProjectInfo
(
this
.
queryParams
);
...
...
src/views/klgpoint.vue
浏览文件 @
ef4ec7c0
...
@@ -68,7 +68,7 @@ export default {
...
@@ -68,7 +68,7 @@ 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
.
set
(
'
lreportt
oken'
,
cQuery
.
token
||
''
);
cookies
.
set
(
'
conslT
oken'
,
cQuery
.
token
||
''
);
this
.
queryGDParams
.
originalFlag
=
cQuery
.
originalFlag
;
this
.
queryGDParams
.
originalFlag
=
cQuery
.
originalFlag
;
this
.
getStudyEffect
(
this
.
queryGDParams
);
this
.
getStudyEffect
(
this
.
queryGDParams
);
}
}
...
...
src/views/prolist.vue
浏览文件 @
ef4ec7c0
...
@@ -42,7 +42,7 @@ export default {
...
@@ -42,7 +42,7 @@ export default {
if
(
process
.
client
)
{
if
(
process
.
client
)
{
var
_this
=
this
;
var
_this
=
this
;
if
(
this
.
$rocNative
.
isWeb
)
{
if
(
this
.
$rocNative
.
isWeb
)
{
cookies
.
set
(
'
lreportt
oken'
,
_this
.
token
);
cookies
.
set
(
'
conslT
oken'
,
_this
.
token
);
_this
.
getProjectList
();
_this
.
getProjectList
();
}
else
{
}
else
{
_this
.
getUserInfo
();
_this
.
getUserInfo
();
...
@@ -65,7 +65,7 @@ export default {
...
@@ -65,7 +65,7 @@ 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
.
set
(
'
lreportt
oken'
,
this
.
token
);
cookies
.
set
(
'
conslT
oken'
,
this
.
token
);
this
.
getProjectList
();
this
.
getProjectList
();
});
});
},
},
...
...
src/views/rankdays.vue
浏览文件 @
ef4ec7c0
...
@@ -68,7 +68,7 @@ export default {
...
@@ -68,7 +68,7 @@ export default {
this
.
queryGDParams
.
hospitalIdList
=
this
.
queryGDParams
.
hospitalIdList
=
(
hospitalIdList
&&
hospitalIdList
.
split
(
','
))
||
[];
(
hospitalIdList
&&
hospitalIdList
.
split
(
','
))
||
[];
// cookies.remove("token");
// cookies.remove("token");
cookies
.
set
(
'
lreportt
oken'
,
cQuery
.
token
||
''
);
cookies
.
set
(
'
conslT
oken'
,
cQuery
.
token
||
''
);
this
.
queryGDParams
.
originalFlag
=
cQuery
.
originalFlag
;
this
.
queryGDParams
.
originalFlag
=
cQuery
.
originalFlag
;
this
.
getStudyTimeData
(
this
.
queryGDParams
);
this
.
getStudyTimeData
(
this
.
queryGDParams
);
}
}
...
...
src/views/rankedu.vue
浏览文件 @
ef4ec7c0
...
@@ -107,7 +107,7 @@ export default {
...
@@ -107,7 +107,7 @@ export default {
},
},
];
];
}
}
cookies
.
set
(
'
lreportt
oken'
,
cQuery
.
token
||
''
);
cookies
.
set
(
'
conslT
oken'
,
cQuery
.
token
||
''
);
this
.
queryGDParams
.
originalFlag
=
cQuery
.
originalFlag
;
this
.
queryGDParams
.
originalFlag
=
cQuery
.
originalFlag
;
this
.
getStudyRankData
(
this
.
queryGDParams
);
this
.
getStudyRankData
(
this
.
queryGDParams
);
}
}
...
...
写
预览
Markdown
格式
0%
请重试
or
附加一个文件
附加文件
取消
您添加了
0
人
到此讨论。请谨慎行事。
先完成此消息的编辑!
取消
想要评论请
注册
或
登录