@@ -21,6 +21,8 @@ var bootstrap = function ($, learun) {
selectedParent.ID = item.value;
selectedParent.hasChildren = item.hasChildren;
selectedParent.textName = item.text;
selectedParent.BuildType = item.title;
console.log('selectedParent.BuildType', selectedParent.BuildType);
page.search({ RoomID: item.value });
}
});
@@ -30,8 +32,8 @@ var bootstrap = function ($, learun) {
});
// 新增
$('#lr_add').on('click', function () {
if (selectedParent.hasChildren || selectedParent.textName.indexOf("室") == -1 ) {
learun.alert.warning('请选择宿舍评分 ');
if (selectedParent.BuildType != '4' ) {
learun.alert.warning('请选择宿舍! ');
return;
}
learun.layerForm({
@@ -86,7 +88,12 @@ var bootstrap = function ($, learun) {
headData: [
{ label: "分数", name: "Grade", width: 100, align: "left" },
{ label: "检查者", name: "GradedUser", width: 100, align: "left" },
{ label: "日期框", name: "GradedTime", width: 100, align: "left" },
{
label: "日期框", name: "GradedTime", width: 100, align: "left",
formatter: function(value, row) {
return learun.formatDate(value, 'yyyy-MM-dd');
}
},
{ label: "备注", name: "Remark", width: 100, align: "left" },
],
mainId: 'ID',