tsv2-library 1.0.61-alpha.40 → 1.0.61-alpha.42
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.
|
@@ -115,15 +115,9 @@ export interface Asset {
|
|
|
115
115
|
auditStatus?: string | null;
|
|
116
116
|
rfid?: boolean;
|
|
117
117
|
qr?: boolean;
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
imageSmall?: null | 'string';
|
|
122
|
-
imageMedium?: null | 'string';
|
|
123
|
-
imageBig?: null | 'string';
|
|
124
|
-
firstImageSmall?: string;
|
|
125
|
-
firstImageMedium?: string;
|
|
126
|
-
firstImageBig?: string;
|
|
118
|
+
assetImage?: 'string';
|
|
119
|
+
image?: 'string';
|
|
120
|
+
firstImage?: string;
|
|
127
121
|
}
|
|
128
122
|
|
|
129
123
|
export type QueryParams = {
|
package/dist/tsv2-library.es.js
CHANGED
|
@@ -19685,7 +19685,10 @@ const checkRouteAccess = (to, from, next) => {
|
|
|
19685
19685
|
localStorage.getItem("user") ?? "{}"
|
|
19686
19686
|
);
|
|
19687
19687
|
const { hasAccess } = to.meta;
|
|
19688
|
-
|
|
19688
|
+
const isAdmin = userType === "Admin";
|
|
19689
|
+
const isHandoverConfirmation = to.path.includes("handover-confirmation");
|
|
19690
|
+
const isMyProfile = to.path.includes("my-profile");
|
|
19691
|
+
if ((isAdmin || isHandoverConfirmation || isMyProfile) && hasAccess)
|
|
19689
19692
|
next();
|
|
19690
19693
|
else
|
|
19691
19694
|
navigateToUrl("/not-found");
|
|
@@ -55683,19 +55686,15 @@ const _sfc_main$P = /* @__PURE__ */ defineComponent({
|
|
|
55683
55686
|
}
|
|
55684
55687
|
const assetColumn = [
|
|
55685
55688
|
{
|
|
55686
|
-
field: "
|
|
55689
|
+
field: "assetImage",
|
|
55687
55690
|
header: "Photo",
|
|
55688
55691
|
style: "min-width: 72px",
|
|
55689
55692
|
bodyComponent: (data30) => {
|
|
55690
55693
|
return {
|
|
55691
55694
|
component: _sfc_main$Q,
|
|
55692
55695
|
props: {
|
|
55693
|
-
thumbnail:
|
|
55694
|
-
|
|
55695
|
-
),
|
|
55696
|
-
preview: getImageURL(
|
|
55697
|
-
data30.assetImageBig ?? data30.imageBig ?? data30.firstImageBig
|
|
55698
|
-
),
|
|
55696
|
+
thumbnail: data30.assetImage ?? data30.image ?? data30.firstImage,
|
|
55697
|
+
preview: data30.assetImage ?? data30.image ?? data30.firstImage,
|
|
55699
55698
|
description: "",
|
|
55700
55699
|
style: "width: 28px; height: 28px;"
|
|
55701
55700
|
}
|
|
@@ -65504,10 +65503,12 @@ const _sfc_main$u = /* @__PURE__ */ defineComponent({
|
|
|
65504
65503
|
const props = __props;
|
|
65505
65504
|
const emit = __emit;
|
|
65506
65505
|
const visibility = computed(() => props.visible);
|
|
65507
|
-
const assetWithTag = computed(
|
|
65508
|
-
|
|
65509
|
-
|
|
65510
|
-
|
|
65506
|
+
const assetWithTag = computed(
|
|
65507
|
+
() => {
|
|
65508
|
+
var _a, _b;
|
|
65509
|
+
return ((_b = (_a = assetInfo.value) == null ? void 0 : _a.asset) == null ? void 0 : _b.tagType) !== "Non TAG";
|
|
65510
|
+
}
|
|
65511
|
+
);
|
|
65511
65512
|
const dialogForm = ref();
|
|
65512
65513
|
const assetInfo = ref();
|
|
65513
65514
|
const reportTagDialog = shallowRef(false);
|
|
@@ -65537,8 +65538,8 @@ const _sfc_main$u = /* @__PURE__ */ defineComponent({
|
|
|
65537
65538
|
return "";
|
|
65538
65539
|
});
|
|
65539
65540
|
const hasTag = (tagType) => {
|
|
65540
|
-
var _a;
|
|
65541
|
-
return ((_a = assetInfo.value) == null ? void 0 : _a.tagType.includes(tagType)) ?? false;
|
|
65541
|
+
var _a, _b, _c;
|
|
65542
|
+
return ((_c = (_b = (_a = assetInfo.value) == null ? void 0 : _a.asset) == null ? void 0 : _b.tagType) == null ? void 0 : _c.includes(tagType)) ?? false;
|
|
65542
65543
|
};
|
|
65543
65544
|
const submitForm = async (payload) => {
|
|
65544
65545
|
try {
|