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
| import API from "@/api";
|
| //文件选择器配置
|
| export default {
| apiObj: API.common.upload,
| menuApiObj: API.common.file.menu,
| listApiObj: API.common.file.list,
| successCode: 200,
| maxSize: 30,
| max: 99,
| uploadParseData: function (res) {
| return {
| id: res.data.id,
| fileName: res.data.fileName,
| url: res.data.src
| }
| },
| listParseData: function (res) {
| return {
| rows: res.data.rows,
| total: res.data.total,
| msg: res.message,
| code: res.code
| }
| },
| request: {
| page: 'page',
| pageSize: 'pageSize',
| keyword: 'keyword',
| menuKey: 'groupId'
| },
| menuProps: {
| key: 'id',
| label: 'label',
| children: 'children'
| },
| fileProps: {
| key: 'id',
| fileName: 'fileName',
| url: 'url'
| },
| files: {
| doc: {
| icon: 'sc-icon-file-word-2-fill',
| color: '#409eff'
| },
| docx: {
| icon: 'sc-icon-file-word-2-fill',
| color: '#409eff'
| },
| xls: {
| icon: 'sc-icon-file-excel-2-fill',
| color: '#67C23A'
| },
| xlsx: {
| icon: 'sc-icon-file-excel-2-fill',
| color: '#67C23A'
| },
| ppt: {
| icon: 'sc-icon-file-ppt-2-fill',
| color: '#F56C6C'
| },
| pptx: {
| icon: 'sc-icon-file-ppt-2-fill',
| color: '#F56C6C'
| }
| }
| }
|
|