bfg-common 1.3.121 → 1.3.122
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/components/common/vm/actions/common/customizeHardware/virtualHardware/VirtualHardware.vue
CHANGED
|
@@ -107,7 +107,6 @@
|
|
|
107
107
|
:is-edit="props.isEdit"
|
|
108
108
|
:state="props.state"
|
|
109
109
|
@remove="onRemovePciDevice(pciDevicesIndex[key])"
|
|
110
|
-
@roll-back="onRollBackPciDevice(pciDevicesIndex[key])"
|
|
111
110
|
@send-data="
|
|
112
111
|
onSendDataPciDevicesMethod($event, pciDevicesIndex[key])
|
|
113
112
|
"
|
|
@@ -484,17 +483,6 @@ const addPciDevice = (): void => {
|
|
|
484
483
|
}
|
|
485
484
|
const onRemovePciDevice = (index: number): void => {
|
|
486
485
|
const removeIndex = pciDevicesIndex.value.indexOf(index)
|
|
487
|
-
|
|
488
|
-
if (pciDevicesType.value[index] === 'edit') {
|
|
489
|
-
pciDevicesType.value = pciDevicesType.value.map(
|
|
490
|
-
(item, key) => {
|
|
491
|
-
if (key === removeIndex) return 'removed'
|
|
492
|
-
return item
|
|
493
|
-
}
|
|
494
|
-
)
|
|
495
|
-
sendData()
|
|
496
|
-
return
|
|
497
|
-
}
|
|
498
486
|
pciDevicesIndex.value = pciDevicesIndex.value.filter((item) => item !== index)
|
|
499
487
|
pciDevicesType.value = pciDevicesType.value.filter(
|
|
500
488
|
(_item, key) => key !== removeIndex
|
|
@@ -508,13 +496,6 @@ const onRemovePciDevice = (index: number): void => {
|
|
|
508
496
|
delete sendDataNewPciDevices.value[index]
|
|
509
497
|
sendData()
|
|
510
498
|
}
|
|
511
|
-
const onRollBackPciDevice = (index: number): void => {
|
|
512
|
-
const removeIndex = pciDevicesIndex.value.indexOf(index)
|
|
513
|
-
pciDevicesType.value = pciDevicesType.value.map((item, key) => {
|
|
514
|
-
if (key === removeIndex) return 'edit'
|
|
515
|
-
return item
|
|
516
|
-
})
|
|
517
|
-
}
|
|
518
499
|
|
|
519
500
|
const isShowFileModal = ref<boolean>(false)
|
|
520
501
|
const onAddDevice = (item: UI_I_DropdownTreeItemChild): void => {
|
|
@@ -3,9 +3,7 @@
|
|
|
3
3
|
<atoms-stack-block
|
|
4
4
|
:has-children="true"
|
|
5
5
|
:removable="isRemovable"
|
|
6
|
-
:is-roll-back="props.type === 'removed'"
|
|
7
6
|
@remove="onRemovePciDevice"
|
|
8
|
-
@roll-back="onRollBackPciDevice"
|
|
9
7
|
>
|
|
10
8
|
<template #stackBlockKey>
|
|
11
9
|
<div class="flex-align-center">
|
|
@@ -13,9 +11,6 @@
|
|
|
13
11
|
</div>
|
|
14
12
|
</template>
|
|
15
13
|
<template #stackBlockContent>
|
|
16
|
-
<template v-if="props.type === 'removed'">
|
|
17
|
-
<span>{{ localization.deviceWillRemoved }}</span>
|
|
18
|
-
</template>
|
|
19
14
|
<span v-else class="main-label">
|
|
20
15
|
{{ selectedLabel }}
|
|
21
16
|
</span>
|
|
@@ -79,7 +74,6 @@ const props = defineProps<{
|
|
|
79
74
|
const emits = defineEmits<{
|
|
80
75
|
(event: 'send-data', value: UI_I_SendDataNewPciDevice): void
|
|
81
76
|
(event: 'remove'): void
|
|
82
|
-
(event: 'roll-back'): void
|
|
83
77
|
}>()
|
|
84
78
|
|
|
85
79
|
const localization = computed<UI_I_Localization>(() => useLocal())
|
|
@@ -167,9 +161,6 @@ watch(
|
|
|
167
161
|
const onRemovePciDevice = (): void => {
|
|
168
162
|
emits('remove')
|
|
169
163
|
}
|
|
170
|
-
const onRollBackPciDevice = (): void => {
|
|
171
|
-
emits('roll-back')
|
|
172
|
-
}
|
|
173
164
|
</script>
|
|
174
165
|
|
|
175
166
|
<style scoped lang="scss">
|