style:登记簿详情
Showing
5 changed files
with
52 additions
and
54 deletions
... | @@ -53,11 +53,9 @@ | ... | @@ -53,11 +53,9 @@ |
53 | }, | 53 | }, |
54 | watch: { | 54 | watch: { |
55 | isShow (newValue) { | 55 | isShow (newValue) { |
56 | this.$nextTick(() => { | ||
56 | this.editItem = this.loadViewFn(this.editItem) | 57 | this.editItem = this.loadViewFn(this.editItem) |
57 | document.body.appendChild(this.$el); | 58 | document.body.appendChild(this.$el); |
58 | this.$nextTick(() => { | ||
59 | // this.editItem = this.loadViewFn(this.editItem) | ||
60 | // document.body.appendChild(this.$el); | ||
61 | this.myShow = newValue | 59 | this.myShow = newValue |
62 | }) | 60 | }) |
63 | } | 61 | } | ... | ... |
... | @@ -8,6 +8,7 @@ | ... | @@ -8,6 +8,7 @@ |
8 | margin: 0 auto; | 8 | margin: 0 auto; |
9 | display: flex; | 9 | display: flex; |
10 | flex-wrap: wrap; | 10 | flex-wrap: wrap; |
11 | height: 100%; | ||
11 | 12 | ||
12 | .title { | 13 | .title { |
13 | width: 100%; | 14 | width: 100%; |
... | @@ -259,7 +260,8 @@ | ... | @@ -259,7 +260,8 @@ |
259 | .rollTable { | 260 | .rollTable { |
260 | margin-top: -2px; | 261 | margin-top: -2px; |
261 | display: block; | 262 | display: block; |
262 | height: calc(100vh - 185px); | 263 | height: 100%; |
264 | // height: calc(100vh - 185px); | ||
263 | overflow-y: scroll; | 265 | overflow-y: scroll; |
264 | margin-left: 2px; | 266 | margin-left: 2px; |
265 | } | 267 | } | ... | ... |
1 | <!-- | 1 | <!-- |
2 | * @Description: | 2 | * @Description: |
3 | * @Autor: renchao | 3 | * @Autor: renchao |
4 | * @LastEditTime: 2023-09-18 13:39:51 | 4 | * @LastEditTime: 2023-10-13 14:30:26 |
5 | --> | 5 | --> |
6 | <template> | 6 | <template> |
7 | <div class="content"> | 7 | <div class="content"> |
... | @@ -14,8 +14,7 @@ | ... | @@ -14,8 +14,7 @@ |
14 | :default-expand-all="true" | 14 | :default-expand-all="true" |
15 | :expand-on-click-node="false" | 15 | :expand-on-click-node="false" |
16 | node-key="id" | 16 | node-key="id" |
17 | :default-checked-keys="[showTab]" | 17 | :default-checked-keys="[showTab]"> |
18 | > | ||
19 | </el-tree> | 18 | </el-tree> |
20 | <el-collapse v-model="activeName" accordion> | 19 | <el-collapse v-model="activeName" accordion> |
21 | <el-collapse-item | 20 | <el-collapse-item |
... | @@ -23,8 +22,7 @@ | ... | @@ -23,8 +22,7 @@ |
23 | ref="sfq" | 22 | ref="sfq" |
24 | v-for="(item, index) in sfqdata" | 23 | v-for="(item, index) in sfqdata" |
25 | :key="index" | 24 | :key="index" |
26 | :name="index" | 25 | :name="index"> |
27 | > | ||
28 | <template slot="title"> | 26 | <template slot="title"> |
29 | <span class="text" @click="tap(item, index)"> | 27 | <span class="text" @click="tap(item, index)"> |
30 | <span> {{ item.label }}</span> | 28 | <span> {{ item.label }}</span> |
... | @@ -35,8 +33,7 @@ | ... | @@ -35,8 +33,7 @@ |
35 | :re="item" | 33 | :re="item" |
36 | :key="index" | 34 | :key="index" |
37 | :class="[isActive == index ? activeCls : '', errorCls]" | 35 | :class="[isActive == index ? activeCls : '', errorCls]" |
38 | @click="taplist(item, index)" | 36 | @click="taplist(item, index)"> |
39 | > | ||
40 | <span> | 37 | <span> |
41 | {{ item.label }} | 38 | {{ item.label }} |
42 | </span> | 39 | </span> |
... | @@ -51,16 +48,15 @@ | ... | @@ -51,16 +48,15 @@ |
51 | <component | 48 | <component |
52 | :is="componentTag" | 49 | :is="componentTag" |
53 | @getBdcdyh="getBdcdyh" | 50 | @getBdcdyh="getBdcdyh" |
54 | v-bind="currentSelectProps" | 51 | v-bind="currentSelectProps" /> |
55 | /> | ||
56 | </div> | 52 | </div> |
57 | </div> | 53 | </div> |
58 | </template> | 54 | </template> |
59 | <script> | 55 | <script> |
60 | import { getBdcqljqtsx } from "@/api/djbDetail.js"; | 56 | import { getBdcqljqtsx } from "@/api/djbDetail.js"; |
61 | import { loadTreeData, loadsfqData, getNode } from "./djbFrameData.js"; | 57 | import { loadTreeData, loadsfqData, getNode } from "./djbFrameData.js"; |
62 | export default { | 58 | export default { |
63 | data() { | 59 | data () { |
64 | return { | 60 | return { |
65 | activeName: 0, | 61 | activeName: 0, |
66 | //接收参数 | 62 | //接收参数 |
... | @@ -89,7 +85,7 @@ export default { | ... | @@ -89,7 +85,7 @@ export default { |
89 | }; | 85 | }; |
90 | }, | 86 | }, |
91 | props: ["formData"], | 87 | props: ["formData"], |
92 | mounted() { | 88 | mounted () { |
93 | this.loadData(this.formData.bdcdyh); | 89 | this.loadData(this.formData.bdcdyh); |
94 | }, | 90 | }, |
95 | methods: { | 91 | methods: { |
... | @@ -98,14 +94,14 @@ export default { | ... | @@ -98,14 +94,14 @@ export default { |
98 | * @author: miaofang | 94 | * @author: miaofang |
99 | * 点击不动产单元号事件 | 95 | * 点击不动产单元号事件 |
100 | */ | 96 | */ |
101 | getBdcdyh(val) { | 97 | getBdcdyh (val) { |
102 | this.addloadData(val); | 98 | this.addloadData(val); |
103 | }, | 99 | }, |
104 | /** | 100 | /** |
105 | * @description: addloadData | 101 | * @description: addloadData |
106 | * @author: miaofang | 102 | * @author: miaofang |
107 | */ | 103 | */ |
108 | addloadData(val) { | 104 | addloadData (val) { |
109 | getBdcqljqtsx({ | 105 | getBdcqljqtsx({ |
110 | bdcdyid: val.bdcdyid, | 106 | bdcdyid: val.bdcdyid, |
111 | bdcdyh: val.bdcdyh, | 107 | bdcdyh: val.bdcdyh, |
... | @@ -121,7 +117,7 @@ export default { | ... | @@ -121,7 +117,7 @@ export default { |
121 | } else { | 117 | } else { |
122 | this.sfqdata.push(loadsfqData(res.result, val.bdcdyh, val.bdcdyid)); | 118 | this.sfqdata.push(loadsfqData(res.result, val.bdcdyh, val.bdcdyid)); |
123 | this.activeName = this.sfqdata.length - 1; | 119 | this.activeName = this.sfqdata.length - 1; |
124 | this.isActive="" | 120 | this.isActive = "" |
125 | // this.$nextTick(() => { | 121 | // this.$nextTick(() => { |
126 | // this.setstyle(this.sfqdata.length - 1, 0, this.iskey); | 122 | // this.setstyle(this.sfqdata.length - 1, 0, this.iskey); |
127 | // }) | 123 | // }) |
... | @@ -139,7 +135,7 @@ export default { | ... | @@ -139,7 +135,7 @@ export default { |
139 | * @description: loadData | 135 | * @description: loadData |
140 | * @author: renchao | 136 | * @author: renchao |
141 | */ | 137 | */ |
142 | loadData(val) { | 138 | loadData (val) { |
143 | getBdcqljqtsx({ | 139 | getBdcqljqtsx({ |
144 | bdcdyid: this.formData.bdcdyid, | 140 | bdcdyid: this.formData.bdcdyid, |
145 | bdcdyh: val, | 141 | bdcdyh: val, |
... | @@ -177,7 +173,7 @@ export default { | ... | @@ -177,7 +173,7 @@ export default { |
177 | * @param {*} data | 173 | * @param {*} data |
178 | * @author: renchao | 174 | * @author: renchao |
179 | */ | 175 | */ |
180 | handleNodeClick(data) { | 176 | handleNodeClick (data) { |
181 | this.loadComponent(data.form); | 177 | this.loadComponent(data.form); |
182 | }, | 178 | }, |
183 | // setstyle(newindex, index, key) { | 179 | // setstyle(newindex, index, key) { |
... | @@ -205,10 +201,10 @@ export default { | ... | @@ -205,10 +201,10 @@ export default { |
205 | * @author: renchao | 201 | * @author: renchao |
206 | * 新增列表功能 | 202 | * 新增列表功能 |
207 | */ | 203 | */ |
208 | tap(data, index) { | 204 | tap (data, index) { |
209 | this.loadComponent(data.form); | 205 | this.loadComponent(data.form); |
210 | }, | 206 | }, |
211 | taplist(data, index) { | 207 | taplist (data, index) { |
212 | this.loadComponent(data.form); | 208 | this.loadComponent(data.form); |
213 | this.isActive = index; | 209 | this.isActive = index; |
214 | }, | 210 | }, |
... | @@ -217,19 +213,19 @@ export default { | ... | @@ -217,19 +213,19 @@ export default { |
217 | * @param {*} form | 213 | * @param {*} form |
218 | * @author: renchao | 214 | * @author: renchao |
219 | */ | 215 | */ |
220 | loadComponent(form) { | 216 | loadComponent (form) { |
221 | this.componentTag = (r) => | 217 | this.componentTag = (r) => |
222 | require.ensure([], () => r(require("@/views/registerBook/" + form))); | 218 | require.ensure([], () => r(require("@/views/registerBook/" + form))); |
223 | }, | 219 | }, |
224 | }, | 220 | }, |
225 | }; | 221 | }; |
226 | </script> | 222 | </script> |
227 | <style scoped lang="scss"> | 223 | <style scoped lang="scss"> |
228 | /deep/.rollTable { | 224 | // /deep/.rollTable { |
229 | height: calc(100vh - 300px) !important; | 225 | // height: calc(100vh - 300px) !important; |
230 | } | 226 | // } |
231 | 227 | ||
232 | .content { | 228 | .content { |
233 | width: 100%; | 229 | width: 100%; |
234 | height: 100%; | 230 | height: 100%; |
235 | display: flex; | 231 | display: flex; |
... | @@ -251,35 +247,35 @@ export default { | ... | @@ -251,35 +247,35 @@ export default { |
251 | background-color: #f5f5f5; | 247 | background-color: #f5f5f5; |
252 | border: 1px solid rgb(228, 228, 228); | 248 | border: 1px solid rgb(228, 228, 228); |
253 | } | 249 | } |
254 | } | 250 | } |
255 | 251 | ||
256 | /deep/ .expanded.el-tree-node__expand-icon, | 252 | /deep/ .expanded.el-tree-node__expand-icon, |
257 | /deep/ .el-tree-node__expand-icon { | 253 | /deep/ .el-tree-node__expand-icon { |
258 | visibility: hidden; | 254 | visibility: hidden; |
259 | } | 255 | } |
260 | 256 | ||
261 | /deep/ .el-tree-node__content { | 257 | /deep/ .el-tree-node__content { |
262 | border: 1px solid rgb(228, 228, 228); | 258 | border: 1px solid rgb(228, 228, 228); |
263 | height: 45px; | 259 | height: 45px; |
264 | } | 260 | } |
265 | 261 | ||
266 | /deep/ .el-tree-node:focus > .el-tree-node__content { | 262 | /deep/ .el-tree-node:focus > .el-tree-node__content { |
267 | // background-color: #f5f5f5; | 263 | // background-color: #f5f5f5; |
268 | // color: #0079fe; | 264 | // color: #0079fe; |
269 | // border-right: 4px solid #0079fe; | 265 | // border-right: 4px solid #0079fe; |
270 | } | 266 | } |
271 | 267 | ||
272 | /deep/.el-tree-node { | 268 | /deep/.el-tree-node { |
273 | white-space: pre-wrap; | 269 | white-space: pre-wrap; |
274 | } | 270 | } |
275 | 271 | ||
276 | /deep/ .is-current > .el-tree-node__content { | 272 | /deep/ .is-current > .el-tree-node__content { |
277 | // background-color: #f5f5f5; | 273 | // background-color: #f5f5f5; |
278 | // color: #0079fe; | 274 | // color: #0079fe; |
279 | // border-right: 4px solid #0079fe; | 275 | // border-right: 4px solid #0079fe; |
280 | } | 276 | } |
281 | 277 | ||
282 | /deep/.el-collapse-item__header { | 278 | /deep/.el-collapse-item__header { |
283 | width: 100%; | 279 | width: 100%; |
284 | cursor: pointer; | 280 | cursor: pointer; |
285 | position: relative; | 281 | position: relative; |
... | @@ -304,11 +300,11 @@ export default { | ... | @@ -304,11 +300,11 @@ export default { |
304 | display: inline-block; | 300 | display: inline-block; |
305 | line-height: 45px; | 301 | line-height: 45px; |
306 | border: 1px solid rgb(228, 228, 228); | 302 | border: 1px solid rgb(228, 228, 228); |
307 | } | 303 | } |
308 | /deep/.el-collapse-item__content { | 304 | /deep/.el-collapse-item__content { |
309 | padding-bottom: 5px; | 305 | padding-bottom: 5px; |
310 | } | 306 | } |
311 | /deep/.unselected { | 307 | /deep/.unselected { |
312 | // white-space: wrap; | 308 | // white-space: wrap; |
313 | border: none; | 309 | border: none; |
314 | cursor: pointer; | 310 | cursor: pointer; |
... | @@ -325,9 +321,9 @@ export default { | ... | @@ -325,9 +321,9 @@ export default { |
325 | justify-content: center; | 321 | justify-content: center; |
326 | align-items: center; | 322 | align-items: center; |
327 | } | 323 | } |
328 | } | 324 | } |
329 | 325 | ||
330 | .select { | 326 | .select { |
331 | border: none; | 327 | border: none; |
332 | cursor: pointer; | 328 | cursor: pointer; |
333 | width: 250px; | 329 | width: 250px; |
... | @@ -344,5 +340,5 @@ export default { | ... | @@ -344,5 +340,5 @@ export default { |
344 | justify-content: center; | 340 | justify-content: center; |
345 | align-items: center; | 341 | align-items: center; |
346 | } | 342 | } |
347 | } | 343 | } |
348 | </style> | 344 | </style> | ... | ... |
... | @@ -8,6 +8,7 @@ | ... | @@ -8,6 +8,7 @@ |
8 | margin: 0 auto; | 8 | margin: 0 auto; |
9 | display: flex; | 9 | display: flex; |
10 | flex-wrap: wrap; | 10 | flex-wrap: wrap; |
11 | height: 100%; | ||
11 | 12 | ||
12 | .title { | 13 | .title { |
13 | width: 100%; | 14 | width: 100%; |
... | @@ -258,7 +259,8 @@ | ... | @@ -258,7 +259,8 @@ |
258 | .rollTable { | 259 | .rollTable { |
259 | margin-top: -2px; | 260 | margin-top: -2px; |
260 | display: block; | 261 | display: block; |
261 | height: calc(100vh - 185px); | 262 | height: calc(100% - 60px); |
263 | // height: calc(100vh - 185px); | ||
262 | overflow-y: scroll; | 264 | overflow-y: scroll; |
263 | margin-left: 2px; | 265 | margin-left: 2px; |
264 | } | 266 | } | ... | ... |
1 | <!-- | 1 | <!-- |
2 | * @Description: | 2 | * @Description: |
3 | * @Autor: renchao | 3 | * @Autor: renchao |
4 | * @LastEditTime: 2023-10-13 10:37:29 | 4 | * @LastEditTime: 2023-10-13 13:38:21 |
5 | --> | 5 | --> |
6 | <template> | 6 | <template> |
7 | <div> | 7 | <div> |
... | @@ -196,7 +196,7 @@ | ... | @@ -196,7 +196,7 @@ |
196 | qlxxCol: datas.qlxxCol(), | 196 | qlxxCol: datas.qlxxCol(), |
197 | }; | 197 | }; |
198 | }, | 198 | }, |
199 | mounted () { | 199 | created () { |
200 | sendThis(this) | 200 | sendThis(this) |
201 | this.init() | 201 | this.init() |
202 | }, | 202 | }, | ... | ... |
-
Please register or sign in to post a comment