bfg-common 1.2.162 → 1.2.163

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.
@@ -35,7 +35,9 @@
35
35
  <common-wizards-vm-migrate-select-compute-resource
36
36
  v-show="currentBlockId === 'select-compute-resource'"
37
37
  :submit="selectComputeResourceSubmit"
38
+ :get-compute-resource-data="props.getComputeResourceData"
38
39
  :migrate-type="vmMigrateType"
40
+ :compute-resource-data="props.computeResourceTableData"
39
41
  :compute-resource-tree="props.computeResourceTree"
40
42
  @next-step="onSelectComputeResourceAndNext"
41
43
  />
@@ -90,8 +92,10 @@ const props = defineProps<{
90
92
  vmSettings: UI_I_VmSettings | null
91
93
  vmName: string
92
94
  getDatastoreTableFunc: (payload: UI_I_TablePayload) => Promise<void>
95
+ getComputeResourceData: (payload: UI_I_TablePayload) => Promise<void>
93
96
  datastore: UI_I_DatastoreTableItem[]
94
97
  configurePerDisks: UI_I_StorageConfigurePerDiskItem[]
98
+ computeResourceTableData?: any
95
99
  computeResourceTree?: UI_I_TreeNode
96
100
  readyCompleteTableInfo?: any // пока так потом если будет нужен изменит или удалить
97
101
  finishFunc: any
@@ -27,6 +27,7 @@
27
27
  :items="selectStorageTabs"
28
28
  size="small"
29
29
  class="compute-resource__tabs"
30
+ @change="getTableData"
30
31
  />
31
32
 
32
33
  <common-wizards-vm-migrate-select-compute-resource-table-view
@@ -173,8 +174,6 @@ const onHideErrorMessageAlert = (): void => {
173
174
  errorMessages.value = []
174
175
  }
175
176
 
176
- const selectedData = ref([])
177
-
178
177
  const loading = ref<boolean>(false)
179
178
  const sort = ref<string | null>(null)
180
179
  const pagination = ref<UI_I_Pagination>({
@@ -72,6 +72,18 @@ const table: any = {
72
72
  'v-apps': vAppsTable,
73
73
  }
74
74
 
75
+ const getData = async (): Promise<void> => {
76
+ const payload: UI_I_TablePayload = {
77
+ pagination: pagination.value,
78
+ sortBy: null,
79
+ type: 'datastore',
80
+ schema: 'full',
81
+ }
82
+
83
+ props.getComputeResourceData(payload).then(() => {})
84
+ }
85
+ getData()
86
+
75
87
  const headItems = computed<UI_I_HeadItem[]>(() =>
76
88
  table[props.type].headItems(localization.value)
77
89
  )
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "bfg-common",
3
3
  "private": false,
4
- "version": "1.2.162",
4
+ "version": "1.2.163",
5
5
  "scripts": {
6
6
  "build": "nuxt build",
7
7
  "dev": "nuxt dev --port=3002",