|
@@ -1,5 +1,5 @@
|
|
import {defineComponent, onMounted, reactive, ref} from "vue";
|
|
import {defineComponent, onMounted, reactive, ref} from "vue";
|
|
-import {NButton, NCascader, NForm, NFormItem, NInputNumber, NSpace, useMessage} from "naive-ui";
|
|
|
|
|
|
+import {NButton, NCascader, NForm, NFormItem, NInputNumber, NSelect, NSpace, useMessage} from "naive-ui";
|
|
import {musicSheetApplicationExtendCategoryApplicationExtendInfo, musicSheetApplicationExtendUpdate} from "@views/music-library/api";
|
|
import {musicSheetApplicationExtendCategoryApplicationExtendInfo, musicSheetApplicationExtendUpdate} from "@views/music-library/api";
|
|
|
|
|
|
export default defineComponent({
|
|
export default defineComponent({
|
|
@@ -25,6 +25,7 @@ export default defineComponent({
|
|
const forms = reactive({
|
|
const forms = reactive({
|
|
musicSheetCategoryId: null as any,
|
|
musicSheetCategoryId: null as any,
|
|
sortNo: null as any,
|
|
sortNo: null as any,
|
|
|
|
+ paymentType: null as any,
|
|
})
|
|
})
|
|
const formsRef = ref()
|
|
const formsRef = ref()
|
|
|
|
|
|
@@ -43,6 +44,7 @@ export default defineComponent({
|
|
}
|
|
}
|
|
forms.musicSheetCategoryId = data[0].musicSheetCategoryId
|
|
forms.musicSheetCategoryId = data[0].musicSheetCategoryId
|
|
forms.sortNo = data[0].sortNo
|
|
forms.sortNo = data[0].sortNo
|
|
|
|
+ forms.paymentType = data[0].paymentType
|
|
|
|
|
|
})
|
|
})
|
|
|
|
|
|
@@ -102,6 +104,32 @@ export default defineComponent({
|
|
/>
|
|
/>
|
|
</NFormItem>
|
|
</NFormItem>
|
|
<NFormItem
|
|
<NFormItem
|
|
|
|
+ label="收费方式"
|
|
|
|
+ path="paymentType"
|
|
|
|
+ rule={[
|
|
|
|
+ {
|
|
|
|
+ required: true,
|
|
|
|
+ message: '请选择收费方式'
|
|
|
|
+ }
|
|
|
|
+ ]}
|
|
|
|
+ >
|
|
|
|
+ <NSelect
|
|
|
|
+ placeholder="请选择收费方式"
|
|
|
|
+ options={[
|
|
|
|
+ {
|
|
|
|
+ label:'免费',
|
|
|
|
+ value:'FREE'
|
|
|
|
+ },
|
|
|
|
+ {
|
|
|
|
+ label:'会员',
|
|
|
|
+ value:'VIP'
|
|
|
|
+ }
|
|
|
|
+ ]}
|
|
|
|
+ v-model:value={forms.paymentType}
|
|
|
|
+ clearable
|
|
|
|
+ />
|
|
|
|
+ </NFormItem>
|
|
|
|
+ <NFormItem
|
|
label="排序值"
|
|
label="排序值"
|
|
path="sortNo"
|
|
path="sortNo"
|
|
rule={[
|
|
rule={[
|