浏览代码

汇率设置-必填检验/下拉框设置

jingbb 6 月之前
父节点
当前提交
d0ddeb42d9
共有 1 个文件被更改,包括 26 次插入5 次删除
  1. 26 5
      src/views/baseCode/ExchangeRate/BaseExchangeRate.data.ts

+ 26 - 5
src/views/baseCode/ExchangeRate/BaseExchangeRate.data.ts

@@ -8,7 +8,7 @@ export const columns: BasicColumn[] = [
    {
     title: '币种(currency)',
     align:"center",
-    dataIndex: 'currency'
+    dataIndex: 'currency',
    },
    {
     title: '年度(year)',
@@ -31,17 +31,27 @@ export const searchFormSchema: FormSchema[] = [
   {
     label: '币种(currency)',
     field:"currency",
-    component: 'Input'
+    component: 'JDictSelectTag',
+    componentProps:{
+      dictCode: 'currency',
+      AutoComplete:'off'
+    },
    },
    {
     label: '年度(year)',
     field: 'year',
-    component: 'Input'
+    component: 'Input',
+    componentProps:{
+      AutoComplete:'off'
+    },
    },
    {
     label: '月度(month)',
     field: 'month',
-    component: 'Input'
+    component: 'Input',
+    componentProps:{
+      AutoComplete:'off'
+    },
    },
 ];
 //表单数据
@@ -49,17 +59,28 @@ export const formSchema: FormSchema[] = [
   {
     label: '币种(currency)',
     field: 'currency',
-    component: 'Input',
+    component: 'JDictSelectTag',
+    componentProps:{
+      dictCode: 'currency',
+    },
   },
   {
     label: '年度(year)',
     field: 'year',
+    required: true,
     component: 'Input',
+    componentProps:{
+      AutoComplete:'off'
+    },
   },
   {
     label: '汇率(exchangeRate)',
     field: 'exchangeRate',
     component: 'InputNumber',
+    required: true,
+    componentProps:{
+      AutoComplete:'off'
+    },
   },
 	// TODO 主键隐藏字段,目前写死为ID
 	{