|
|
@@ -354,7 +354,7 @@ const projTreeObj = {
|
|
|
projTreeObj.exportProject(projTreeObj.tree.selected.data.ID,projTreeObj.tree.selected.data.name);
|
|
|
}
|
|
|
},
|
|
|
- improtProject:{
|
|
|
+ importProject:{
|
|
|
name: "导入建设项目",
|
|
|
icon: 'fa-external-link',
|
|
|
disabled: function () {
|
|
|
@@ -410,7 +410,7 @@ const projTreeObj = {
|
|
|
"manageFiles": me.contextMenuItems.manageFiles,
|
|
|
"refreshSummary": me.contextMenuItems.refreshSummary,
|
|
|
"exportProject":me.contextMenuItems.exportProject,
|
|
|
- "importProject":me.contextMenuItems.improtProject
|
|
|
+ "importProject":me.contextMenuItems.importProject
|
|
|
}
|
|
|
});
|
|
|
},
|
|
|
@@ -1520,22 +1520,12 @@ const projTreeObj = {
|
|
|
async function getProjectInfo(data) {
|
|
|
let result = await ajaxPost("/pm/api/exportProject",data);
|
|
|
return result;
|
|
|
- // let blob = new Blob([result], {type: 'text/plain;charset=utf-8'});
|
|
|
- // saveAs(blob, 'textName.ybp');
|
|
|
}
|
|
|
|
|
|
function saveProjectFile(data) {
|
|
|
let blob = new Blob([data], {type: 'text/plain;charset=utf-8'});
|
|
|
saveAs(blob, projectName+'.ybp');
|
|
|
}
|
|
|
-
|
|
|
- /* setTimeout(function(){
|
|
|
- $("#progressbar").css('width','50%');
|
|
|
- setTimeout(function(){
|
|
|
- $("#export").modal('hide');
|
|
|
- },1000)
|
|
|
- //$("#export").modal('hide');
|
|
|
- },1000)*/
|
|
|
},
|
|
|
getImportProjectDate:function () {//导入建设项目时,需要在现有的树节点中插入新的节点,这里是取插入所需的项目数据
|
|
|
let selectNode = projTreeObj.tree.selected;
|