Skip to content

Commit aea7f30

Browse files
committed
refactor: reorganize task status definitions and adjust status filter height for improved UI consistency
1 parent 3166490 commit aea7f30

2 files changed

Lines changed: 13 additions & 10 deletions

File tree

packages/business/src/shared/task.ts

Lines changed: 12 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -139,26 +139,31 @@ export const STATUS_MAP = {
139139
wait_start: {
140140
i18n: 'public_status_wait_run',
141141
},
142-
starting: {
143-
i18n: 'public_status_starting',
144-
in: ['preparing', 'scheduling', 'wait_run'],
145-
},
142+
146143
running: {
147144
i18n: 'public_status_running',
148145
},
149146
complete: {
150147
i18n: 'public_status_finished',
151148
},
152-
stopping: {
153-
i18n: 'public_status_stopping',
154-
},
149+
155150
stop: {
156151
i18n: 'public_status_stop',
157152
},
158153
error: {
159154
i18n: 'public_status_error',
160155
in: ['schedule_failed', 'error'],
161156
},
157+
deleted: {
158+
i18n: 'public_status_deleted',
159+
},
160+
starting: {
161+
i18n: 'public_status_starting',
162+
in: ['preparing', 'scheduling', 'wait_run'],
163+
},
164+
stopping: {
165+
i18n: 'public_status_stopping',
166+
},
162167
renewing: {
163168
i18n: 'public_status_renewing',
164169
},
@@ -171,9 +176,6 @@ export const STATUS_MAP = {
171176
delete_failed: {
172177
i18n: 'public_status_delete_failed',
173178
},
174-
deleted: {
175-
i18n: 'public_status_deleted',
176-
},
177179
}
178180

179181
export const STATUS_MERGE = Object.entries(STATUS_MAP).reduce(

packages/business/src/views/task/List.vue

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -378,6 +378,7 @@ export default {
378378
type: 'select-inner',
379379
items: this.statusOptions,
380380
id: 'status-filter-select',
381+
height: this.statusOptions * 34,
381382
},
382383
{
383384
label: this.$t('packages_business_task_list_sync_type'),

0 commit comments

Comments
 (0)