diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/AssetManagementSystem/Views/Ass_AssetsInfoItem/Index.js b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/AssetManagementSystem/Views/Ass_AssetsInfoItem/Index.js index 5a6e1ecb3..d5d41ef4e 100644 --- a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/AssetManagementSystem/Views/Ass_AssetsInfoItem/Index.js +++ b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/AssetManagementSystem/Views/Ass_AssetsInfoItem/Index.js @@ -6,7 +6,7 @@ */ var refreshGirdData; var AId = request("AId"); -var TreeAIASSClass = null; +var TreeAIASSClass = ''; var currentUser = request("currentUser");//我的资产需要用到 var IsDelete = request("IsDelete");//报废资产需要使用 var bootstrap = function ($, learun) { @@ -34,8 +34,10 @@ var bootstrap = function ($, learun) { $('#dataTree').lrtree({ url: top.$.rootUrl + '/AssetManagementSystem/Ass_AssetsInfo/GetTree', nodeClick: function (item) { + if (item && item.value) { + TreeAIASSClass = item.value; + } page.search({ AIASSClass: item.value }); - TreeAIASSClass = item.value; } }); $('#multiple_condition_query').lrMultipleQuery(function (queryJson) { @@ -462,7 +464,6 @@ var bootstrap = function ($, learun) { 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;