|
@@ -108,7 +108,7 @@ $(document).ready(function() {
|
|
|
async setCurFiling(node) {
|
|
|
filingObj.curFiling = node;
|
|
|
}
|
|
|
- moveFiling(node, tree_pid, tree_order) {
|
|
|
+ moveFiling(node, tree_pid, tree_order, reload = false) {
|
|
|
if (node.file_count > 0) return;
|
|
|
if (tree_pid === node.source_node.tree_pid && tree_order === node.source_node.tree_order) return;
|
|
|
|
|
@@ -131,6 +131,7 @@ $(document).ready(function() {
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
+ self.loadFiling();
|
|
|
});
|
|
|
}
|
|
|
batchUpdateFiling(data, callback) {
|
|
@@ -229,6 +230,15 @@ $(document).ready(function() {
|
|
|
if (!filingObj.curFiling) return;
|
|
|
filingObj.addChildFiling(filingObj.curFiling);
|
|
|
});
|
|
|
+ $('#up-move').click(() => {
|
|
|
+ if (!filingObj.curFiling) return;
|
|
|
+ filingObj.moveFiling(filingObj.curFiling, filingObj.curFiling.tree_pid, filingObj.curFiling.source_node.tree_order - 1);
|
|
|
+ });
|
|
|
+ $('#down-move').click(() => {
|
|
|
+ if (!filingObj.curFiling) return;
|
|
|
+ filingObj.moveFiling(filingObj.curFiling, filingObj.curFiling.tree_pid, filingObj.curFiling.source_node.tree_order + 1);
|
|
|
+ });
|
|
|
+
|
|
|
$('#del-filing-ok').click(() => {
|
|
|
if (!filingObj.deleteNode) return;
|
|
|
filingObj.delFiling(filingObj.deleteNode, function() {
|