anytrek-front-public-component 1.12.4 → 1.12.6
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/README.md +3 -3
- package/anytrek-front-public-component.mjs +25578 -23226
- package/anytrek-front-public-component.umd.js +123 -78
- package/package.json +1 -1
- package/style.css +1 -1
package/README.md
CHANGED
|
@@ -789,12 +789,12 @@ const showImageDisplay = () => {
|
|
|
789
789
|
|
|
790
790
|
visible.value = true;
|
|
791
791
|
}
|
|
792
|
-
/* CargoHandling 相同 uuid 归为一项,新增 imageList 字段存所有帧按 takeTime 最新排序 */
|
|
792
|
+
/* CargoHandling 相同 uuid并且index相同 归为一项,新增 imageList 字段存所有帧按 takeTime 最新排序 */
|
|
793
793
|
const groupCargoHandlingImages = (list: any[]): any[] => {
|
|
794
794
|
const groupMap = new Map<string, any[]>();
|
|
795
795
|
list.forEach((item: any) => {
|
|
796
796
|
if (item.triggerType === 'CargoHandling' && item.uuid) {
|
|
797
|
-
const key = item.uuid
|
|
797
|
+
const key = `${item.uuid}-${item.index}`;
|
|
798
798
|
if (!groupMap.has(key)) groupMap.set(key, []);
|
|
799
799
|
groupMap.get(key)!.push(item);
|
|
800
800
|
}
|
|
@@ -806,7 +806,7 @@ const groupCargoHandlingImages = (list: any[]): any[] => {
|
|
|
806
806
|
result.push({ ...items[0], imageList: [...items] });
|
|
807
807
|
});
|
|
808
808
|
list.forEach((item: any) => {
|
|
809
|
-
if (!(item.triggerType === 'CargoHandling' && item.uuid && groupedUuids.has(item.uuid))) {
|
|
809
|
+
if (!(item.triggerType === 'CargoHandling' && item.uuid && groupedUuids.has(`${item.uuid}-${item.index}`))) {
|
|
810
810
|
result.push(item);
|
|
811
811
|
}
|
|
812
812
|
});
|