|
@@ -464,6 +464,8 @@ const projTreeObj = {
|
|
|
if(selectedItem.children[0] .projType === projectType.project ) return false;//如果文件夹有子项,并且是建设项目,可用
|
|
|
}
|
|
|
}
|
|
|
+ } else {
|
|
|
+ return false;
|
|
|
}
|
|
|
return true;
|
|
|
},
|
|
@@ -1647,6 +1649,9 @@ const projTreeObj = {
|
|
|
parent = selectNode.parent;
|
|
|
next = selectNode.nextSibling;
|
|
|
updateData["update"] = {query:{ID:selectNode.id()}}
|
|
|
+ } else if (!selectNode) { // 默认在第一位
|
|
|
+ parent = selectNode ? selectNode.parent : projTreeObj.tree._root;
|
|
|
+ next = selectNode ? selectNode.nextSibling : projTreeObj.tree.firstNode();
|
|
|
}
|
|
|
updateData["self"] ={ParentID:parent.id(),NextSiblingID:next?next.id():-1};
|
|
|
return updateData;
|
|
@@ -1850,12 +1855,26 @@ $(document).ready(function() {
|
|
|
folderDialog.on('shown.bs.modal', function () {
|
|
|
$('#folder-name').focus();
|
|
|
});
|
|
|
+ projDialog.on('show.bs.modal', function () {
|
|
|
+ // 内蒙古费用定额,新建建设项目页面隐藏“文件类型:投标、招标”
|
|
|
+ const filterCompilationNames = ['内蒙古定额(2017)'];
|
|
|
+ if (filterCompilationNames.includes(compilationData.name)) {
|
|
|
+ $('#project-dialog-fileKind').hide();
|
|
|
+ }
|
|
|
+ });
|
|
|
projDialog.on('shown.bs.modal', function () {
|
|
|
$('#project-name').focus();
|
|
|
});
|
|
|
engDialog.on('shown.bs.modal', function () {
|
|
|
$('#engineering-name').focus();
|
|
|
});
|
|
|
+ tenderDialog.on('show.bs.modal', function () {
|
|
|
+ $('#tender-name').focus();
|
|
|
+ const filterCompilationNames = ['内蒙古定额(2017)'];
|
|
|
+ if (filterCompilationNames.includes(compilationData.name)) {
|
|
|
+ $('#tender-dialog-fileKind').hide();
|
|
|
+ }
|
|
|
+ });
|
|
|
tenderDialog.on('shown.bs.modal', function () {
|
|
|
$('#tender-name').focus();
|
|
|
});
|