- 注册时间
- 2012-5-23
- 最后登录
- 2014-5-19
- 阅读权限
- 10
- 积分
- 532
- 精华
- 0
- 帖子
- 164
|
factory 发表于 2013-2-25 14:23
你的tabs是如何创建选项内容的?tabs页面上直接写的还是tabs通过url加载不同的tab的?
如果是通过url的话 ...
div id="tabs1" class="mini-tabs" activeIndex="0"
style="width:100%;height:100%;">
<div title="类别维护">
<div class="mini-panel" title="类别维护" style="width:100%;height:100%;"
borderStyle="border:0" showToolbar="true" showCollapseButton="false"
showFooter="true" showHeader="true" bodyStyle="padding:0;">
<div property="toolbar" class="mini-toolbar"
style="padding:2px;border-top:0;border-left:0;border-right:0; height: 30px">
<div style="float:left;">
<span style="padding-left:5px;">类别名称:</span> <input type="text"
id="typeName" name="typeName" />
</div>
<div style="float:right;">
<a class="mini-button" iconCls="icon-add"
plain="true">添加</a><span class="separator"></span> <a
class="mini-button" iconCls="icon-save"
plain="true">保存</a> <span class="separator"></span><a
class="mini-button" iconCls="icon-remove"
plain="true">删除</a>
</div>
</div>
<!--body-->
<div class="mini-fit" style="height:100%;">
<div id="datagrid1" class="mini-datagrid"
style="width:100%;height:100%;" url="product/getTypeList.do"
idField="typeId" allowResize="true" allowCellEdit="true"
allowCellSelect="true" multiSelect="true" allowCellValid="true"
oncellvalidation="onCellValidation" sizeList=[5,10,20,50,100]
loadingMSG="数据加载中.....">
<div property="columns">
<div type="checkcolumn" width="10"></div>
<div field="typeName" width="120" headerAlign="center"
allowSort="true">
类别名称 <input property="editor" class="mini-textbox"
style="width:100%;" />
</div>
</div>
</div>
</div>
</div>
</div>
<div title="商品维护">
<div class="mini-panel" title="住院费用" style="width:100%;height:100%;"
borderStyle="border:0" showToolbar="true" showCollapseButton="false"
showFooter="true" showHeader="true" bodyStyle="padding:0;">
<!--body-->
<div class="mini-fit" style="height:100%;">
<div id="datagrid2" class="mini-datagrid"
style="width:100%;height:100%;" borderStyle="border:0"
url="product/getProList.do" idField="proId" allowResize="true"
allowCellEdit="true" allowCellSelect="true" multiSelect="true"
allowAlternating="true" showFooter="false" loadingMSG="数据加载中.....">
<div property="columns">
<!-- <div type="indexcolumn"></div> -->
<div field="typeName" name="typename" width="20"
headerAlign="center" align="center">类别</div>
<div field="uName" width="20" headerAlign="center" align="center">单位</div>
<div field="userName" name="username" width="20"
headerAlign="center" align="center">消费者</div>
<div field="proName" width="40" headerAlign="center"
align="center">商品名称</div>
<div field="proDate" width="40" headerAlign="center"
align="center" dateFormat="yyyy-MM-dd hh">购买日期</div>
<div field="proAddress" width="60" headerAlign="center"
align="center">购买地址</div>
<div field="proUnitPrice" width="10" align="center"
headerAlign="center">单价</div>
<div field="proAmount" width="10" headerAlign="center"
align="center">数量</div>
<div field="proTotalPrice" width="10" headerAlign="center"
align="center">总价</div>
<div name="action" width="50" headerAlign="center" align="center"
renderer="onActionRenderer" cellStyle="padding:0;">操作</div>
</div>
</div>
</div>
</div>
</div>
</div>
这个是我的代码 我的意思是当这个页面加载默认值加载“类别维护”下的datagrid1,然后当我点击“商品维护” 标签时再去加载商品维护下面的datagrid2 的数据 但是不行
|
|