Browse Source

[Feat 0000] 为用户添加电子签名字段

houzekong 2 days ago
parent
commit
d15ac4c6a2
2 changed files with 13 additions and 1 deletions
  1. 1 1
      src/views/system/user/UserDrawer.vue
  2. 12 0
      src/views/system/user/user.data.ts

+ 1 - 1
src/views/system/user/UserDrawer.vue

@@ -128,7 +128,7 @@
       //关闭弹窗
       closeDrawer();
       //刷新列表
-      emit('success',{isUpdateVal ,values});
+      emit('success', { isUpdateVal, values });
     } finally {
       setDrawerProps({ confirmLoading: false });
     }

+ 12 - 0
src/views/system/user/user.data.ts

@@ -3,6 +3,7 @@ import { FormSchema } from '/@/components/Table';
 import { getAllRolesList, getAllTenantList } from './user.api';
 import { rules } from '/@/utils/helper/validator';
 import { render } from '/@/utils/common/renderUtils';
+
 export const columns: BasicColumn[] = [
   {
     title: '用户账号',
@@ -278,6 +279,17 @@ export const formSchema: FormSchema[] = [
     },
   },
   {
+    label: '签名',
+    field: 'elcSignPath',
+    component: 'JUpload',
+    componentProps: {
+      fileMax: 1,
+      fileType: 'image',
+      bizPath: 'elcSign',
+      returnUrl: true,
+    },
+  },
+  {
     label: '生日',
     field: 'birthday',
     component: 'DatePicker',