|
@@ -127,7 +127,17 @@ function initContent(data){
|
|
|
if(global_modules[moduleId]){
|
|
|
hml=initModuleData(moduleId,obj[k]);
|
|
|
$.tmpl(hml,info).appendTo("#contentInfo");
|
|
|
- };
|
|
|
+ }else{
|
|
|
+ const icon=require("../images/empty1.png");
|
|
|
+ const sid=moduleId?"("+moduleId+")":"";
|
|
|
+ const emptyStr=`<div class="empty">
|
|
|
+ <img src="${icon}" alt="空"/>
|
|
|
+ <p>暂无信息~</p>
|
|
|
+ </div>`;
|
|
|
+ hml='<div class="content-item" code="'+k+'">' +
|
|
|
+ '<h2 class="title">'+k+sid+'</h2>'+emptyStr+'</div>';
|
|
|
+ $.tmpl(hml,{}).appendTo("#contentInfo");
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
$(".content-item[code="+global_activeTab+"]").show();
|