|
par.forEach(function(check){
var table = new this.Table( "device" );
var find = check;
find = "o.sn_list = '" + find + "'";
console.log(find);
table.rowCountWhere( find , function(data){
console.log(data.data.value);
if(data.data.value > 0 ){
this.form.get("check_list").setData("工号重复");
};
}.bind(this), function(xhr){},false);
}.bind(this));
以上查询脚本
2022-01-003是不存在的,不过也能查出value值,导致结果出错
[img]blob:https://www.o2oa.net/a376ae98-207a-4a3d-9767-8271ec740e42[/img]
|
本帖子中包含更多资源
您需要 登录 才可以下载或查看,没有账号?立即注册
x
|