Constants部分常量添加final修饰

pull/85/head
RuoYi 2019-04-12 19:10:52 +08:00
parent 5d84c7fcb0
commit 2ad741c4e8
3 changed files with 6 additions and 7 deletions

View File

@ -1085,7 +1085,6 @@
notAllowLastLevel: function(_tree) {
var nodes = _tree.getSelectedNodes();
for (var i = 0; i < nodes.length; i++) {
//if (nodes[i].level == nodes.length + 1)判断是否是最后层级节点该条件判定四级组织结构时失效如下只需判定选择的节点isParent == false即可 modify by weidu 2019-04-10
if (!nodes[i].isParent) {
$.modal.msgError("不能选择最后层级节点(" + nodes[i].name + "");
return false;

View File

@ -40,25 +40,25 @@ public class Constants
/**
*
*/
public static String AUTO_REOMVE_PRE = "true";
public static final String AUTO_REOMVE_PRE = "true";
/**
*
*/
public static String PAGE_NUM = "pageNum";
public static final String PAGE_NUM = "pageNum";
/**
*
*/
public static String PAGE_SIZE = "pageSize";
public static final String PAGE_SIZE = "pageSize";
/**
*
*/
public static String ORDER_BY_COLUMN = "orderByColumn";
public static final String ORDER_BY_COLUMN = "orderByColumn";
/**
* "desc" "asc".
*/
public static String IS_ASC = "isAsc";
public static final String IS_ASC = "isAsc";
}