|
@@ -61,7 +61,7 @@ import { nextTick, reactive, ref, watchEffect } from "vue";
|
|
import { currentIsFullView } from "@/utils/full";
|
|
import { currentIsFullView } from "@/utils/full";
|
|
import { Dropdown, MenuItem, Menu } from "ant-design-vue";
|
|
import { Dropdown, MenuItem, Menu } from "ant-design-vue";
|
|
import { selectMaterials } from "@/components/materials/quisk";
|
|
import { selectMaterials } from "@/components/materials/quisk";
|
|
-import { defStyleType, getStyleTypeId, tqStatusEnum } from "@/api";
|
|
|
|
|
|
+import { defStyleType, getStyleDictId, getStyleTypeId, tqStatusEnum } from "@/api";
|
|
import { formatDate } from "@/utils";
|
|
import { formatDate } from "@/utils";
|
|
import { FileType } from "@/api/material";
|
|
import { FileType } from "@/api/material";
|
|
import { custom } from "@/env";
|
|
import { custom } from "@/env";
|
|
@@ -113,12 +113,20 @@ const exposeTagging = async () => {
|
|
tagging.audio = item.url;
|
|
tagging.audio = item.url;
|
|
tagging.audioName = item.name;
|
|
tagging.audioName = item.name;
|
|
}
|
|
}
|
|
|
|
+
|
|
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);
|
|
if (styles.length) {
|
|
if (styles.length) {
|
|
tagging.styleId = styles[0].id;
|
|
tagging.styleId = styles[0].id;
|
|
}
|
|
}
|
|
|
|
+ } else {
|
|
|
|
+ const styles = taggingStyles.value.filter(
|
|
|
|
+ (item) => item.typeId === defStyleType.id
|
|
|
|
+ );
|
|
|
|
+ if (styles.length) {
|
|
|
|
+ tagging.styleId = styles[0].id;
|
|
|
|
+ }
|
|
}
|
|
}
|
|
return tagging;
|
|
return tagging;
|
|
});
|
|
});
|