瀏覽代碼

基本数据-设置输入框不显示历史值

jingbb 4 月之前
父節點
當前提交
f9567310ab

+ 4 - 1
src/views/BasicData/productCassification.vue

@@ -89,7 +89,10 @@
       label: '名称(name)', //显示label
       field: 'name', //查询字段
       component: 'JInput', //渲染的组件
-      defaultValue: '', //设置默认值
+      defaultValue: '', //设置默认值、
+      componentProps:{
+        AutoComplete:'off'
+      },
     },
   ];
    /** useListPage 是整个框架的核心用于表格渲染,里边封装了很多公共方法;

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

@@ -52,6 +52,9 @@ export const searchFormSchema: FormSchema[] = [
       label: "名称(name)",
       field: 'name',
       component: 'Input',
+      componentProps:{
+        AutoComplete:'off'
+      },
         //colProps: {span: 6},
     },
     {
@@ -134,6 +137,9 @@ export const formSchema: FormSchema[] = [
     label: '名称(name)',
     field: 'name',
     component: 'Input',
+    componentProps:{
+      AutoComplete:'off'
+    },
     dynamicRules: ({model,schema}) => {
           return [
                  { required: true, message: '请输入名称!'},

+ 6 - 0
src/views/baseCode/ShipArchive/BaseShipArchive.data.ts

@@ -119,6 +119,9 @@ export const formSchema: FormSchema[] = [
     label: 'IMO',
     field: 'imo',
     component: 'Input',
+    componentProps:{
+      AutoComplete:'off'
+    },
     // required: true,
   },
   {
@@ -131,6 +134,9 @@ export const formSchema: FormSchema[] = [
     label: 'hull number',
     field: 'hullNumber',
     component: 'Input',
+    componentProps:{
+      AutoComplete:'off'
+    },
   },
   {
     label: '船类型(ship type)',

+ 9 - 0
src/views/baseCode/ShipArchive/BaseShipArchiveAccessories.data.ts

@@ -59,16 +59,25 @@ export const formSchema: FormSchema[] = [
     label: '配件类型(accessory type)',
     field: 'accessoryType',
     component: 'Input',
+    componentProps:{
+      AutoComplete:'off'
+    },
   },
   {
     label: '规格(specifications)',
     field: 'specifications',
     component: 'Input',
+    componentProps:{
+      AutoComplete:'off'
+    },
   },
   {
     label: '型号(model)',
     field: 'model',
     component: 'Input',
+    componentProps:{
+      AutoComplete:'off'
+    },
   },
   {
     label: '序列号(serial number)',

+ 1 - 1
src/views/baseCode/ShipArchive/BaseShipArchiveRelateCustomer.data.ts

@@ -42,7 +42,7 @@ export const formSchema: FormSchema[] = [
     label: 'IMO',
     field: 'imo',
     component: 'Input',
-    dynamicDisabled:true
+    dynamicDisabled:true,
   },
   {
     label: '名称(name)',