|
@@ -475,7 +475,8 @@ $(document).ready(function() {
|
|
|
const levelTreeSetting = {
|
|
|
treeId: 'filing',
|
|
|
view: {
|
|
|
- selectedMulti: false
|
|
|
+ selectedMulti: false,
|
|
|
+ showTitle: false,
|
|
|
},
|
|
|
data: {
|
|
|
simpleData: {
|
|
@@ -540,6 +541,10 @@ $(document).ready(function() {
|
|
|
toastr.error('顶层节点请勿移动');
|
|
|
return false;
|
|
|
}
|
|
|
+ if (nodes[0].is_fixed) {
|
|
|
+ toastr.error('固定分类请勿移动');
|
|
|
+ return false;
|
|
|
+ }
|
|
|
if (nodes[0].source_node.filing_type !== target.source_node.filing_type) {
|
|
|
toastr.error('请勿跨越最顶层节点移动');
|
|
|
return false;
|
|
@@ -591,6 +596,11 @@ $(document).ready(function() {
|
|
|
});
|
|
|
$('#add-child').click(() => {
|
|
|
if (!filingObj.curFiling) return;
|
|
|
+ const fixedChild = filingObj.curFiling.source_node.children.find(x => { return x.is_fixed; });
|
|
|
+ if (fixedChild) {
|
|
|
+ toastr.error('该分类下存在固定分类,不可添加子级');
|
|
|
+ return;
|
|
|
+ }
|
|
|
if (filingObj.curFiling.source_node.file_count > 0) {
|
|
|
toastr.error('该分类下已导入文件,不可添加子级');
|
|
|
return;
|