This commit is contained in:
tianshujie
2024-05-29 09:50:04 +08:00
committed by caoyanyi
parent 6b781f2938
commit 650fe94c0e
3 changed files with 2 additions and 9 deletions
+1 -1
View File
@@ -340,7 +340,7 @@ $filter->execution->story->cookie['storyModuleParam'] = 'int';
$filter->execution->story->cookie['storyProductParam'] = 'int';
$filter->execution->story->cookie['storyBranchParam'] = 'int';
$filter->execution->story->cookie['executionStoryOrder'] = 'code';
$filter->execution->export->cookie['checkedItem'] = 'reg::checked';
$filter->execution->export->cookie['checkedItem'] = 'reg::paramValue';
$filter->execution->kanban->cookie['taskToOpen'] = 'int';
$filter->execution->all->cookie['showExecutionBatchEdit'] = 'int';
$filter->execution->tree->cookie['showStory'] = 'int';
+1 -1
View File
@@ -2936,7 +2936,7 @@ class execution extends control
if($this->post->exportType == 'selected')
{
$checkedItem = $this->cookie->checkedItem;
if(strpos(",$checkedItem,", ",{$execution->id},") === false) unset($executionStats[$i]);
if(strpos(",$checkedItem,", ",pid{$execution->id},") === false) unset($executionStats[$i]);
}
}
-7
View File
@@ -16,13 +16,6 @@ $(document).off('click','.batch-btn').on('click', '.batch-btn', function()
{
postAndLoadPage(url, form);
}
}).off('click', '#actionBar .export').on('click', '#actionBar .export', function()
{
const dtable = zui.DTable.query($('#table-execution-all'));
const checkedList = dtable.$.getChecks();
if(!checkedList.length) return;
$.cookie.set('checkedItem', checkedList, {expires:config.cookieLife, path:config.webRoot});
});
const today = zui.formatDate(new Date(), 'yyyy-MM-dd');