表格工具栏通过URL传值不成功

提问 未结 1 95
悬赏:20飞吻
<!--成员建议表格工具栏-->的新增按钮“新增改善意见”中的URL中的传值在第一次点击父table 表中的某条记录时可以获取这条数据中的字段c_id&correct_id的值,但接下来点击其它列时,就一直是第一次点击时获取到的这两个值。

父table代码:
<div data-options="region:'center',iconCls:'fa fa-book',title:'改善方案',split:true,border:true,headerCls:'border_top_none'">
<div data-toggle="topjui-layout" data-options="fit:true">
<div data-options="region:'center',title:'',fit:false,split:true,border:false,bodyCls:'border_bottom'">
<div data-toggle="topjui-tabs"
data-options="
id:'southTabs',
fit:true,
border:false,
parentGrid:{
type:'datagrid',
id:'efdCntContractDg',
param:'puuid:uuid,id:id'}">

<div title="最近一次8D列表 - 子表"
data-options="
id:'efdCntPayHistorytab',
iconCls:'fa fa-th'">
<table data-toggle="topjui-datagrid"
data-options="
id:'efdCntPayHistoryDg',
idField:'c_id',
initCreate: false,
url:'<?=Url::toRoute(['list-correct'])?>',
childGrid:{
param:'ccID:c_id,correctItemId:correct_id',
grid:[
{type:'datagrid',id:'filterDg'},
]
}
">
<thead>
<tr>
<th data-options="field:'id',title:'UUID',checkbox:true"></th>
<th data-options="field:'c_id',title:'客诉编号',sortable:true,editor:{type:'textbox',options:{required:true,height:30}}"></th>
<th data-options="field:'correct_id',title:'改善编号',sortable:true,editor:{type:'textbox',options:{required:true,height:30}}"></th>
<th data-options="field:'title',title:'客诉报告名称',sortable:true,editor:{type:'textbox',options:{required:true,height:30}}"></th>
<th data-options="field:'item',title:'实施的改善项目',sortable:true,editor:{type:'textbox',options:{required:true,height:30}}"></th>
<th data-options="field:'description',title:'方案描述',sortable:true,editor:{type:'textbox',options:{required:true,height:30}}"></th>
</tr>
</thead>
</table>
</div>

子table 中工具栏()代码

<!--成员建议表格工具栏-->
<div id="filterDg-toolbar"
class="topjui-toolbar"
data-options="
grid:{
type:'datagrid',
id:'filterDg'}"
style="display:none">

<a href="javascript:void(0)"
data-toggle="topjui-menubutton"
data-options="
method:'openDialog',
extend:'#efdCntPayHistoryDg-toolbar',
btnCls:'topjui-btn-green',
parentGrid:{
type:'datagrid',
id:'efdCntPayHistoryDg',
param:'ccID:c_id,correctItemId:cc_id',
unselectedMsg:'请在上表中选取改善方案中的具体项目'
},
dialog:{
id:'efdCntContractAddDialog',
href:'<?= Url::toRoute(['add-suggest'])?>?ccID={parent.c_id}&correctItemId={parent.correct_id}',
width: 800,
height:350,
buttonsGroup:[
{
text:'保存',
url:'<?= Url::toRoute(['add-suggest'])?>',
iconCls:'fa fa-plus',
handler:'ajaxForm'
}
]
}">新增改善意见</a>
回帖
回帖须知