|
@@ -64,6 +64,7 @@ export default defineComponent({
|
|
showFingering: 1,
|
|
showFingering: 1,
|
|
chargeType: 0,
|
|
chargeType: 0,
|
|
paymentType: '',
|
|
paymentType: '',
|
|
|
|
+ exquisiteFlag: 0, // 是否精品
|
|
musicPrice: '',
|
|
musicPrice: '',
|
|
backgroundMp3s: [
|
|
backgroundMp3s: [
|
|
{
|
|
{
|
|
@@ -106,7 +107,8 @@ export default defineComponent({
|
|
const res = await request.get(
|
|
const res = await request.get(
|
|
'/api-website/open/music/sheet/detail/' + id
|
|
'/api-website/open/music/sheet/detail/' + id
|
|
)
|
|
)
|
|
- this.form.chargeType = res.data.paymentType === 'FREE' ? 0 : 2
|
|
|
|
|
|
+ this.form.chargeType = res.data.chargeType === 'FREE' ? 0 : 2
|
|
|
|
+ this.form.exquisiteFlag = res.data.exquisiteFlag
|
|
this.form.showFingering = res.data.showFingering
|
|
this.form.showFingering = res.data.showFingering
|
|
this.form.notation = res.data.notation
|
|
this.form.notation = res.data.notation
|
|
this.form.canEvaluate = res.data.canEvaluate
|
|
this.form.canEvaluate = res.data.canEvaluate
|
|
@@ -185,7 +187,12 @@ export default defineComponent({
|
|
xmlFileUrl: form.xmlFileUrl,
|
|
xmlFileUrl: form.xmlFileUrl,
|
|
canEvaluate: Number(form.canEvaluate),
|
|
canEvaluate: Number(form.canEvaluate),
|
|
chargeType: form.chargeType === 0 ? 'FREE' : 'CHARGE',
|
|
chargeType: form.chargeType === 0 ? 'FREE' : 'CHARGE',
|
|
- paymentType: form.paymentType ? form.paymentType : form.chargeType === 0 ? 'FREE' : 'CHARGE',
|
|
|
|
|
|
+ paymentType: form.paymentType
|
|
|
|
+ ? form.paymentType
|
|
|
|
+ : form.chargeType === 0
|
|
|
|
+ ? 'FREE'
|
|
|
|
+ : 'CHARGE',
|
|
|
|
+ exquisiteFlag: form.exquisiteFlag,
|
|
composer: form.composer,
|
|
composer: form.composer,
|
|
musicPrice: form.chargeType === 0 ? 0 : form.musicPrice,
|
|
musicPrice: form.chargeType === 0 ? 0 : form.musicPrice,
|
|
background: form.backgroundMp3s.map(item => ({
|
|
background: form.backgroundMp3s.map(item => ({
|
|
@@ -626,6 +633,20 @@ export default defineComponent({
|
|
</ElFormItem>
|
|
</ElFormItem>
|
|
</>
|
|
</>
|
|
)}
|
|
)}
|
|
|
|
+ <ElFormItem
|
|
|
|
+ label="是否精品乐谱"
|
|
|
|
+ prop="exquisiteFlag"
|
|
|
|
+ rules={[{ required: true, message: '请选择是否精品乐谱' }]}
|
|
|
|
+ >
|
|
|
|
+ <ElRadioGroup v-model={this.form.exquisiteFlag}>
|
|
|
|
+ <ElRadioButton label={0} class="mr-3 w-24">
|
|
|
|
+ 否
|
|
|
|
+ </ElRadioButton>
|
|
|
|
+ <ElRadioButton label={1} class="w-24">
|
|
|
|
+ 是
|
|
|
|
+ </ElRadioButton>
|
|
|
|
+ </ElRadioGroup>
|
|
|
|
+ </ElFormItem>
|
|
</ElForm>
|
|
</ElForm>
|
|
<div class="text-center pt-6 pb-7">
|
|
<div class="text-center pt-6 pb-7">
|
|
<ElButton
|
|
<ElButton
|