Browse Source

船舶档案-设置数据字典下拉框

jingbb 6 tháng trước cách đây
mục cha
commit
ba4068fa1d
1 tập tin đã thay đổi với 10 bổ sung7 xóa
  1. 10 7
      src/views/baseCode/ShipArchive/BaseShipArchive.data.ts

+ 10 - 7
src/views/baseCode/ShipArchive/BaseShipArchive.data.ts

@@ -23,12 +23,12 @@ export const columns: BasicColumn[] = [
    {
     title: '船类型(ship type)',
     align:"center",
-    dataIndex: 'shipType_dictText'
+    dataIndex: 'shipType',
    },
    {
     title: '船厂(ship factory)',
     align:"center",
-    dataIndex: 'shipFactory_dictText'
+    dataIndex: 'shipFactory'
    },
    {
     title: '造船日期(ship date)',
@@ -71,7 +71,8 @@ export const searchFormSchema: FormSchema[] = [
     field: 'shipFactory',
     component: 'JSelectMultiple',
     componentProps:{
-    },
+      dictCode:"ship_factory"
+   },
     //colProps: {span: 6},
  },
  {
@@ -89,7 +90,8 @@ export const searchFormSchema: FormSchema[] = [
   field: 'shipType',
   component: 'JSelectMultiple',
   componentProps:{
-  },
+    dictCode:"ship_type"
+ },
       //colProps: {span: 6},
 },
 
@@ -98,6 +100,7 @@ export const searchFormSchema: FormSchema[] = [
   field: 'status',
   component: 'JSelectMultiple',
   componentProps:{
+    dictCode:"valid_status"
   },
   //colProps: {span: 6},
 },
@@ -125,7 +128,7 @@ export const formSchema: FormSchema[] = [
     field: 'shipType',
     component: 'JDictSelectTag',
     componentProps:{
-        dictCode:""
+        dictCode:"ship_type"
      },
   },
   {
@@ -133,7 +136,7 @@ export const formSchema: FormSchema[] = [
     field: 'shipFactory',
     component: 'JDictSelectTag',
     componentProps:{
-        dictCode:""
+        dictCode:"ship_factory"
      },
   },
   {
@@ -150,7 +153,7 @@ export const formSchema: FormSchema[] = [
     field: 'status',
     component: 'JDictSelectTag',
     componentProps:{
-        dictCode:""
+        dictCode:"valid_status"
      },
   },
 	// TODO 主键隐藏字段,目前写死为ID