Bladeren bron

项目档案-配置数据字典下拉框

jingbb 1 week geleden
bovenliggende
commit
d49d793a5a
1 gewijzigde bestanden met toevoegingen van 8 en 6 verwijderingen
  1. 8 6
      src/views/baseCode/ProjectArchive/BaseProjectArchive.data.ts

+ 8 - 6
src/views/baseCode/ProjectArchive/BaseProjectArchive.data.ts

@@ -56,7 +56,10 @@ export const searchFormSchema: FormSchema[] = [
     {
       label: "客户(customer)",
       field: 'customerId',
-      component: 'Input',
+      component: 'JDictSelectTag',
+      componentProps:{
+          dictCode: 'customer',
+      },
       //colProps: {span: 6},
  	  },
      {
@@ -82,12 +85,11 @@ export const formSchema: FormSchema[] = [
   {
     label: '客户(customer)',
     field: 'customerId',
-    component: 'Input',
-    dynamicRules: ({model,schema}) => {
-          return [
-                 { required: true, message: '请输入客户!'},
-          ];
+    component: 'JDictSelectTag',
+    componentProps:{
+        dictCode: 'customer',
      },
+     required: true
   },
   {
     label: '编码(code)',