shared-ritm 1.1.28 → 1.1.30
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/dist/index.css +1 -1
- package/dist/shared-ritm.es.js +79473 -20786
- package/dist/shared-ritm.umd.js +57 -27
- package/dist/types/api/types/Api_Files.d.ts +1 -3
- package/dist/types/router/index.d.ts +2 -0
- package/package.json +1 -1
- package/src/api/services/AuthService.ts +41 -41
- package/src/api/services/FileService.ts +1 -1
- package/src/api/services/GanttService.ts +17 -17
- package/src/api/services/RepairsService.ts +94 -94
- package/src/api/settings/ApiService.ts +125 -125
- package/src/api/types/Api_Files.ts +1 -1
- package/src/api/types/Api_Repairs.ts +57 -57
- package/src/common/app-icon/AppIcon.vue +104 -104
- package/src/common/app-page-layout/AppPageLayout.vue +122 -122
- package/src/global.d.ts +1 -1
- package/src/icons/components/arrow-down-icon.vue +25 -25
- package/src/icons/components/arrow-frame-icon.vue +19 -19
- package/src/icons/components/arrow-square.vue +22 -22
- package/src/icons/header/flashIcon.vue +24 -24
- package/src/icons/header/notificationIcon.vue +18 -18
- package/src/icons/header/searchStatusIcon.vue +24 -24
- package/src/icons/header/smallCapsIcon.vue +34 -34
- package/src/icons/sidebar/assign-module-icon.vue +36 -36
- package/src/icons/sidebar/instrument-history-icon.vue +32 -32
- package/src/icons/sidebar/instrument-order-icon.vue +38 -38
- package/src/icons/sidebar/instrument-work-zone-icon.vue +18 -18
- package/src/icons/sidebar/instruments-icon.vue +45 -45
- package/src/icons/sidebar/logo-icon.vue +15 -15
- package/src/icons/sidebar/logout-icon.vue +13 -13
- package/src/icons/sidebar/modules-icon.vue +16 -16
- package/src/icons/sidebar/notifications-icon.vue +24 -24
- package/src/icons/sidebar/order-icon.vue +44 -44
- package/src/icons/sidebar/pass-icon.vue +38 -38
- package/src/icons/sidebar/positions-icon.vue +42 -42
- package/src/icons/sidebar/preorder-icon.vue +19 -19
- package/src/icons/sidebar/projects-icon.vue +31 -31
- package/src/icons/sidebar/repair-object-icon.vue +18 -18
- package/src/icons/sidebar/repairs-icon.vue +20 -20
- package/src/icons/sidebar/roles-icon.vue +26 -26
- package/src/icons/sidebar/status-history-icon.vue +24 -24
- package/src/icons/sidebar/tasks-icon.vue +28 -28
- package/src/icons/sidebar/tasks_tasks-icon.vue +39 -39
- package/src/icons/sidebar/tasks_today-icon.vue +27 -27
- package/src/icons/sidebar/teams-icon.vue +32 -32
- package/src/icons/sidebar/user-icon.vue +18 -18
- package/src/icons/sidebar/users-icon.vue +46 -46
- package/src/icons/sidebar/videosources-icon.vue +19 -19
- package/src/icons/sidebar/videowall-icon.vue +13 -13
- package/src/icons/sidebar/videozones-icon.vue +21 -21
- package/src/icons/sidebar/warehouses-icon.vue +43 -43
- package/src/icons/sidebar/workshop-icon.vue +100 -100
- package/src/icons/sidebar/workzones-icon.vue +22 -22
- package/src/quasar-user-options.ts +17 -17
- package/src/shims-vue.d.ts +5 -5
|
@@ -1,57 +1,57 @@
|
|
|
1
|
-
export type Api_Team = {
|
|
2
|
-
id: string
|
|
3
|
-
display_name: string
|
|
4
|
-
}
|
|
5
|
-
|
|
6
|
-
export type Api_Equipment_Short_Dto = {
|
|
7
|
-
id: string
|
|
8
|
-
name: string
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
export type Api_Repairs = {
|
|
12
|
-
id: string
|
|
13
|
-
name: string
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
export type Api_Projects = {
|
|
17
|
-
id: string
|
|
18
|
-
name: string
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
export type OptionFilters = {
|
|
22
|
-
teams?: Api_Team[]
|
|
23
|
-
equipments?: Api_Equipment_Short_Dto[]
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
export type Api_Equipment_Full_Dto = {
|
|
27
|
-
id: string
|
|
28
|
-
model: null | string
|
|
29
|
-
name: string
|
|
30
|
-
registration_number: string
|
|
31
|
-
repair_frequency: number
|
|
32
|
-
repair_range: number
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
export type Api_Create_Repair_With_Equipments = {
|
|
36
|
-
name: string
|
|
37
|
-
display_name: string
|
|
38
|
-
description: string
|
|
39
|
-
equipment_id: string
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
export type Api_Update_Repair = {
|
|
43
|
-
name?: string
|
|
44
|
-
display_name?: string
|
|
45
|
-
description: string
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
export type Api_Repair_Dto = {
|
|
49
|
-
id: string
|
|
50
|
-
name: string
|
|
51
|
-
display_name: string
|
|
52
|
-
description: string
|
|
53
|
-
start_date: string
|
|
54
|
-
end_date: string
|
|
55
|
-
projects: Api_Projects[]
|
|
56
|
-
equipments: Api_Equipment_Full_Dto[]
|
|
57
|
-
}
|
|
1
|
+
export type Api_Team = {
|
|
2
|
+
id: string
|
|
3
|
+
display_name: string
|
|
4
|
+
}
|
|
5
|
+
|
|
6
|
+
export type Api_Equipment_Short_Dto = {
|
|
7
|
+
id: string
|
|
8
|
+
name: string
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
export type Api_Repairs = {
|
|
12
|
+
id: string
|
|
13
|
+
name: string
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
export type Api_Projects = {
|
|
17
|
+
id: string
|
|
18
|
+
name: string
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
export type OptionFilters = {
|
|
22
|
+
teams?: Api_Team[]
|
|
23
|
+
equipments?: Api_Equipment_Short_Dto[]
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
export type Api_Equipment_Full_Dto = {
|
|
27
|
+
id: string
|
|
28
|
+
model: null | string
|
|
29
|
+
name: string
|
|
30
|
+
registration_number: string
|
|
31
|
+
repair_frequency: number
|
|
32
|
+
repair_range: number
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
export type Api_Create_Repair_With_Equipments = {
|
|
36
|
+
name: string
|
|
37
|
+
display_name: string
|
|
38
|
+
description: string
|
|
39
|
+
equipment_id: string
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
export type Api_Update_Repair = {
|
|
43
|
+
name?: string
|
|
44
|
+
display_name?: string
|
|
45
|
+
description: string
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
export type Api_Repair_Dto = {
|
|
49
|
+
id: string
|
|
50
|
+
name: string
|
|
51
|
+
display_name: string
|
|
52
|
+
description: string
|
|
53
|
+
start_date: string
|
|
54
|
+
end_date: string
|
|
55
|
+
projects: Api_Projects[]
|
|
56
|
+
equipments: Api_Equipment_Full_Dto[]
|
|
57
|
+
}
|
|
@@ -1,104 +1,104 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<component :is="sideBarIcon" :tag="tag" :class="[$style['app-icon']]" />
|
|
3
|
-
</template>
|
|
4
|
-
|
|
5
|
-
<script setup lang="ts">
|
|
6
|
-
import ProjectsIcon from '@/icons/sidebar/projects-icon.vue'
|
|
7
|
-
import RepairsIcon from '@/icons/sidebar/repairs-icon.vue'
|
|
8
|
-
import InstrumentHistoryIcon from '@/icons/sidebar/instrument-history-icon.vue'
|
|
9
|
-
import RepairObjectIcon from '@/icons/sidebar/repair-object-icon.vue'
|
|
10
|
-
import StatusHistoryIcon from '@/icons/sidebar/status-history-icon.vue'
|
|
11
|
-
import PassIcon from '@/icons/sidebar/pass-icon.vue'
|
|
12
|
-
import AssignModuleIcon from '@/icons/sidebar/assign-module-icon.vue'
|
|
13
|
-
import UsersIcon from '@/icons/sidebar/users-icon.vue'
|
|
14
|
-
import UserIcon from '@/icons/sidebar/user-icon.vue'
|
|
15
|
-
import WorkzonesIcon from '@/icons/sidebar/workzones-icon.vue'
|
|
16
|
-
import LogoutIcon from '@/icons/sidebar/logout-icon.vue'
|
|
17
|
-
import LogoIcon from '@/icons/sidebar/logo-icon.vue'
|
|
18
|
-
import TasksIcon from '@/icons/sidebar/tasks-icon.vue'
|
|
19
|
-
import InstrumentsIcon from '@/icons/sidebar/instruments-icon.vue'
|
|
20
|
-
import OrderIcon from '@/icons/sidebar/order-icon.vue'
|
|
21
|
-
import ModulesIcon from '@/icons/sidebar/modules-icon.vue'
|
|
22
|
-
import NotificationsIcon from '@/icons/sidebar/notifications-icon.vue'
|
|
23
|
-
import VideozonesIcon from '@/icons/sidebar/videozones-icon.vue'
|
|
24
|
-
import InstrumentWorkZoneIcon from '@/icons/sidebar/instrument-work-zone-icon.vue'
|
|
25
|
-
import WorkshopIcon from '@/icons/sidebar/workshop-icon.vue'
|
|
26
|
-
import WarehousesIcon from '@/icons/sidebar/warehouses-icon.vue'
|
|
27
|
-
import TeamsIcon from '@/icons/sidebar/teams-icon.vue'
|
|
28
|
-
import RolesIcon from '@/icons/sidebar/roles-icon.vue'
|
|
29
|
-
import PositionsIcon from '@/icons/sidebar/positions-icon.vue'
|
|
30
|
-
import InstrumentOrderIcon from '@/icons/sidebar/instrument-order-icon.vue'
|
|
31
|
-
import PreorderIcon from '@/icons/sidebar/preorder-icon.vue'
|
|
32
|
-
import VideowallIcon from '@/icons/sidebar/videowall-icon.vue'
|
|
33
|
-
import VideosourcesIcon from '@/icons/sidebar/videosources-icon.vue'
|
|
34
|
-
import Tasks_tasksIcon from '@/icons/sidebar/tasks_tasks-icon.vue'
|
|
35
|
-
import Tasks_todayIcon from '@/icons/sidebar/tasks_today-icon.vue'
|
|
36
|
-
import ArrowFrameIcon from '@/icons/components/arrow-frame-icon.vue'
|
|
37
|
-
|
|
38
|
-
import { computed, defineProps } from 'vue'
|
|
39
|
-
|
|
40
|
-
interface Props {
|
|
41
|
-
size?: string | undefined
|
|
42
|
-
tag?: string | undefined
|
|
43
|
-
name: string
|
|
44
|
-
color?: string | undefined
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
const props = withDefaults(defineProps<Props>(), {
|
|
48
|
-
tag: '',
|
|
49
|
-
name: '',
|
|
50
|
-
})
|
|
51
|
-
|
|
52
|
-
function toPascalCase(str: string): string {
|
|
53
|
-
if (!str) return ''
|
|
54
|
-
return str
|
|
55
|
-
.split('-')
|
|
56
|
-
.map(word => word.charAt(0).toUpperCase() + word.slice(1).toLowerCase())
|
|
57
|
-
.join('')
|
|
58
|
-
}
|
|
59
|
-
const sideBarIcon = computed(
|
|
60
|
-
() =>
|
|
61
|
-
({
|
|
62
|
-
ProjectsIcon,
|
|
63
|
-
RepairsIcon,
|
|
64
|
-
RepairObjectIcon,
|
|
65
|
-
InstrumentHistoryIcon,
|
|
66
|
-
StatusHistoryIcon,
|
|
67
|
-
PassIcon,
|
|
68
|
-
AssignModuleIcon,
|
|
69
|
-
UsersIcon,
|
|
70
|
-
UserIcon,
|
|
71
|
-
WorkzonesIcon,
|
|
72
|
-
LogoutIcon,
|
|
73
|
-
LogoIcon,
|
|
74
|
-
TasksIcon,
|
|
75
|
-
InstrumentsIcon,
|
|
76
|
-
OrderIcon,
|
|
77
|
-
ModulesIcon,
|
|
78
|
-
NotificationsIcon,
|
|
79
|
-
VideozonesIcon,
|
|
80
|
-
InstrumentWorkZoneIcon,
|
|
81
|
-
WorkshopIcon,
|
|
82
|
-
WarehousesIcon,
|
|
83
|
-
TeamsIcon,
|
|
84
|
-
RolesIcon,
|
|
85
|
-
PositionsIcon,
|
|
86
|
-
InstrumentOrderIcon,
|
|
87
|
-
PreorderIcon,
|
|
88
|
-
VideowallIcon,
|
|
89
|
-
VideosourcesIcon,
|
|
90
|
-
Tasks_tasksIcon,
|
|
91
|
-
Tasks_todayIcon,
|
|
92
|
-
ArrowFrameIcon,
|
|
93
|
-
}[toPascalCase(props.name)]),
|
|
94
|
-
)
|
|
95
|
-
</script>
|
|
96
|
-
|
|
97
|
-
<style module lang="scss">
|
|
98
|
-
.app-icon {
|
|
99
|
-
stroke: v-bind(color);
|
|
100
|
-
fill: none;
|
|
101
|
-
width: v-bind(size);
|
|
102
|
-
height: v-bind(size);
|
|
103
|
-
}
|
|
104
|
-
</style>
|
|
1
|
+
<template>
|
|
2
|
+
<component :is="sideBarIcon" :tag="tag" :class="[$style['app-icon']]" />
|
|
3
|
+
</template>
|
|
4
|
+
|
|
5
|
+
<script setup lang="ts">
|
|
6
|
+
import ProjectsIcon from '@/icons/sidebar/projects-icon.vue'
|
|
7
|
+
import RepairsIcon from '@/icons/sidebar/repairs-icon.vue'
|
|
8
|
+
import InstrumentHistoryIcon from '@/icons/sidebar/instrument-history-icon.vue'
|
|
9
|
+
import RepairObjectIcon from '@/icons/sidebar/repair-object-icon.vue'
|
|
10
|
+
import StatusHistoryIcon from '@/icons/sidebar/status-history-icon.vue'
|
|
11
|
+
import PassIcon from '@/icons/sidebar/pass-icon.vue'
|
|
12
|
+
import AssignModuleIcon from '@/icons/sidebar/assign-module-icon.vue'
|
|
13
|
+
import UsersIcon from '@/icons/sidebar/users-icon.vue'
|
|
14
|
+
import UserIcon from '@/icons/sidebar/user-icon.vue'
|
|
15
|
+
import WorkzonesIcon from '@/icons/sidebar/workzones-icon.vue'
|
|
16
|
+
import LogoutIcon from '@/icons/sidebar/logout-icon.vue'
|
|
17
|
+
import LogoIcon from '@/icons/sidebar/logo-icon.vue'
|
|
18
|
+
import TasksIcon from '@/icons/sidebar/tasks-icon.vue'
|
|
19
|
+
import InstrumentsIcon from '@/icons/sidebar/instruments-icon.vue'
|
|
20
|
+
import OrderIcon from '@/icons/sidebar/order-icon.vue'
|
|
21
|
+
import ModulesIcon from '@/icons/sidebar/modules-icon.vue'
|
|
22
|
+
import NotificationsIcon from '@/icons/sidebar/notifications-icon.vue'
|
|
23
|
+
import VideozonesIcon from '@/icons/sidebar/videozones-icon.vue'
|
|
24
|
+
import InstrumentWorkZoneIcon from '@/icons/sidebar/instrument-work-zone-icon.vue'
|
|
25
|
+
import WorkshopIcon from '@/icons/sidebar/workshop-icon.vue'
|
|
26
|
+
import WarehousesIcon from '@/icons/sidebar/warehouses-icon.vue'
|
|
27
|
+
import TeamsIcon from '@/icons/sidebar/teams-icon.vue'
|
|
28
|
+
import RolesIcon from '@/icons/sidebar/roles-icon.vue'
|
|
29
|
+
import PositionsIcon from '@/icons/sidebar/positions-icon.vue'
|
|
30
|
+
import InstrumentOrderIcon from '@/icons/sidebar/instrument-order-icon.vue'
|
|
31
|
+
import PreorderIcon from '@/icons/sidebar/preorder-icon.vue'
|
|
32
|
+
import VideowallIcon from '@/icons/sidebar/videowall-icon.vue'
|
|
33
|
+
import VideosourcesIcon from '@/icons/sidebar/videosources-icon.vue'
|
|
34
|
+
import Tasks_tasksIcon from '@/icons/sidebar/tasks_tasks-icon.vue'
|
|
35
|
+
import Tasks_todayIcon from '@/icons/sidebar/tasks_today-icon.vue'
|
|
36
|
+
import ArrowFrameIcon from '@/icons/components/arrow-frame-icon.vue'
|
|
37
|
+
|
|
38
|
+
import { computed, defineProps } from 'vue'
|
|
39
|
+
|
|
40
|
+
interface Props {
|
|
41
|
+
size?: string | undefined
|
|
42
|
+
tag?: string | undefined
|
|
43
|
+
name: string
|
|
44
|
+
color?: string | undefined
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
const props = withDefaults(defineProps<Props>(), {
|
|
48
|
+
tag: '',
|
|
49
|
+
name: '',
|
|
50
|
+
})
|
|
51
|
+
|
|
52
|
+
function toPascalCase(str: string): string {
|
|
53
|
+
if (!str) return ''
|
|
54
|
+
return str
|
|
55
|
+
.split('-')
|
|
56
|
+
.map(word => word.charAt(0).toUpperCase() + word.slice(1).toLowerCase())
|
|
57
|
+
.join('')
|
|
58
|
+
}
|
|
59
|
+
const sideBarIcon = computed(
|
|
60
|
+
() =>
|
|
61
|
+
({
|
|
62
|
+
ProjectsIcon,
|
|
63
|
+
RepairsIcon,
|
|
64
|
+
RepairObjectIcon,
|
|
65
|
+
InstrumentHistoryIcon,
|
|
66
|
+
StatusHistoryIcon,
|
|
67
|
+
PassIcon,
|
|
68
|
+
AssignModuleIcon,
|
|
69
|
+
UsersIcon,
|
|
70
|
+
UserIcon,
|
|
71
|
+
WorkzonesIcon,
|
|
72
|
+
LogoutIcon,
|
|
73
|
+
LogoIcon,
|
|
74
|
+
TasksIcon,
|
|
75
|
+
InstrumentsIcon,
|
|
76
|
+
OrderIcon,
|
|
77
|
+
ModulesIcon,
|
|
78
|
+
NotificationsIcon,
|
|
79
|
+
VideozonesIcon,
|
|
80
|
+
InstrumentWorkZoneIcon,
|
|
81
|
+
WorkshopIcon,
|
|
82
|
+
WarehousesIcon,
|
|
83
|
+
TeamsIcon,
|
|
84
|
+
RolesIcon,
|
|
85
|
+
PositionsIcon,
|
|
86
|
+
InstrumentOrderIcon,
|
|
87
|
+
PreorderIcon,
|
|
88
|
+
VideowallIcon,
|
|
89
|
+
VideosourcesIcon,
|
|
90
|
+
Tasks_tasksIcon,
|
|
91
|
+
Tasks_todayIcon,
|
|
92
|
+
ArrowFrameIcon,
|
|
93
|
+
}[toPascalCase(props.name)]),
|
|
94
|
+
)
|
|
95
|
+
</script>
|
|
96
|
+
|
|
97
|
+
<style module lang="scss">
|
|
98
|
+
.app-icon {
|
|
99
|
+
stroke: v-bind(color);
|
|
100
|
+
fill: none;
|
|
101
|
+
width: v-bind(size);
|
|
102
|
+
height: v-bind(size);
|
|
103
|
+
}
|
|
104
|
+
</style>
|
|
@@ -1,122 +1,122 @@
|
|
|
1
|
-
<template lang="pug">
|
|
2
|
-
q-page#content(:class="$style['page-container']")
|
|
3
|
-
q-toolbar(:class="$style['toolbar']")
|
|
4
|
-
q-toolbar-title(:class="$style.title") {{ title }}
|
|
5
|
-
div(:class="$style['action-buttons']")
|
|
6
|
-
app-button(
|
|
7
|
-
rounded
|
|
8
|
-
:class="$style['button-new']"
|
|
9
|
-
:label="'Новый ремонт'"
|
|
10
|
-
@click="emits('create-repair')"
|
|
11
|
-
color="#fff"
|
|
12
|
-
icon="add"
|
|
13
|
-
)
|
|
14
|
-
app-button(rounded :class="$style['button-video-wall']" @click="emits('routing-to-video-wall')")
|
|
15
|
-
video-wall-icon
|
|
16
|
-
span Видеостена
|
|
17
|
-
app-button(rounded :class="$style.button" @click="openFullScreenWidgets")
|
|
18
|
-
q-tooltip на весь экран
|
|
19
|
-
q-icon(name="open_in_full")
|
|
20
|
-
//app-button(rounded :class="$style.button")
|
|
21
|
-
// graph-icon
|
|
22
|
-
//app-button(rounded :class="$style.button")
|
|
23
|
-
// time-line-icon
|
|
24
|
-
slot
|
|
25
|
-
</template>
|
|
26
|
-
|
|
27
|
-
<script setup lang="ts">
|
|
28
|
-
import { defineProps, defineEmits, defineAsyncComponent } from 'vue'
|
|
29
|
-
import AppButton from '@/common/app-button/AppButton.vue'
|
|
30
|
-
import { useQuasar } from 'quasar'
|
|
31
|
-
import VideoWallIcon from '@/icons/page-header/videoWallIcon.vue'
|
|
32
|
-
|
|
33
|
-
const $q = useQuasar()
|
|
34
|
-
|
|
35
|
-
const FullScreenDialog = defineAsyncComponent(() => import('@/components/dialogs/full-screen-widgets/index.vue'))
|
|
36
|
-
// import GraphIcon from '@/icons/page-header/graphIcon.vue'
|
|
37
|
-
// import TimeLineIcon from '@/icons/page-header/timeLineIcon.vue'
|
|
38
|
-
interface Props {
|
|
39
|
-
title: string
|
|
40
|
-
}
|
|
41
|
-
const props = defineProps<Props>()
|
|
42
|
-
const emits = defineEmits(['create-repair', ''])
|
|
43
|
-
|
|
44
|
-
const openFullScreenWidgets = () => {
|
|
45
|
-
$q.dialog({
|
|
46
|
-
component: FullScreenDialog,
|
|
47
|
-
})
|
|
48
|
-
}
|
|
49
|
-
</script>
|
|
50
|
-
<style module lang="scss">
|
|
51
|
-
.toolbar {
|
|
52
|
-
padding: 0;
|
|
53
|
-
margin-top: 16px;
|
|
54
|
-
}
|
|
55
|
-
.page-container {
|
|
56
|
-
padding: 0 4px 0 0;
|
|
57
|
-
max-width: 1300px;
|
|
58
|
-
margin: 0 auto;
|
|
59
|
-
max-height: 600px;
|
|
60
|
-
overflow: auto;
|
|
61
|
-
&::-webkit-scrollbar-thumb {
|
|
62
|
-
height: 88px;
|
|
63
|
-
background-color: #d3dbeb;
|
|
64
|
-
border-radius: 6px;
|
|
65
|
-
}
|
|
66
|
-
}
|
|
67
|
-
.button {
|
|
68
|
-
padding: 12px;
|
|
69
|
-
background: white;
|
|
70
|
-
}
|
|
71
|
-
|
|
72
|
-
.button-new {
|
|
73
|
-
padding: 12px 18px;
|
|
74
|
-
background: #3f8cff;
|
|
75
|
-
}
|
|
76
|
-
.button-video-wall {
|
|
77
|
-
padding: 10px 18px;
|
|
78
|
-
background: white;
|
|
79
|
-
span {
|
|
80
|
-
color: #3f8cff;
|
|
81
|
-
margin-left: 8px;
|
|
82
|
-
font-size: 16px;
|
|
83
|
-
font-weight: 700;
|
|
84
|
-
}
|
|
85
|
-
}
|
|
86
|
-
.title {
|
|
87
|
-
color: #fff;
|
|
88
|
-
font-family: Montserrat, sans-serif;
|
|
89
|
-
font-size: 32px;
|
|
90
|
-
font-style: normal;
|
|
91
|
-
font-weight: 700;
|
|
92
|
-
line-height: normal;
|
|
93
|
-
}
|
|
94
|
-
|
|
95
|
-
.action-buttons {
|
|
96
|
-
position: relative;
|
|
97
|
-
display: flex;
|
|
98
|
-
align-items: center;
|
|
99
|
-
column-gap: 16px;
|
|
100
|
-
}
|
|
101
|
-
|
|
102
|
-
@media (max-width: 1440px) {
|
|
103
|
-
.page-container {
|
|
104
|
-
max-width: 874px;
|
|
105
|
-
}
|
|
106
|
-
.action-buttons {
|
|
107
|
-
column-gap: 8px;
|
|
108
|
-
}
|
|
109
|
-
.title {
|
|
110
|
-
font-size: 24px;
|
|
111
|
-
line-height: normal;
|
|
112
|
-
}
|
|
113
|
-
.button {
|
|
114
|
-
padding: 10px;
|
|
115
|
-
background: white;
|
|
116
|
-
}
|
|
117
|
-
.button-new {
|
|
118
|
-
padding: 10px 12px;
|
|
119
|
-
background: #3f8cff;
|
|
120
|
-
}
|
|
121
|
-
}
|
|
122
|
-
</style>
|
|
1
|
+
<template lang="pug">
|
|
2
|
+
q-page#content(:class="$style['page-container']")
|
|
3
|
+
q-toolbar(:class="$style['toolbar']")
|
|
4
|
+
q-toolbar-title(:class="$style.title") {{ title }}
|
|
5
|
+
div(:class="$style['action-buttons']")
|
|
6
|
+
app-button(
|
|
7
|
+
rounded
|
|
8
|
+
:class="$style['button-new']"
|
|
9
|
+
:label="'Новый ремонт'"
|
|
10
|
+
@click="emits('create-repair')"
|
|
11
|
+
color="#fff"
|
|
12
|
+
icon="add"
|
|
13
|
+
)
|
|
14
|
+
app-button(rounded :class="$style['button-video-wall']" @click="emits('routing-to-video-wall')")
|
|
15
|
+
video-wall-icon
|
|
16
|
+
span Видеостена
|
|
17
|
+
app-button(rounded :class="$style.button" @click="openFullScreenWidgets")
|
|
18
|
+
q-tooltip на весь экран
|
|
19
|
+
q-icon(name="open_in_full")
|
|
20
|
+
//app-button(rounded :class="$style.button")
|
|
21
|
+
// graph-icon
|
|
22
|
+
//app-button(rounded :class="$style.button")
|
|
23
|
+
// time-line-icon
|
|
24
|
+
slot
|
|
25
|
+
</template>
|
|
26
|
+
|
|
27
|
+
<script setup lang="ts">
|
|
28
|
+
import { defineProps, defineEmits, defineAsyncComponent } from 'vue'
|
|
29
|
+
import AppButton from '@/common/app-button/AppButton.vue'
|
|
30
|
+
import { useQuasar } from 'quasar'
|
|
31
|
+
import VideoWallIcon from '@/icons/page-header/videoWallIcon.vue'
|
|
32
|
+
|
|
33
|
+
const $q = useQuasar()
|
|
34
|
+
|
|
35
|
+
const FullScreenDialog = defineAsyncComponent(() => import('@/components/dialogs/full-screen-widgets/index.vue'))
|
|
36
|
+
// import GraphIcon from '@/icons/page-header/graphIcon.vue'
|
|
37
|
+
// import TimeLineIcon from '@/icons/page-header/timeLineIcon.vue'
|
|
38
|
+
interface Props {
|
|
39
|
+
title: string
|
|
40
|
+
}
|
|
41
|
+
const props = defineProps<Props>()
|
|
42
|
+
const emits = defineEmits(['create-repair', ''])
|
|
43
|
+
|
|
44
|
+
const openFullScreenWidgets = () => {
|
|
45
|
+
$q.dialog({
|
|
46
|
+
component: FullScreenDialog,
|
|
47
|
+
})
|
|
48
|
+
}
|
|
49
|
+
</script>
|
|
50
|
+
<style module lang="scss">
|
|
51
|
+
.toolbar {
|
|
52
|
+
padding: 0;
|
|
53
|
+
margin-top: 16px;
|
|
54
|
+
}
|
|
55
|
+
.page-container {
|
|
56
|
+
padding: 0 4px 0 0;
|
|
57
|
+
max-width: 1300px;
|
|
58
|
+
margin: 0 auto;
|
|
59
|
+
max-height: 600px;
|
|
60
|
+
overflow: auto;
|
|
61
|
+
&::-webkit-scrollbar-thumb {
|
|
62
|
+
height: 88px;
|
|
63
|
+
background-color: #d3dbeb;
|
|
64
|
+
border-radius: 6px;
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
.button {
|
|
68
|
+
padding: 12px;
|
|
69
|
+
background: white;
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
.button-new {
|
|
73
|
+
padding: 12px 18px;
|
|
74
|
+
background: #3f8cff;
|
|
75
|
+
}
|
|
76
|
+
.button-video-wall {
|
|
77
|
+
padding: 10px 18px;
|
|
78
|
+
background: white;
|
|
79
|
+
span {
|
|
80
|
+
color: #3f8cff;
|
|
81
|
+
margin-left: 8px;
|
|
82
|
+
font-size: 16px;
|
|
83
|
+
font-weight: 700;
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
.title {
|
|
87
|
+
color: #fff;
|
|
88
|
+
font-family: Montserrat, sans-serif;
|
|
89
|
+
font-size: 32px;
|
|
90
|
+
font-style: normal;
|
|
91
|
+
font-weight: 700;
|
|
92
|
+
line-height: normal;
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
.action-buttons {
|
|
96
|
+
position: relative;
|
|
97
|
+
display: flex;
|
|
98
|
+
align-items: center;
|
|
99
|
+
column-gap: 16px;
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
@media (max-width: 1440px) {
|
|
103
|
+
.page-container {
|
|
104
|
+
max-width: 874px;
|
|
105
|
+
}
|
|
106
|
+
.action-buttons {
|
|
107
|
+
column-gap: 8px;
|
|
108
|
+
}
|
|
109
|
+
.title {
|
|
110
|
+
font-size: 24px;
|
|
111
|
+
line-height: normal;
|
|
112
|
+
}
|
|
113
|
+
.button {
|
|
114
|
+
padding: 10px;
|
|
115
|
+
background: white;
|
|
116
|
+
}
|
|
117
|
+
.button-new {
|
|
118
|
+
padding: 10px 12px;
|
|
119
|
+
background: #3f8cff;
|
|
120
|
+
}
|
|
121
|
+
}
|
|
122
|
+
</style>
|
package/src/global.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
declare module 'shared-ritm'
|
|
1
|
+
declare module 'shared-ritm'
|
|
@@ -1,25 +1,25 @@
|
|
|
1
|
-
<script>
|
|
2
|
-
export default {
|
|
3
|
-
name: 'ArrowDownIcon',
|
|
4
|
-
}
|
|
5
|
-
</script>
|
|
6
|
-
|
|
7
|
-
<template>
|
|
8
|
-
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none">
|
|
9
|
-
<path
|
|
10
|
-
d="M12 2C6.47715 2 2 6.47715 2 12C2 17.5228 6.47715 22 12 22C17.5228 22 22 17.5228 22 12C22 6.47715 17.5228 2 12 2Z"
|
|
11
|
-
stroke="#3F8CFF"
|
|
12
|
-
stroke-width="1.5"
|
|
13
|
-
stroke-miterlimit="10"
|
|
14
|
-
stroke-linecap="round"
|
|
15
|
-
stroke-linejoin="round"
|
|
16
|
-
/>
|
|
17
|
-
<path
|
|
18
|
-
d="M15.53 10.74L12 14.26L8.47003 10.74"
|
|
19
|
-
stroke="#3F8CFF"
|
|
20
|
-
stroke-width="1.5"
|
|
21
|
-
stroke-linecap="round"
|
|
22
|
-
stroke-linejoin="round"
|
|
23
|
-
/>
|
|
24
|
-
</svg>
|
|
25
|
-
</template>
|
|
1
|
+
<script>
|
|
2
|
+
export default {
|
|
3
|
+
name: 'ArrowDownIcon',
|
|
4
|
+
}
|
|
5
|
+
</script>
|
|
6
|
+
|
|
7
|
+
<template>
|
|
8
|
+
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none">
|
|
9
|
+
<path
|
|
10
|
+
d="M12 2C6.47715 2 2 6.47715 2 12C2 17.5228 6.47715 22 12 22C17.5228 22 22 17.5228 22 12C22 6.47715 17.5228 2 12 2Z"
|
|
11
|
+
stroke="#3F8CFF"
|
|
12
|
+
stroke-width="1.5"
|
|
13
|
+
stroke-miterlimit="10"
|
|
14
|
+
stroke-linecap="round"
|
|
15
|
+
stroke-linejoin="round"
|
|
16
|
+
/>
|
|
17
|
+
<path
|
|
18
|
+
d="M15.53 10.74L12 14.26L8.47003 10.74"
|
|
19
|
+
stroke="#3F8CFF"
|
|
20
|
+
stroke-width="1.5"
|
|
21
|
+
stroke-linecap="round"
|
|
22
|
+
stroke-linejoin="round"
|
|
23
|
+
/>
|
|
24
|
+
</svg>
|
|
25
|
+
</template>
|
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none">
|
|
3
|
-
<path
|
|
4
|
-
d="M12 22C17.5228 22 22 17.5228 22 12C22 6.47715 17.5228 2 12 2C6.47715 2 2 6.47715 2 12C2 17.5228 6.47715 22 12 22Z"
|
|
5
|
-
stroke="currentStroke"
|
|
6
|
-
stroke-width="1.5"
|
|
7
|
-
stroke-miterlimit="10"
|
|
8
|
-
stroke-linecap="round"
|
|
9
|
-
stroke-linejoin="round"
|
|
10
|
-
/>
|
|
11
|
-
<path
|
|
12
|
-
d="M8.46997 13.26L12 9.73999L15.53 13.26"
|
|
13
|
-
stroke="currentStroke"
|
|
14
|
-
stroke-width="1.5"
|
|
15
|
-
stroke-linecap="round"
|
|
16
|
-
stroke-linejoin="round"
|
|
17
|
-
/>
|
|
18
|
-
</svg>
|
|
19
|
-
</template>
|
|
1
|
+
<template>
|
|
2
|
+
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none">
|
|
3
|
+
<path
|
|
4
|
+
d="M12 22C17.5228 22 22 17.5228 22 12C22 6.47715 17.5228 2 12 2C6.47715 2 2 6.47715 2 12C2 17.5228 6.47715 22 12 22Z"
|
|
5
|
+
stroke="currentStroke"
|
|
6
|
+
stroke-width="1.5"
|
|
7
|
+
stroke-miterlimit="10"
|
|
8
|
+
stroke-linecap="round"
|
|
9
|
+
stroke-linejoin="round"
|
|
10
|
+
/>
|
|
11
|
+
<path
|
|
12
|
+
d="M8.46997 13.26L12 9.73999L15.53 13.26"
|
|
13
|
+
stroke="currentStroke"
|
|
14
|
+
stroke-width="1.5"
|
|
15
|
+
stroke-linecap="round"
|
|
16
|
+
stroke-linejoin="round"
|
|
17
|
+
/>
|
|
18
|
+
</svg>
|
|
19
|
+
</template>
|