|
|
|
@ -1,5 +1,6 @@
|
|
|
|
|
|
|
|
|
|
import interfaceConfig from './axios-config'
|
|
|
|
|
import interfaceConfig from './axios-config';
|
|
|
|
|
import BaseConfig from './base-config';
|
|
|
|
|
/**
|
|
|
|
|
* 公共方法
|
|
|
|
|
* @type {{}}
|
|
|
|
@ -455,7 +456,13 @@ const PublicFn = {
|
|
|
|
|
|
|
|
|
|
PublicFn.geturlCount = 0;
|
|
|
|
|
// 创建common实体类
|
|
|
|
|
interfaceConfig.callInterface([{url:"/resource/generateOfficePreview",method:"get",params:_param,isTestLogin:false}],(data)=>{
|
|
|
|
|
let _url = "";
|
|
|
|
|
if(BaseConfig.isSZUpload){
|
|
|
|
|
_url = "ypt/intellioa/sys/cloudPlatform/generateOfficePreview";
|
|
|
|
|
}else {
|
|
|
|
|
_url = "resource/generateOfficePreview";
|
|
|
|
|
}
|
|
|
|
|
interfaceConfig.callInterface([{url:_url,method:"get",params:_param,isTestLogin:false}],(data)=>{
|
|
|
|
|
if (data[0] && data[0].data.success) {
|
|
|
|
|
PublicFn.getPreviewUrl(fileId, resourceIdInt, _fn);
|
|
|
|
|
}
|
|
|
|
@ -499,7 +506,13 @@ const PublicFn = {
|
|
|
|
|
// 创建common实体类
|
|
|
|
|
// let _common = new Common(_url, _param);
|
|
|
|
|
// 调用
|
|
|
|
|
interfaceConfig.callInterface([{url:"resCtl/getResPreviewUrl",method: "get",params: _param,isTestLogin:false}],(data)=>{
|
|
|
|
|
let _url = "";
|
|
|
|
|
if(BaseConfig.isSZUpload){
|
|
|
|
|
_url = "ypt/intellioa/sys/cloudPlatform/getResPreviewUrl";
|
|
|
|
|
}else {
|
|
|
|
|
_url = "resCtl/getResPreviewUrl";
|
|
|
|
|
}
|
|
|
|
|
interfaceConfig.callInterface([{url:_url,method: "get",params: _param,isTestLogin:false}],(data)=>{
|
|
|
|
|
if (data) {
|
|
|
|
|
PublicFn.getCount = PublicFn.getCount + 1;
|
|
|
|
|
// 保存数据
|
|
|
|
|