shared-ritm 1.3.135 → 1.3.137
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 +9 -6
- package/dist/shared-ritm.umd.js +3 -3
- package/dist/types/api/services/UserService.d.ts +3 -2
- package/dist/types/api/types/Api_Controls.d.ts +1 -0
- package/package.json +1 -1
- package/src/api/services/UserService.ts +6 -4
- package/src/api/types/Api_Controls.ts +1 -0
- package/src/common/app-table/AppTable.vue +1 -1
- package/src/common/app-table/AppTableLayout.vue +22 -1
- package/src/common/app-table/components/TableSearch.vue +7 -0
|
@@ -71,10 +71,11 @@ declare class UserService extends ApiService {
|
|
|
71
71
|
getListVisitorLog(params: Record<string, any>): Promise<ResponseApi<Api_Visitor_Dto[]>>;
|
|
72
72
|
entryVisitorLog(body: {
|
|
73
73
|
user_id: string;
|
|
74
|
-
task_id
|
|
74
|
+
task_id?: string;
|
|
75
75
|
}): Promise<Api_Visitor_Dto>;
|
|
76
76
|
exitVisitorLog(id: string): Promise<Api_Visitor_Dto>;
|
|
77
|
-
deleteVisitorLog(): Promise<any>;
|
|
77
|
+
deleteVisitorLog(listId?: string[]): Promise<any>;
|
|
78
|
+
getListVisitorHistories(params: Record<string, any>): Promise<ResponseApi<Api_Visitor_Dto[]>>;
|
|
78
79
|
findUserByVideo(data: any): Promise<any>;
|
|
79
80
|
}
|
|
80
81
|
export default function useUserService(): UserService;
|
package/package.json
CHANGED
|
@@ -126,16 +126,18 @@ class UserService extends ApiService {
|
|
|
126
126
|
return await this.get(`get_list_visitor_log`, { params })
|
|
127
127
|
}
|
|
128
128
|
|
|
129
|
-
public entryVisitorLog(body: { user_id: string; task_id
|
|
129
|
+
public entryVisitorLog(body: { user_id: string; task_id?: string }): Promise<Api_Visitor_Dto> {
|
|
130
130
|
return this.post('entry_visitor_log', body)
|
|
131
131
|
}
|
|
132
132
|
public async exitVisitorLog(id: string): Promise<Api_Visitor_Dto> {
|
|
133
133
|
return await this.post(`exit_visitor_log/${id}`, {})
|
|
134
134
|
}
|
|
135
|
-
public async deleteVisitorLog(): Promise<any> {
|
|
136
|
-
return await this.post(`delete_not_in_zone_visitor_log`, {})
|
|
135
|
+
public async deleteVisitorLog(listId: string[] = []): Promise<any> {
|
|
136
|
+
return await this.post(`delete_not_in_zone_visitor_log`, { visitor_log_list_id: listId })
|
|
137
|
+
}
|
|
138
|
+
public async getListVisitorHistories(params: Record<string, any>): Promise<ResponseApi<Api_Visitor_Dto[]>> {
|
|
139
|
+
return await this.get(`get_list_visitor_log_histories`, { params })
|
|
137
140
|
}
|
|
138
|
-
|
|
139
141
|
public findUserByVideo(data: any): Promise<any> {
|
|
140
142
|
return this.post<any, Api_Auth_Login>(`/user/recognition`, data, {
|
|
141
143
|
transformRequest: d => d,
|
|
@@ -105,11 +105,12 @@ const isActionsSlot = computed(() => 'actions' in slots)
|
|
|
105
105
|
|
|
106
106
|
.search-input {
|
|
107
107
|
flex: 1;
|
|
108
|
+
border-radius: 6px;
|
|
108
109
|
}
|
|
109
110
|
|
|
110
111
|
::v-deep(.q-btn) {
|
|
111
112
|
flex-shrink: 0;
|
|
112
|
-
border-radius:
|
|
113
|
+
border-radius: 6px;
|
|
113
114
|
background: #fff;
|
|
114
115
|
box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.1);
|
|
115
116
|
color: #3f8cff;
|
|
@@ -134,4 +135,24 @@ const isActionsSlot = computed(() => 'actions' in slots)
|
|
|
134
135
|
.loader-spinner {
|
|
135
136
|
z-index: 11;
|
|
136
137
|
}
|
|
138
|
+
@media (min-width: 768px) and (max-width: 1024px) {
|
|
139
|
+
.table-layout {
|
|
140
|
+
height: 100%;
|
|
141
|
+
display: grid;
|
|
142
|
+
grid-template-rows: auto 1fr auto;
|
|
143
|
+
gap: 12px;
|
|
144
|
+
}
|
|
145
|
+
.table-controls {
|
|
146
|
+
gap: 8px;
|
|
147
|
+
|
|
148
|
+
.search-input {
|
|
149
|
+
height: 44px;
|
|
150
|
+
}
|
|
151
|
+
|
|
152
|
+
::v-deep(.q-btn) {
|
|
153
|
+
height: 44px;
|
|
154
|
+
width: 44px;
|
|
155
|
+
}
|
|
156
|
+
}
|
|
157
|
+
}
|
|
137
158
|
</style>
|