Browse Source

[VersionBeta] V.1.0.0.0

[Adds]
1.客户端修改文件状态判断
new-cli
xzx 4 years ago
parent
commit
cc18b3a124
4 changed files with 91 additions and 5 deletions
  1. +1
    -1
      src/views/login.vue
  2. +1
    -1
      src/views/main_web/cloud.vue
  3. +1
    -1
      src/views/main_web/projnotice.vue
  4. +88
    -2
      src/views/main_web/workspace.vue

+ 1
- 1
src/views/login.vue View File

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


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

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


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

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


+ 88
- 2
src/views/main_web/workspace.vue View File

@@ -2279,7 +2279,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, //新建文件分组组弹窗
//文件分组数据 //文件分组数据
@@ -2348,6 +2348,12 @@ export default {
window["refreshFiles"] = () => { window["refreshFiles"] = () => {
this.refreshPages(); this.refreshPages();
}; };
window["tipUser"] = () => {
this.tipUser();
};
window["setFileStatusSure"] = () => {
this.setFileStatusSure();
};
window.addEventListener("scroll", this.onscroll, true); window.addEventListener("scroll", this.onscroll, true);
this.loadProjManager(); this.loadProjManager();
this.loadSettings(); this.loadSettings();
@@ -2702,6 +2708,14 @@ export default {
return; return;
} }
if (type == 1) { if (type == 1) {
if(thisApp.isClient && (state ==0 || state == 2))
{
// 启动客户端判断
thisApp.setFile=file;
thisApp.setState=state;
back.getFileStatus(file.archID,sessionStorage.userId)
return;
}
file.status = state; file.status = state;
thisApp thisApp
.$axios({ .$axios({
@@ -2815,6 +2829,14 @@ export default {
} else { } else {
// state :0/2/3 // state :0/2/3
if (type == 1) { if (type == 1) {
if(thisApp.isClient && (state ==0 || state == 2))
{
// 启动客户端判断
thisApp.setFile=file;
thisApp.setState=state;
back.getFileStatus(file.archID,sessionStorage.userId)
return;
}
file.status = state; file.status = state;
thisApp thisApp
.$axios({ .$axios({
@@ -2828,7 +2850,7 @@ export default {
if (response.data.state == 1) { if (response.data.state == 1) {
thisApp.$notify({ thisApp.$notify({
title: "恭喜您", title: "恭喜您",
message: message,
message: "操作成功",
type: "success", type: "success",
offset: 100, offset: 100,
duration: 2500 duration: 2500
@@ -2908,6 +2930,70 @@ export default {
console.log(error); console.log(error);
}); });
}, },
/**
* 客户端验证确定可以修改文件状态
*/
setFileStatusSure(){
var thisApp=this;
if(thisApp.setFile.alias == "")
{
this.$notify({
title: "温馨提示",
message: "文件正在同步中,请稍后操作",
type: "info",
offset: 100,
duration: 2500
});
return;
}
thisApp.setFile.status = thisApp.setState;
thisApp
.$axios({
method: "put",
url: encodeURI(
process.env.API_HOST + "archives/update/status"
),
data: thisApp.setFile
})
.then(function(response) {
if (response.data.state == 1) {
thisApp.$notify({
title: "恭喜您",
message: message,
type: "success",
offset: 100,
duration: 2500
});
thisApp.refreshPages();
if (thisApp.fileindex == 1 && file.commonStatus == 1) {
thisApp.loadListCommonFiles();
}
} else {
thisApp.$notify({
title: "温馨提示",
message: response.data.message,
type: "info",
offset: 100,
duration: 5000
});
}
})
.catch(function(error) {
console.log(error);
});
},
/**
* 不能改变状态时提示用户
*/
tipUser(){
this.$notify({
title: "温馨提示",
message: "文件正在同步中,请稍后操作",
type: "info",
offset: 100,
duration: 2500
});
},
/** /**
* @description: 应用列表鼠标滑入 * @description: 应用列表鼠标滑入
* @return: * @return:


Loading…
Cancel
Save