style:菜单
Showing
2 changed files
with
80 additions
and
1 deletions
... | @@ -6,7 +6,7 @@ export default function filterAsyncRouter (routers) { | ... | @@ -6,7 +6,7 @@ export default function filterAsyncRouter (routers) { |
6 | } else { | 6 | } else { |
7 | item.children = filterAsyncRouter(item.children) | 7 | item.children = filterAsyncRouter(item.children) |
8 | } | 8 | } |
9 | item.path = JSON.parse(item.metadata).path ? JSON.parse(item.metadata).path : '/' | 9 | item.path = JSON.parse(item.metadata)?.path || '/' |
10 | if (!item.parentId) { | 10 | if (!item.parentId) { |
11 | item.component = Layout | 11 | item.component = Layout |
12 | } else { | 12 | } else { | ... | ... |
src/views/jktj/index.vue
0 → 100644
1 | <template> | ||
2 | <el-table :data="tableData" style="width: 100%"> | ||
3 | <el-table-column prop="date" label="日期" width="150"> | ||
4 | </el-table-column> | ||
5 | <el-table-column label="配送信息"> | ||
6 | <el-table-column prop="name" label="姓名" width="120"> | ||
7 | </el-table-column> | ||
8 | <el-table-column label="地址"> | ||
9 | <el-table-column prop="province" label="省份" width="120"> | ||
10 | </el-table-column> | ||
11 | <el-table-column prop="city" label="市区" width="120"> | ||
12 | </el-table-column> | ||
13 | <el-table-column prop="address" label="地址" width="300"> | ||
14 | </el-table-column> | ||
15 | <el-table-column prop="zip" label="邮编" width="120"> | ||
16 | </el-table-column> | ||
17 | </el-table-column> | ||
18 | </el-table-column> | ||
19 | </el-table> | ||
20 | </template> | ||
21 | |||
22 | <script> | ||
23 | export default { | ||
24 | data () { | ||
25 | return { | ||
26 | tableData: [{ | ||
27 | date: '2016-05-03', | ||
28 | name: '王小虎', | ||
29 | province: '上海', | ||
30 | city: '普陀区', | ||
31 | address: '上海市普陀区金沙江路 1518 弄', | ||
32 | zip: 200333 | ||
33 | }, { | ||
34 | date: '2016-05-02', | ||
35 | name: '王小虎', | ||
36 | province: '上海', | ||
37 | city: '普陀区', | ||
38 | address: '上海市普陀区金沙江路 1518 弄', | ||
39 | zip: 200333 | ||
40 | }, { | ||
41 | date: '2016-05-04', | ||
42 | name: '王小虎', | ||
43 | province: '上海', | ||
44 | city: '普陀区', | ||
45 | address: '上海市普陀区金沙江路 1518 弄', | ||
46 | zip: 200333 | ||
47 | }, { | ||
48 | date: '2016-05-01', | ||
49 | name: '王小虎', | ||
50 | province: '上海', | ||
51 | city: '普陀区', | ||
52 | address: '上海市普陀区金沙江路 1518 弄', | ||
53 | zip: 200333 | ||
54 | }, { | ||
55 | date: '2016-05-08', | ||
56 | name: '王小虎', | ||
57 | province: '上海', | ||
58 | city: '普陀区', | ||
59 | address: '上海市普陀区金沙江路 1518 弄', | ||
60 | zip: 200333 | ||
61 | }, { | ||
62 | date: '2016-05-06', | ||
63 | name: '王小虎', | ||
64 | province: '上海', | ||
65 | city: '普陀区', | ||
66 | address: '上海市普陀区金沙江路 1518 弄', | ||
67 | zip: 200333 | ||
68 | }, { | ||
69 | date: '2016-05-07', | ||
70 | name: '王小虎', | ||
71 | province: '上海', | ||
72 | city: '普陀区', | ||
73 | address: '上海市普陀区金沙江路 1518 弄', | ||
74 | zip: 200333 | ||
75 | }] | ||
76 | } | ||
77 | } | ||
78 | } | ||
79 | </script> | ||
... | \ No newline at end of file | ... | \ No newline at end of file |
-
Please register or sign in to post a comment