Procházet zdrojové kódy

feat: 优化用户展示字段

laiqi před 11 měsíci
rodič
revize
af898414df

+ 28 - 28
apps/web-ele/src/views/customer-manage/form.vue

@@ -232,34 +232,34 @@ const [BaseForm, baseFormApi] = useVbenForm({
         allowClear: true,
       },
     },
-    {
-      component: 'Input',
-      fieldName: 'userscontactphone',
-      label: '联系手机号',
-      componentProps: {
-        placeholder: '请输入联系手机号',
-        allowClear: true,
-      },
-    },
-    {
-      component: 'Input',
-      fieldName: 'userscontactemail',
-      label: '联系邮箱',
-      componentProps: {
-        placeholder: '请输入联系邮箱',
-        allowClear: true,
-      },
-      rules: z.string().email({ message: '请输入正确的邮箱格式' }),
-    },
-    {
-      component: 'Input',
-      fieldName: 'userscontactaddress',
-      label: '联系地址',
-      componentProps: {
-        placeholder: '请输入联系地址',
-        allowClear: true,
-      },
-    },
+    // {
+    //   component: 'Input',
+    //   fieldName: 'userscontactphone',
+    //   label: '联系手机号',
+    //   componentProps: {
+    //     placeholder: '请输入联系手机号',
+    //     allowClear: true,
+    //   },
+    // },
+    // {
+    //   component: 'Input',
+    //   fieldName: 'userscontactemail',
+    //   label: '联系邮箱',
+    //   componentProps: {
+    //     placeholder: '请输入联系邮箱',
+    //     allowClear: true,
+    //   },
+    //   rules: z.string().email({ message: '请输入正确的邮箱格式' }),
+    // },
+    // {
+    //   component: 'Input',
+    //   fieldName: 'userscontactaddress',
+    //   label: '联系地址',
+    //   componentProps: {
+    //     placeholder: '请输入联系地址',
+    //     allowClear: true,
+    //   },
+    // },
     {
       component: 'Input',
       fieldName: 'userscz',

+ 7 - 6
apps/web-ele/src/views/customer-manage/index.vue

@@ -108,17 +108,18 @@ const gridOptions: VxeGridProps<any> = {
   },
 
   columns: [
-    { title: '用户id', field: 'usersid', sortable: true },
-    { title: '微信openid', field: 'usersopenid', sortable: true },
+    { title: '序号', type: 'seq', width: 50 },
+    // { title: '用户id', field: 'usersid', sortable: true },
+    // { title: '微信openid', field: 'usersopenid', sortable: true },
     { title: '用户名称', field: 'usersname', sortable: true },
-    { title: '用户性质', field: 'usersnature', sortable: true },
-    { title: '用户类型', field: 'userstype', sortable: true },
+    { title: '用户性质', field: 'usersnature', sortable: true, width: 120 },
+    { title: '用户类型', field: 'userstype', sortable: true, width: 120 },
     // { title: '用户证件号码', field: 'usersidcardnumber' },
     // { title: '用户开户银行名称', field: 'usersbankname' },
     // { title: '用户开户银行账号', field: 'usersbanknumber' },
-    { title: '用户手机号', field: 'usersphone', sortable: true },
-    { title: '用户邮箱', field: 'usersemail', sortable: true },
+    { title: '用户手机号', field: 'usersphone', sortable: true, width: 200 },
     { title: '用户地址', field: 'usersaddress', sortable: true },
+    { title: '用户邮箱', field: 'usersemail', sortable: true },
     // { title: '用户联系手机号', field: 'userscontactphone' },
     // { title: '用户联系邮箱', field: 'userscontactemail' },
     // { title: '用户联系地址', field: 'userscontactaddress' },