切换回首页时,自动刷新首页数据

This commit is contained in:
hdm 2022-09-06 11:39:32 +08:00
parent 2bcbd38692
commit 1c95dd11ac
2 changed files with 6 additions and 3 deletions

View File

@ -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"}

View File

@ -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();
});