|
|
@@ -2279,7 +2279,7 @@ export default { |
|
|
|
dialogNewSuperMapVisible: false, |
|
|
|
newSuperMap: { showName: "", description: "" }, |
|
|
|
mapAddress: "北京天安门", |
|
|
|
isClient: false, // 是否是客户端 |
|
|
|
isClient: true, // 是否是客户端 |
|
|
|
/**新建文件分组 start*/ |
|
|
|
dialogNewFolderGroup: false, //新建文件分组组弹窗 |
|
|
|
//文件分组数据 |
|
|
@@ -2348,6 +2348,12 @@ export default { |
|
|
|
window["refreshFiles"] = () => { |
|
|
|
this.refreshPages(); |
|
|
|
}; |
|
|
|
window["tipUser"] = () => { |
|
|
|
this.tipUser(); |
|
|
|
}; |
|
|
|
window["setFileStatusSure"] = () => { |
|
|
|
this.setFileStatusSure(); |
|
|
|
}; |
|
|
|
window.addEventListener("scroll", this.onscroll, true); |
|
|
|
this.loadProjManager(); |
|
|
|
this.loadSettings(); |
|
|
@@ -2702,6 +2708,14 @@ export default { |
|
|
|
return; |
|
|
|
} |
|
|
|
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; |
|
|
|
thisApp |
|
|
|
.$axios({ |
|
|
@@ -2815,6 +2829,14 @@ export default { |
|
|
|
} else { |
|
|
|
// state :0/2/3 |
|
|
|
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; |
|
|
|
thisApp |
|
|
|
.$axios({ |
|
|
@@ -2828,7 +2850,7 @@ export default { |
|
|
|
if (response.data.state == 1) { |
|
|
|
thisApp.$notify({ |
|
|
|
title: "恭喜您", |
|
|
|
message: message, |
|
|
|
message: "操作成功", |
|
|
|
type: "success", |
|
|
|
offset: 100, |
|
|
|
duration: 2500 |
|
|
@@ -2908,6 +2930,70 @@ export default { |
|
|
|
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: 应用列表鼠标滑入 |
|
|
|
* @return: |
|
|
|