|
@@ -80,13 +80,14 @@ const quiskAdd = async (key: string) => {
|
|
const exposeTagging = async () => {
|
|
const exposeTagging = async () => {
|
|
const list = await selectMaterials({
|
|
const list = await selectMaterials({
|
|
useType: "trace_evidence",
|
|
useType: "trace_evidence",
|
|
|
|
+ readonly: true,
|
|
format: ["jpg", "png", "mp4", "mp3", "wav"],
|
|
format: ["jpg", "png", "mp4", "mp3", "wav"],
|
|
});
|
|
});
|
|
if (!list) return;
|
|
if (!list) return;
|
|
|
|
|
|
const addTaggings = list!.map((item) => {
|
|
const addTaggings = list!.map((item) => {
|
|
const tagging = createTagging({
|
|
const tagging = createTagging({
|
|
- styleId: defStyleType.id.toString(),
|
|
|
|
|
|
+ styleId: defaultStyle.value?.id,
|
|
title: item.content?.title || item.name,
|
|
title: item.content?.title || item.name,
|
|
desc: item.content?.feature || "",
|
|
desc: item.content?.feature || "",
|
|
tqTime: formatDate(
|
|
tqTime: formatDate(
|
|
@@ -107,9 +108,11 @@ const exposeTagging = async () => {
|
|
tagging.audio = item.url;
|
|
tagging.audio = item.url;
|
|
tagging.audioName = item.name;
|
|
tagging.audioName = item.name;
|
|
}
|
|
}
|
|
|
|
+ console.log(item.dictId, tagging.styleId);
|
|
if (item.dictId) {
|
|
if (item.dictId) {
|
|
const typeId = getStyleTypeId(item.dictId);
|
|
const typeId = getStyleTypeId(item.dictId);
|
|
const styles = taggingStyles.value.filter((item) => item.typeId === typeId);
|
|
const styles = taggingStyles.value.filter((item) => item.typeId === typeId);
|
|
|
|
+ console.log(styles);
|
|
if (styles.length) {
|
|
if (styles.length) {
|
|
tagging.styleId = styles[0].id;
|
|
tagging.styleId = styles[0].id;
|
|
}
|
|
}
|