|
@@ -1,6 +1,7 @@
|
|
'use strict'
|
|
'use strict'
|
|
|
|
|
|
-const IDMark_Switch = "_switch",
|
|
|
|
|
|
+const
|
|
|
|
+ IDMark_Switch = "_switch",
|
|
IDMark_Icon = "_ico",
|
|
IDMark_Icon = "_ico",
|
|
IDMark_Span = "_span",
|
|
IDMark_Span = "_span",
|
|
IDMark_Input = "_input",
|
|
IDMark_Input = "_input",
|
|
@@ -9,6 +10,7 @@ const IDMark_Switch = "_switch",
|
|
IDMark_Remove = "_remove",
|
|
IDMark_Remove = "_remove",
|
|
IDMark_Ul = "_ul",
|
|
IDMark_Ul = "_ul",
|
|
IDMark_A = "_a";
|
|
IDMark_A = "_a";
|
|
|
|
+ //以上的常量是在查找zTree默认生成的dom对象时用到(tID + 后缀)
|
|
|
|
|
|
const NODE_LEVEL_COMPILATION_OLD = 0,
|
|
const NODE_LEVEL_COMPILATION_OLD = 0,
|
|
NODE_LEVEL_COMPILATION_NEW = 1,
|
|
NODE_LEVEL_COMPILATION_NEW = 1,
|
|
@@ -348,6 +350,8 @@ let zTreeOprObj = {
|
|
},
|
|
},
|
|
onDrop: function (event, treeId, treeNodes, targetNode, moveType, isCopy) {
|
|
onDrop: function (event, treeId, treeNodes, targetNode, moveType, isCopy) {
|
|
let me = zTreeOprObj;
|
|
let me = zTreeOprObj;
|
|
|
|
+ zTreeOprObj.treeObj.checkNode(treeNodes[0], false, false);
|
|
|
|
+ treeNodes[0].released = false;
|
|
let targetTopNode = me.getParentNodeByNodeLevel(targetNode, NODE_LEVEL_COMPILATION_NEW);
|
|
let targetTopNode = me.getParentNodeByNodeLevel(targetNode, NODE_LEVEL_COMPILATION_NEW);
|
|
let newTopNode = null;
|
|
let newTopNode = null;
|
|
let canContinue = false;
|
|
let canContinue = false;
|