shared-ritm 1.3.88 → 1.3.90
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.
|
@@ -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
|
|
@@ -2,7 +2,9 @@
|
|
|
2
2
|
<q-dialog v-model="model">
|
|
3
3
|
<q-card class="modal" :style="{ width, 'max-width': width || 'unset', maxHeight: maxHeight || '600px' }">
|
|
4
4
|
<q-card-section class="section">
|
|
5
|
-
<div v-if="title" class="title"
|
|
5
|
+
<div v-if="title" class="title" :class="{ ellipsis }" :title="title" :style="titleStyle">
|
|
6
|
+
{{ title }}
|
|
7
|
+
</div>
|
|
6
8
|
|
|
7
9
|
<slot />
|
|
8
10
|
|
|
@@ -27,6 +29,8 @@ type Props = {
|
|
|
27
29
|
width?: string
|
|
28
30
|
loading?: boolean
|
|
29
31
|
maxHeight?: string
|
|
32
|
+
ellipsis?: boolean
|
|
33
|
+
titleStyle?: string
|
|
30
34
|
}
|
|
31
35
|
|
|
32
36
|
defineProps<Props>()
|
|
@@ -71,6 +75,7 @@ const model = defineModel<boolean>()
|
|
|
71
75
|
}
|
|
72
76
|
|
|
73
77
|
.title {
|
|
78
|
+
width: 100%;
|
|
74
79
|
font-size: 32px;
|
|
75
80
|
font-weight: 700;
|
|
76
81
|
}
|