Showing
1 changed file
with
7 additions
and
3 deletions
@@ -472,9 +472,13 @@ layui.define(['tree', 'laypage', 'laytpl', 'admin', 'form', 'table', 'commonCols | @@ -472,9 +472,13 @@ layui.define(['tree', 'laypage', 'laytpl', 'admin', 'form', 'table', 'commonCols | ||
472 | admin.req({ | 472 | admin.req({ |
473 | url: common.domainName + "/api-web/datavis/getResTotal/?busId=" + bizId | 473 | url: common.domainName + "/api-web/datavis/getResTotal/?busId=" + bizId |
474 | , done: function (res) { | 474 | , done: function (res) { |
475 | - laytpl($('#bizindexTpl').html()).render({list: res.data}, function (html) { | ||
476 | - bizindexTable.html(html); | ||
477 | - }); | 475 | + if (res.data!=null){ |
476 | + laytpl($('#bizindexTpl').html()).render({list: res.data}, function (html) { | ||
477 | + bizindexTable.html(html); | ||
478 | + }); | ||
479 | + }else { | ||
480 | + layer.msg('该业务赞无绑定资源!', {icon: 2,time:3000}); | ||
481 | + } | ||
478 | } | 482 | } |
479 | }); | 483 | }); |
480 | } | 484 | } |
-
Please register or login to post a comment