bfg-common 1.4.674 → 1.4.676
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.
|
@@ -76,7 +76,10 @@ onUnmounted(() => {
|
|
|
76
76
|
|
|
77
77
|
<style lang="scss" scoped>
|
|
78
78
|
.tasks {
|
|
79
|
-
|
|
79
|
+
display: flex; // TODO надо удалить потом (clr style)
|
|
80
|
+
flex-direction: column; // TODO надо удалить потом (clr style)
|
|
81
|
+
height: inherit;
|
|
82
|
+
padding: 10px 16px 30px;
|
|
80
83
|
&__headline {
|
|
81
84
|
font-family: Inter, sans-serif;
|
|
82
85
|
font-weight: 400;
|
|
@@ -6,13 +6,14 @@ import type {
|
|
|
6
6
|
import type { UI_I_Localization } from '~/lib/models/interfaces'
|
|
7
7
|
import type { UI_I_RecentTaskItem } from '~/lib/models/store/tasks/interfaces'
|
|
8
8
|
import { UI_E_RecentTaskStatus } from '~/lib/models/store/tasks/enums'
|
|
9
|
-
import { E_NodeIconsByState } from '~/lib/models/enums'
|
|
9
|
+
// import { E_NodeIconsByState } from '~/lib/models/enums'
|
|
10
10
|
import { UI_E_TabsByType } from '~/components/common/pages/tasks/table/lib/models/enums'
|
|
11
11
|
import {
|
|
12
12
|
UI_E_RTaskChipColor,
|
|
13
13
|
UI_E_RTaskStatusIcon,
|
|
14
14
|
} from '~/components/common/pages/tasks/table/lib/models/enums'
|
|
15
15
|
import type { T_TypeNodes } from '~/lib/models/types'
|
|
16
|
+
import * as taskConfig from '~/components/templates/tasks/lib/config/taskConfig' // url из ( sphere, procurator )
|
|
16
17
|
|
|
17
18
|
export const getHeaderDataFunc = (
|
|
18
19
|
localization: UI_I_Localization
|
|
@@ -163,8 +164,11 @@ export const getBodyDataFunc = (
|
|
|
163
164
|
|
|
164
165
|
return bodyData.map((task, index: number) => {
|
|
165
166
|
|
|
166
|
-
const iconClassName =
|
|
167
|
-
const id =
|
|
167
|
+
const iconClassName = taskConfig.iconFunc(task.targetType)
|
|
168
|
+
const id = taskConfig.idFunc(task)
|
|
169
|
+
|
|
170
|
+
// const iconClassName = E_NodeIconsByState[`${task.targetType}_Normal`]
|
|
171
|
+
// const id = task.extra?.created_id || task.target
|
|
168
172
|
const targetData = {
|
|
169
173
|
id,
|
|
170
174
|
icon: iconClassName,
|
|
@@ -182,12 +186,12 @@ export const getBodyDataFunc = (
|
|
|
182
186
|
}
|
|
183
187
|
|
|
184
188
|
const formattedStartTime =
|
|
185
|
-
task.startTime === '
|
|
189
|
+
task.startTime === '--'
|
|
186
190
|
? '--'
|
|
187
191
|
: $formattedDatetime(+task.startTime * 1000, '', true)
|
|
188
192
|
|
|
189
193
|
const formattedCompletionTime =
|
|
190
|
-
task.completion === '
|
|
194
|
+
task.completion === '--'
|
|
191
195
|
? '--'
|
|
192
196
|
: $formattedDatetime(+task.completion * 1000, '', true)
|
|
193
197
|
|