|
@@ -944,8 +944,8 @@ const setState = (data: any, index: number) => {
|
|
|
const subjectCode = data.subjectCodes ? data.subjectCodes.split(',')?.[0] : 0;
|
|
|
// 乐器code
|
|
|
let musicalCode = data.musicalInstrumentIdCodes ? data.musicalInstrumentIdCodes.split(',')?.[0] : 0;
|
|
|
- const pitchSubject = musicalInstrumentCodeInfo.find((n) => n.code === subjectCode)
|
|
|
- const pitchMusical = musicalInstrumentCodeInfo.find((n) => n.code === musicalCode)
|
|
|
+ const pitchSubject = musicalInstrumentCodeInfo.find((n) => n.code.toLocaleLowerCase() === subjectCode.toLocaleLowerCase())
|
|
|
+ const pitchMusical = musicalInstrumentCodeInfo.find((n) => n.code.toLocaleLowerCase() === musicalCode.toLocaleLowerCase())
|
|
|
state.subjectCodeId = pitchSubject ? pitchSubject.id : 0
|
|
|
state.musicalCodeId = pitchMusical ? pitchMusical.id : 0
|
|
|
state.categoriesId = data.musicCategoryId;
|