Sfoglia il codice sorgente

[VersionBeta] V.1.0.0.0

[Adds]
1.统一客户端isClient设置
2.增加客户端tipMsg方法
new-cli
xzx 4 anni fa
parent
commit
be6366a1ab
6 ha cambiato i file con 36 aggiunte e 15 eliminazioni
  1. +1
    -1
      config/index.js
  2. +4
    -4
      config/prod.env.js
  3. +16
    -1
      src/views/login.vue
  4. +1
    -1
      src/views/main_web/cloud.vue
  5. +1
    -1
      src/views/main_web/projnotice.vue
  6. +13
    -7
      src/views/main_web/workspace.vue

+ 1
- 1
config/index.js Vedi File

@@ -20,7 +20,7 @@ module.exports = {
assetsPublicPath: '/',
proxyTable: {
'/api/**': {
target: 'http://192.168.5.25:9003',
target: 'http://192.168.5.32:9003',
changeOrigin: true,
secure: false,
}


+ 4
- 4
config/prod.env.js Vedi File

@@ -4,11 +4,11 @@ module.exports = {
// OFFICE_WEB:'"https://office.tszcloud.com"'
// API_HOST:'"https://api.tszcloud.com/api/"',

OFFICE_WEB:'"https://office.tszcloud.com"',
API_HOST: '"https://bapi.tszcloud.com/api/"',
// OFFICE_WEB:'"https://office.tszcloud.com"',
// API_HOST: '"https://bapi.tszcloud.com/api/"',
IS_CLIENT: true,

// OFFICE_WEB: '"https://office.tszcloud.com"'
// API_HOST:'"http://192.168.5.32:9003/api/"',
API_HOST:'"http://192.168.5.32:9003/api/"',

}

+ 16
- 1
src/views/login.vue Vedi File

@@ -250,7 +250,7 @@ export default {
checkPwdTip: "", //检测提示
phoneCode: "", //手机验证码
isRemember: false, //记住密码
isClient: false //是否是客户端
isClient: process.env.IS_CLIENT //是否是客户端
};
},
beforeRouteLeave(to, from, next) {
@@ -262,8 +262,23 @@ export default {
},
mounted: function() {
this.loadRemember();
window["tipMsg"] = msg => {
this.tipMsg(msg);
};
},
methods: {
/**
* 提示信息
*/
tipMsg(msg){
this.$notify({
title: "温馨提示",
message: msg,
type: "warning",
offset: 100,
duration: 3500
});
},
/**
* @description: 获取记住密码
* @param {type}


+ 1
- 1
src/views/main_web/cloud.vue Vedi File

@@ -413,7 +413,7 @@
mapAddress:'北京天安门',
showImage:false,
imageUrl:'',
isClient:false, //是否是客户端
isClient:process.env.IS_CLIENT, //是否是客户端
//结束
// end
};


+ 1
- 1
src/views/main_web/projnotice.vue Vedi File

@@ -85,7 +85,7 @@
showOffice: false, // 预览Office文件
officeUrl: "", // PDF URL
isShowDefault:false,
isClient: false,//是否是客户端
isClient: process.env.IS_CLIENT,//是否是客户端
};
},
mounted: function () {


+ 13
- 7
src/views/main_web/workspace.vue Vedi File

@@ -2133,8 +2133,7 @@ export default {
dialogNewSuperMapVisible: false,
newSuperMap: { showName: "", description: "" },
mapAddress: "北京天安门",
isClient: false, // 是否是客户端

isClient: process.env.IS_CLIENT, // 是否是客户端
/**新建文件分组 start*/
dialogNewFolderGroup: false, //新建文件分组组弹窗
//文件分组数据
@@ -2248,8 +2247,6 @@ export default {
this.loadSettings();
this.listFolders();
this.updateProjUser();
// this.listenerFrapfile();
// window.addEventListener("scroll", this.listenBottomHeight, true);
window.addEventListener("resize", this.listenBottomHeight, true);
},
computed: {
@@ -2280,6 +2277,10 @@ export default {
}
},
methods: {
downLoadStatus:function(){
var data =back.getProgress();
console.log(data);
},
listenBottomHeight(){
let oDivH= document.getElementById("bottomBox").offsetHeight;
let oShodow= document.getElementById("bottomoShodow");
@@ -2607,7 +2608,7 @@ export default {
return;
}
if (type == 1) {
if(thisApp.isClient && (state ==0 || state == 2))
if(thisApp.isClient && (state == 0 || state == 2))
{
// 启动客户端判断
thisApp.setFile=file;
@@ -3789,6 +3790,7 @@ export default {
file.downloadStatus = 1;
file.isDownload = true;
var archid = file.archID;
var alias = file.alias;
var filename = file.archName + "." + file.extension;
if (file.version > 1) {
filename = file.archName + file.version + "." + file.extension;
@@ -3798,7 +3800,7 @@ export default {
thisApp.listUserFolders[thisApp.nowFolderIndex].folderName;
var projID = file.projID;
if (type == 1) {
back.downloadFile(archid, filename, folderID);
back.downloadFile(archid, filename, folderID,sessionStorage.userId,sessionStorage.companyId,alias);
} else {
var folderName =
thisApp.listUserFolders[thisApp.nowFolderIndex].folderName;
@@ -3806,8 +3808,12 @@ export default {
archid,
filename,
folderID,
sessionStorage.userId,
sessionStorage.companyId,
alias,
sessionStorage.projName,
folderName
folderName,
sessionStorage.projId
);
}
} else {


Caricamento…
Annulla
Salva