فهرست منبع

课堂乐器曲目添加收费方式字段

yuanliang 1 سال پیش
والد
کامیت
b11eb8a136
1فایلهای تغییر یافته به همراه27 افزوده شده و 8 حذف شده
  1. 27 8
      src/views/music-library/project-music-sheet/module/kt/music-sheet-kt.tsx

+ 27 - 8
src/views/music-library/project-music-sheet/module/kt/music-sheet-kt.tsx

@@ -31,7 +31,7 @@ import {
   musicSheetRemove
 } from '@views/music-library/api'
 import { getMapValueByKey, getSelectDataFromObj } from '@/utils/objectUtil'
-import { appKey, musicSheetAudioType, musicSheetSourceType, musicSheetType } from '@/utils/constant'
+import {appKey, musicSheetAudioType, musicSheetPaymentType, musicSheetSourceType, musicSheetType} from '@/utils/constant'
 import { sysApplicationPage } from '@views/menu-manage/api'
 import { musicSheetApplicationExtendSubjectList } from '@views/system-manage/api'
 import { filterTimes } from '@/utils/dateUtil'
@@ -355,13 +355,13 @@ export default defineComponent({
         //     return <div>{getMapValueByKey(row.availableType, new Map(Object.entries(musicSheetAvailableType)))}</div>
         //   }
         // },
-        // {
-        //   title: '收费方式',
-        //   key: 'paymentType',
-        //   render: (row: any) => {
-        //     return <div>{getMapValueByKey(row.paymentType, new Map(Object.entries(musicSheetPaymentType)))}</div>
-        //   }
-        // },
+        {
+          title: '收费方式',
+          key: 'paymentType',
+          render: (row: any) => {
+            return <div>{getMapValueByKey(row.paymentType, new Map(Object.entries(musicSheetPaymentType)))}</div>
+          }
+        },
         {
           title: '上传人',
           minWidth: '150px',
@@ -553,6 +553,25 @@ export default defineComponent({
             {/*  >*/}
             {/*  </NSelect>*/}
             {/*</NFormItem>*/}
+            <NFormItem label="收费方式" path="paymentType">
+              <NSelect
+                  v-model:value={state.searchForm.paymentType}
+                  placeholder="请选择收费方式"
+                  options={
+                    [
+                      {
+                        label: '免费',
+                        value: 'FREE'
+                      },
+                      {
+                        label: '会员',
+                        value: 'VIP'
+                      }
+                    ] as any
+                  }
+                  clearable
+              />
+            </NFormItem>
             <NFormItem label="状态" path="status">
               <NSelect
                 v-model:value={state.searchForm.status}