bfg-common 1.4.863 → 1.4.864

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.
@@ -187,7 +187,11 @@ watch(
187
187
  return
188
188
  }
189
189
 
190
- taskBodyItems.value = getBodyDataFunc(newValue, localization.value)
190
+ taskBodyItems.value = getBodyDataFunc(
191
+ newValue,
192
+ localization.value,
193
+ props.project
194
+ )
191
195
  },
192
196
  { deep: true, immediate: true }
193
197
  )
@@ -5,14 +5,13 @@ import type {
5
5
  } from '~/node_modules/bfg-uikit/components/ui/dataTable/models/interfaces'
6
6
  import type { UI_I_Dropdown } from '~/node_modules/bfg-uikit/components/ui/dropdown/models/interfaces'
7
7
  import type { UI_I_Localization } from '~/lib/models/interfaces'
8
+ import type { UI_T_Project, UI_T_ProcuratorTypeNodes } from '~/lib/models/types'
8
9
  import type { UI_I_TaskItem } from '~/lib/models/store/tasks/interfaces'
9
10
  import { UI_E_RecentTaskStatus } from '~/lib/models/store/tasks/enums'
10
11
  import {
11
12
  UI_E_RTaskChipColor,
12
13
  UI_E_RTaskStatusIcon,
13
14
  } from '~/components/common/pages/tasks/table/lib/models/enums'
14
- import type { UI_T_Project } from '~/lib/models/types'
15
- import type { UI_T_ProcuratorTypeNodes } from '~/lib/models/types'
16
15
  import * as taskConfig from '~/components/templates/tasks/lib/config/taskConfig' // url из ( sphere, procurator )
17
16
 
18
17
  export const getHeaderDataFunc = (
@@ -181,7 +180,8 @@ export const options: UI_I_DataTableOptions = {
181
180
 
182
181
  export const getBodyDataFunc = (
183
182
  bodyData: UI_I_TaskItem<UI_T_ProcuratorTypeNodes>[],
184
- localization: UI_I_Localization
183
+ localization: UI_I_Localization,
184
+ project: UI_T_Project
185
185
  ): UI_I_DataTableBody[] => {
186
186
  const { $formattedDatetime } = useNuxtApp() as any
187
187
 
@@ -207,9 +207,9 @@ export const getBodyDataFunc = (
207
207
  testId: `${task.taskName.replaceAll(/[\s.]/g, '-')}-${index}-status`,
208
208
  }
209
209
 
210
- const zoneNodeParams = taskConfig.zoneNodeFunc(task, nav)
211
210
  const zoneData = {
212
- ...zoneNodeParams,
211
+ id: task?.zoneId || '',
212
+ isLink: project === 'sphere',
213
213
  nav,
214
214
  icon: 'vsphere-icon-vcenter',
215
215
  type: 'zone',
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "bfg-common",
3
3
  "private": false,
4
- "version": "1.4.863",
4
+ "version": "1.4.864",
5
5
  "scripts": {
6
6
  "build": "nuxt build",
7
7
  "dev": "nuxt dev --port=3002",