shared-ritm 1.1.81 → 1.1.83
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 +337 -335
- package/dist/shared-ritm.umd.js +3 -3
- package/dist/types/api/services/TasksService.d.ts +1 -0
- package/package.json +1 -1
- package/src/api/services/TasksService.ts +5 -0
- package/src/common/app-sidebar/components/SidebarMenuItem.vue +16 -9
|
@@ -17,6 +17,7 @@ declare class TasksService extends ApiService {
|
|
|
17
17
|
fetchDiffInstruments(params: any): Promise<ResponseApi<Api_Task_Module_Instrument_Condition>>;
|
|
18
18
|
replaceInstruments(payload: any): Promise<ResponseApi<any>>;
|
|
19
19
|
fetchTaskUsagePersonal(params: any): Promise<ResponseApi<unknown[]>>;
|
|
20
|
+
fetchTaskUsageInstrument(params: any): Promise<ResponseApi<unknown[]>>;
|
|
20
21
|
fetchEquipment(params: any): Promise<ResponseApi<Api_Equipment_Full_Dto[]>>;
|
|
21
22
|
fetchTaskVideoSources(params: any): Promise<ResponseApi<Api_Task_Video_Source[]>>;
|
|
22
23
|
fetchTaskVideoSourcesStream(params: any): Promise<ResponseApi<Api_Task_Video_Source_Stream[]>>;
|
package/package.json
CHANGED
|
@@ -50,10 +50,15 @@ class TasksService extends ApiService {
|
|
|
50
50
|
public async replaceInstruments(payload: any): Promise<ResponseApi<any>> {
|
|
51
51
|
return await this.post(`/instruments/equivalent/attach`, payload)
|
|
52
52
|
}
|
|
53
|
+
|
|
53
54
|
public async fetchTaskUsagePersonal(params: any): Promise<ResponseApi<unknown[]>> {
|
|
54
55
|
return await this.get(`tasks/${params.taskId}/usage/users`, { params })
|
|
55
56
|
}
|
|
56
57
|
|
|
58
|
+
public async fetchTaskUsageInstrument(params: any): Promise<ResponseApi<unknown[]>> {
|
|
59
|
+
return await this.get(`tasks/${params.taskId}/usage/instruments`, { params })
|
|
60
|
+
}
|
|
61
|
+
|
|
57
62
|
public fetchEquipment(params: any): Promise<ResponseApi<Api_Equipment_Full_Dto[]>> {
|
|
58
63
|
return this.get('repairs/equipment/list', { params })
|
|
59
64
|
}
|
|
@@ -43,8 +43,14 @@
|
|
|
43
43
|
:to="main ? item.to : ''"
|
|
44
44
|
@click="goToRoute(item.to)"
|
|
45
45
|
>
|
|
46
|
+
<q-item-section v-if="item.icon" avatar>
|
|
47
|
+
<app-icon :name="item.icon" color="white" size="24px" />
|
|
48
|
+
</q-item-section>
|
|
49
|
+
|
|
50
|
+
<q-item-section :class="$style['menu-item__label']">
|
|
51
|
+
<p>{{ item.label }}</p>
|
|
52
|
+
</q-item-section>
|
|
46
53
|
<q-tooltip
|
|
47
|
-
v-if="minify"
|
|
48
54
|
:delay="100"
|
|
49
55
|
transition-show="jump-right"
|
|
50
56
|
transition-hide="jump-left"
|
|
@@ -53,17 +59,11 @@
|
|
|
53
59
|
>
|
|
54
60
|
{{ item.label }}
|
|
55
61
|
</q-tooltip>
|
|
56
|
-
|
|
57
|
-
<q-item-section v-if="item.icon" avatar>
|
|
58
|
-
<app-icon :name="item.icon" color="white" size="24px" />
|
|
59
|
-
</q-item-section>
|
|
60
|
-
|
|
61
|
-
<q-item-section :class="$style['menu-item__label']">{{ item.label }}</q-item-section>
|
|
62
62
|
</q-item>
|
|
63
63
|
</template>
|
|
64
64
|
|
|
65
65
|
<script lang="ts" setup>
|
|
66
|
-
import { defineProps,
|
|
66
|
+
import { defineProps, ref } from 'vue'
|
|
67
67
|
import AppIcon from '@/common/app-icon/AppIcon.vue'
|
|
68
68
|
|
|
69
69
|
interface Props {
|
|
@@ -120,7 +120,14 @@ const goToRoute = (to: string) => {
|
|
|
120
120
|
font-family: 'Nunito Sans', sans-serif;
|
|
121
121
|
font-size: 16px;
|
|
122
122
|
font-weight: 300;
|
|
123
|
-
|
|
123
|
+
p {
|
|
124
|
+
display: inline-block;
|
|
125
|
+
max-width: 160px;
|
|
126
|
+
white-space: nowrap;
|
|
127
|
+
overflow: hidden;
|
|
128
|
+
text-overflow: ellipsis;
|
|
129
|
+
margin: 0;
|
|
130
|
+
}
|
|
124
131
|
}
|
|
125
132
|
}
|
|
126
133
|
|