|
|
@@ -15,7 +15,7 @@ var bootstrap = function ($, learun) { |
|
|
|
bind: function () { |
|
|
|
// 初始化左侧树形数据 |
|
|
|
$('#dataTree').lrtree({ |
|
|
|
url: top.$.rootUrl + '/LR_SystemModule/DataSource/GetTree?code=OfficialSealData&parentId=type&Id=id&showId=name', |
|
|
|
url: top.$.rootUrl + '/LR_SystemModule/DataSource/GetTree?code=OfficialSealInfo&parentId=type&Id=id&showId=name', |
|
|
|
nodeClick: function (item) { |
|
|
|
page.search({ SealId: item.value }); |
|
|
|
} |
|
|
@@ -73,7 +73,7 @@ var bootstrap = function ($, learun) { |
|
|
|
}, |
|
|
|
// 初始化列表 |
|
|
|
initGird: function () { |
|
|
|
$('#gridtable').lrAuthorizeJfGrid({ |
|
|
|
$('#gridtable').jfGrid({ |
|
|
|
url: top.$.rootUrl + '/CustomFunction/OfficialSealRecord/GetPageList', |
|
|
|
headData: [ |
|
|
|
{ label: "公章类型", name: "SealType", width: 100, align: "left", |
|
|
@@ -89,17 +89,39 @@ var bootstrap = function ($, learun) { |
|
|
|
{ label: "公章名称", name: "SealId", width: 100, align: "left", |
|
|
|
formatterAsync: function (callback, value, row, op,$cell) { |
|
|
|
learun.clientdata.getAsync('custmerData', { |
|
|
|
url: '/LR_SystemModule/DataSource/GetDataTable?code=' + 'OfficialSealData', |
|
|
|
url: '/LR_SystemModule/DataSource/GetDataTable?code=' + 'OfficialSealInfo', |
|
|
|
key: value, |
|
|
|
keyId: 'id', |
|
|
|
callback: function (_data) { |
|
|
|
callback(_data['name']); |
|
|
|
} |
|
|
|
}); |
|
|
|
}}, |
|
|
|
} |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: "状态", name: "Status", width: 100, align: "left", |
|
|
|
formatter: function (cellvalue) { |
|
|
|
if (cellvalue == '0') { |
|
|
|
return '<span class=\"label label-success\">正常</span>'; |
|
|
|
} else if (cellvalue == '1') { |
|
|
|
return '<span class=\"label label-warning\">借出</span>'; |
|
|
|
} else if (cellvalue == '2') { |
|
|
|
return '<span class=\"label label-danger\">挂失</span>'; |
|
|
|
} else if (cellvalue == '3') { |
|
|
|
return '<span class=\"label label-success\">归还</span>'; |
|
|
|
}else if (cellvalue == '99') { |
|
|
|
return '<span class=\"label label-danger\">销毁</span>'; |
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
}, |
|
|
|
{ label: "申请人", name: "ApplyUserName", width: 100, align: "left" }, |
|
|
|
{ label: "申请时间", name: "ApplyTime", width: 150, align: "left" }, |
|
|
|
], |
|
|
|
mainId:'Id', |
|
|
|
isPage: true |
|
|
|
isPage: true, |
|
|
|
sidx: 'ApplyTime', |
|
|
|
sord: 'ASC', |
|
|
|
}); |
|
|
|
page.search(); |
|
|
|
}, |
|
|
|