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
提交
731d00ec
提交
731d00ec
编写于
1月 18, 2022
作者:
张磊
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
init token at main
上级
81ff192e
变更
3
隐藏空白字符变更
内嵌
并排
正在显示
3 个修改的文件
包含
30 行增加
和
17 行删除
+30
-17
common-tabs.vue
src/components/common/common-tabs.vue
+24
-5
pica-area.vue
src/components/common/pica-area.vue
+3
-2
index.vue
src/views/index.vue
+3
-10
未找到文件。
src/components/common/common-tabs.vue
浏览文件 @
731d00ec
...
...
@@ -51,21 +51,40 @@ export default {
return
{
cIndex
:
0
,
tapList
:
[
'总体概况'
,
'人群分析'
,
'课程分析'
,
'考试分析'
,
'学习效果分析'
],
toHeaderDis
:
'56px'
,
toHeaderDis
:
0
,
};
},
mounted
()
{
const
headerHeight
=
sessionStorage
.
getItem
(
'headerHeight'
)
||
0
;
console
.
log
(
'headerHeight--'
,
headerHeight
);
this
.
toHeaderDis
=
Number
(
headerHeight
)
+
41
+
'px'
;
watch
:
{
needFixed
:
{
handler
(
newVal
)
{
if
(
newVal
)
{
this
.
setHeight
();
}
else
{
this
.
toHeaderDis
=
'0px'
;
}
},
deep
:
false
,
},
},
mounted
()
{},
methods
:
{
clickTab
(
index
)
{
this
.
cIndex
=
index
;
this
.
$emit
(
'tabClicked'
,
index
);
// this.scrollTabs(index);
},
setHeight
()
{
const
ua
=
navigator
.
userAgent
.
toLowerCase
();
const
isAndroid
=
/
(
Android
)
/i
.
test
(
ua
);
if
(
isAndroid
)
{
this
.
toHeaderDis
=
'85px'
;
}
else
{
this
.
toHeaderDis
=
'56px'
;
}
console
.
log
(
'-this.toHeaderDis-'
,
isAndroid
,
this
.
toHeaderDis
);
},
},
};
</
script
>
...
...
src/components/common/pica-area.vue
浏览文件 @
731d00ec
...
...
@@ -248,7 +248,6 @@ export default {
watch
:
{
projectId
(
newVal
)
{
this
.
queryParams
.
projectId
=
newVal
;
// this.getProvinceData(this.queryParams);
},
provinceList
(
newVal
)
{
newVal
[
0
].
selected
=
true
;
...
...
@@ -276,7 +275,9 @@ export default {
if
(
this
.
$route
&&
this
.
$route
.
query
)
{
const
cQuery
=
this
.
$route
.
query
;
this
.
queryParams
.
projectId
=
cQuery
.
projectId
||
''
;
this
.
getProvinceData
(
this
.
queryParams
);
if
(
this
.
queryParams
.
projectId
)
{
this
.
getProvinceData
(
this
.
queryParams
);
}
}
},
mounted
()
{},
...
...
src/views/index.vue
浏览文件 @
731d00ec
...
...
@@ -421,19 +421,10 @@ export default {
this
.
queryGDParams
.
projectId
=
this
.
projectId
;
this
.
CNTParams
.
projectId
=
this
.
projectId
;
this
.
queryParams
.
projectId
=
this
.
projectId
;
if
(
this
.
$rocNative
.
isWeb
)
{
// this.setUserToken(this.token);
// cookies.set('conslToken', this.token);
// this.setProjectId(this.projectId);
}
else
{
// this.getUserInfo();
}
this
.
getUserInfo
();
// this.getProjectInfo(this.queryParams);
},
mounted
()
{
// this.getProjectInfo(this.queryParams);
window
.
addEventListener
(
'scroll'
,
()
=>
{
...
...
@@ -784,7 +775,9 @@ export default {
cookies
.
set
(
'conslToken'
,
params
.
userToken
);
this
.
setUserToken
(
this
.
token
);
this
.
setProjectId
(
this
.
projectId
);
this
.
getProjectInfo
(
this
.
queryParams
);
if
(
this
.
queryParams
.
projectId
)
{
this
.
getProjectInfo
(
this
.
queryParams
);
}
});
},
...
...
写
预览
Markdown
格式
0%
请重试
or
附加一个文件
附加文件
取消
您添加了
0
人
到此讨论。请谨慎行事。
先完成此消息的编辑!
取消
想要评论请
注册
或
登录