problem description:
there is a requirement in the project, that is, the form is submitted with a drop-down box, and the drop-down box is at the hospital level, while different hospitals have different scores. Select different hospitals, fill in the scores automatically below, and finally submit the data.
the current bug: score binds successfully, but the level (academicLevel) field is always empty when the final submission is made.
related codes
- template Code
academic: [{category: "", score: 1}, {category: "", score: 2}, {category: "", score: 4},]
0: {category: "", score: 1}
1: {category: "", score: 2}
2: {category: "", score: 4}
3: {category: "", score: 4}
4: {category: "", score: 4}
5: {category: "", score: 4}
6: {category: "", score: 6}
7: {category: "", score: 6}
8: {category: "", score: 6}
expected result:
the drop-down box selects the hospital of traditional Chinese medicine, automatically binds the score below, and finally submits it.