Commit 4c1d500 1 parent a6f4a76 commit 4c1d500 Copy full SHA for 4c1d500
File tree 1 file changed +12
-5
lines changed
1 file changed +12
-5
lines changed Original file line number Diff line number Diff line change 9
9
:options =" employeeSearchOptions"
10
10
v-model =" employeeSearch"
11
11
placeholder =" Search Employee"
12
+ :multiple =" true"
12
13
/>
13
14
</th >
14
15
27
28
<tr v-for =" employee in employees.data" :key =" employee.name" >
28
29
<!-- Employee Column -->
29
30
<td
30
- v-if =" !employeeSearch?.value || employeeSearch?.value === employee?.name"
31
+ v-if ="
32
+ !employeeSearch?.length ||
33
+ employeeSearch?.some((item) => item.value === employee?.name)
34
+ "
31
35
class =" border-t px-2 py-3"
32
36
>
33
37
<div class =" flex" >
49
53
50
54
<!-- Events -->
51
55
<td
52
- v-if =" !employeeSearch?.value || employeeSearch?.value === employee?.name"
56
+ v-if ="
57
+ !employeeSearch?.length ||
58
+ employeeSearch?.some((item) => item.value === employee?.name)
59
+ "
53
60
v-for =" (day, idx) in daysOfMonth"
54
61
:key =" idx"
55
62
class =" border-t p-1.5"
122
129
: 'invisible'
123
130
"
124
131
@click ="
125
- shiftAssignment = null ;
132
+ shiftAssignment = '' ;
126
133
showShiftAssignmentDialog = true;
127
134
"
128
135
/>
@@ -194,8 +201,8 @@ const props = defineProps<{
194
201
filters: { [K in FilterField ]: string };
195
202
}>();
196
203
197
- const employeeSearch = ref ( { value: " " , label: " " } );
198
- const shiftAssignment = ref ();
204
+ const employeeSearch = ref < { value: string ; label: string }[]>( );
205
+ const shiftAssignment = ref < string > ();
199
206
const showShiftAssignmentDialog = ref (false );
200
207
const hoveredCell = ref ({ employee: " " , date: " " , shift: " " });
201
208
You can’t perform that action at this time.
0 commit comments