切换回首页时,自动刷新首页数据
This commit is contained in:
parent
2bcbd38692
commit
1c95dd11ac
@ -24,19 +24,19 @@
|
||||
<tr>
|
||||
<td class="layui-td-gray" style="vertical-align:top;">工作内容</td>
|
||||
<td colspan="5">
|
||||
{$detail.works}
|
||||
{:nl2br($detail.works)}
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="layui-td-gray" style="vertical-align:top;">工作计划</td>
|
||||
<td colspan="5">
|
||||
{$detail.plans}
|
||||
{:nl2br($detail.plans)}
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="layui-td-gray" style="vertical-align:top;">其他事项</td>
|
||||
<td colspan="5">
|
||||
{$detail.remark}
|
||||
{:nl2br($detail.remark)}
|
||||
</td>
|
||||
</tr>
|
||||
{notempty name="$detail.file_array"}
|
||||
|
@ -144,6 +144,9 @@ layui.define(['element'], function (exports) {
|
||||
element.on('tab(gg-admin-tab)', function (data) {
|
||||
$('#GouguAppBody').find('.gg-tab-page').removeClass('layui-show');
|
||||
$('#GouguAppBody').find('.gg-tab-page').eq(data.index).addClass('layui-show');
|
||||
if(data.index==0){
|
||||
tab.refresh(0);
|
||||
}
|
||||
tab.tabRoll("auto", data.index);
|
||||
tab.tabCookie();
|
||||
});
|
||||
|
Loading…
x
Reference in New Issue
Block a user