table 弹出框表格指令(3)

//打开弹出框 $scope.openpop = function (type) { $(".pop-up").stop(true, false).fadeIn(); //根据绑定值进行读取操作 if (type == "SearchHistory") { //请求数据即可.读取List接口 } else { //读取PopupList接口 $scope.routetype = "ReturnPopup"; if (type == "process") $scope.routepath = "ProcessDetail"; else if (type == "productmodel") $scope.routepath = "ProductModelDetail"; var temp = $cookies.get(type + "checkcache"); if (angular.isDefined(temp) && temp != null) $scope.selectnode = jQuery.parseJSON(temp); $scope.urlpart = type; } } $scope.popupcallback = function (data, primaryKey, codeKey, url) { //根据url存储data if (data != null & data.length > 0) $cookies.put(url + "checkcache", JSON.stringify(data)); if (url == "process") { $scope.selectprocessNametip = codeKey; $scope.selectprocessIdtip = primaryKey; } else if (url == "productmodel") { $scope.selectproductNametip = codeKey; $scope.selectproductIdtip = primaryKey; } }

<!--表格弹框--> <div> <popup-table url="urlpart" routepath="routepath" routetype="routetype" on-callback="popupcallback(data,primaryKey, codeKey,url)" mulitselect="true" selectnode="selectnode"></popup-table> </div>

内容版权声明:除非注明,否则皆为本站原创文章。

转载注明出处:https://www.heiqu.com/wyzjpy.html