浏览代码

船舶档案-关联客户显示字段/船类型船厂修改为下拉框

jingbb 5 月之前
父节点
当前提交
3111a6fc1b
共有 1 个文件被更改,包括 13 次插入3 次删除
  1. 13 3
      src/views/baseCode/ShipArchive/BaseShipArchive.data.ts

+ 13 - 3
src/views/baseCode/ShipArchive/BaseShipArchive.data.ts

@@ -36,7 +36,7 @@ export const columns: BasicColumn[] = [
   {
     title: '关联客户(relate customer)',
     align: 'center',
-    dataIndex: 'relateCustomer_dictText',
+    dataIndex: 'relateCustomer',
   },
 ];
 //查询数据
@@ -170,12 +170,22 @@ export const formSchema: FormSchema[] = [
   {
     label: '船类型(ship type)',
     field: 'shipType',
-    component: 'Input',
+    component: 'JDictSelectTag',
+    componentProps: {
+      dictCode: 'ship_type',
+      showSearch: true,
+      getPopupContainer: (node) => document.body,
+    },
   },
   {
     label: '船厂(ship factory)',
     field: 'shipFactory',
-    component: 'Input',
+    component: 'JDictSelectTag',
+    componentProps: {
+        dictCode: 'ship_factory',
+        showSearch: true,
+        getPopupContainer: (node) => document.body,
+    },
   },
   {
     label: '造船日期(ship date)',