|
|
@@ -6,6 +6,7 @@ |
|
|
|
*/ |
|
|
|
var refreshGirdData; |
|
|
|
var AId = request("AId"); |
|
|
|
var TreeAIASSClass = null; |
|
|
|
var currentUser = request("currentUser");//我的资产需要用到 |
|
|
|
var IsDelete = request("IsDelete");//报废资产需要使用 |
|
|
|
var bootstrap = function ($, learun) { |
|
|
@@ -29,10 +30,12 @@ var bootstrap = function ($, learun) { |
|
|
|
// page.search({ AIAssType: item.value }); |
|
|
|
// } |
|
|
|
//}); |
|
|
|
|
|
|
|
$('#dataTree').lrtree({ |
|
|
|
url: top.$.rootUrl + '/AssetManagementSystem/Ass_AssetsInfo/GetTree', |
|
|
|
nodeClick: function (item) { |
|
|
|
page.search({ AIASSClass: item.value }); |
|
|
|
TreeAIASSClass = item.value; |
|
|
|
} |
|
|
|
}); |
|
|
|
$('#multiple_condition_query').lrMultipleQuery(function (queryJson) { |
|
|
@@ -62,8 +65,6 @@ var bootstrap = function ($, learun) { |
|
|
|
$('#AIASSState').lrDataItemSelect({ code: 'AssState' }); |
|
|
|
$('#AIDepartment').lrDepartmentSelect({ |
|
|
|
select: function (val) { |
|
|
|
console.log(val.value); |
|
|
|
|
|
|
|
$('#AIUsePeople').lrselectRefresh({ url: top.$.rootUrl + '/LR_OrganizationModule/User/GetListByDepartmentId?departmentId=' + val.value, text: 'F_RealName', value: 'F_UserId' }) |
|
|
|
} |
|
|
|
}); |
|
|
@@ -453,13 +454,15 @@ var bootstrap = function ($, learun) { |
|
|
|
isMultiselect: true, |
|
|
|
isPage: true, |
|
|
|
sidx: 'AICodeNum', |
|
|
|
rows:20 |
|
|
|
rows: 20 |
|
|
|
}); |
|
|
|
page.search(); |
|
|
|
}, |
|
|
|
search: function (param) { |
|
|
|
param = param || {}; |
|
|
|
param.AId = AId; |
|
|
|
param.AIASSClass = TreeAIASSClass; |
|
|
|
console.log(param.AIASSClass); |
|
|
|
if (currentUser) { |
|
|
|
var userInfo = top.learun.clientdata.get(['userinfo']); |
|
|
|
param.userId = userInfo.userId; |
|
|
|