Browse Source

optimize add select filter (#15378) (#15379)

3.2.1-prepare
liyou 11 months ago committed by GitHub
parent
commit
c3ffb1330d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      dolphinscheduler-ui/src/views/projects/workflow/definition/components/start-modal.tsx
  2. 4
      dolphinscheduler-ui/src/views/projects/workflow/definition/components/timing-modal.tsx
  3. 1
      dolphinscheduler-ui/src/views/security/worker-group-manage/components/worker-group-modal.tsx

4
dolphinscheduler-ui/src/views/projects/workflow/definition/components/start-modal.tsx

@ -311,6 +311,7 @@ export default defineComponent({
options={this.workerGroups} options={this.workerGroups}
onUpdateValue={this.updateWorkerGroup} onUpdateValue={this.updateWorkerGroup}
v-model:value={this.startForm.workerGroup} v-model:value={this.startForm.workerGroup}
filterable
/> />
</NFormItem> </NFormItem>
<NFormItem <NFormItem
@ -320,6 +321,7 @@ export default defineComponent({
<NSelect <NSelect
options={this.tenantList} options={this.tenantList}
v-model:value={this.startForm.tenantCode} v-model:value={this.startForm.tenantCode}
filterable
/> />
</NFormItem> </NFormItem>
@ -333,6 +335,7 @@ export default defineComponent({
)} )}
v-model:value={this.startForm.environmentCode} v-model:value={this.startForm.environmentCode}
clearable clearable
filterable
/> />
</NFormItem> </NFormItem>
{this.startForm.warningType !== 'NONE' && ( {this.startForm.warningType !== 'NONE' && (
@ -345,6 +348,7 @@ export default defineComponent({
placeholder={t('project.workflow.please_choose')} placeholder={t('project.workflow.please_choose')}
v-model:value={this.startForm.warningGroupId} v-model:value={this.startForm.warningGroupId}
clearable clearable
filterable
/> />
</NFormItem> </NFormItem>
)} )}

4
dolphinscheduler-ui/src/views/projects/workflow/definition/components/timing-modal.tsx

@ -458,6 +458,7 @@ export default defineComponent({
options={this.workerGroups} options={this.workerGroups}
onUpdateValue={this.updateWorkerGroup} onUpdateValue={this.updateWorkerGroup}
v-model:value={this.timingForm.workerGroup} v-model:value={this.timingForm.workerGroup}
filterable
/> />
</NFormItem> </NFormItem>
<NFormItem <NFormItem
@ -467,6 +468,7 @@ export default defineComponent({
<NSelect <NSelect
options={this.tenantList} options={this.tenantList}
v-model:value={this.timingForm.tenantCode} v-model:value={this.timingForm.tenantCode}
filterable
/> />
</NFormItem> </NFormItem>
<NFormItem <NFormItem
@ -477,6 +479,7 @@ export default defineComponent({
options={this.environmentOptions} options={this.environmentOptions}
v-model:value={this.timingForm.environmentCode} v-model:value={this.timingForm.environmentCode}
clearable clearable
filterable
/> />
</NFormItem> </NFormItem>
{this.timingForm.warningType !== 'NONE' && ( {this.timingForm.warningType !== 'NONE' && (
@ -489,6 +492,7 @@ export default defineComponent({
placeholder={t('project.workflow.please_choose')} placeholder={t('project.workflow.please_choose')}
v-model:value={this.timingForm.warningGroupId} v-model:value={this.timingForm.warningGroupId}
clearable clearable
filterable
/> />
</NFormItem> </NFormItem>
)} )}

1
dolphinscheduler-ui/src/views/security/worker-group-manage/components/worker-group-modal.tsx

@ -137,6 +137,7 @@ const WorkerGroupModal = defineComponent({
<NSelect <NSelect
class='select-worker-address' class='select-worker-address'
multiple multiple
filterable
placeholder={t( placeholder={t(
'security.worker_group.worker_addresses_tips' 'security.worker_group.worker_addresses_tips'
)} )}

Loading…
Cancel
Save