Skip to content

Commit

Permalink
cherry-pick optimize add select filter (apache#15378)
Browse files Browse the repository at this point in the history
  • Loading branch information
zhuangchong committed Jan 4, 2024
1 parent d90c003 commit 2a14e5a
Show file tree
Hide file tree
Showing 3 changed files with 33 additions and 22 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -309,6 +309,7 @@ export default defineComponent({
options={this.workerGroups}
onUpdateValue={this.updateWorkerGroup}
v-model:value={this.startForm.workerGroup}
filterable
/>
</NFormItem>
<NFormItem
Expand All @@ -321,19 +322,23 @@ export default defineComponent({
)}
v-model:value={this.startForm.environmentCode}
clearable
filterable
/>
</NFormItem>
<NFormItem
label={t('project.workflow.alarm_group')}
path='warningGroupId'
>
<NSelect
options={this.alertGroups}
placeholder={t('project.workflow.please_choose')}
v-model:value={this.startForm.warningGroupId}
clearable
/>
</NFormItem>
{this.startForm.warningType !== 'NONE' && (
<NFormItem
label={t('project.workflow.alarm_group')}
path='warningGroupId'
>
<NSelect
options={this.alertGroups}
placeholder={t('project.workflow.please_choose')}
v-model:value={this.startForm.warningGroupId}
clearable
filterable
/>
</NFormItem>
)}
<NFormItem
label={t('project.workflow.complement_data')}
path='complement_data'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -366,6 +366,7 @@ export default defineComponent({
options={this.workerGroups}
onUpdateValue={this.updateWorkerGroup}
v-model:value={this.timingForm.workerGroup}
filterable
/>
</NFormItem>
<NFormItem
Expand All @@ -376,19 +377,23 @@ export default defineComponent({
options={this.environmentOptions}
v-model:value={this.timingForm.environmentCode}
clearable
filterable
/>
</NFormItem>
<NFormItem
label={t('project.workflow.alarm_group')}
path='warningGroupId'
>
<NSelect
options={this.alertGroups}
placeholder={t('project.workflow.please_choose')}
v-model:value={this.timingForm.warningGroupId}
clearable
/>
</NFormItem>
{this.timingForm.warningType !== 'NONE' && (
<NFormItem
label={t('project.workflow.alarm_group')}
path='warningGroupId'
>
<NSelect
options={this.alertGroups}
placeholder={t('project.workflow.please_choose')}
v-model:value={this.timingForm.warningGroupId}
clearable
filterable
/>
</NFormItem>
)}
</NForm>
</Modal>
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,7 @@ const WorkerGroupModal = defineComponent({
<NSelect
class='select-worker-address'
multiple
filterable
placeholder={t(
'security.worker_group.worker_addresses_tips'
)}
Expand Down

0 comments on commit 2a14e5a

Please sign in to comment.