|
@@ -78,18 +78,18 @@ export default defineComponent({
|
|
|
// 获取声部信息
|
|
|
const getSubjects = async () => {
|
|
|
try {
|
|
|
- const subjects = await request.post(state.platformApi + '/open/subjectBasicConfig/page', {
|
|
|
- data: {
|
|
|
+ const subjects = await request.get(state.platformApi + '/subject/musicList', {
|
|
|
+ params: {
|
|
|
enableFlag: true,
|
|
|
page: 1,
|
|
|
rows: 100
|
|
|
}
|
|
|
})
|
|
|
- const rows = subjects.data.rows || []
|
|
|
+ const rows = subjects.data || []
|
|
|
rows.forEach((item: any) => {
|
|
|
data.subjectList.push({
|
|
|
- text: item.subjectName,
|
|
|
- value: item.subjectId + ''
|
|
|
+ text: item.name,
|
|
|
+ value: item.id + ''
|
|
|
})
|
|
|
})
|
|
|
} catch {
|