@7365admin1/layer-common 3.1.3-staging.39 → 3.1.3-staging.40
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/components/CameraMain.vue +15 -6
- package/package.json +1 -1
|
@@ -280,8 +280,8 @@ const prop = defineProps({
|
|
|
280
280
|
headers: {
|
|
281
281
|
type: Array as PropType<Array<any>>,
|
|
282
282
|
default: () => [
|
|
283
|
-
{ title: "Host", key: "host" },
|
|
284
|
-
{ title: "Category", key: "category" },
|
|
283
|
+
// { title: "Host", key: "host" },
|
|
284
|
+
// { title: "Category", key: "category" },
|
|
285
285
|
// { title: "Guard House", key: "guardPost" },
|
|
286
286
|
// { title: "Actions", key: "action", sortable: false },
|
|
287
287
|
],
|
|
@@ -294,11 +294,20 @@ const prop = defineProps({
|
|
|
294
294
|
|
|
295
295
|
const computedHeaders = computed(() => {
|
|
296
296
|
if (prop.type === "ip") {
|
|
297
|
-
const base = [...prop.headers];
|
|
298
|
-
base.splice(0, 0, { title: "Name", key: "name" });
|
|
299
|
-
return base;
|
|
297
|
+
// const base = [...prop.headers];
|
|
298
|
+
// base.splice(0, 0, { title: "Name", key: "name" });
|
|
299
|
+
// return base;
|
|
300
|
+
return [
|
|
301
|
+
{ title: "Camera Name", key: "name" },
|
|
302
|
+
{ title: "URL", key: "host" },
|
|
303
|
+
]
|
|
304
|
+
}else if(prop.type === "anpr"){
|
|
305
|
+
return [
|
|
306
|
+
{ title: "URL", key: "host" },
|
|
307
|
+
{ title: "Type", key: "direction" },
|
|
308
|
+
]
|
|
300
309
|
}
|
|
301
|
-
return prop.headers;
|
|
310
|
+
// return prop.headers;
|
|
302
311
|
});
|
|
303
312
|
|
|
304
313
|
const items = ref<Array<TCamera>>([]);
|