增加注释
Showing
6 changed files
with
154 additions
and
9 deletions
| 1 | <!-- | 1 | <!-- |
| 2 | * @Description: | 2 | * @Description: |
| 3 | * @Autor: renchao | 3 | * @Autor: renchao |
| 4 | * @LastEditTime: 2023-07-19 09:50:45 | 4 | * @LastEditTime: 2023-07-19 09:50:45 |
| 5 | --> | 5 | --> |
| ... | @@ -133,6 +133,10 @@ | ... | @@ -133,6 +133,10 @@ |
| 133 | }, | 133 | }, |
| 134 | methods: { | 134 | methods: { |
| 135 | // 更新验证码 | 135 | // 更新验证码 |
| 136 | /** | ||
| 137 | * @description: 更新验证码 | ||
| 138 | * @author: renchao | ||
| 139 | */ | ||
| 136 | reloadCaptcha () { | 140 | reloadCaptcha () { |
| 137 | axios.get(window._config.services.management + "/management/captcha?format=json").then(res => { | 141 | axios.get(window._config.services.management + "/management/captcha?format=json").then(res => { |
| 138 | if (res.data.status === 1) { | 142 | if (res.data.status === 1) { |
| ... | @@ -142,6 +146,10 @@ | ... | @@ -142,6 +146,10 @@ |
| 142 | }) | 146 | }) |
| 143 | }, | 147 | }, |
| 144 | // 初始化 | 148 | // 初始化 |
| 149 | /** | ||
| 150 | * @description: 初始化 | ||
| 151 | * @author: renchao | ||
| 152 | */ | ||
| 145 | initPage () { | 153 | initPage () { |
| 146 | let userInfo = | 154 | let userInfo = |
| 147 | localStorage.getItem("userInfo") && | 155 | localStorage.getItem("userInfo") && |
| ... | @@ -151,6 +159,10 @@ | ... | @@ -151,6 +159,10 @@ |
| 151 | this.userInfo.password = userInfo.password; | 159 | this.userInfo.password = userInfo.password; |
| 152 | } | 160 | } |
| 153 | }, | 161 | }, |
| 162 | /** | ||
| 163 | * @description: goHome | ||
| 164 | * @author: renchao | ||
| 165 | */ | ||
| 154 | goHome () { | 166 | goHome () { |
| 155 | if (this.userInfo.username && this.userInfo.password) { | 167 | if (this.userInfo.username && this.userInfo.password) { |
| 156 | axios | 168 | axios |
| ... | @@ -175,14 +187,28 @@ | ... | @@ -175,14 +187,28 @@ |
| 175 | return | 187 | return |
| 176 | } | 188 | } |
| 177 | }, | 189 | }, |
| 190 | /** | ||
| 191 | * @description: selectEyes | ||
| 192 | * @author: renchao | ||
| 193 | */ | ||
| 178 | selectEyes () { | 194 | selectEyes () { |
| 179 | this.selectEye = !this.selectEye; | 195 | this.selectEye = !this.selectEye; |
| 180 | }, | 196 | }, |
| 181 | 197 | ||
| 182 | //获取焦点 | 198 | //获取焦点 |
| 199 | /** | ||
| 200 | * @description: 获取焦点 | ||
| 201 | * @param {*} type | ||
| 202 | * @author: renchao | ||
| 203 | */ | ||
| 183 | reduceBorder (type) { | 204 | reduceBorder (type) { |
| 184 | this.change[type] = true | 205 | this.change[type] = true |
| 185 | }, | 206 | }, |
| 207 | /** | ||
| 208 | * @description: addBorder | ||
| 209 | * @param {*} type | ||
| 210 | * @author: renchao | ||
| 211 | */ | ||
| 186 | addBorder (type) { | 212 | addBorder (type) { |
| 187 | //失去焦点 | 213 | //失去焦点 |
| 188 | switch (type) { | 214 | switch (type) { | ... | ... |
| 1 | <!-- | 1 | <!-- |
| 2 | * @Description: | 2 | * @Description: |
| 3 | * @Autor: renchao | 3 | * @Autor: renchao |
| 4 | * @LastEditTime: 2023-07-19 09:50:51 | 4 | * @LastEditTime: 2023-07-19 09:50:51 |
| 5 | --> | 5 | --> |
| ... | @@ -297,18 +297,36 @@ | ... | @@ -297,18 +297,36 @@ |
| 297 | } | 297 | } |
| 298 | },*/ | 298 | },*/ |
| 299 | //获取高度计算lpb内容区高度 | 299 | //获取高度计算lpb内容区高度 |
| 300 | /** | ||
| 301 | * @description: 获取高度计算lpb内容区高度 | ||
| 302 | * @author: renchao | ||
| 303 | */ | ||
| 300 | getHeight () { | 304 | getHeight () { |
| 301 | this.lpbContentHight = window.innerHeight - 190; | 305 | this.lpbContentHight = window.innerHeight - 190; |
| 302 | }, | 306 | }, |
| 303 | //图例的展开收起 | 307 | //图例的展开收起 |
| 308 | /** | ||
| 309 | * @description: 图例的展开收起 | ||
| 310 | * @author: renchao | ||
| 311 | */ | ||
| 304 | legendToggle () { | 312 | legendToggle () { |
| 305 | this.legendToggleFlag = !this.legendToggleFlag; | 313 | this.legendToggleFlag = !this.legendToggleFlag; |
| 306 | }, | 314 | }, |
| 307 | //切换房屋状态 | 315 | //切换房屋状态 |
| 316 | /** | ||
| 317 | * @description: 切换房屋状态 | ||
| 318 | * @param {*} bsms | ||
| 319 | * @param {*} color | ||
| 320 | * @author: renchao | ||
| 321 | */ | ||
| 308 | handleChoosedH (bsms, color) { | 322 | handleChoosedH (bsms, color) { |
| 309 | this.$refs.lpbContent.changeChoosed(bsms, color); | 323 | this.$refs.lpbContent.changeChoosed(bsms, color); |
| 310 | }, | 324 | }, |
| 311 | //获取各项单元状态统计数据 | 325 | //获取各项单元状态统计数据 |
| 326 | /** | ||
| 327 | * @description: 获取各项单元状态统计数据 | ||
| 328 | * @author: renchao | ||
| 329 | */ | ||
| 312 | getDyztBsmList () { | 330 | getDyztBsmList () { |
| 313 | getLpbTj(this.formData.bsm).then((res) => { | 331 | getLpbTj(this.formData.bsm).then((res) => { |
| 314 | if (res.code === 200) { | 332 | if (res.code === 200) { |
| ... | @@ -362,6 +380,10 @@ | ... | @@ -362,6 +380,10 @@ |
| 362 | }); | 380 | }); |
| 363 | }, | 381 | }, |
| 364 | // 获取房屋用途和房屋性质及缺失项统计数据 | 382 | // 获取房屋用途和房屋性质及缺失项统计数据 |
| 383 | /** | ||
| 384 | * @description: 获取房屋用途和房屋性质及缺失项统计数据 | ||
| 385 | * @author: renchao | ||
| 386 | */ | ||
| 365 | getLpbFwytAndQlxz () { | 387 | getLpbFwytAndQlxz () { |
| 366 | getLpbFwytAndQlxz(this.formData.bsm).then((res) => { | 388 | getLpbFwytAndQlxz(this.formData.bsm).then((res) => { |
| 367 | if (res.code === 200) { | 389 | if (res.code === 200) { | ... | ... |
| ... | @@ -4,9 +4,9 @@ | ... | @@ -4,9 +4,9 @@ |
| 4 | * @LastEditors: yangwei | 4 | * @LastEditors: yangwei |
| 5 | * @LastEditTime: 2023-06-16 16:14:51 | 5 | * @LastEditTime: 2023-06-16 16:14:51 |
| 6 | * @FilePath: \bdcdj-web\src\views\lpb\lpbContent\ch.vue | 6 | * @FilePath: \bdcdj-web\src\views\lpb\lpbContent\ch.vue |
| 7 | * @Description: | 7 | * @Description: |
| 8 | * | 8 | * |
| 9 | * Copyright (c) 2023 by ${git_name_email}, All Rights Reserved. | 9 | * Copyright (c) 2023 by ${git_name_email}, All Rights Reserved. |
| 10 | --> | 10 | --> |
| 11 | <template> | 11 | <template> |
| 12 | <div class="ch-wrap"> | 12 | <div class="ch-wrap"> |
| ... | @@ -113,6 +113,12 @@ export default { | ... | @@ -113,6 +113,12 @@ export default { |
| 113 | mounted() {}, | 113 | mounted() {}, |
| 114 | methods: { | 114 | methods: { |
| 115 | // 层选中事件 | 115 | // 层选中事件 |
| 116 | /** | ||
| 117 | * @description: 层选中事件 | ||
| 118 | * @param {*} e | ||
| 119 | * @param {*} item | ||
| 120 | * @author: renchao | ||
| 121 | */ | ||
| 116 | handleClickC(e, item) { | 122 | handleClickC(e, item) { |
| 117 | //判断点击的层是否选中 | 123 | //判断点击的层是否选中 |
| 118 | // if (e.target.className.indexOf("tdSelect") == -1) { | 124 | // if (e.target.className.indexOf("tdSelect") == -1) { |
| ... | @@ -127,17 +133,42 @@ export default { | ... | @@ -127,17 +133,42 @@ export default { |
| 127 | // this.$parent.getCbsm(this.cbsmList); | 133 | // this.$parent.getCbsm(this.cbsmList); |
| 128 | }, | 134 | }, |
| 129 | //户单击事件 | 135 | //户单击事件 |
| 136 | /** | ||
| 137 | * @description: 户单击事件 | ||
| 138 | * @param {*} e | ||
| 139 | * @param {*} bsm | ||
| 140 | * @param {*} hs | ||
| 141 | * @author: renchao | ||
| 142 | */ | ||
| 130 | handleClickH(e, bsm, hs) { | 143 | handleClickH(e, bsm, hs) { |
| 131 | }, | 144 | }, |
| 132 | // 户单元状态点击事件 | 145 | // 户单元状态点击事件 |
| 146 | /** | ||
| 147 | * @description: 户单元状态点击事件 | ||
| 148 | * @param {*} e | ||
| 149 | * @param {*} bsm | ||
| 150 | * @param {*} hs | ||
| 151 | * @author: renchao | ||
| 152 | */ | ||
| 133 | hDyztClick(e, bsm, hs) { | 153 | hDyztClick(e, bsm, hs) { |
| 134 | // this.handleClickH(e.target.parentNode, bsm, hs); | 154 | // this.handleClickH(e.target.parentNode, bsm, hs); |
| 135 | }, | 155 | }, |
| 136 | //户双击事件 | 156 | //户双击事件 |
| 157 | /** | ||
| 158 | * @description: 户双击事件 | ||
| 159 | * @param {*} bsm | ||
| 160 | * @author: renchao | ||
| 161 | */ | ||
| 137 | dbclick(bsm) { | 162 | dbclick(bsm) { |
| 138 | // clearTimeout(this.time); | 163 | // clearTimeout(this.time); |
| 139 | }, | 164 | }, |
| 140 | //幢单元全选/反选 | 165 | //幢单元全选/反选 |
| 166 | /** | ||
| 167 | * @description: 幢单元全选/反选 | ||
| 168 | * @param {*} val | ||
| 169 | * @param {*} flag | ||
| 170 | * @author: renchao | ||
| 171 | */ | ||
| 141 | zdySelectAll(val,flag) { | 172 | zdySelectAll(val,flag) { |
| 142 | // 手动点击全部取消选中 | 173 | // 手动点击全部取消选中 |
| 143 | !flag && this.clearChangeChoosedObj() | 174 | !flag && this.clearChangeChoosedObj() | ... | ... |
| ... | @@ -88,18 +88,40 @@ export default { | ... | @@ -88,18 +88,40 @@ export default { |
| 88 | }, | 88 | }, |
| 89 | methods: { | 89 | methods: { |
| 90 | // 改变户选中状态 | 90 | // 改变户选中状态 |
| 91 | /** | ||
| 92 | * @description: 改变户选中状态 | ||
| 93 | * @param {*} bsms | ||
| 94 | * @param {*} color | ||
| 95 | * @author: renchao | ||
| 96 | */ | ||
| 91 | changeChoosed(bsms, color){ | 97 | changeChoosed(bsms, color){ |
| 92 | this.changeChoosedObj.bsms = bsms; | 98 | this.changeChoosedObj.bsms = bsms; |
| 93 | this.changeChoosedObj.color = color; | 99 | this.changeChoosedObj.color = color; |
| 94 | }, | 100 | }, |
| 101 | /** | ||
| 102 | * @description: clearChangeChoosedObj | ||
| 103 | * @author: renchao | ||
| 104 | */ | ||
| 95 | clearChangeChoosedObj(){ | 105 | clearChangeChoosedObj(){ |
| 96 | this.changeChoosedObj.bsms = []; | 106 | this.changeChoosedObj.bsms = []; |
| 97 | }, | 107 | }, |
| 98 | //全选户 | 108 | //全选户 |
| 109 | /** | ||
| 110 | * @description: 全选户 | ||
| 111 | * @param {*} val | ||
| 112 | * @author: renchao | ||
| 113 | */ | ||
| 99 | zdySelectAll(val) { | 114 | zdySelectAll(val) { |
| 100 | this.selectAllObj.selectAll = val; | 115 | this.selectAllObj.selectAll = val; |
| 101 | }, | 116 | }, |
| 102 | //获取楼盘表数据 | 117 | //获取楼盘表数据 |
| 118 | /** | ||
| 119 | * @description: 获取楼盘表数据 | ||
| 120 | * @param {*} zrzbsm | ||
| 121 | * @param {*} scyclx | ||
| 122 | * @param {*} actual | ||
| 123 | * @author: renchao | ||
| 124 | */ | ||
| 103 | getLpb(zrzbsm, scyclx, actual) { | 125 | getLpb(zrzbsm, scyclx, actual) { |
| 104 | getLpb(zrzbsm, scyclx).then((res) => { | 126 | getLpb(zrzbsm, scyclx).then((res) => { |
| 105 | if (res.code == 200) { | 127 | if (res.code == 200) { |
| ... | @@ -119,19 +141,39 @@ export default { | ... | @@ -119,19 +141,39 @@ export default { |
| 119 | }); | 141 | }); |
| 120 | }, | 142 | }, |
| 121 | //户右键点击事件 | 143 | //户右键点击事件 |
| 144 | /** | ||
| 145 | * @description: 户右键点击事件 | ||
| 146 | * @param {*} e | ||
| 147 | * @param {*} item | ||
| 148 | * @param {*} type | ||
| 149 | * @author: renchao | ||
| 150 | */ | ||
| 122 | openMenu(e, item, type) { | 151 | openMenu(e, item, type) { |
| 123 | this.lpbChLeft = e.pageX - 96; | 152 | this.lpbChLeft = e.pageX - 96; |
| 124 | this.lpbChTop = e.pageY - 23; | 153 | this.lpbChTop = e.pageY - 23; |
| 125 | // this.lpbChVisible = true; | 154 | // this.lpbChVisible = true; |
| 126 | }, | 155 | }, |
| 127 | //关闭户右键菜单 | 156 | //关闭户右键菜单 |
| 157 | /** | ||
| 158 | * @description: 关闭户右键菜单 | ||
| 159 | * @author: renchao | ||
| 160 | */ | ||
| 128 | closeMenu() { | 161 | closeMenu() { |
| 129 | this.lpbChVisible = false; | 162 | this.lpbChVisible = false; |
| 130 | }, | 163 | }, |
| 131 | //右键菜单点击 | 164 | //右键菜单点击 |
| 165 | /** | ||
| 166 | * @description: 右键菜单点击 | ||
| 167 | * @author: renchao | ||
| 168 | */ | ||
| 132 | menuClick() { | 169 | menuClick() { |
| 133 | this.closeMenu(); | 170 | this.closeMenu(); |
| 134 | }, | 171 | }, |
| 172 | /** | ||
| 173 | * @description: compare | ||
| 174 | * @param {*} property | ||
| 175 | * @author: renchao | ||
| 176 | */ | ||
| 135 | compare(property) { | 177 | compare(property) { |
| 136 | return function (a, b) { | 178 | return function (a, b) { |
| 137 | var value1 = a[property]; | 179 | var value1 = a[property]; | ... | ... |
| ... | @@ -4,9 +4,9 @@ | ... | @@ -4,9 +4,9 @@ |
| 4 | * @LastEditors: yangwei | 4 | * @LastEditors: yangwei |
| 5 | * @LastEditTime: 2023-06-08 13:58:58 | 5 | * @LastEditTime: 2023-06-08 13:58:58 |
| 6 | * @FilePath: \bdcdj-web\src\views\lpb\lpbContent\zdys.vue | 6 | * @FilePath: \bdcdj-web\src\views\lpb\lpbContent\zdys.vue |
| 7 | * @Description: | 7 | * @Description: |
| 8 | * | 8 | * |
| 9 | * Copyright (c) 2023 by ${git_name_email}, All Rights Reserved. | 9 | * Copyright (c) 2023 by ${git_name_email}, All Rights Reserved. |
| 10 | --> | 10 | --> |
| 11 | <template> | 11 | <template> |
| 12 | <div class="zdys-wrap"> | 12 | <div class="zdys-wrap"> |
| ... | @@ -45,6 +45,12 @@ export default { | ... | @@ -45,6 +45,12 @@ export default { |
| 45 | 45 | ||
| 46 | methods: { | 46 | methods: { |
| 47 | //幢单元全选 | 47 | //幢单元全选 |
| 48 | /** | ||
| 49 | * @description: 幢单元全选 | ||
| 50 | * @param {*} val | ||
| 51 | * @param {*} r | ||
| 52 | * @author: renchao | ||
| 53 | */ | ||
| 48 | zdySelectAll(val,r) { | 54 | zdySelectAll(val,r) { |
| 49 | this.$refs[r][0].zdySelectAll(val) | 55 | this.$refs[r][0].zdySelectAll(val) |
| 50 | }, | 56 | }, | ... | ... |
| 1 | <!-- | 1 | <!-- |
| 2 | * @Description: | 2 | * @Description: |
| 3 | * @Autor: renchao | 3 | * @Autor: renchao |
| 4 | * @LastEditTime: 2023-07-19 09:52:13 | 4 | * @LastEditTime: 2023-07-19 09:52:13 |
| 5 | --> | 5 | --> |
| ... | @@ -86,6 +86,10 @@ | ... | @@ -86,6 +86,10 @@ |
| 86 | this.loadData(); | 86 | this.loadData(); |
| 87 | }, | 87 | }, |
| 88 | methods: { | 88 | methods: { |
| 89 | /** | ||
| 90 | * @description: loadData | ||
| 91 | * @author: renchao | ||
| 92 | */ | ||
| 89 | loadData () { | 93 | loadData () { |
| 90 | if (this.$parent.addRepairRecord) { | 94 | if (this.$parent.addRepairRecord) { |
| 91 | this.columns.unshift({ prop: "cz", label: "操作" }); | 95 | this.columns.unshift({ prop: "cz", label: "操作" }); |
| ... | @@ -116,6 +120,10 @@ | ... | @@ -116,6 +120,10 @@ |
| 116 | } | 120 | } |
| 117 | }); | 121 | }); |
| 118 | }, | 122 | }, |
| 123 | /** | ||
| 124 | * @description: checkChange | ||
| 125 | * @author: renchao | ||
| 126 | */ | ||
| 119 | checkChange () { | 127 | checkChange () { |
| 120 | if (this.checkList.length === 0) { | 128 | if (this.checkList.length === 0) { |
| 121 | this.tableData = []; | 129 | this.tableData = []; |
| ... | @@ -124,6 +132,10 @@ | ... | @@ -124,6 +132,10 @@ |
| 124 | this.loadData(); | 132 | this.loadData(); |
| 125 | } | 133 | } |
| 126 | }, | 134 | }, |
| 135 | /** | ||
| 136 | * @description: getQsztName | ||
| 137 | * @author: renchao | ||
| 138 | */ | ||
| 127 | getQsztName (code) { | 139 | getQsztName (code) { |
| 128 | let name = ""; | 140 | let name = ""; |
| 129 | for (let item of this.qsztList) { | 141 | for (let item of this.qsztList) { |
| ... | @@ -135,6 +147,12 @@ | ... | @@ -135,6 +147,12 @@ |
| 135 | return name; | 147 | return name; |
| 136 | }, | 148 | }, |
| 137 | // 新增一条补录信息 | 149 | // 新增一条补录信息 |
| 150 | /** | ||
| 151 | * @description: 新增一条补录信息 | ||
| 152 | * @param {*} row | ||
| 153 | * @param {*} del | ||
| 154 | * @author: renchao | ||
| 155 | */ | ||
| 138 | editDialog (row, del) { | 156 | editDialog (row, del) { |
| 139 | this.$confirm("此操作将新增一条补录信息, 是否继续?", "提示", { | 157 | this.$confirm("此操作将新增一条补录信息, 是否继续?", "提示", { |
| 140 | confirmButtonText: "确定", | 158 | confirmButtonText: "确定", | ... | ... |
-
Please register or sign in to post a comment