瀏覽代碼

fix(bugs): 修改搜索大小

tangning 3 年之前
父節點
當前提交
0b4897ef18

+ 6 - 0
src/views/corporation/index.vue

@@ -209,11 +209,17 @@
               xl: 5,
               xxl: 5,
             },
+            componentProps: {
+              maxLength: 100,
+            },
           },
           {
             field: 'userName',
             label: t('routes.corporation.enterpriseId'),
             component: 'Input',
+            componentProps: {
+              maxLength: 100,
+            },
             colProps: {
               xl: 12,
               xxl: 8,

+ 3 - 0
src/views/corporation/verify.vue

@@ -108,6 +108,9 @@
             field: 'userName',
             label: t('routes.corporation.phone'),
             component: 'Input',
+            componentProps: {
+              maxLength: 100,
+            },
             colProps: {
               span: 6,
             },

+ 3 - 0
src/views/devices/list.vue

@@ -163,6 +163,9 @@
             label: '手机号(用户名)',
             labelWidth: 160,
             component: 'Input',
+            componentProps: {
+              maxLength: 100,
+            },
             colProps: {
               span: 12,
             },

+ 3 - 0
src/views/feedback/list.vue

@@ -113,6 +113,9 @@
               xl: 5,
               xxl: 5,
             },
+            componentProps: {
+              maxLength: 100,
+            },
           },
         ],
       };

+ 3 - 0
src/views/member/list.vue

@@ -142,6 +142,9 @@ weixinOpenid: "oeADe5U9uLeMYsNigq98zdu8J96A"
             field: 'username',
             label: '会员名称',
             component: 'Input',
+            componentProps: {
+              maxLength: 100,
+            },
             colProps: {
               xl: 5,
               xxl: 5,

+ 3 - 0
src/views/order/list.vue

@@ -198,6 +198,9 @@
             field: 'orderSn',
             label: '订单号',
             component: 'Input',
+            componentProps: {
+              maxLength: 100,
+            },
             colProps: {
               xl: 5,
               xxl: 5,

+ 2 - 0
src/views/product/list.data.ts

@@ -15,6 +15,7 @@ export const searchForm: Partial<FormProps> = {
       component: 'Input',
       componentProps: {
         placeholder: '请输入商品名称',
+        maxLength: 100,
       },
       colProps: {
         xl: 6,
@@ -27,6 +28,7 @@ export const searchForm: Partial<FormProps> = {
       component: 'Input',
       componentProps: {
         placeholder: '请输入直播间名称',
+        maxLength: 100,
       },
       colProps: {
         xl: 6,

+ 6 - 3
src/views/scenes/editorModal.vue

@@ -59,6 +59,9 @@
           label: '直播间图片',
           component: 'Upload',
           required: true,
+          itemProps: {
+            validateTrigger: 'blur',
+          },
           componentProps: {
             api: uploadLiveApi,
             maxSize: 5,
@@ -78,7 +81,7 @@
         {
           field: 'isShow',
           component: 'RadioGroup',
-          label: t('routes.scenes.livestream'),
+          label: '是否显示在小程序',
           required: true,
           defaultValue: 0,
           componentProps: {
@@ -98,11 +101,11 @@
         },
       ];
       const [registerForm, { validate, resetFields, setFieldsValue }] = useForm({
-        labelWidth: 120,
+        labelWidth: 150,
         schemas,
         showActionButtonGroup: false,
         actionColOptions: {
-          span: 24,
+          span: 20,
         },
       });
 

+ 9 - 0
src/views/scenes/list.vue

@@ -176,11 +176,17 @@
               sm: 12,
               xs: 24,
             },
+            componentProps: {
+              maxLength: 100,
+            },
           },
           {
             field: 'sceneName',
             label: t('routes.scenes.sceneName'),
             component: 'Input',
+            componentProps: {
+              maxLength: 100,
+            },
             colProps: {
               lg: 6,
               xl: 6,
@@ -193,6 +199,9 @@
             field: 'childName',
             label: t('routes.scenes.childName'),
             component: 'Input',
+            componentProps: {
+              maxLength: 100,
+            },
             colProps: {
               lg: 6,
               xl: 6,

+ 3 - 1
src/views/scenes/live.vue

@@ -160,7 +160,9 @@
             field: 'sceneName',
             label: t('routes.scenes.anchorRoom'),
             component: 'Input',
-
+            componentProps: {
+              maxLength: 100,
+            },
             colProps: {
               xl: 5,
               xxl: 5,

+ 3 - 0
src/views/staff/list.vue

@@ -133,6 +133,9 @@
             field: 'staffName',
             label: t('routes.corporation.phone'),
             component: 'Input',
+            componentProps: {
+              maxLength: 15,
+            },
             colProps: {
               xl: 5,
               xxl: 5,

+ 6 - 0
src/views/system/account/account.data.ts

@@ -50,12 +50,18 @@ export const searchFormSchema: FormSchema[] = [
     field: 'userName',
     label: '用户名',
     component: 'Input',
+    componentProps: {
+      maxLength: 100,
+    },
     colProps: { span: 8 },
   },
   {
     field: 'nickName',
     label: '昵称',
     component: 'Input',
+    componentProps: {
+      maxLength: 100,
+    },
     colProps: { span: 8 },
   },
 ];

+ 4 - 0
src/views/system/dept/dept.data.ts

@@ -44,12 +44,16 @@ export const searchFormSchema: FormSchema[] = [
     label: '部门名称',
     component: 'Input',
     colProps: { span: 8 },
+    componentProps: {
+      maxLength: 100,
+    },
   },
   {
     field: 'status',
     label: '状态',
     component: 'Select',
     componentProps: {
+      maxLength: 100,
       options: [
         { label: '启用', value: '0' },
         { label: '停用', value: '1' },

+ 3 - 0
src/views/system/menu/menu.data.ts

@@ -113,6 +113,9 @@ export const searchFormSchema: FormSchema[] = [
     field: 'name',
     label: '菜单名称',
     component: 'Input',
+    componentProps: {
+      maxLength: 100,
+    },
     colProps: { span: 8 },
   },
   {

+ 7 - 7
src/views/system/role/index.vue

@@ -53,13 +53,13 @@
         showTableSetting: true,
         bordered: true,
         showIndexColumn: false,
-        actionColumn: {
-          width: 80,
-          title: '操作',
-          dataIndex: 'action',
-          slots: { customRender: 'action' },
-          fixed: undefined,
-        },
+        // actionColumn: {
+        //   width: 80,
+        //   title: '操作',
+        //   dataIndex: 'action',
+        //   slots: { customRender: 'action' },
+        //   fixed: undefined,
+        // },
       });
 
       function handleCreate() {

+ 3 - 0
src/views/system/role/role.data.ts

@@ -80,6 +80,9 @@ export const searchFormSchema: FormSchema[] = [
     field: 'roleName',
     label: '角色名称',
     component: 'Input',
+    componentProps: {
+      maxLength: 100,
+    },
     colProps: { span: 8 },
   },
   // {