|
|
@@ -18,7 +18,7 @@ var bootstrap = function ($, learun) { |
|
|
|
page.initData(); |
|
|
|
}, |
|
|
|
bind: function () { |
|
|
|
|
|
|
|
|
|
|
|
}, |
|
|
|
initData: function () { |
|
|
|
if (!!keyValue) { |
|
|
@@ -51,16 +51,16 @@ var bootstrap = function ($, learun) { |
|
|
|
value: "stuno", |
|
|
|
text: "stuname", |
|
|
|
url: top.$.rootUrl + '/LR_SystemModule/DataSource/GetDataTable', |
|
|
|
param: { code: "StuInfoBasic", strWhere: strWhere }, |
|
|
|
param: { code: "StuInfoBasic", strWhere: strWhere }, |
|
|
|
// 是否允许搜索 |
|
|
|
allowSearch: true, |
|
|
|
select: function (item) { |
|
|
|
// console.log(item); |
|
|
|
// console.log(item); |
|
|
|
var stuid = ''; |
|
|
|
if (item) { |
|
|
|
stuid = item.stuno; |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
var id = $(this).attr('id'); |
|
|
|
//console.log('id', id); |
|
|
|
//console.log('item',item); |
|
|
@@ -78,9 +78,9 @@ var bootstrap = function ($, learun) { |
|
|
|
|
|
|
|
//arr.push({ ID: data[i].ID, StudentID: data[i].StudentID }); |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}); |
|
|
|
} |
|
|
|
}, |
|
|
@@ -93,8 +93,14 @@ var bootstrap = function ($, learun) { |
|
|
|
//var postData = { |
|
|
|
// strEntity: JSON.stringify($('body').lrGetFormData()) |
|
|
|
//}; |
|
|
|
//console.log('arr',arr); |
|
|
|
|
|
|
|
//console.log('arr', arr); |
|
|
|
for (var i = 0; i < arr.length - 1; i++) { |
|
|
|
for (var j = i + 1; j < arr.length; j++) { |
|
|
|
if (!!arr[i].StudentID && arr[i].StudentID === arr[j].StudentID) { |
|
|
|
return learun.alert.warning('学生不可重复!'); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
var postData = { |
|
|
|
list: arr |
|
|
|
}; |
|
|
|