...
|
...
|
@@ -12,6 +12,7 @@ layui.define(['tree', 'laypage', 'laytpl', 'admin', 'form', 'table', 'commonCols |
|
|
var common = layui.common;
|
|
|
var commonDetail = layui.commonDetail;
|
|
|
var busId = '';//当前业务Id
|
|
|
var busName = '';
|
|
|
var appId = '';
|
|
|
var curTreeNode = '';
|
|
|
var curBizResType = '';//当前业务所在的资源类型
|
...
|
...
|
@@ -189,8 +190,10 @@ layui.define(['tree', 'laypage', 'laytpl', 'admin', 'form', 'table', 'commonCols |
|
|
curTreeNode = node;
|
|
|
curBizResType = node.data.id;
|
|
|
if (node.data.code) {
|
|
|
busId = JSON.parse(node.data.code)["busId"];
|
|
|
appId = JSON.parse(node.data.code)["appId"];
|
|
|
var itemData = JSON.parse(node.data.code);
|
|
|
busId = itemData["busId"];
|
|
|
busName = itemData['busTypeName'];
|
|
|
appId = itemData["appId"];
|
|
|
}
|
|
|
var el = null;
|
|
|
if (node.data.children) {
|
...
|
...
|
@@ -473,7 +476,7 @@ layui.define(['tree', 'laypage', 'laytpl', 'admin', 'form', 'table', 'commonCols |
|
|
url: common.domainName + "/api-web/datavis/getResTotal/?busId=" + bizId
|
|
|
, done: function (res) {
|
|
|
if (res.data!=null){
|
|
|
laytpl($('#bizindexTpl').html()).render({list: res.data}, function (html) {
|
|
|
laytpl($('#bizindexTpl').html()).render({list: res.data,bizId:bizId,bizName:busName}, function (html) {
|
|
|
bizindexTable.html(html);
|
|
|
});
|
|
|
}else {
|
...
|
...
|
|