This commit is contained in:
tianshujie
2024-02-21 15:32:25 +08:00
parent e2907b709c
commit 78c4965710
2 changed files with 26 additions and 17 deletions
+3 -2
View File
@@ -699,7 +699,7 @@ window.changeBugProduct = function()
if(productID) $('#batchCreateBugButton').attr('href', $.createLink('bug', 'batchCreate', 'productID=' + productID + '&branch=&executionID=' + executionID));
};
window.linkPlanStory = function()
$(document).off('click', '#linkStoryByPlan button[type="submit"]').on('click', '#linkStoryByPlan button[type="submit"]', function()
{
const planID = $('[name=plan]').val();
if(planID)
@@ -707,4 +707,5 @@ window.linkPlanStory = function()
var param = "&param=executionID=" + executionID + ",browseType=" + browseType + ",orderBy=id_asc,groupBy=" + groupBy;
$.ajaxSubmit({url: $.createLink('execution', 'importPlanStories', 'executionID=' + executionID + '&planID=' + planID + '&productID=0&fromMethod=taskKanban&extra=' + param)});
}
};
return false;
})
+23 -15
View File
@@ -286,29 +286,37 @@ div
)
);
$linkStoryByPlanTips = $lang->execution->linkNormalStoryByPlanTips;
$linkStoryByPlanTips = $execution->multiple ? $linkStoryByPlanTips : str_replace($lang->execution->common, $lang->projectCommon, $linkStoryByPlanTips);
modal
(
setID('linkStoryByPlan'),
setData('size', '500px'),
to::header
setID('linkStoryByPlan'),
set::modalProps(array('title' => $lang->execution->linkStoryByPlan)),
div
(
h4($lang->execution->linkStoryByPlan),
"({$lang->execution->linkStoryByPlanTips})"
setClass('flex-auto'),
icon('info-sign', setClass('warning-pale rounded-full mr-1')),
$linkStoryByPlanTips
),
inputGroup
form
(
setClass('mt-1'),
picker
setClass('text-center', 'py-4'),
set::actions(array('submit')),
set::submitBtnText($lang->execution->linkStory),
formGroup
(
set::width(300),
setID('plan'),
set::name('plan'),
set::items($allPlans)
),
span
(
setClass('input-group-btn ml-2'),
btn(setClass('primary'), setID('toStoryButton'), set::onclick('linkPlanStory()'), $lang->execution->linkStory)
set::label($lang->execution->selectStoryPlan),
set::required(true),
setClass('text-left'),
picker
(
set::name('plan'),
set::required(true),
set::items($allPlans)
)
)
)
);