土地用途
Showing
2 changed files
with
21 additions
and
9 deletions
| 1 | <!-- | 1 | <!-- |
| 2 | * @Description: | 2 | * @Description: |
| 3 | * @Autor: renchao | 3 | * @Autor: renchao |
| 4 | * @LastEditTime: 2024-01-18 14:13:02 | 4 | * @LastEditTime: 2024-03-08 14:02:15 |
| 5 | --> | 5 | --> |
| 6 | <template> | 6 | <template> |
| 7 | <div> | 7 | <div> |
| ... | @@ -172,18 +172,30 @@ | ... | @@ -172,18 +172,30 @@ |
| 172 | </div> | 172 | </div> |
| 173 | ); | 173 | ); |
| 174 | }, | 174 | }, |
| 175 | // 修改事件 | ||
| 176 | /** | 175 | /** |
| 177 | * @description: 修改事件 | 176 | * @description: 修改事件 |
| 178 | * @author: renchao | 177 | * @author: renchao |
| 179 | */ | 178 | */ |
| 179 | getTreeName (list, dcode) { | ||
| 180 | let _this = this | ||
| 181 | for (let i = 0; i < list.length; i++) { | ||
| 182 | let a = list[i] | ||
| 183 | if (a.dcode === dcode) { | ||
| 184 | return a.dname | ||
| 185 | } else { | ||
| 186 | if (a.children && a.children.length > 0) { | ||
| 187 | let res = _this.getTreeName(a.children, dcode) | ||
| 188 | if (res) { | ||
| 189 | return res | ||
| 190 | } | ||
| 191 | } | ||
| 192 | } | ||
| 193 | } | ||
| 194 | }, | ||
| 180 | addrow (a) { | 195 | addrow (a) { |
| 181 | // this.tableDataList = this.tableDataList.map((item) => { | 196 | this.tableDataList.forEach(item => { |
| 182 | // return { | 197 | item.ytmc = this.getTreeName(this.dictData['tdyt'], item.yt) |
| 183 | // ...item, | 198 | }) |
| 184 | // yt: a.yt, | ||
| 185 | // }; | ||
| 186 | // }); | ||
| 187 | this.$emit("upDateTdytxxList", this.tableDataList); | 199 | this.$emit("upDateTdytxxList", this.tableDataList); |
| 188 | }, | 200 | }, |
| 189 | /** | 201 | /** | ... | ... |
-
Please register or sign in to post a comment