|
|
@@ -61,6 +61,19 @@ var bootstrap = function ($, learun) { |
|
|
|
}); |
|
|
|
} |
|
|
|
}); |
|
|
|
// 删除 |
|
|
|
$('#lr_delete').on('click', function () { |
|
|
|
var keyValue = $('#gridtable').jfGridValue('F_DepartmentId'); |
|
|
|
if (learun.checkrow(keyValue)) { |
|
|
|
learun.layerConfirm('是否确认删除该项!', function (res) { |
|
|
|
if (res) { |
|
|
|
learun.deleteForm(top.$.rootUrl + '/LR_OrganizationModule/Department/DeleteForm', { keyValue: keyValue }, function () { |
|
|
|
refreshGirdData(); |
|
|
|
}); |
|
|
|
} |
|
|
|
}); |
|
|
|
} |
|
|
|
}); |
|
|
|
// 公告发布权限设置 |
|
|
|
$('#lr_permission').on('click', function () { |
|
|
|
var keyValue = $('#gridtable').jfGridValue('F_DepartmentId'); |
|
|
@@ -77,22 +90,6 @@ var bootstrap = function ($, learun) { |
|
|
|
}); |
|
|
|
} |
|
|
|
}); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// 删除 |
|
|
|
$('#lr_delete').on('click', function () { |
|
|
|
var keyValue = $('#gridtable').jfGridValue('F_DepartmentId'); |
|
|
|
if (learun.checkrow(keyValue)) { |
|
|
|
learun.layerConfirm('是否确认删除该项!', function (res) { |
|
|
|
if (res) { |
|
|
|
learun.deleteForm(top.$.rootUrl + '/LR_OrganizationModule/Department/DeleteForm', { keyValue: keyValue }, function () { |
|
|
|
refreshGirdData(); |
|
|
|
}); |
|
|
|
} |
|
|
|
}); |
|
|
|
} |
|
|
|
}); |
|
|
|
}, |
|
|
|
inittree: function () { |
|
|
|
$('#companyTree').lrtree({ |
|
|
@@ -116,37 +113,31 @@ var bootstrap = function ($, learun) { |
|
|
|
{ label: "部门简称", name: "F_ShortName", width: 100, align: "left" }, |
|
|
|
{ label: "部门性质", name: "F_Nature", width: 100, align: "left" }, |
|
|
|
{ |
|
|
|
label: "是否虚拟部门", name: "F_IsVirtualization", width: 100, align: "left", formatter: function (cellvalue) { |
|
|
|
if (cellvalue) { |
|
|
|
return '<span class=\"label label-success\" style=\"cursor: pointer;\">是</span>'; |
|
|
|
} else{ |
|
|
|
return '<span class=\"label label-default\" style=\"cursor: pointer;\">否</span>'; |
|
|
|
} |
|
|
|
label: "负责人", name: "F_Manager", width: 100, align: "left", |
|
|
|
formatterAsync: function (callback, value, row, op, $cell) { |
|
|
|
learun.clientdata.getAsync('custmerData', { |
|
|
|
url: '/LR_SystemModule/DataSource/GetDataTable?code=' + 'teacheruserdata', |
|
|
|
key: value, |
|
|
|
keyId: 'f_userid', |
|
|
|
callback: function (_data) { |
|
|
|
callback(_data['f_realname']); |
|
|
|
} |
|
|
|
}); |
|
|
|
} |
|
|
|
}, |
|
|
|
{ label: "负责人", name: "F_Manager", width: 100, align: "left" }, |
|
|
|
{ label: "分管校长", name: "F_SchoolMaster", width: 100, align: "left" }, |
|
|
|
{ |
|
|
|
label: "分管校长", name: "F_SchoolMasterId", width: 100, align: "left", formatterAsync: function (callback, value, row, op, $cell) { |
|
|
|
learun.clientdata.getAsync('user', { |
|
|
|
label: "公告类别", name: "NoticeCategory", width: 200, align: "left", |
|
|
|
formatterAsync: function (callback, value, row, op, $cell) { |
|
|
|
learun.clientdata.getsAsync('dataItem', { |
|
|
|
key: value, |
|
|
|
code: 'NoticeCategory', |
|
|
|
callback: function (_data) { |
|
|
|
callback(_data.name); |
|
|
|
callback(_data); |
|
|
|
} |
|
|
|
}); |
|
|
|
} |
|
|
|
}, |
|
|
|
//{ |
|
|
|
// label: "公告类别", name: "NoticeCategory", width: 200, align: "left" , |
|
|
|
// formatterAsync: function (callback, value, row, op, $cell) { |
|
|
|
// learun.clientdata.getsAsync('dataItem', { |
|
|
|
// key: value, |
|
|
|
// code: 'NoticeCategory', |
|
|
|
// callback: function (_data) { |
|
|
|
// callback(_data); |
|
|
|
// } |
|
|
|
// }); |
|
|
|
// } |
|
|
|
//}, |
|
|
|
{ label: "电话号", name: "F_OuterPhone", width: 100, align: "left" }, |
|
|
|
{ label: "分机号", name: "F_InnerPhone", width: 60, align: "center" }, |
|
|
|
{ label: "排序", name: "F_Order", width: 60, align: "center" }, |
|
|
|