JEECG一對多主子表上下佈局ERP風格頁面性能優化步驟

1.找到每一個菜單對應的首頁。
2.查看代碼中主表iframe的src屬性,若沒有值則跳過這一步,如有值則設置爲"",而且在jquery ready中第一行添加代碼(以下):
$(function(){
    $("#mainList").attr("src","此處填寫上述iframe的src");
3.查看代碼中每一個子表iframe的id和src屬性,確認其命名是不是標準格式

標準格式描述:id爲xxIframe,src爲${webRoot}/xxController.do?list或是xxController.do?list,這個xx兩處需保持一致。 代碼示例:jquery

<div title="支付條款"  data-options="closable:false" style="overflow:hidden;">
		<iframe id="pmsPayPlanIframe" src="${webRoot}/pmsPayPlanController.do?list"> 
		</iframe>
	</div>
4.若是確認是標準格式直接設置該iframe的src爲"" 便可忽略下一步。
5.若是不是標準格式,剪切出該地址,設置該iframe的src爲""後,在頁面上找到一個id爲contractFrameActived的select,在對應option上添加屬性data-src="剪切出的地址",以下代碼:
<select id="contractFrameActived" style="display:none">
	<option value="pmsPayPlan" data-src="${webRoot}/pmsPayPlanController.do?list"></option>
</select>
相關文章
相關標籤/搜索