|
@@ -43,7 +43,7 @@ import { nextTick, watch } from "vue";
|
|
|
import type { SliceImage, SpecialTag } from "@/types";
|
|
|
import { useMarkStore } from "@/store";
|
|
|
import { vEleMoveDirective } from "@/directives/eleMove";
|
|
|
-import { randomCode } from "@/utils/utils";
|
|
|
+import { randomCode, getTrackId } from "@/utils/utils";
|
|
|
|
|
|
const { sliceImageItem } = defineProps<{
|
|
|
sliceImageItem: SliceImage;
|
|
@@ -144,6 +144,12 @@ function specialMouseStop() {
|
|
|
}
|
|
|
|
|
|
const track: SpecialTag = {
|
|
|
+ id: getTrackId({
|
|
|
+ mainNumber: markStore.currentQuestion?.mainNumber,
|
|
|
+ subNumber: markStore.currentQuestion?.subNumber,
|
|
|
+ }),
|
|
|
+ mainNumber: markStore.currentQuestion?.mainNumber,
|
|
|
+ subNumber: markStore.currentQuestion?.subNumber,
|
|
|
tagName: "",
|
|
|
tagType: markStore.currentSpecialTagType,
|
|
|
offsetIndex: curSliceImagesWithTrackItem.indexInSliceUrls,
|
|
@@ -153,7 +159,6 @@ function specialMouseStop() {
|
|
|
offsetY:
|
|
|
specialPoint.y * (curImageTarget.naturalHeight / curImageTarget.height) +
|
|
|
curSliceImagesWithTrackItem.dy,
|
|
|
- groupNumber: markStore.currentQuestion.groupNumber,
|
|
|
};
|
|
|
|
|
|
if (markStore.currentSpecialTagType === "LINE") {
|
|
@@ -232,6 +237,12 @@ function textTrackBlur() {
|
|
|
});
|
|
|
|
|
|
const track: SpecialTag = {
|
|
|
+ id: getTrackId({
|
|
|
+ mainNumber: markStore.currentQuestion?.mainNumber,
|
|
|
+ subNumber: markStore.currentQuestion?.subNumber,
|
|
|
+ }),
|
|
|
+ mainNumber: markStore.currentQuestion?.mainNumber,
|
|
|
+ subNumber: markStore.currentQuestion?.subNumber,
|
|
|
tagName,
|
|
|
tagType: markStore.currentSpecialTagType,
|
|
|
offsetIndex: curSliceImagesWithTrackItem.indexInSliceUrls,
|
|
@@ -242,7 +253,6 @@ function textTrackBlur() {
|
|
|
cacheTextTrack.y *
|
|
|
(curImageTarget.naturalHeight / curImageTarget.height) +
|
|
|
curSliceImagesWithTrackItem.dy,
|
|
|
- groupNumber: markStore.currentQuestion.groupNumber,
|
|
|
};
|
|
|
|
|
|
markStore.currentTaskEnsured.markResult.markerTagList.push(track);
|