Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
X
xiaomai-cloud-class-web
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
xiaomai-cloud-class
xiaomai-cloud-class-web
Commits
7d9e21da
Commit
7d9e21da
authored
Jun 08, 2021
by
zhangleyuan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat:云盘增加埋点
parent
39feca51
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
25 additions
and
5 deletions
+25
-5
src/modules/resource-disk/components/FolderList.jsx
+25
-5
No files found.
src/modules/resource-disk/components/FolderList.jsx
View file @
7d9e21da
...
...
@@ -78,7 +78,7 @@ class FolderList extends React.Component {
}
// 埋点
handleDataDot
=
(
folderFormat
)
=>
{
handleDataDot
=
(
folderFormat
)
=>
{
switch
(
folderFormat
)
{
case
'PDF'
:
window
.
WEBTRACING
(
'resource_disk_file_preview_pdf'
,
'资料云盘_点击预览_pdf'
);
...
...
@@ -95,8 +95,29 @@ class FolderList extends React.Component {
case
'PPTX'
:
window
.
WEBTRACING
(
'resource_disk_file_preview_ppt'
,
'资料云盘_点击预览_ppt'
);
break
;
default
:
default
:
break
;
}
}
handleYZPreviewDataDot
=
(
folderFormat
)
=>
{
switch
(
folderFormat
)
{
case
'PDF'
:
window
.
WEBTRACING
(
'resource_disk_yz_file_preview_pdf'
,
'资料云盘_点击永中预览_pdf'
);
break
;
case
'WORD'
:
case
'DOCX'
:
case
'DOC'
:
window
.
WEBTRACING
(
'resource_disk_yz_file_preview_word'
,
'资料云盘_点击永中预览_word'
);
break
;
case
'EXCEL'
:
window
.
WEBTRACING
(
'resource_disk_yz_file_preview_excel'
,
'资料云盘_点击永中预览_excel'
);
break
;
case
'PPT'
:
case
'PPTX'
:
window
.
WEBTRACING
(
'resource_disk_yz_file_preview_ppt'
,
'资料云盘_点击永中预览_ppt'
);
break
;
default
:
break
;
}
}
getYoZoSign
=
(
data
,
type
)
=>
{
...
...
@@ -138,7 +159,7 @@ class FolderList extends React.Component {
const
{
currentRootDisk
}
=
this
.
props
;
//如果是公共文件且只有查看的权限的用户的预览对接的三方是永中
const
that
=
this
;
if
(
currentRootDisk
.
disk
===
"COMMON"
){
if
(
currentRootDisk
.
disk
===
"COMMON"
&&
rights
===
"LOOK"
){
switch
(
folderFormat
)
{
case
'PDF'
:
case
'WORD'
:
...
...
@@ -147,9 +168,8 @@ class FolderList extends React.Component {
case
'EXCEL'
:
case
'PPT'
:
case
'PPTX'
:
that
.
handleYZPreviewDataDot
();
if
(
!
fileVersionId
){
// const rightDom = document.querySelector('.right-container');
// rightDom.style.zIndex = 112;
this
.
setState
({
previewing
:
true
,
showPreviewModal
:
true
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment