Commit 7d9e21da by zhangleyuan

feat:云盘增加埋点

parent 39feca51
...@@ -78,7 +78,7 @@ class FolderList extends React.Component { ...@@ -78,7 +78,7 @@ class FolderList extends React.Component {
} }
// 埋点 // 埋点
handleDataDot = (folderFormat) => { handleDataDot = (folderFormat) => {
switch (folderFormat) { switch (folderFormat) {
case 'PDF': case 'PDF':
window.WEBTRACING('resource_disk_file_preview_pdf', '资料云盘_点击预览_pdf'); window.WEBTRACING('resource_disk_file_preview_pdf', '资料云盘_点击预览_pdf');
...@@ -95,8 +95,29 @@ class FolderList extends React.Component { ...@@ -95,8 +95,29 @@ class FolderList extends React.Component {
case 'PPTX': case 'PPTX':
window.WEBTRACING('resource_disk_file_preview_ppt', '资料云盘_点击预览_ppt'); window.WEBTRACING('resource_disk_file_preview_ppt', '资料云盘_点击预览_ppt');
break; break;
default: default:
break;
}
}
handleYZPreviewDataDot =(folderFormat) => {
switch (folderFormat) {
case 'PDF':
window.WEBTRACING('resource_disk_yz_file_preview_pdf', '资料云盘_点击永中预览_pdf');
break; 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)=>{ getYoZoSign = (data,type)=>{
...@@ -138,7 +159,7 @@ class FolderList extends React.Component { ...@@ -138,7 +159,7 @@ class FolderList extends React.Component {
const {currentRootDisk } = this.props; const {currentRootDisk } = this.props;
//如果是公共文件且只有查看的权限的用户的预览对接的三方是永中 //如果是公共文件且只有查看的权限的用户的预览对接的三方是永中
const that = this; const that = this;
if(currentRootDisk.disk==="COMMON"){ if(currentRootDisk.disk==="COMMON" && rights==="LOOK"){
switch (folderFormat) { switch (folderFormat) {
case 'PDF': case 'PDF':
case 'WORD': case 'WORD':
...@@ -147,9 +168,8 @@ class FolderList extends React.Component { ...@@ -147,9 +168,8 @@ class FolderList extends React.Component {
case 'EXCEL': case 'EXCEL':
case 'PPT': case 'PPT':
case 'PPTX': case 'PPTX':
that.handleYZPreviewDataDot();
if(!fileVersionId){ if(!fileVersionId){
// const rightDom = document.querySelector('.right-container');
// rightDom.style.zIndex = 112;
this.setState({ this.setState({
previewing:true, previewing:true,
showPreviewModal:true showPreviewModal:true
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment