|
@@ -12,7 +12,7 @@ import iconBtnPlay from "../../img/cloudPractice/icon-btn-play.png"
|
|
|
import btnSubmit from "../../img/cloudPractice/btn-submit.png"
|
|
|
import iconTransfer from "../../img/cloudPractice/icon-transfer.png"
|
|
|
import iconDownload from "../../img/cloudPractice/icon-download.png"
|
|
|
-import { httpAjax, httpAjaxErrMsg } from "@/plugin/httpAjax"
|
|
|
+import { httpAjaxErrMsg } from "@/plugin/httpAjax"
|
|
|
import {
|
|
|
queryPage2_gym,
|
|
|
queryPage2_gyt,
|
|
@@ -35,7 +35,7 @@ import PlayLoading from "./component/play-loading"
|
|
|
import PracticeForm from "@/businessComponents/practiceForm"
|
|
|
import { saveAs } from "file-saver"
|
|
|
import JSZip from "jszip"
|
|
|
-import { canvasAddTitle, imgToCanvas, svgtoblob } from "./formatSvgToImg"
|
|
|
+import { svgtoblob } from "./formatSvgToImg"
|
|
|
import { penShow, whitePenShow } from "@/businessComponents/globalTools/globalTools"
|
|
|
import { handleFullscreen } from "@/libs/fullscreen"
|
|
|
|
|
@@ -251,7 +251,7 @@ export default defineComponent({
|
|
|
loading.value = true
|
|
|
const { id } = state.list[state.listActive] || {}
|
|
|
if (!id) return
|
|
|
- await httpAjaxErrMsg(cbsDetail_gym, id).then(res => {
|
|
|
+ await httpAjaxErrMsg(cbsDetail_gym, id, { simpleFlag: "1" }).then(res => {
|
|
|
loading.value = false
|
|
|
if (res.code === 200) {
|
|
|
const result = res.data || {}
|
|
@@ -752,6 +752,7 @@ export default defineComponent({
|
|
|
state.playState = "pause"
|
|
|
state.partNames = []
|
|
|
state.partList = []
|
|
|
+ state.details = {}
|
|
|
state.selectedPartName = ""
|
|
|
state.selectedTrack = ""
|
|
|
state.selectedPartIndex = 0
|
|
@@ -776,6 +777,7 @@ export default defineComponent({
|
|
|
}
|
|
|
// state.partNames = await getPartNames(row.xmlUrl)
|
|
|
let partList = details.musicSheetSoundList || []
|
|
|
+ partList = partList.filter((item: any) => item.audioPlayType === "PLAY")
|
|
|
partList = partList.filter((item: any) => !item.track?.toLocaleUpperCase()?.includes("COMMON"))
|
|
|
partColumns.value = partList.map((item: any, index: number) => {
|
|
|
const instrumentName = getInstrumentName(item.track)
|
|
@@ -1072,7 +1074,8 @@ export default defineComponent({
|
|
|
if (e.data?.api === "musicStaffRender") {
|
|
|
const musicName =
|
|
|
activeItem.value.name +
|
|
|
- ((activeItem.value.musicSheetType === "CONCERT" && state.selectedPartName) || state.selectedTrack
|
|
|
+ (((activeItem.value.musicSheetType === "CONCERT" || state.details.musicSheetType === "CONCERT") && state.selectedPartName) ||
|
|
|
+ state.selectedTrack
|
|
|
? `(${state.selectedPartName || state.selectedTrack})`
|
|
|
: "")
|
|
|
try {
|