|
@@ -44,7 +44,7 @@ export default defineComponent({
|
|
|
musicSheetName: '',
|
|
|
composer: '',
|
|
|
speed: '',
|
|
|
- chargeType: '0',
|
|
|
+ chargeType: 0,
|
|
|
showFingering: 1,
|
|
|
canEvaluate: 1,
|
|
|
musicPrice: '',
|
|
@@ -67,7 +67,7 @@ export default defineComponent({
|
|
|
this.mergeXmlData(this.formated)
|
|
|
},
|
|
|
chargeType() {
|
|
|
- if (this.chargeType === '0') {
|
|
|
+ if (this.chargeType === 0) {
|
|
|
this.musicPrice = ''
|
|
|
}
|
|
|
}
|
|
@@ -130,7 +130,7 @@ export default defineComponent({
|
|
|
midiUrl: this.midiUrl,
|
|
|
xmlFileUrl: this.xmlFileUrl,
|
|
|
canEvaluate: this.canEvaluate,
|
|
|
- chargeType: this.chargeType === '0' ? 'FREE' : 'CHARGE',
|
|
|
+ chargeType: this.chargeType === 0 ? 'FREE' : 'CHARGE',
|
|
|
composer: this.composer,
|
|
|
musicPrice: this.musicPrice
|
|
|
}
|
|
@@ -457,7 +457,7 @@ export default defineComponent({
|
|
|
onUpdate:modelValue={val => (this.chargeType = val)}
|
|
|
>
|
|
|
{Object.keys(teacherChargeType).map((item: string) => {
|
|
|
- const isActive = item === this.chargeType
|
|
|
+ const isActive = item === String(this.chargeType)
|
|
|
const type = isActive ? 'primary' : 'default'
|
|
|
return (
|
|
|
<Radio class={styles.radio} name={item}>
|
|
@@ -469,7 +469,7 @@ export default defineComponent({
|
|
|
})}
|
|
|
</RadioGroup>
|
|
|
</ColField>
|
|
|
- {this.chargeType === '2' && (
|
|
|
+ {this.chargeType === 2 && (
|
|
|
<ColField required title="收费价格">
|
|
|
<Field
|
|
|
clearable
|
|
@@ -483,7 +483,7 @@ export default defineComponent({
|
|
|
</ColField>
|
|
|
)}
|
|
|
</ColFieldGroup>
|
|
|
- {this.chargeType === '2' && (
|
|
|
+ {this.chargeType === 2 && (
|
|
|
<div class={styles.rule}>
|
|
|
<p>扣除手续费后该曲目预计收入为:</p>
|
|
|
<p>
|