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
| <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 "../../comprehensiveTransaction/public/comm.css";
| export default {
| data() {
| return {
| isDev: process.env.NODE_ENV === "development",
| // isDev: false,
| defaultProps: {
| children: "children",
| label: "resourceName",
| },
| list: [
| {
| resourceName: "产品系统管理",
| resourceUrl: "/product/preApprovalApply",
| children: [
| {
| children: [],
| resourceName: "贷款申请",
| resourceUrl: "/product/loanApprovalApply",
| },
| {
| children: [],
| resourceName: "预审批申请列表",
| resourceUrl: "/product/preApprovalApply",
| },
| {
| children: [],
| resourceName: "企业管理",
| resourceUrl: "/area/enterprise/index",
| },
| {
| children: [],
| resourceName: "贷款申请查询",
| resourceUrl: "/comprehensiveTransaction/loanApply",
| },
| ],
| },
| ],
| };
| },
| 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>
|
|