Commit b3011cba by liuyang

新增目录目录名称为空校验

parent fcac6cfd
......@@ -143,11 +143,17 @@ let save = function (btnNode) {
let flag = true;
$.each(rows, function(index, item) {
let projCode= item.get("projCode");
let fileName= item.get("fileName");
if(isBlank(projCode)){
message("选中的第"+(index+1)+"行\"所属项目\",不能为空!");
flag = false;
return false;
}
if(isBlank(fileName)){
message("选中的第"+(index+1)+"行\"目录名称\",不能为空!");
flag = false;
return false;
}
});
if(flag) {
JSUtils.confirm("确定对勾选中的[" + rows.length + "]条数据做\"保存\"操作? ", {
......
......@@ -122,11 +122,17 @@ let save = function (btnNode) {
let flag = true;
$.each(rows, function(index, item) {
let projCode= item.get("projName");
let fileName= item.get("fileName");
if(isBlank(projCode)){
message("选中的第"+(index+1)+"行\"所属项目\",不能为空!");
flag = false;
return false;
}
if(isBlank(fileName)){
message("选中的第"+(index+1)+"行\"目录名称\",不能为空!");
flag = false;
return false;
}
});
if(flag) {
JSUtils.confirm("确定对勾选中的[" + rows.length + "]条数据做\"保存\"操作? ", {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment