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
| /**
| * 分级更新列表
| */
|
| import ApiModel from '@/utils/core/apiModel';
|
| // 表单信息
| const formList = [
| {
| type: 'date',
| label: '定级月份',
| value: [],
| name: 'rankmonth',
| names: ['rankmonthmin', 'rankmonthmax'],
| attrs: [{type: 'monthrange'}]
| },
| {
| type: 'input',
| label: '批次备注',
| value: '',
| name: 'batchremark'
| },
| {
| type: 'input',
| label: '申请人',
| value: '',
| name: 'username'
| }
| ];
|
| // 表格信息
| const tableList = [
| {
| label: '批次号',
| prop: 'batchno',
| // attrs: { width: 'auto' }
| },
| {
| label: '定级月份',
| prop: 'rankmonth',
| attrs: { width: 'auto' }
| },
| {
| label: '批次备注',
| prop: 'batchremark',
| attrs: { width: 'auto' }
| },
| {
| label: '笔数',
| prop: 'applycount',
| attrs: { width: 'auto' }
| },
| {
| label: '状态',
| prop: 'statusDesc',
| // attrs: { width: 'auto' }
| },
| {
| label: '申请人',
| prop: 'userName',
| // attrs: { width: 'auto' }
| },
| {
| label: '申请时间',
| prop: 'applydate',
| // attrs: { width: 'auto' }
| },
| {
| label: '完成时间',
| prop: 'finishdate',
| // attrs: { width: 'auto' }
| },
| {
| prop: 'action',
| label: '操作管理',
| attrs: {
| // width: '260px',
| fixed: 'right'
| },
| type: 'buttons'
| }
| ];
|
| export default options => {
| // 接口地址,required
| const api = 'server/queryClassUpdateList';
| return new ApiModel({
| api,
| formList,
| tableList,
| request(params) {
| return this.post(params);
| }
| });
| };
|
|