bfg-common 1.4.684 → 1.4.686
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/assets/localization/local_be.json +2 -1
- package/assets/localization/local_en.json +2 -1
- package/assets/localization/local_hy.json +2 -1
- package/assets/localization/local_kk.json +2 -1
- package/assets/localization/local_ru.json +2 -1
- package/assets/localization/local_zh.json +2 -1
- package/components/common/pages/tasks/Tasks.vue +1 -0
- package/components/common/pages/tasks/table/Table.vue +16 -10
- package/components/common/pages/tasks/table/lib/config/config.ts +2 -2
- package/package.json +1 -1
|
@@ -2284,7 +2284,8 @@
|
|
|
2284
2284
|
"leave": "Пакідаць",
|
|
2285
2285
|
"export": "Экспарт",
|
|
2286
2286
|
"allRowsCount": "Усе радкі ({0})",
|
|
2287
|
-
"selectedRowsCount": "Выбраныя радкі ({0})"
|
|
2287
|
+
"selectedRowsCount": "Выбраныя радкі ({0})",
|
|
2288
|
+
"viewZone": "View Zone"
|
|
2288
2289
|
},
|
|
2289
2290
|
"auth": {
|
|
2290
2291
|
"welcomeTo": "Сардэчна запрашаем у",
|
|
@@ -2288,7 +2288,8 @@
|
|
|
2288
2288
|
"leave": "Leave",
|
|
2289
2289
|
"export": "Export",
|
|
2290
2290
|
"allRowsCount": "All rows ({0})",
|
|
2291
|
-
"selectedRowsCount": "Selected rows ({0})"
|
|
2291
|
+
"selectedRowsCount": "Selected rows ({0})",
|
|
2292
|
+
"viewZone": "View Zone"
|
|
2292
2293
|
},
|
|
2293
2294
|
"auth": {
|
|
2294
2295
|
"welcomeTo": "Welcome to",
|
|
@@ -2288,7 +2288,8 @@
|
|
|
2288
2288
|
"leave": "Հեռանալ",
|
|
2289
2289
|
"export": "Արտահանում",
|
|
2290
2290
|
"allRowsCount": "Բոլոր տողերը ({0})",
|
|
2291
|
-
"selectedRowsCount": "Ընտրված տողերը ({0})"
|
|
2291
|
+
"selectedRowsCount": "Ընտրված տողերը ({0})",
|
|
2292
|
+
"viewZone": "Դիտել գոտին"
|
|
2292
2293
|
},
|
|
2293
2294
|
"auth": {
|
|
2294
2295
|
"welcomeTo": "Բարի գալուստ",
|
|
@@ -2287,7 +2287,8 @@
|
|
|
2287
2287
|
"leave": "Тастау",
|
|
2288
2288
|
"export": "Сыртқа шығару",
|
|
2289
2289
|
"allRowsCount": "Барлық жолдар ({0})",
|
|
2290
|
-
"selectedRowsCount": "Таңдалған жолдар ({0})"
|
|
2290
|
+
"selectedRowsCount": "Таңдалған жолдар ({0})",
|
|
2291
|
+
"viewZone": "Қарау аймағы"
|
|
2291
2292
|
},
|
|
2292
2293
|
"auth": {
|
|
2293
2294
|
"welcomeTo": "Қош келдіңіз",
|
|
@@ -2289,7 +2289,8 @@
|
|
|
2289
2289
|
"leave": "Покинуть",
|
|
2290
2290
|
"export": "Экспорт",
|
|
2291
2291
|
"allRowsCount": "Все строки ({0})",
|
|
2292
|
-
"selectedRowsCount": "Выбранные строки ({0})"
|
|
2292
|
+
"selectedRowsCount": "Выбранные строки ({0})",
|
|
2293
|
+
"viewZone": "Просмотр зоны"
|
|
2293
2294
|
},
|
|
2294
2295
|
"auth": {
|
|
2295
2296
|
"welcomeTo": "Добро пожаловать в",
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
<span
|
|
16
16
|
:data-id="`rtask-${item.data.testId}`"
|
|
17
17
|
:class="item.data.isLink && 'target-link'"
|
|
18
|
-
@click="onSelectNodeOfTree(item.data)"
|
|
18
|
+
@click.stop="onSelectNodeOfTree(item.data)"
|
|
19
19
|
>
|
|
20
20
|
{{ item.text }}
|
|
21
21
|
</span>
|
|
@@ -34,8 +34,9 @@
|
|
|
34
34
|
</ui-chip>
|
|
35
35
|
|
|
36
36
|
<common-pages-tasks-table-error-info
|
|
37
|
+
v-if="item.data.error"
|
|
37
38
|
:id="item.data.testId"
|
|
38
|
-
error="item.data.error"
|
|
39
|
+
:error="item.data.error"
|
|
39
40
|
/>
|
|
40
41
|
</template>
|
|
41
42
|
|
|
@@ -46,7 +47,7 @@
|
|
|
46
47
|
:test-id="`resent-task-item-${item.data.id}-action`"
|
|
47
48
|
is-without-height
|
|
48
49
|
is-without-sizes
|
|
49
|
-
@click="onToggleActions(item.data.id)"
|
|
50
|
+
@click.stop="onToggleActions(item.data.id)"
|
|
50
51
|
>
|
|
51
52
|
<span
|
|
52
53
|
:class="['action-icon', { active: actionsIsShow[item.data.id] }]"
|
|
@@ -90,7 +91,6 @@ import type {
|
|
|
90
91
|
} from '~/node_modules/bfg-uikit/components/ui/dataTable/models/interfaces'
|
|
91
92
|
import type { UI_I_Localization } from '~/lib/models/interfaces'
|
|
92
93
|
import type { UI_I_RecentTaskItem } from '~/lib/models/store/tasks/interfaces'
|
|
93
|
-
import type { I_DataTargetForTable } from '~/components/common/pages/tasks/table/lib/models/interfaces'
|
|
94
94
|
import type { T_TypeNodes } from '~/lib/models/types'
|
|
95
95
|
|
|
96
96
|
import {
|
|
@@ -125,7 +125,7 @@ const taskHeadItems = computed<UI_I_DataTableHeader[]>(() =>
|
|
|
125
125
|
const taskBodyItems = ref<UI_I_DataTableBody[]>([])
|
|
126
126
|
watch(
|
|
127
127
|
() => props.tableData,
|
|
128
|
-
(newValue:
|
|
128
|
+
(newValue: UI_I_RecentTaskItem<T_TypeNodes>[]) => {
|
|
129
129
|
if (!newValue?.length) {
|
|
130
130
|
taskBodyItems.value = []
|
|
131
131
|
return
|
|
@@ -141,22 +141,28 @@ const onSorting = (value: string): void => {
|
|
|
141
141
|
|
|
142
142
|
const actions = computed<UI_I_Dropdown[]>(() => [
|
|
143
143
|
{
|
|
144
|
-
value: 'view',
|
|
144
|
+
value: 'view-target',
|
|
145
145
|
text: localization.value.common.viewTarget,
|
|
146
146
|
iconName: 'hide',
|
|
147
147
|
selected: false,
|
|
148
148
|
},
|
|
149
|
+
{
|
|
150
|
+
value: 'view-zone',
|
|
151
|
+
text: localization.value.common.viewZone,
|
|
152
|
+
iconName: 'hide',
|
|
153
|
+
selected: false,
|
|
154
|
+
},
|
|
149
155
|
])
|
|
150
156
|
const onToggleActions = (id: number): void => {
|
|
151
157
|
actionsIsShow.value[id] = !actionsIsShow.value[id]
|
|
152
158
|
}
|
|
153
159
|
const onSelectAction = (
|
|
154
|
-
data:
|
|
155
|
-
action: 'view',
|
|
160
|
+
data: any,
|
|
161
|
+
action: 'view-target' | 'view-zone',
|
|
156
162
|
actionId: number
|
|
157
163
|
): void => {
|
|
158
164
|
switch (action) {
|
|
159
|
-
case 'view':
|
|
165
|
+
case 'view-target':
|
|
160
166
|
onSelectNodeOfTree(data)
|
|
161
167
|
break
|
|
162
168
|
}
|
|
@@ -166,7 +172,7 @@ const onHideActionsDropdown = (id: number): void => {
|
|
|
166
172
|
actionsIsShow.value[id] = false
|
|
167
173
|
}
|
|
168
174
|
|
|
169
|
-
const onSelectNodeOfTree = (data:
|
|
175
|
+
const onSelectNodeOfTree = (data: any): void => {
|
|
170
176
|
if (!data.isLink) return
|
|
171
177
|
|
|
172
178
|
const { type, id, nav } = data
|
|
@@ -141,7 +141,7 @@ export const options: UI_I_DataTableOptions = {
|
|
|
141
141
|
{ text: '50', value: 50 },
|
|
142
142
|
{ text: '100', value: 100 },
|
|
143
143
|
],
|
|
144
|
-
isSelectable:
|
|
144
|
+
isSelectable: true,
|
|
145
145
|
isFocusable: false,
|
|
146
146
|
showPagination: true,
|
|
147
147
|
showPageInfo: true,
|
|
@@ -203,7 +203,7 @@ export const getBodyDataFunc = (
|
|
|
203
203
|
|
|
204
204
|
return {
|
|
205
205
|
row: index,
|
|
206
|
-
collapse:
|
|
206
|
+
collapse: true,
|
|
207
207
|
isHiddenCollapse: false,
|
|
208
208
|
collapseToggle: false,
|
|
209
209
|
data: [
|