刘光辉
3 小时以前 cf11e63b659afcc9792ab3e395f1b45d844431a8
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
import {
  exportExcel as organizeExportExcel,
  exportExceptionData as organizeExportExceptionData,
  importData as organizeImportData,
  importPreview as organizeImportPreview,
  templateDownload as organizeTemplateDownload,
} from '#/api/permission/organize';
import {
  exportExcel as positionExportExcel,
  exportExceptionData as positionExportExceptionData,
  importData as positionImportData,
  importPreview as positionImportPreview,
  templateDownload as positionTemplateDownload,
} from '#/api/permission/position';
import {
  exportExcel as userExportExcel,
  exportExceptionData as userExportExceptionData,
  importData as userImportData,
  importPreview as userImportPreview,
  templateDownload as userTemplateDownload,
} from '#/api/permission/user';
 
export const importInfo = {
  organize: {
    templateDownload: organizeTemplateDownload,
    importPreview: organizeImportPreview,
    importData: organizeImportData,
    exportExceptionData: organizeExportExceptionData,
    exportExcel: organizeExportExcel,
    uploadUrl: '/api/permission/Organize/Uploader',
    tableData: [
      { title: '上级组织', dataIndex: 'parentId', width: 150 },
      { title: '*组织类型', dataIndex: 'category', width: 150 },
      { title: '*组织名称', dataIndex: 'fullName', width: 150 },
      { title: '组织编码', dataIndex: 'enCode', width: 150 },
      { title: '排序', dataIndex: 'sortCode', width: 150 },
      { title: '说明', dataIndex: 'description', width: 150 },
    ],
    exportData: [
      { title: '上级组织', dataIndex: 'parentId', width: 150 },
      { title: '组织类型', dataIndex: 'category', width: 150 },
      { title: '组织名称', dataIndex: 'fullName', width: 150 },
      { title: '组织编码', dataIndex: 'enCode', width: 150 },
      { title: '排序', dataIndex: 'sortCode', width: 150 },
      { title: '说明', dataIndex: 'description', width: 150 },
    ],
  },
  position: {
    templateDownload: positionTemplateDownload,
    importPreview: positionImportPreview,
    importData: positionImportData,
    exportExceptionData: positionExportExceptionData,
    exportExcel: positionExportExcel,
    uploadUrl: '/api/permission/Position/Uploader',
    tableData: [
      { title: '*所属组织', dataIndex: 'organizeId', width: 150 },
      { title: '上级岗位', dataIndex: 'parentId', width: 150 },
      { title: '*岗位名称', dataIndex: 'fullName', width: 150 },
      { title: '岗位编码', dataIndex: 'enCode', width: 150 },
      { title: '岗位约束', dataIndex: 'isCondition', width: 150 },
      { title: '约束类型', dataIndex: 'constraintType', width: 150 },
      { title: '互斥岗位', dataIndex: 'mutualExclusion', width: 150 },
      { title: '用户基数', dataIndex: 'userNum', width: 150 },
      { title: '权限基数', dataIndex: 'permissionNum', width: 150 },
      { title: '先决岗位', dataIndex: 'prerequisite', width: 150 },
      { title: '排序', dataIndex: 'sortCode', width: 150 },
      { title: '说明', dataIndex: 'description', width: 150 },
    ],
  },
  user: {
    templateDownload: userTemplateDownload,
    importPreview: userImportPreview,
    importData: userImportData,
    exportExceptionData: userExportExceptionData,
    exportExcel: userExportExcel,
    uploadUrl: '/api/permission/Users/Uploader',
    tableData: [
      { title: '所属岗位', dataIndex: 'positionId', width: 150 },
      { title: '角色', dataIndex: 'roleId', width: 150 },
      { title: '*账户', dataIndex: 'account', width: 150 },
      { title: '*姓名', dataIndex: 'realName', width: 150 },
      { title: '工号', dataIndex: 'jobNumber', width: 150 },
      { title: '*性别', dataIndex: 'gender', width: 150 },
      { title: '电子邮箱', dataIndex: 'email', width: 150 },
      { title: '手机号码', dataIndex: 'mobilePhone', width: 150 },
      { title: '职级', dataIndex: 'ranks', width: 150 },
      { title: '民族', dataIndex: 'nation', width: 150 },
      { title: '籍贯', dataIndex: 'nativePlace', width: 150 },
      { title: '入职时间', dataIndex: 'entryDate', width: 150 },
      { title: '证件类型', dataIndex: 'certificatesType', width: 150 },
      { title: '证件号码', dataIndex: 'certificatesNumber', width: 150 },
      { title: '文化程度', dataIndex: 'education', width: 150 },
      { title: '出生年月', dataIndex: 'birthday', width: 150 },
      { title: '办公电话', dataIndex: 'telePhone', width: 150 },
      { title: '办公座机', dataIndex: 'landline', width: 150 },
      { title: '紧急联系', dataIndex: 'urgentContacts', width: 150 },
      { title: '紧急电话', dataIndex: 'urgentTelePhone', width: 150 },
      { title: '通讯地址', dataIndex: 'postalAddress', width: 150 },
      { title: '*状态', dataIndex: 'enabledMark', width: 150 },
      { title: '排序', dataIndex: 'sortCode', width: 150 },
      { title: '说明', dataIndex: 'description', width: 150 },
    ],
    exportData: [
      { title: '所属岗位', dataIndex: 'positionId', width: 150 },
      { title: '角色', dataIndex: 'roleId', width: 150 },
      { title: '账户', dataIndex: 'account', width: 150 },
      { title: '姓名', dataIndex: 'realName', width: 150 },
      { title: '工号', dataIndex: 'jobNumber', width: 150 },
      { title: '性别', dataIndex: 'gender', width: 150 },
      { title: '电子邮箱', dataIndex: 'email', width: 150 },
      { title: '手机号码', dataIndex: 'mobilePhone', width: 150 },
      { title: '职级', dataIndex: 'ranks', width: 150 },
      { title: '民族', dataIndex: 'nation', width: 150 },
      { title: '籍贯', dataIndex: 'nativePlace', width: 150 },
      { title: '入职时间', dataIndex: 'entryDate', width: 150 },
      { title: '证件类型', dataIndex: 'certificatesType', width: 150 },
      { title: '证件号码', dataIndex: 'certificatesNumber', width: 150 },
      { title: '文化程度', dataIndex: 'education', width: 150 },
      { title: '出生年月', dataIndex: 'birthday', width: 150 },
      { title: '办公电话', dataIndex: 'telePhone', width: 150 },
      { title: '办公座机', dataIndex: 'landline', width: 150 },
      { title: '紧急联系', dataIndex: 'urgentContacts', width: 150 },
      { title: '紧急电话', dataIndex: 'urgentTelePhone', width: 150 },
      { title: '通讯地址', dataIndex: 'postalAddress', width: 150 },
      { title: '状态', dataIndex: 'enabledMark', width: 150 },
      { title: '排序', dataIndex: 'sortCode', width: 150 },
      { title: '说明', dataIndex: 'description', width: 150 },
    ],
  },
};