- 注册时间
- 2012-3-31
- 最后登录
- 2019-4-2
- 阅读权限
- 150
- 积分
- 18852
- 精华
- 0
- 帖子
- 8776
|
sd_tz_123 发表于 2012-11-7 16:33
可是事实并非如此
html, body - <div class="mini-panel" style="width:100%;height:100%;" showToolbar="true" showFooter="true" showHeader="false" footerStyle="background-color:Transparent;" headerStyle="background-color:Transparent;">
- <!--toolbar-->
- <div property="toolbar" >
- <table style="width:100%;">
- <tr>
- <td style="width:100%;">
- <!--
- <span style="margin-left:5px;">
- <a class="mini-button" iconCls="icon-search" plain="true">查看</a>
- <span class="separator"></span>
- <a class="mini-button" iconCls="icon-edit" plain="true" >回访</a>
- </span>
- <span class="separator"></span>
- -->
- <a class="mini-button" iconCls="icon-reload" plain="true">刷新</a>
- <span class="separator"></span>
- <a class="mini-button" iconCls="icon-search" plain="true" >维修单</a>
- </td>
- <td style="white-space:nowrap;"><label style="font-family:Verdana;">报修日期</label>
- <input id="tellservdate_start" name="tellservdate_start" class="mini-datepicker" format="yyyy-MM-dd " required="true"/>至
- <input id="tellservdate_end" name="tellservdate_end" class="mini-datepicker" format="yyyy-MM-dd " required="true"/>
- </td>
- <td style="white-space:nowrap;"><label style="font-family:Verdana;">项目</label>
- <input id="pk_project" name="pk_project" class="mini-buttonedit" />
- </td>
- <td style="white-space:nowrap;"><label style="font-family:Verdana;">单据编号</label>
- <input id="maintaincode" name="maintaincode" class="mini-textbox" />
- </td>
- </tr>
- </table>
- </div>
-
- <fieldset style="border:solid 1px #aaa;padding:3px;">
- <legend>未回访单据</legend>
- <div id="datagrid1" class="mini-datagrid" allowResize="true" style="overflow-y:auto;height:250px;width:100%;"
- url="/miniservice/service/mn.bs.framework.servlet.maintenance.QueryAction?finishstatus=isvisit-N&pk_prepared=<%=pk_prepared %> " idField="id">
- <div property="columns">
- <div name="action" headerAlign="center" align="center" renderer="onActionRenderer" cellStyle="padding:0;">#</div>
- <div field="requestcategory" headerAlign="center">报修类别</div>
- <div field="maintaincode" headerAlign="center">维修单编号</div>
- <div field="project_name" headerAlign="center" >项目名称</div>
- <div field="housename" headerAlign="center">报修地址</div>
- <div field="tellservdate" headerAlign="center" dateFormat="yyyy-MM-dd H:mm">报修日期</div>
- <div field="reportpeople" headerAlign="center">报修人</div>
- <div field="servcontent" headerAlign="center" >维修内容</div>
- <div field="finishstatus" headerAlign="center">完成状态</div>
- <div name="maintainid" field="maintainid" >主键</div>
- </div>
- </div>
- </fieldset>
-
- <!--footer-->
- <div property="footer" >
- <fieldset style="border:solid 1px #aaa;padding:3px;">
- <legend>最新未分配单据</legend>
- <div id="datagrid2" class="mini-datagrid" allowResize="true" style="overflow-y:auto;height:249px;width:100%;"
- url="/miniservice/service/mn.bs.framework.servlet.maintenance.QueryAction?finishstatus=isvisit-init" idField="id">
- <div property="columns">
- <!--<div type="indexcolumn"></div> -->
- <div name="action" headerAlign="center" align="center" renderer="onInitActionRenderer" cellStyle="padding:0;">#</div>
- <div field="requestcategory" headerAlign="center">报修类别</div>
- <div field="maintaincode" headerAlign="center">维修单编号</div>
- <div field="project_name" headerAlign="center" >项目名称</div>
- <div field="housename" headerAlign="center">报修地址</div>
- <div field="tellservdate" headerAlign="center" dateFormat="yyyy-MM-dd H:mm">报修日期</div>
- <div field="reportpeople" headerAlign="center">报修人</div>
- <div field="servcontent" headerAlign="center" >维修内容</div>
- <div field="finishstatus" headerAlign="center">完成状态</div>
- <div name="maintainid" field="maintainid" >主键</div>
- </div>
- </div>
- </fieldset>
- </div>
- </div>
复制代码 你的代码我给你修改了下,不要用fit,直接用panel布局.
panel分toolbar,body,和footer 上中下三部分,你把你的toolbar,未回访单据,最新未分配单据分别放到三块区域里面好了.
布局这样来跟你说:
1.上下结构的,可以用 panel,Splitter的上下布局
2.左右结构的,可以用Splitter的左右布局.
3.fit一般只是用于局部的想撑满剩余高度.
4.layout一般用于整体界面的布局,当然也可以处理上下左右的结构布局,隐藏掉多余的region=""就可以了
5.还有就是用html原生的一些方式布局,比如html的table.还有就是用CSS的样式来控制,比如float:left/right....等等 |
|