forked from nsjcy/frontEnd/nsjcy

xuxj
2020-05-09 d99603fa4c5188d19991de978c185b2b9247c5af
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
import toPromise, { arrayFromSeed } from './fetchUtils';
export default () => toPromise({
  table1: arrayFromSeed({
    date: ['2019'],
    type: ['已处理', '未处理', '处理中', '总量'],
    appeal: ['1', '2', '3', '4'],
    damage: ['4', '3', '2', '1'],
    petition: ['5', '6', '7', '8'],
    judicial: ['8', '7', '6', '5'],
  }, 4).map((row, index) => ({
    ...row,
    key: index + 1,
  })),
  table2: arrayFromSeed({
    date: ['2019'],
    type: ['已处理', '未处理', '处理中', '总量'],
    appeal: ['1', '2', '3', '4'],
    damage: ['4', '3', '2', '1'],
    petition: ['5', '6', '7', '8'],
    judicial: ['8', '7', '6', '5'],
  }, 4).map((row, index) => ({
    ...row,
    key: index + 1,
  })),
  table3: arrayFromSeed({
    date: ['2019'],
    type: ['已处理', '未处理', '处理中', '总量'],
    appeal: ['1', '2', '3', '4'],
    damage: ['4', '3', '2', '1'],
    petition: ['5', '6', '7', '8'],
    judicial: ['8', '7', '6', '5'],
  }, 4).map((row, index) => ({
    ...row,
    key: index + 1,
  })),
  table4: arrayFromSeed({
    date: ['2019'],
    type: ['已处理', '未处理', '处理中', '总量'],
    appeal: ['1', '2', '3', '4'],
    damage: ['4', '3', '2', '1'],
    petition: ['5', '6', '7', '8'],
    judicial: ['8', '7', '6', '5'],
  }, 4).map((row, index) => ({
    ...row,
    key: index + 1,
  })),
});