shared-ritm 1.3.24 → 1.3.26
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 +7461 -7430
- package/dist/shared-ritm.umd.js +297 -297
- package/dist/types/api/types/Api_Repairs.d.ts +12 -0
- package/package.json +1 -1
- package/src/api/types/Api_Repairs.ts +12 -0
- package/src/common/app-select/AppSelect.vue +2 -0
- package/src/common/app-table/components/ModalSelect.vue +3 -1
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
import { Api_Status_DTO, Api_Tasks_Task_Dto } from '@/api/types/Api_Tasks';
|
|
2
|
+
import { Api_Project_Category } from '@/api/types/Api_Projects';
|
|
3
|
+
import { Api_User_Dto } from '@/api/types/Api_Controls';
|
|
2
4
|
export type Api_Team = {
|
|
3
5
|
id: string;
|
|
4
6
|
display_name: string;
|
|
@@ -96,6 +98,16 @@ export type Api_Repair_Dto = {
|
|
|
96
98
|
end_date: string;
|
|
97
99
|
projects: Api_Projects[];
|
|
98
100
|
equipments: Api_Equipment_Full_Dto[];
|
|
101
|
+
category: Api_Project_Category;
|
|
102
|
+
completed_at: string | null;
|
|
103
|
+
controllers: Api_User_Dto[];
|
|
104
|
+
cost_per_MWh: number | null;
|
|
105
|
+
power_output_MWh: number | null;
|
|
106
|
+
has_instruments_plan: boolean;
|
|
107
|
+
has_positions_plan: boolean;
|
|
108
|
+
plan_start_date: string | null;
|
|
109
|
+
status: Api_Status_DTO;
|
|
110
|
+
teams: Api_Team[];
|
|
99
111
|
};
|
|
100
112
|
export type Api_Repair_Template = {
|
|
101
113
|
id: string;
|
package/package.json
CHANGED
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
import { Api_Status_DTO, Api_Tasks_Task_Dto } from '@/api/types/Api_Tasks'
|
|
2
|
+
import { Api_Project_Category } from '@/api/types/Api_Projects'
|
|
3
|
+
import { Api_User_Dto } from '@/api/types/Api_Controls'
|
|
2
4
|
|
|
3
5
|
export type Api_Team = {
|
|
4
6
|
id: string
|
|
@@ -104,6 +106,16 @@ export type Api_Repair_Dto = {
|
|
|
104
106
|
end_date: string
|
|
105
107
|
projects: Api_Projects[]
|
|
106
108
|
equipments: Api_Equipment_Full_Dto[]
|
|
109
|
+
category: Api_Project_Category
|
|
110
|
+
completed_at: string | null
|
|
111
|
+
controllers: Api_User_Dto[]
|
|
112
|
+
cost_per_MWh: number | null
|
|
113
|
+
power_output_MWh: number | null
|
|
114
|
+
has_instruments_plan: boolean
|
|
115
|
+
has_positions_plan: boolean
|
|
116
|
+
plan_start_date: string | null
|
|
117
|
+
status: Api_Status_DTO
|
|
118
|
+
teams: Api_Team[]
|
|
107
119
|
}
|
|
108
120
|
|
|
109
121
|
export type Api_Repair_Template = {
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
<q-select
|
|
3
3
|
ref="select"
|
|
4
4
|
v-model="selected"
|
|
5
|
+
:data-test="dataTest"
|
|
5
6
|
:options="filteredOptions"
|
|
6
7
|
:option-value="optionValue"
|
|
7
8
|
:option-label="optionLabel"
|
|
@@ -61,6 +62,7 @@ interface AppQSelectProps {
|
|
|
61
62
|
isDisabled?: boolean
|
|
62
63
|
clearable?: boolean
|
|
63
64
|
search?: boolean
|
|
65
|
+
dataTest?: string
|
|
64
66
|
}
|
|
65
67
|
|
|
66
68
|
const props = defineProps<AppQSelectProps>()
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<label v-if="label" class="field-label">
|
|
2
|
+
<label v-if="label" class="field-label" :data-test="`${dataTest}-label`">
|
|
3
3
|
{{ label }}
|
|
4
4
|
<span v-if="rules?.length && isShowRequired" class="required">*</span>
|
|
5
5
|
</label>
|
|
@@ -7,6 +7,7 @@
|
|
|
7
7
|
<q-select
|
|
8
8
|
ref="select"
|
|
9
9
|
v-model="selected"
|
|
10
|
+
:data-test="dataTest"
|
|
10
11
|
:options="filteredOptions"
|
|
11
12
|
:disable="isDisabled"
|
|
12
13
|
:multiple="multiple"
|
|
@@ -116,6 +117,7 @@ interface AppQSelectProps {
|
|
|
116
117
|
menuWidth?: string
|
|
117
118
|
rules?: ((val: any) => boolean | string)[]
|
|
118
119
|
popupContentStyle?: string
|
|
120
|
+
dataTest?: string
|
|
119
121
|
}
|
|
120
122
|
|
|
121
123
|
const props = defineProps<AppQSelectProps>()
|