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
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
| <template>
| <el-container class="page-view">
| <el-aside v-if="isDev" width="200px" style="background-color: #393d49">
| <el-tree :data="list" default-expand-all :props="defaultProps" @node-click="handleNodeClick"></el-tree>
| </el-aside>
| <el-container style="min-width: 1070px">
| <el-header v-if="isDev" style="text-align: right;">
| <span>王小虎</span>
| </el-header>
| <el-main :class="{'gray-page': $route.meta.isDetail}">
| <keep-alive>
| <router-view v-if="$route.meta.keepAlive"></router-view>
| </keep-alive>
| <router-view v-if="!$route.meta.keepAlive"></router-view>
| </el-main>
| </el-container>
| </el-container>
| </template>
| <script>
| import './public/comm.css'
| export default {
| data() {
| return {
| isDev: process.env.NODE_ENV === 'development',
| // isDev: false,
| defaultProps: {
| children: 'children',
| label: 'resourceName'
| },
| list: [
| {
| children: [
| {
| children: [
| {
| children: [],
| hasChild: false,
| icon: '',
| id: 465,
| parentCode: '20001',
| remark: '',
| resourceCode: '20001001',
| resourceName: '贷款申请查询',
| resourceType: 0,
| resourceUrl: '/comprehensiveTransaction/loanApply',
| showType: 0,
| spread: false,
| state: 0
| },
| ],
| hasChild: true,
| icon: '',
| id: 464,
| parentCode: '20',
| remark: '',
| resourceCode: '20001',
| resourceName: '业务查询',
| // resourceType: 0,
| // resourceUrl:
| // '/comprehensiveTransaction/loanApply',
| // showType: 0,
| // spread: false,
| state: 0
| },
| {
| children: [],
| hasChild: false,
| icon: '',
| id: 470,
| parentCode: '20',
| remark: '',
| resourceCode: '20005',
| resourceName: '客户申请复核',
| resourceType: 0,
| resourceUrl: '/comprehensiveTransaction/CustomerApplyReview',
| showType: 0,
| spread: false,
| state: 0
| },
| {
| children: [],
| hasChild: false,
| icon: '',
| id: 480, // ?
| parentCode: '20',
| remark: '',
| resourceCode: '20008',
| resourceName: '大众资方审批',
| resourceType: 0,
| resourceUrl: '/comprehensiveTransaction/capitalApproval',
| showType: 0,
| spread: false,
| state: 0
| },
| ],
| hasChild: true,
| icon: '',
| id: 463,
| parentCode: '1',
| remark: '',
| resourceCode: '20',
| resourceName: '综合交易系统',
| resourceType: 0,
| resourceUrl: '/comprehensiveTransaction/loanApply',
| showType: 0,
| spread: false,
| state: 0
| }
| ]
| }
| },
| methods: {
| handleNodeClick(data) {
| const { resourceUrl, id } = data
| sessionStorage.setItem('g_menu_id', id)
| this.$router.push(resourceUrl)
| }
| }
| }
| </script>
| <style lang="postcss" scoped>
| .page-view {
| font-family: '-apple-system', 'BlinkMacSystemFont', 'Segoe UI', Roboto,
| 'Helvetica Neue', Helvetica, 'PingFang SC', 'Hiragino Sans GB',
| 'Microsoft YaHei', SimSun, 'sans-serif';
| font-size: 14px;
| color: #222222;
| height: 100%;
| & input::-webkit-input-placeholder {
| color: #eeeeee;
| font-size: 14px;
| }
| & input {
| color: #222222;
| font-size: 14px;
| }
| & >>> .el-main {
| padding: 0 20px 0 20px;
| }
| & .gray-page {
| background: rgba(0, 0, 0, 0.02);
| padding: 0;
| }
| }
| </style>
|
|