|
32 | 32 | <template #icon><reload-outlined /></template> |
33 | 33 | {{ $t('label.refresh') }} |
34 | 34 | </a-button> |
35 | | - <a-switch |
36 | | - v-if="!dataView && ['vm', 'volume', 'zone', 'cluster', 'host', 'storagepool', 'managementserver'].includes($route.name)" |
37 | | - style="margin-left: 8px; margin-bottom: 3px" |
38 | | - :checked-children="$t('label.metrics')" |
39 | | - :un-checked-children="$t('label.metrics')" |
40 | | - :checked="$store.getters.metrics" |
41 | | - @change="(checked, event) => { $store.dispatch('SetMetrics', checked) }"/> |
42 | | - <a-switch |
43 | | - v-if="!projectView && hasProjectId" |
44 | | - style="margin-left: 8px; margin-bottom: 3px" |
45 | | - :checked-children="$t('label.projects')" |
46 | | - :un-checked-children="$t('label.projects')" |
47 | | - :checked="$store.getters.listAllProjects" |
48 | | - @change="(checked, event) => { $store.dispatch('SetListAllProjects', checked) }"/> |
49 | 35 | <a-tooltip placement="right"> |
50 | 36 | <template #title> |
51 | 37 | {{ $t('label.filterby') }} |
|
54 | 40 | v-if="!dataView && filters && filters.length > 0" |
55 | 41 | :placeholder="$t('label.filterby')" |
56 | 42 | :value="filterValue" |
57 | | - style="min-width: 120px; margin-left: 10px; margin-top: -4px" |
| 43 | + style="min-width: 100px; margin-left: 10px; margin-bottom: 5px" |
| 44 | + size=small |
58 | 45 | @change="changeFilter" |
59 | 46 | showSearch |
60 | 47 | optionFilterProp="label" |
|
79 | 66 | </a-select-option> |
80 | 67 | </a-select> |
81 | 68 | </a-tooltip> |
| 69 | + <a-switch |
| 70 | + v-if="!dataView && ['vm', 'volume', 'zone', 'cluster', 'host', 'storagepool', 'managementserver'].includes($route.name)" |
| 71 | + style="margin-left: 8px; min-height: 23px; margin-bottom: 4px" |
| 72 | + :checked-children="$t('label.metrics')" |
| 73 | + :un-checked-children="$t('label.metrics')" |
| 74 | + :checked="$store.getters.metrics" |
| 75 | + @change="(checked, event) => { $store.dispatch('SetMetrics', checked) }"/> |
| 76 | + <a-switch |
| 77 | + v-if="!projectView && hasProjectId" |
| 78 | + style="margin-left: 8px; min-height: 23px; margin-bottom: 4px" |
| 79 | + :checked-children="$t('label.projects')" |
| 80 | + :un-checked-children="$t('label.projects')" |
| 81 | + :checked="$store.getters.listAllProjects" |
| 82 | + @change="(checked, event) => { $store.dispatch('SetListAllProjects', checked) }"/> |
82 | 83 | </template> |
83 | 84 | </breadcrumb> |
84 | 85 | </a-col> |
85 | 86 | <a-col |
86 | 87 | :span="device === 'mobile' ? 24 : 12" |
87 | | - :style="device === 'mobile' ? { float: 'right', 'margin-top': '12px', 'margin-bottom': '-6px', display: 'table' } : { float: 'right', display: 'table', 'margin-bottom': '-4px' }" > |
| 88 | + :style="device === 'mobile' ? { float: 'right', 'margin-top': '12px', 'margin-bottom': '-6px', display: 'table' } : { float: 'right', display: 'table', 'margin-top': '6px' }" > |
88 | 89 | <slot name="action" v-if="dataView && $route.path.startsWith('/publicip')"></slot> |
89 | 90 | <action-button |
90 | 91 | v-else |
91 | | - :style="dataView ? { float: device === 'mobile' ? 'left' : 'right' } : { 'margin-right': '10px', display: getStyle(), padding: '5px' }" |
| 92 | + :style="dataView ? { float: device === 'mobile' ? 'left' : 'right' } : { 'margin-right': '10px', display: getStyle() }" |
92 | 93 | :loading="loading" |
93 | 94 | :actions="actions" |
94 | 95 | :selectedRowKeys="selectedRowKeys" |
|
99 | 100 | <search-view |
100 | 101 | v-if="!dataView" |
101 | 102 | :searchFilters="searchFilters" |
102 | | - style="min-width: 120px; margin-left: 10px; margin-top: 5px" |
103 | 103 | :searchParams="searchParams" |
104 | 104 | :apiName="apiName" |
105 | 105 | @search="onSearch" |
@@ -1966,6 +1966,12 @@ export default { |
1966 | 1966 | vertical-align: text-bottom; |
1967 | 1967 | } |
1968 | 1968 |
|
| 1969 | +:deep(.ant-switch-inner) { |
| 1970 | + display: block; |
| 1971 | + font-size: 14px; |
| 1972 | + margin: 0px 14px 0px 28px; |
| 1973 | +} |
| 1974 | +
|
1969 | 1975 | :deep(.ant-alert-message) { |
1970 | 1976 | display: flex; |
1971 | 1977 | align-items: center; |
|
0 commit comments