Kaynağa Gözat

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

jingbb 1 hafta önce
ebeveyn
işleme
d49d793a5a

+ 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)',