...
|
...
|
@@ -117,16 +117,20 @@ |
|
|
|
|
|
var initDashBoard = function (data) {
|
|
|
var div_dash = $(".api_info_container");
|
|
|
var import_app = ["gateway","order","promotion","product","message","sns","users","resources","activity","brower","uic","rabbit"];
|
|
|
$.each(data, function (idx, val) {
|
|
|
var api_info_item = $('<div class="api_info_item col-xs-4 ">');
|
|
|
var api_info_item = $('<div class="api_info_item col-xs-2 ">');
|
|
|
var api_info_item_panel = $(' <div class="panel panel-default">');
|
|
|
var api_info_item_panel_title = $('<div class="item_java_api_title panel-heading">' + val.typeName + '<span style="font-size: medium;float: right;padding-top: 15px"><span id="span_time_' + val.typeId + '"></span></span></div>');
|
|
|
var api_info_item_panel_body = $('<div class="panel-body">');
|
|
|
//api_info_item_panel_body.append('<button class="btn_java_api btn btn-lg btn-default" id="btn_1_1_' + val.typeId + '">AWS <span class="badge"></span></button>');
|
|
|
api_info_item_panel_body.append('<button class="btn_java_api btn btn-lg btn-default" id="btn_2_21_' + val.typeId + '">QCloud <span class="badge"></span></button>');
|
|
|
api_info_item_panel_body.append('<button class="btn_java_api btn btn-lg btn-default" id="btn_2_22_' + val.typeId + '">QCloudaz2 <span class="badge"></span></button>');
|
|
|
api_info_item_panel_body.append('<button class="btn_java_api btn btn-lg btn-default" id="btn_2_23_' + val.typeId + '">QCloudaz3 <span class="badge"></span></button>');
|
|
|
api_info_item_panel_body.append('<button class="btn_java_api btn btn-lg btn-default" id="btn_0_0_' + val.typeId + '">Custom <span class="badge"></span></button>');
|
|
|
if(import_app.indexOf(val.typeName)>=0){
|
|
|
api_info_item_panel_body.append('<button class="btn_java_api btn btn-lg btn-default" id="btn_2_21_' + val.typeId + '">QCloud <span class="badge"></span></button>');
|
|
|
}else {
|
|
|
api_info_item_panel_body.append('<button class="btn_java_api btn btn-lg btn-default" id="btn_0_0_' + val.typeId + '">Custom <span class="badge"></span></button>');
|
|
|
}
|
|
|
// api_info_item_panel_body.append('<button class="btn_java_api btn btn-lg btn-default" id="btn_2_22_' + val.typeId + '">QCloudaz2 <span class="badge"></span></button>');
|
|
|
// api_info_item_panel_body.append('<button class="btn_java_api btn btn-lg btn-default" id="btn_2_23_' + val.typeId + '">QCloudaz3 <span class="badge"></span></button>');
|
|
|
// api_info_item_panel_body.append('<h5 >更新时间:<span id="span_time_'+val.typeId+'"></span></h5>');
|
|
|
api_info_item_panel.append(api_info_item_panel_title)
|
|
|
.append(api_info_item_panel_body);
|
...
|
...
|
|