|
@@ -246,6 +246,7 @@ $(document).ready(function() {
|
|
|
cols: [
|
|
|
{ title: '名称', colSpan: '1', rowSpan: '1', field: 'name', hAlign: 0, width: 250, formatter: '@', readOnly: true, cellType: 'tree' },
|
|
|
{ title: '文件数', colSpan: '1', rowSpan: '1', field: 'file_count', hAlign: 1, width: 50, readOnly: true },
|
|
|
+ { title: '授权', colSpan: '1', rowSpan: '1', field: 'permission_count', hAlign: 1, width: 50, readOnly: true },
|
|
|
{ title: '固定', colSpan: '1', rowSpan: '1', field: 'is_fixed', hAlign: 1, width: 50, cellType: 'checkbox' },
|
|
|
{ title: '提示', colSpan: '1', rowSpan: '1', field: 'tips', hAlign: 0, width: 280, formatter: '@', wordWrap: 1 },
|
|
|
],
|
|
@@ -337,6 +338,9 @@ $(document).ready(function() {
|
|
|
if (node.file_count > 0 && node.is_fixed !== node.org_is_fixed) {
|
|
|
throw `【${node.name}】下已存在文件,不可修改是否为固定节点`;
|
|
|
}
|
|
|
+ if (node.permission_count > 0 && node.is_fixed !== node.org_is_fixed) {
|
|
|
+ throw `【${node.name}】下已授权给用户,不可修改是否为固定节点`;
|
|
|
+ }
|
|
|
}
|
|
|
const sftIndex = [];
|
|
|
const getNewSft = function () {
|
|
@@ -347,7 +351,7 @@ $(document).ready(function() {
|
|
|
return i;
|
|
|
};
|
|
|
for (const node of this.checkTree.nodes) {
|
|
|
- if (node.file_count) {
|
|
|
+ if (node.file_count || node.permission_count) {
|
|
|
node.new_filing_type = node.filing_type;
|
|
|
} else if (node.is_fixed) {
|
|
|
node.new_filing_type = getNewSft();
|
|
@@ -391,6 +395,7 @@ $(document).ready(function() {
|
|
|
filing_type: node.filing_type,
|
|
|
tips: node.tips,
|
|
|
file_count: node.file_count,
|
|
|
+ permission_count: node.permission_count,
|
|
|
});
|
|
|
}
|
|
|
return data;
|