浏览代码

汇率设置-月度修改为下拉框

jingbb 4 天之前
父节点
当前提交
5d704ac6c0

+ 17 - 6
src/views/baseCode/ExchangeRate/BaseExchangeRate.data.ts

@@ -79,12 +79,23 @@ export const formSchema: FormSchema[] = [
   {
     label: '月度(month)',
     field: 'month',
-    required: true,
-    component: 'MonthPicker',
-    componentProps:{
-      AutoComplete:'off',
-      valueFormat:'YYYY-MM'
-    },
+    component: 'JSelectInput',
+      componentProps:{
+        options: [
+          {value:"一月",label:"一月"},
+          {value:"二月",label:"二月"},
+          {value:"三月",label:"三月"},
+          {value:"四月",label:"四月"},
+          {value:"五月",label:"五月"},
+          {value:"六月",label:"六月"},
+          {value:"七月",label:"七月"},
+          {value:"八月",label:"八月"},
+          {value:"九月",label:"九月"},
+          {value:"十月",label:"十月"},
+          {value:"十一月",label:"十一月"},
+          {value:"十二月",label:"十二月"},
+        ],
+      },
   },
   {
     label: '汇率(exchangeRate)',

+ 2 - 2
src/views/baseCode/ExchangeRate/components/BaseExchangeRateModal.vue

@@ -1,6 +1,6 @@
 <template>
-  <BasicModal v-bind="$attrs" @register="registerModal" destroyOnClose :title="title" :width="800" @ok="handleSubmit">
-      <BasicForm @register="registerForm" name="BaseExchangeRateForm" />
+  <BasicModal  v-bind="$attrs" @register="registerModal" destroyOnClose :title="title" :width="800" @ok="handleSubmit">
+      <BasicForm @register="registerForm" name="BaseExchangeRateForm"  style="height: 300px;"/>
   </BasicModal>
 </template>