@7365admin1/layer-common 3.1.2-staging.35 → 3.1.2-staging.37
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.
|
@@ -28,7 +28,6 @@
|
|
|
28
28
|
:items="items"
|
|
29
29
|
fixed-header
|
|
30
30
|
hide-default-footer
|
|
31
|
-
hide-default-header
|
|
32
31
|
@click:row="handleRowClick"
|
|
33
32
|
style="max-height: 300px"
|
|
34
33
|
>
|
|
@@ -281,10 +280,10 @@ const prop = defineProps({
|
|
|
281
280
|
headers: {
|
|
282
281
|
type: Array as PropType<Array<any>>,
|
|
283
282
|
default: () => [
|
|
284
|
-
{
|
|
285
|
-
{
|
|
286
|
-
{
|
|
287
|
-
{
|
|
283
|
+
{ title: "Host", key: "host" },
|
|
284
|
+
{ title: "Category", key: "category" },
|
|
285
|
+
// { title: "Guard House", key: "guardPost" },
|
|
286
|
+
// { title: "Actions", key: "action", sortable: false },
|
|
288
287
|
],
|
|
289
288
|
},
|
|
290
289
|
readOnly: {
|
|
@@ -296,7 +295,7 @@ const prop = defineProps({
|
|
|
296
295
|
const computedHeaders = computed(() => {
|
|
297
296
|
if (prop.type === "ip") {
|
|
298
297
|
const base = [...prop.headers];
|
|
299
|
-
base.splice(0, 0, {
|
|
298
|
+
base.splice(0, 0, { title: "Name", key: "name" });
|
|
300
299
|
return base;
|
|
301
300
|
}
|
|
302
301
|
return prop.headers;
|
|
@@ -91,7 +91,7 @@
|
|
|
91
91
|
<v-menu v-model="vehicleSearchMenu" location="bottom" offset-y :close-on-content-click="false">
|
|
92
92
|
<template #activator="{ props }">
|
|
93
93
|
<InputVehicleNumber v-bind="props" v-model="visitor.plateNumber" density="comfortable"
|
|
94
|
-
@update:model-value="handleUpdateVehicleNumber" @focus="
|
|
94
|
+
@update:model-value="handleUpdateVehicleNumber" @focus="handleFocusPlateNumber"
|
|
95
95
|
@blur="isPlateNumberFieldFocused = false" />
|
|
96
96
|
</template>
|
|
97
97
|
|
|
@@ -1542,6 +1542,15 @@ function handleUpdateVehicleNumber() {
|
|
|
1542
1542
|
debounceFetchPlateNumber();
|
|
1543
1543
|
}
|
|
1544
1544
|
|
|
1545
|
+
const handleFocusPlateNumber = () => {
|
|
1546
|
+
isPlateNumberFieldFocused.value = true;
|
|
1547
|
+
if (prop.mode === 'register') {
|
|
1548
|
+
|
|
1549
|
+
handleUpdateVehicleNumber();
|
|
1550
|
+
}
|
|
1551
|
+
};
|
|
1552
|
+
|
|
1553
|
+
|
|
1545
1554
|
function backToSelection() {
|
|
1546
1555
|
emit("back");
|
|
1547
1556
|
message.value = "";
|