|
1 | 1 | <template> |
2 | 2 | <!-- 工单操作按钮 --> |
3 | | - <a-space wrap class="header-action-group"> |
| 3 | + <a-space class="header-action-group"> |
4 | 4 | <!-- 主操作按钮 --> |
5 | | - <a-button v-if="showMainButton" type="primary" @click="openMainModal"> |
| 5 | + <a-button v-if="showMainButton" type="primary" size="small" @click="openMainModal"> |
6 | 6 | {{ uiData.btnTitle }} |
7 | 7 | </a-button> |
8 | 8 |
|
9 | 9 | <!-- 执行任务按钮 --> |
10 | 10 | <a-tooltip title="点击加载执行任务" placement="top"> |
11 | | - <a-button v-if="showExecuteButton" @click="genOrderTasks" :loading="uiState.genOrderTasksLoading"> |
| 11 | + <a-button v-if="showExecuteButton" size="small" @click="genOrderTasks" :loading="uiState.genOrderTasksLoading"> |
12 | 12 | 执行 |
13 | 13 | </a-button> |
14 | 14 | </a-tooltip> |
15 | 15 |
|
16 | 16 | <!-- 已完成按钮 --> |
17 | 17 | <a-tooltip title="标记当前工单为完成状态" placement="top"> |
18 | | - <a-button v-if="showCompleteFailButton" @click="openCompleteModal"> 已完成 </a-button> |
| 18 | + <a-button v-if="showCompleteFailButton" size="small" @click="openCompleteModal"> 已完成 </a-button> |
19 | 19 | </a-tooltip> |
20 | 20 |
|
21 | 21 | <!-- 已失败按钮 --> |
22 | 22 | <a-tooltip title="标记当前工单为失败状态" placement="top"> |
23 | | - <a-button v-if="showCompleteFailButton" @click="openFailModal"> 已失败 </a-button> |
| 23 | + <a-button v-if="showCompleteFailButton" size="small" @click="openFailModal"> 已失败 </a-button> |
24 | 24 | </a-tooltip> |
25 | 25 |
|
26 | 26 | <!-- 转交按钮 --> |
27 | 27 | <a-tooltip title="转交当前工单给其他人执行" placement="top"> |
28 | | - <a-button v-if="showTransferButton" @click="openTransferModal"> 转交 </a-button> |
| 28 | + <a-button v-if="showTransferButton" size="small" @click="openTransferModal"> 转交 </a-button> |
29 | 29 | </a-tooltip> |
30 | 30 |
|
31 | 31 | <!-- 撤销按钮 --> |
32 | 32 | <a-tooltip title="撤销当前工单" placement="top"> |
33 | | - <a-button v-if="!revokeDisabled" @click="openRevokeModal"> 撤销 </a-button> |
| 33 | + <a-button v-if="!revokeDisabled" size="small" @click="openRevokeModal"> 撤销 </a-button> |
34 | 34 | </a-tooltip> |
35 | 35 |
|
36 | 36 | <!-- 复制工单 --> |
37 | 37 | <a-tooltip title="快速复制当前工单为一个新的工单" placement="top"> |
38 | | - <a-button @click="handleCopyAsNewOrder"> 复制工单 </a-button> |
| 38 | + <a-button size="small" @click="handleCopyAsNewOrder"> 复制工单 </a-button> |
39 | 39 | </a-tooltip> |
40 | 40 | </a-space> |
41 | 41 |
|
@@ -358,6 +358,8 @@ const handleCopyAsNewOrder = () => { |
358 | 358 |
|
359 | 359 | <style scoped> |
360 | 360 | .header-action-group { |
| 361 | + align-items: center; |
| 362 | + flex-wrap: nowrap; |
361 | 363 | gap: var(--gi-spacing-xs) var(--gi-spacing-sm); |
362 | 364 | } |
363 | 365 |
|
|
0 commit comments