소스 검색

[VersionBeta] V.1.0.0.0

[Adds]
1.pdf预览修改cloud.vue/projnotice.vue
master
xzx 4 년 전
부모
커밋
5c9361bf98
6개의 변경된 파일16개의 추가작업 그리고 40개의 파일을 삭제
  1. +1
    -1
      config/index.js
  2. +7
    -6
      config/prod.env.js
  3. +1
    -1
      src/views/login.vue
  4. +3
    -10
      src/views/main_web/cloud.vue
  5. +3
    -21
      src/views/main_web/projnotice.vue
  6. +1
    -1
      src/views/main_web/workspace.vue

+ 1
- 1
config/index.js 파일 보기

@@ -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,
} }


+ 7
- 6
config/prod.env.js 파일 보기

@@ -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/"',


} }

+ 1
- 1
src/views/login.vue 파일 보기

@@ -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) {


+ 3
- 10
src/views/main_web/cloud.vue 파일 보기

@@ -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(


+ 3
- 21
src/views/main_web/projnotice.vue 파일 보기

@@ -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(


+ 1
- 1
src/views/main_web/workspace.vue 파일 보기

@@ -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, //新建文件分组组弹窗