style:样式
Showing
3 changed files
with
55 additions
and
59 deletions
... | @@ -53,7 +53,7 @@ import { mapGetters } from "vuex"; | ... | @@ -53,7 +53,7 @@ import { mapGetters } from "vuex"; |
53 | 53 | ||
54 | export default { | 54 | export default { |
55 | name: "bdcqljqtsx", | 55 | name: "bdcqljqtsx", |
56 | data() { | 56 | data () { |
57 | return { | 57 | return { |
58 | info: { | 58 | info: { |
59 | bdcdyh: "", | 59 | bdcdyh: "", |
... | @@ -70,11 +70,11 @@ export default { | ... | @@ -70,11 +70,11 @@ export default { |
70 | computed: { | 70 | computed: { |
71 | ...mapGetters(["djbxx"]), | 71 | ...mapGetters(["djbxx"]), |
72 | }, | 72 | }, |
73 | mounted() { | 73 | mounted () { |
74 | this.info.bdcdyh = this.djbxx.qlname.bdcdyh; | 74 | this.info.bdcdyh = this.djbxx.qlname.bdcdyh; |
75 | this.info.qllx = this.djbxx.qlname.qllx; | 75 | this.info.qllx = this.djbxx.qlname.qllx; |
76 | 76 | ||
77 | this.djbxx.qlname.djbPrintModelList.forEach((item) => { | 77 | this.djbxx.qlname?.djbPrintModelList?.length > 0 && this.djbxx.qlname.djbPrintModelList.forEach((item) => { |
78 | console.log("this.info.total", this.info.total); | 78 | console.log("this.info.total", this.info.total); |
79 | this.info.total += Number(item.xh); | 79 | this.info.total += Number(item.xh); |
80 | if (item.djlxPrint == "抵押权") { | 80 | if (item.djlxPrint == "抵押权") { |
... | @@ -98,6 +98,7 @@ export default { | ... | @@ -98,6 +98,7 @@ export default { |
98 | width: 100%; | 98 | width: 100%; |
99 | height: 100%; | 99 | height: 100%; |
100 | background: #fff; | 100 | background: #fff; |
101 | |||
101 | .content { | 102 | .content { |
102 | width: 50%; | 103 | width: 50%; |
103 | height: 100%; | 104 | height: 100%; |
... | @@ -108,12 +109,14 @@ export default { | ... | @@ -108,12 +109,14 @@ export default { |
108 | font-weight: 700; | 109 | font-weight: 700; |
109 | font-size: 18px; | 110 | font-size: 18px; |
110 | line-height: 16px; | 111 | line-height: 16px; |
112 | |||
111 | .title { | 113 | .title { |
112 | font-size: 32px; | 114 | font-size: 32px; |
113 | text-align: center; | 115 | text-align: center; |
114 | padding: 40px 0; | 116 | padding: 40px 0; |
115 | line-height: 34px; | 117 | line-height: 34px; |
116 | } | 118 | } |
119 | |||
117 | .underline { | 120 | .underline { |
118 | font-size: 14px; | 121 | font-size: 14px; |
119 | font-weight: normal; | 122 | font-weight: normal; | ... | ... |
1 | <template> | 1 | <template> |
2 | <dialogBox | 2 | <dialogBox title="登记簿信息" width="1200px" @closeDialog="closeDialog" v-model="value" :isReset="false" :isSave="false"> |
3 | title="登记簿信息" | ||
4 | width="1200px" | ||
5 | @closeDialog="closeDialog" | ||
6 | v-model="value" | ||
7 | :isReset="false" | ||
8 | :isSave="false" | ||
9 | > | ||
10 | <div class="content"> | 3 | <div class="content"> |
11 | <div class="left"> | 4 | <div class="left"> |
12 | <el-tree | 5 | <el-tree ref="tree" :data="treedata" :props="defaultProps" @node-click="handleNodeClick" |
13 | ref="tree" | 6 | :default-expand-all="true" :expand-on-click-node="false" node-key="id" :default-checked-keys="[showTab]"> |
14 | :data="treedata" | 7 | </el-tree> |
15 | :props="defaultProps" | ||
16 | @node-click="handleNodeClick" | ||
17 | :default-expand-all="true" | ||
18 | :expand-on-click-node="false" | ||
19 | node-key="id" | ||
20 | :default-checked-keys="[showTab]" | ||
21 | ></el-tree> | ||
22 | </div> | 8 | </div> |
23 | <div class="right"> | 9 | <div class="right"> |
24 | <components :is="showTab" :showType="showType"></components> | 10 | <components :is="showTab" :showType="showType"></components> |
... | @@ -46,7 +32,7 @@ export default { | ... | @@ -46,7 +32,7 @@ export default { |
46 | props: { | 32 | props: { |
47 | value: { type: Boolean, default: false }, | 33 | value: { type: Boolean, default: false }, |
48 | }, | 34 | }, |
49 | data() { | 35 | data () { |
50 | return { | 36 | return { |
51 | treedata: [ | 37 | treedata: [ |
52 | { | 38 | { |
... | @@ -125,7 +111,7 @@ export default { | ... | @@ -125,7 +111,7 @@ export default { |
125 | }, | 111 | }, |
126 | watch: { | 112 | watch: { |
127 | djbxx: { | 113 | djbxx: { |
128 | handler(newVlue) { | 114 | handler (newVlue) { |
129 | if (newVlue) { | 115 | if (newVlue) { |
130 | var qszts = newVlue.detail.qszts; | 116 | var qszts = newVlue.detail.qszts; |
131 | let isZd = newVlue.djbfm.zd; | 117 | let isZd = newVlue.djbfm.zd; |
... | @@ -157,17 +143,16 @@ export default { | ... | @@ -157,17 +143,16 @@ export default { |
157 | ")"; | 143 | ")"; |
158 | }); | 144 | }); |
159 | } | 145 | } |
160 | }, | 146 | } |
161 | immediate: true, | ||
162 | }, | 147 | }, |
163 | }, | 148 | }, |
164 | methods: { | 149 | methods: { |
165 | closeDialog() { | 150 | closeDialog () { |
166 | this.$emit("input", false); | 151 | this.$emit("input", false); |
167 | // 关闭时清空值 | 152 | // 关闭时清空值 |
168 | this.$store.dispatch("djbxx/setDjbxx", null); | 153 | this.$store.dispatch("djbxx/setDjbxx", null); |
169 | }, | 154 | }, |
170 | handleNodeClick(data, node, elem) { | 155 | handleNodeClick (data, node, elem) { |
171 | this.showTab = data.tabs; | 156 | this.showTab = data.tabs; |
172 | this.showType = data.type ? data.type : ""; | 157 | this.showType = data.type ? data.type : ""; |
173 | }, | 158 | }, |
... | @@ -179,6 +164,7 @@ export default { | ... | @@ -179,6 +164,7 @@ export default { |
179 | width: 100%; | 164 | width: 100%; |
180 | height: 100%; | 165 | height: 100%; |
181 | display: flex; | 166 | display: flex; |
167 | |||
182 | .left { | 168 | .left { |
183 | width: 256px; | 169 | width: 256px; |
184 | height: 704px; | 170 | height: 704px; |
... | @@ -186,6 +172,7 @@ export default { | ... | @@ -186,6 +172,7 @@ export default { |
186 | color: #333; | 172 | color: #333; |
187 | border: 1px solid rgb(228, 228, 228); | 173 | border: 1px solid rgb(228, 228, 228); |
188 | } | 174 | } |
175 | |||
189 | .right { | 176 | .right { |
190 | width: calc(100% - 256px); | 177 | width: calc(100% - 256px); |
191 | height: 704px; | 178 | height: 704px; |
... | @@ -199,19 +186,23 @@ export default { | ... | @@ -199,19 +186,23 @@ export default { |
199 | /deep/ .el-tree-node__expand-icon { | 186 | /deep/ .el-tree-node__expand-icon { |
200 | visibility: hidden; | 187 | visibility: hidden; |
201 | } | 188 | } |
189 | |||
202 | /deep/ .el-tree-node__content { | 190 | /deep/ .el-tree-node__content { |
203 | border: 1px solid rgb(228, 228, 228); | 191 | border: 1px solid rgb(228, 228, 228); |
204 | height: 45px; | 192 | height: 45px; |
205 | } | 193 | } |
206 | /deep/ .el-tree-node:focus > .el-tree-node__content { | 194 | |
195 | /deep/ .el-tree-node:focus>.el-tree-node__content { | ||
207 | background-color: #f5f5f5; | 196 | background-color: #f5f5f5; |
208 | color: #0079fe; | 197 | color: #0079fe; |
209 | border-right: 4px solid #0079fe; | 198 | border-right: 4px solid #0079fe; |
210 | } | 199 | } |
200 | |||
211 | /deep/.el-tree-node { | 201 | /deep/.el-tree-node { |
212 | white-space: pre-wrap; | 202 | white-space: pre-wrap; |
213 | } | 203 | } |
214 | /deep/ .is-current > .el-tree-node__content { | 204 | |
205 | /deep/ .is-current>.el-tree-node__content { | ||
215 | background-color: #f5f5f5; | 206 | background-color: #f5f5f5; |
216 | color: #0079fe; | 207 | color: #0079fe; |
217 | border-right: 4px solid #0079fe; | 208 | border-right: 4px solid #0079fe; | ... | ... |
... | @@ -18,11 +18,7 @@ | ... | @@ -18,11 +18,7 @@ |
18 | </tr> | 18 | </tr> |
19 | <!-- 第一行表头 --> | 19 | <!-- 第一行表头 --> |
20 | <tr class="one"> | 20 | <tr class="one"> |
21 | <th | 21 | <th v-for="(item, index) in ths" :key="index" :class="[item.class, item.type == '临时' ? 'linshiIcon' : '']"> |
22 | v-for="(item, index) in ths" | ||
23 | :key="index" | ||
24 | :class="[item.class, item.type == '临时' ? 'linshiIcon' : '']" | ||
25 | > | ||
26 | <div class="icon" v-if="item.type == '临时'">{{ item.type }}</div> | 22 | <div class="icon" v-if="item.type == '临时'">{{ item.type }}</div> |
27 | {{ item.type }} | 23 | {{ item.type }} |
28 | </th> | 24 | </th> |
... | @@ -39,14 +35,10 @@ | ... | @@ -39,14 +35,10 @@ |
39 | <td> | 35 | <td> |
40 | {{ item.label }} | 36 | {{ item.label }} |
41 | </td> | 37 | </td> |
42 | <td | 38 | <td v-for="(item1, index1) in showTableData" :key="index1" :class="[ |
43 | v-for="(item1, index1) in showTableData" | 39 | item1.qszt == '2' ? 'lishi' : '', |
44 | :key="index1" | 40 | item1.qszt == '0' ? 'linshi' : '', |
45 | :class="[ | 41 | ]"> |
46 | item1.qszt == '2' ? 'lishi' : '', | ||
47 | item1.qszt == '0' ? 'linshi' : '', | ||
48 | ]" | ||
49 | > | ||
50 | {{ item1[item.prop] }} | 42 | {{ item1[item.prop] }} |
51 | </td> | 43 | </td> |
52 | </tr> | 44 | </tr> |
... | @@ -65,7 +57,7 @@ export default { | ... | @@ -65,7 +57,7 @@ export default { |
65 | props: { | 57 | props: { |
66 | showType: "", | 58 | showType: "", |
67 | }, | 59 | }, |
68 | data() { | 60 | data () { |
69 | return { | 61 | return { |
70 | checkList: ["临时", "现势", "历史"], | 62 | checkList: ["临时", "现势", "历史"], |
71 | tableWidth: 810, | 63 | tableWidth: 810, |
... | @@ -83,7 +75,7 @@ export default { | ... | @@ -83,7 +75,7 @@ export default { |
83 | }, | 75 | }, |
84 | watch: { | 76 | watch: { |
85 | showType: { | 77 | showType: { |
86 | handler(newVlue) { | 78 | async handler (newVlue) { |
87 | // 清空值 | 79 | // 清空值 |
88 | this.tableData = []; | 80 | this.tableData = []; |
89 | this.ths = []; | 81 | this.ths = []; |
... | @@ -93,20 +85,17 @@ export default { | ... | @@ -93,20 +85,17 @@ export default { |
93 | this.tableWidth = 810; | 85 | this.tableWidth = 810; |
94 | let detail; | 86 | let detail; |
95 | if (newVlue === "JSYDSYQ") { | 87 | if (newVlue === "JSYDSYQ") { |
96 | getJsydsyqList({ | 88 | let res = await getJsydsyqList({ |
97 | bdcdyid: "2b33851f4edfd468ceef4d68c370bd41", | 89 | bdcdyid: "2b33851f4edfd468ceef4d68c370bd41", |
98 | qllx: "A03", | 90 | qllx: "A03", |
99 | qszt: ["1"] | 91 | qszt: ["1"] |
100 | }).then((res) => { | 92 | }) |
101 | 93 | detail = res.result; | |
102 | if (res.code === 200) { | ||
103 | detail = res.result; | ||
104 | } | ||
105 | }); | ||
106 | } else { | 94 | } else { |
107 | detail = this.djbxx.detail.qlxxs[newVlue]; | 95 | detail = this.djbxx.detail.qlxxs[newVlue]; |
108 | } | 96 | } |
109 | detail.forEach((item) => { | 97 | console.log(detail, 'detail'); |
98 | detail.length > 0 && detail.forEach((item) => { | ||
110 | this.tableData.push(item); | 99 | this.tableData.push(item); |
111 | if (item.qszt == "0") { | 100 | if (item.qszt == "0") { |
112 | this.ths.push({ | 101 | this.ths.push({ |
... | @@ -139,11 +128,11 @@ export default { | ... | @@ -139,11 +128,11 @@ export default { |
139 | let width = (this.tableData.length - 3) * 223 + this.tableWidth; | 128 | let width = (this.tableData.length - 3) * 223 + this.tableWidth; |
140 | this.tableWidth = this.tableData.length > 3 ? width : 810; | 129 | this.tableWidth = this.tableData.length > 3 ? width : 810; |
141 | }, | 130 | }, |
142 | immediate: true, | 131 | deep: true |
143 | }, | 132 | }, |
144 | }, | 133 | }, |
145 | methods: { | 134 | methods: { |
146 | checkChange() { | 135 | checkChange () { |
147 | var checkKey = []; | 136 | var checkKey = []; |
148 | this.ths = []; | 137 | this.ths = []; |
149 | this.tableWidth = 810; | 138 | this.tableWidth = 810; |
... | @@ -220,6 +209,7 @@ export default { | ... | @@ -220,6 +209,7 @@ export default { |
220 | line-height: 62px; | 209 | line-height: 62px; |
221 | position: relative; | 210 | position: relative; |
222 | margin: 1px 0; | 211 | margin: 1px 0; |
212 | |||
223 | .checkbox { | 213 | .checkbox { |
224 | position: absolute; | 214 | position: absolute; |
225 | right: 20px; | 215 | right: 20px; |
... | @@ -236,24 +226,28 @@ export default { | ... | @@ -236,24 +226,28 @@ export default { |
236 | // .xxTable > tr th:not(:first-child) { | 226 | // .xxTable > tr th:not(:first-child) { |
237 | // width: 223px; | 227 | // width: 223px; |
238 | // } | 228 | // } |
239 | .xxTable > tr:first-child th { | 229 | .xxTable>tr:first-child th { |
240 | width: 140px; | 230 | width: 140px; |
241 | } | 231 | } |
242 | 232 | ||
243 | .xxTable { | 233 | .xxTable { |
244 | border-spacing: 1px; | 234 | border-spacing: 1px; |
245 | tr > th { | 235 | |
236 | tr>th { | ||
246 | background: #464c5b; | 237 | background: #464c5b; |
247 | color: #fff; | 238 | color: #fff; |
248 | font-size: 16px; | 239 | font-size: 16px; |
249 | } | 240 | } |
241 | |||
250 | th.linshi, | 242 | th.linshi, |
251 | th.xianshi { | 243 | th.xianshi { |
252 | background: #464c5b; | 244 | background: #464c5b; |
253 | } | 245 | } |
246 | |||
254 | th.lishi { | 247 | th.lishi { |
255 | background: rgba(70, 76, 91, 0.8); | 248 | background: rgba(70, 76, 91, 0.8); |
256 | } | 249 | } |
250 | |||
257 | .one th { | 251 | .one th { |
258 | height: 25px; | 252 | height: 25px; |
259 | font-size: 14px; | 253 | font-size: 14px; |
... | @@ -262,6 +256,7 @@ export default { | ... | @@ -262,6 +256,7 @@ export default { |
262 | th.linshi { | 256 | th.linshi { |
263 | color: #fe9400; | 257 | color: #fe9400; |
264 | } | 258 | } |
259 | |||
265 | .two th { | 260 | .two th { |
266 | height: 45px; | 261 | height: 45px; |
267 | 262 | ||
... | @@ -269,9 +264,11 @@ export default { | ... | @@ -269,9 +264,11 @@ export default { |
269 | font-size: 14px; | 264 | font-size: 14px; |
270 | } | 265 | } |
271 | } | 266 | } |
267 | |||
272 | .linshiIcon { | 268 | .linshiIcon { |
273 | position: relative; | 269 | position: relative; |
274 | } | 270 | } |
271 | |||
275 | .linshiIcon::after { | 272 | .linshiIcon::after { |
276 | content: ""; | 273 | content: ""; |
277 | display: block; | 274 | display: block; |
... | @@ -285,6 +282,7 @@ export default { | ... | @@ -285,6 +282,7 @@ export default { |
285 | right: 3px; | 282 | right: 3px; |
286 | transform: rotate(-90deg); | 283 | transform: rotate(-90deg); |
287 | } | 284 | } |
285 | |||
288 | .icon { | 286 | .icon { |
289 | position: absolute; | 287 | position: absolute; |
290 | top: 8px; | 288 | top: 8px; |
... | @@ -302,16 +300,20 @@ export default { | ... | @@ -302,16 +300,20 @@ export default { |
302 | font-size: 13px; | 300 | font-size: 13px; |
303 | width: 140px; | 301 | width: 140px; |
304 | } | 302 | } |
305 | > tr:nth-child(odd) td { | 303 | |
304 | >tr:nth-child(odd) td { | ||
306 | background: #f2f2f2; | 305 | background: #f2f2f2; |
307 | } | 306 | } |
308 | > tr:nth-child(even) td { | 307 | |
308 | >tr:nth-child(even) td { | ||
309 | background: #f9f9f9; | 309 | background: #f9f9f9; |
310 | } | 310 | } |
311 | |||
311 | td.linshi { | 312 | td.linshi { |
312 | color: #fe9400; | 313 | color: #fe9400; |
313 | } | 314 | } |
314 | tr > td.lishi { | 315 | |
316 | tr>td.lishi { | ||
315 | color: #7f7f7f; | 317 | color: #7f7f7f; |
316 | } | 318 | } |
317 | } | 319 | } | ... | ... |
-
Please register or sign in to post a comment