* Modify type change event.

This commit is contained in:
tianshujie
2024-01-17 14:07:22 +08:00
parent e66079fd04
commit 6a9b0bf1e8
4 changed files with 21 additions and 17 deletions
+6
View File
@@ -13,6 +13,11 @@ declare(strict_types=1);
namespace zin;
jsVar('window.executionID', $execution->id);
jsVar('vision', $config->vision);
jsVar('window.lifetime', $execution->lifetime);
jsVar('window.attribute', $execution->attribute);
jsVar('window.lifetimeList', $lifetimeList);
jsVar('window.attributeList', $attributeList);
$fields = useFields('task.create');
if($execution->type == 'kanban') $fields->merge('task.kanban');
@@ -23,6 +28,7 @@ formGridPanel
set::fields($fields),
on::change('[name=module]', 'loadExecutionStories'),
on::change('[name=story]', 'setStoryRelated'),
on::change('[name=type]', 'typeChange'),
on::click('[name=isShowAllModule]', 'showAllModule'),
on::click('[name=copyButton]', 'copyStoryTitle'),
on::keyup('[name=name]', 'saveTaskName'),