|
@@ -1,4 +1,4 @@
|
|
-import { computed, defineComponent, onMounted, onUnmounted, reactive, ref } from 'vue';
|
|
|
|
|
|
+import { computed, defineComponent, nextTick, onMounted, onUnmounted, reactive, ref } from 'vue';
|
|
import styles from './detail.module.less';
|
|
import styles from './detail.module.less';
|
|
import CBreadcrumb from '/src/components/CBreadcrumb';
|
|
import CBreadcrumb from '/src/components/CBreadcrumb';
|
|
import { useRoute } from 'vue-router';
|
|
import { useRoute } from 'vue-router';
|
|
@@ -25,7 +25,7 @@ export default defineComponent({
|
|
]);
|
|
]);
|
|
const forms = reactive({
|
|
const forms = reactive({
|
|
page: 1,
|
|
page: 1,
|
|
- rows: 24,
|
|
|
|
|
|
+ rows: 32,
|
|
status: true,
|
|
status: true,
|
|
searchType: '',
|
|
searchType: '',
|
|
});
|
|
});
|
|
@@ -77,6 +77,7 @@ export default defineComponent({
|
|
state.finshed = false;
|
|
state.finshed = false;
|
|
|
|
|
|
const { subjectId, ...res } = item;
|
|
const { subjectId, ...res } = item;
|
|
|
|
+
|
|
state.allSearch = Object.assign(state.allSearch, {
|
|
state.allSearch = Object.assign(state.allSearch, {
|
|
...res,
|
|
...res,
|
|
musicalInstrumentId: subjectId,
|
|
musicalInstrumentId: subjectId,
|
|
@@ -84,6 +85,9 @@ export default defineComponent({
|
|
});
|
|
});
|
|
|
|
|
|
getList();
|
|
getList();
|
|
|
|
+ nextTick(() => {
|
|
|
|
+ __initSpin()
|
|
|
|
+ })
|
|
};
|
|
};
|
|
|
|
|
|
|
|
|
|
@@ -111,13 +115,9 @@ export default defineComponent({
|
|
params = Object.assign(params, state.newSearch);
|
|
params = Object.assign(params, state.newSearch);
|
|
} else {
|
|
} else {
|
|
params.name = state.allSearch.name
|
|
params.name = state.allSearch.name
|
|
- const { audioPlayTypes, ...more } = state.allSearch
|
|
|
|
|
|
+ const { ...more } = state.allSearch
|
|
params = Object.assign(params, { ...more });
|
|
params = Object.assign(params, { ...more });
|
|
- params.audioPlayTypes = audioPlayTypes
|
|
|
|
- ? audioPlayTypes === 'PLAY_SING'
|
|
|
|
- ? ['PLAY', 'SING']
|
|
|
|
- : [audioPlayTypes]
|
|
|
|
- : []
|
|
|
|
|
|
+ // params.audioPlayTypes = audioPlayTypes
|
|
}
|
|
}
|
|
res = await api_musicSheetPage(params);
|
|
res = await api_musicSheetPage(params);
|
|
} catch (error) {
|
|
} catch (error) {
|