djbxxDialog.vue
3.81 KB
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
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
<template>
<dialogBox
title="登记簿信息"
width="1200px"
@closeDialog="closeDialog"
v-model="value"
:isReset="false"
:isSave="false"
>
<div class="content">
<div class="left">
<el-tree
:data="treedata"
:props="defaultProps"
@node-click="handleNodeClick"
:default-expand-all="true"
:expand-on-click-node="false"
node-key="id"
:default-checked-keys="[showTab]"
></el-tree>
</div>
<div class="right">
<components :is="showTab"></components>
</div>
</div>
</dialogBox>
</template>
<script>
import djbfm from "./djbfm.vue";
import zdxx from "./zdxx.vue";
import bdcqldjml from "./bdcqldjml.vue";
import bdcqljqtsx from "./bdcqljqtsx.vue";
import gyjsydsyq from "./gyjsydsyq.vue";
import dyaq from "./dyaq.vue";
import dyiq from "./dyiq.vue";
import ygdj from "./ygdj.vue";
import yydj from "./yydj.vue";
import cfdj from "./cfdj.vue";
export default {
name: "djbxxDialog",
components: {
djbfm,
zdxx,
bdcqldjml,
bdcqljqtsx,
gyjsydsyq,
dyaq,
dyiq,
ygdj,
yydj,
cfdj,
},
props: {
value: { type: Boolean, default: false },
},
data() {
return {
treedata: [
{
id: "djbfm",
label: "登记簿封面",
children: [
{
id: "zdxx",
label: "宗地信息",
},
{
id: "bdcqldjml",
label: "不动产权利登记目录",
children: [
{
id: "bdcqljqtsx",
label: "不动产权利及其他事项",
children: [
{
id: "gyjsydsyq",
label: "国有建设用地使用权(临:0,现:0,历:0)",
},
{
id: "dyaq",
label: "抵押权(临:0,现:0,历:0)",
},
{
id: "dyiq",
label: "地役权(临:0,现:0,历:0)",
},
{
id: "ygdj",
label: "预告登记(临:0,现:0,历:0)",
},
{
id: "yydj",
label: "异议登记(临:0,现:0,历:0)",
},
{
id: "cfdj",
label: "查封登记(临:0,现:0,历:0)",
},
],
},
],
},
],
},
],
defaultProps: {
children: "children",
label: "label",
},
showTab: "gyjsydsyq", // 选中状态,根据表格中权利类型判断
};
},
methods: {
closeDialog() {
this.$emit("input", false);
// 关闭时清空值
this.$store.dispatch("djbxx/setDjbxx", null);
},
handleNodeClick(data) {
this.showTab = data.id;
},
},
};
</script>
<style scoped lang="scss">
.content {
width: 100%;
height: 100%;
display: flex;
.left {
width: 256px;
height: 704px;
background-color: #f5f5f5;
color: #333;
border: 1px solid rgb(228, 228, 228);
}
.right {
width: calc(100% - 256px);
height: 704px;
// overflow-y: scroll;
overflow: auto;
background-color: #f5f5f5;
}
}
/deep/ .expanded.el-tree-node__expand-icon,
/deep/ .el-tree-node__expand-icon {
visibility: hidden;
}
/deep/ .el-tree-node__content {
border: 1px solid rgb(228, 228, 228);
height: 45px;
}
/deep/ .el-tree-node:focus > .el-tree-node__content {
background-color: #f5f5f5;
color: #0079fe;
border-right: 4px solid #0079fe;
}
/deep/.el-tree-node {
white-space: pre-wrap;
}
</style>