@@ -20,7 +20,7 @@ module.exports = { | |||||
assetsPublicPath: '/', | assetsPublicPath: '/', | ||||
proxyTable: { | proxyTable: { | ||||
'/api/**': { | '/api/**': { | ||||
target: 'http://192.168.5.25:9003', | |||||
target: 'http://192.168.5.32:9003', | |||||
changeOrigin: true, | changeOrigin: true, | ||||
secure: false, | secure: false, | ||||
} | } | ||||
@@ -1,13 +1,14 @@ | |||||
'use strict' | 'use strict' | ||||
module.exports = { | module.exports = { | ||||
NODE_ENV: '"production"', | NODE_ENV: '"production"', | ||||
// OFFICE_WEB:'"https://office.tszcloud.com"' | |||||
// API_HOST:'"https://api.tszcloud.com/api/"', | // API_HOST:'"https://api.tszcloud.com/api/"', | ||||
// API_WEB:'"https://tszcloud.com/"', | |||||
// OFFICE_WEB:'"https://office.tszcloud.com"' | // OFFICE_WEB:'"https://office.tszcloud.com"' | ||||
API_HOST: '"https://bapi.tszcloud.com/api/"', | |||||
API_WEB: '"https://beta.tszcloud.com/"', | |||||
OFFICE_WEB: '"https://office.tszcloud.com"' | |||||
//API_HOST:'"http://192.168.5.25:9003/api/"', | |||||
// API_WEB:'"http://192.168.5.25:9099/"', | |||||
// API_HOST: '"https://bapi.tszcloud.com/api/"', | |||||
// OFFICE_WEB: '"https://office.tszcloud.com"' | |||||
API_HOST:'"http://192.168.5.25:9003/api/"', | |||||
} | } |
@@ -250,7 +250,7 @@ export default { | |||||
checkPwdTip: "", //检测提示 | checkPwdTip: "", //检测提示 | ||||
phoneCode: "", //手机验证码 | phoneCode: "", //手机验证码 | ||||
isRemember: false, //记住密码 | isRemember: false, //记住密码 | ||||
isClient: false //是否是客户端 | |||||
isClient: true //是否是客户端 | |||||
}; | }; | ||||
}, | }, | ||||
beforeRouteLeave(to, from, next) { | beforeRouteLeave(to, from, next) { | ||||
@@ -413,7 +413,7 @@ | |||||
mapAddress:'北京天安门', | mapAddress:'北京天安门', | ||||
showImage:false, | showImage:false, | ||||
imageUrl:'', | imageUrl:'', | ||||
isClient:false, //是否是客户端 | |||||
isClient:true, //是否是客户端 | |||||
//结束 | //结束 | ||||
// end | // end | ||||
}; | }; | ||||
@@ -935,15 +935,8 @@ | |||||
this.officeTitle = file.objectName; | this.officeTitle = file.objectName; | ||||
if (file.extension == "pdf") { | if (file.extension == "pdf") { | ||||
this.showOffice = true; | this.showOffice = true; | ||||
var fileUrl = | |||||
encodeURIComponent(process.env.API_HOST + "archives/pdf?path=") + | |||||
encodeURIComponent(file.alias) + | |||||
"&filename=" + | |||||
encodeURIComponent(file.objectName); | |||||
this.officeUrl = | |||||
process.env.API_WEB + | |||||
"static/pdfjs-2.2.228-dist/web/viewer.html?file=" + | |||||
fileUrl; | |||||
this.officeUrl = process.env.OFFICE_WEB + "?furl=" + file.alias; | |||||
this.$axios({ | this.$axios({ | ||||
method: "delete", | method: "delete", | ||||
url: encodeURI( | url: encodeURI( | ||||
@@ -85,7 +85,7 @@ | |||||
showOffice: false, // 预览Office文件 | showOffice: false, // 预览Office文件 | ||||
officeUrl: "", // PDF URL | officeUrl: "", // PDF URL | ||||
isShowDefault:false, | isShowDefault:false, | ||||
isClient: false,//是否是客户端 | |||||
isClient: true,//是否是客户端 | |||||
}; | }; | ||||
}, | }, | ||||
mounted: function () { | mounted: function () { | ||||
@@ -184,15 +184,7 @@ | |||||
this.officeTitle = file.archName + "." + file.extension; | this.officeTitle = file.archName + "." + file.extension; | ||||
if (file.extension == "pdf") { | if (file.extension == "pdf") { | ||||
this.showOffice = true; | this.showOffice = true; | ||||
var fileUrl = | |||||
encodeURIComponent(process.env.API_HOST + "archives/pdf?path=") + | |||||
encodeURIComponent(file.alias) + | |||||
"&filename=" + | |||||
encodeURIComponent(file.archName); | |||||
this.officeUrl = | |||||
process.env.API_WEB + | |||||
"static/pdfjs-2.2.228-dist/web/viewer.html?file=" + | |||||
fileUrl; | |||||
this.officeUrl = process.env.OFFICE_WEB + "?furl=" + file.alias; | |||||
this.$axios({ | this.$axios({ | ||||
method: "delete", | method: "delete", | ||||
url: encodeURI( | url: encodeURI( | ||||
@@ -213,17 +205,7 @@ | |||||
file.extension == "txt" | file.extension == "txt" | ||||
) { | ) { | ||||
this.showOffice = true; | this.showOffice = true; | ||||
var lastIndex = file.alias.lastIndexOf("."); | |||||
var namePdf = file.alias.substring(0, lastIndex) + ".pdf"; | |||||
var fileUrl = | |||||
encodeURIComponent(process.env.API_HOST + "archives/pdf?path=") + | |||||
encodeURIComponent(namePdf) + | |||||
"&filename=" + | |||||
encodeURIComponent(file.archName); | |||||
this.officeUrl = | |||||
process.env.API_WEB + | |||||
"static/pdfjs-2.2.228-dist/web/viewer.html?file=" + | |||||
fileUrl; | |||||
this.officeUrl = process.env.OFFICE_WEB + "?furl=" + file.alias; | |||||
this.$axios({ | this.$axios({ | ||||
method: "delete", | method: "delete", | ||||
url: encodeURI( | url: encodeURI( | ||||
@@ -2128,7 +2128,7 @@ export default { | |||||
dialogNewSuperMapVisible: false, | dialogNewSuperMapVisible: false, | ||||
newSuperMap: { showName: "", description: "" }, | newSuperMap: { showName: "", description: "" }, | ||||
mapAddress: "北京天安门", | mapAddress: "北京天安门", | ||||
isClient: false, // 是否是客户端 | |||||
isClient: true, // 是否是客户端 | |||||
/**新建文件分组 start*/ | /**新建文件分组 start*/ | ||||
dialogNewFolderGroup: false, //新建文件分组组弹窗 | dialogNewFolderGroup: false, //新建文件分组组弹窗 | ||||