shared-ritm 1.3.89 → 1.3.91
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 +368 -361
- package/dist/shared-ritm.umd.js +3 -3
- package/dist/types/api/services/ControlsService.d.ts +3 -0
- package/package.json +1 -1
- package/src/api/services/ControlsService.ts +4 -0
- package/src/api/settings/ApiService.ts +1 -0
- package/src/common/app-modal/index.vue +101 -96
|
@@ -23,6 +23,9 @@ declare class ControlsService extends ApiService {
|
|
|
23
23
|
deleteInstrumentType(id: string): Promise<any>;
|
|
24
24
|
fetchRpdzLogList(params: Record<string, any>): Promise<ResponseApi<Api_ControlLogs_Dto[]>>;
|
|
25
25
|
exportRpdzLogList(params: Record<string, any>): Promise<Blob>;
|
|
26
|
+
editControlLog(id: string, body: {
|
|
27
|
+
description: string | null;
|
|
28
|
+
}): Promise<void>;
|
|
26
29
|
}
|
|
27
30
|
export default function useControlsService(): ControlsService;
|
|
28
31
|
export {};
|
package/package.json
CHANGED
|
@@ -86,6 +86,10 @@ class ControlsService extends ApiService {
|
|
|
86
86
|
public exportRpdzLogList(params: Record<string, any>): Promise<Blob> {
|
|
87
87
|
return this.get('exposed_equipment_zones_history/list/export', { params, responseType: 'blob' })
|
|
88
88
|
}
|
|
89
|
+
|
|
90
|
+
public editControlLog(id: string, body: { description: string | null }): Promise<void> {
|
|
91
|
+
return this.put(`exposed_equipment_zones/${id}`, body)
|
|
92
|
+
}
|
|
89
93
|
}
|
|
90
94
|
|
|
91
95
|
let api: ControlsService
|
|
@@ -48,6 +48,7 @@ export default class ApiService {
|
|
|
48
48
|
error.response?.status !== 401 ||
|
|
49
49
|
originalRequest.url === '/v2/auth/refresh' ||
|
|
50
50
|
originalRequest.url === '/v2/login' ||
|
|
51
|
+
originalRequest.url === '/v2/auth/refresh' ||
|
|
51
52
|
originalRequest._retry
|
|
52
53
|
) {
|
|
53
54
|
return Promise.reject(error)
|
|
@@ -1,96 +1,101 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<q-dialog v-model="model">
|
|
3
|
-
<q-card class="modal" :style="{ width, 'max-width': width || 'unset', maxHeight: maxHeight || '600px' }">
|
|
4
|
-
<q-card-section class="section">
|
|
5
|
-
<div v-if="title" class="title"
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
<
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
</
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
.
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
1
|
+
<template>
|
|
2
|
+
<q-dialog v-model="model">
|
|
3
|
+
<q-card class="modal" :style="{ width, 'max-width': width || 'unset', maxHeight: maxHeight || '600px' }">
|
|
4
|
+
<q-card-section class="section">
|
|
5
|
+
<div v-if="title" class="title" :class="{ ellipsis }" :title="title" :style="titleStyle">
|
|
6
|
+
{{ title }}
|
|
7
|
+
</div>
|
|
8
|
+
|
|
9
|
+
<slot />
|
|
10
|
+
|
|
11
|
+
<div v-if="loading" class="loader-overlay">
|
|
12
|
+
<q-spinner-audio class="loader-spinner" size="md" :thickness="3" color="primary" />
|
|
13
|
+
</div>
|
|
14
|
+
</q-card-section>
|
|
15
|
+
|
|
16
|
+
<q-card-actions align="center" class="btn__wrapper">
|
|
17
|
+
<slot name="actions" />
|
|
18
|
+
</q-card-actions>
|
|
19
|
+
</q-card>
|
|
20
|
+
</q-dialog>
|
|
21
|
+
</template>
|
|
22
|
+
|
|
23
|
+
<script setup lang="ts">
|
|
24
|
+
import { defineProps, defineEmits, defineModel } from 'vue'
|
|
25
|
+
|
|
26
|
+
type Props = {
|
|
27
|
+
modelValue?: boolean
|
|
28
|
+
title?: string
|
|
29
|
+
width?: string
|
|
30
|
+
loading?: boolean
|
|
31
|
+
maxHeight?: string
|
|
32
|
+
ellipsis?: boolean
|
|
33
|
+
titleStyle?: string
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
defineProps<Props>()
|
|
37
|
+
|
|
38
|
+
const emit = defineEmits(['update:modelValue'])
|
|
39
|
+
|
|
40
|
+
const model = defineModel<boolean>()
|
|
41
|
+
</script>
|
|
42
|
+
|
|
43
|
+
<style scoped lang="scss">
|
|
44
|
+
.modal {
|
|
45
|
+
display: grid;
|
|
46
|
+
border-radius: 0.5rem;
|
|
47
|
+
grid-template-rows: 1fr auto;
|
|
48
|
+
font-family: NunitoSansFont, sans-serif;
|
|
49
|
+
color: #1d425d;
|
|
50
|
+
overflow: hidden;
|
|
51
|
+
|
|
52
|
+
.section {
|
|
53
|
+
position: relative;
|
|
54
|
+
display: grid;
|
|
55
|
+
grid-template-rows: auto 1fr;
|
|
56
|
+
justify-items: center;
|
|
57
|
+
gap: 0.5rem;
|
|
58
|
+
background-color: white;
|
|
59
|
+
overflow: auto;
|
|
60
|
+
|
|
61
|
+
.loader-overlay {
|
|
62
|
+
width: 100%;
|
|
63
|
+
height: 100%;
|
|
64
|
+
position: absolute;
|
|
65
|
+
inset: 0;
|
|
66
|
+
z-index: 10;
|
|
67
|
+
background: rgba(255, 255, 255, 0.8);
|
|
68
|
+
display: flex;
|
|
69
|
+
align-items: center;
|
|
70
|
+
justify-content: center;
|
|
71
|
+
}
|
|
72
|
+
.loader-spinner {
|
|
73
|
+
z-index: 11;
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
.title {
|
|
78
|
+
width: 100%;
|
|
79
|
+
font-size: 32px;
|
|
80
|
+
font-weight: 700;
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
.btn__wrapper {
|
|
84
|
+
width: 100%;
|
|
85
|
+
background-color: var(--light-blue);
|
|
86
|
+
padding: 1rem;
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
</style>
|
|
90
|
+
|
|
91
|
+
<style lang="scss">
|
|
92
|
+
.modal {
|
|
93
|
+
.btn__wrapper {
|
|
94
|
+
button {
|
|
95
|
+
padding: 13px 37px;
|
|
96
|
+
border-radius: 4px;
|
|
97
|
+
color: var(--action-text-color);
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
}
|
|
101
|
+
</style>
|