Merge branch 'dev' of http://yun.pashanhoo.com:9090/bdc/bdcdj-web into dev
Showing
2 changed files
with
8 additions
and
6 deletions
1 | <!-- | 1 | <!-- |
2 | * @Description: | 2 | * @Description: |
3 | * @Autor: renchao | 3 | * @Autor: renchao |
4 | * @LastEditTime: 2023-06-21 15:35:29 | 4 | * @LastEditTime: 2023-06-21 16:35:04 |
5 | --> | 5 | --> |
6 | <template> | 6 | <template> |
7 | <div class="rlPopup"> | 7 | <div class="rlPopup"> |
... | @@ -248,9 +248,11 @@ | ... | @@ -248,9 +248,11 @@ |
248 | type: 'warning' | 248 | type: 'warning' |
249 | }).then(async () => { | 249 | }).then(async () => { |
250 | let bsmClmx = this.previewImg.imgList[this.previewImg.index].bsmClmx | 250 | let bsmClmx = this.previewImg.imgList[this.previewImg.index].bsmClmx |
251 | let bsmSj = this.previewImg.imgList[this.previewImg.index].bsmSj | ||
252 | this.previewImg.imgList = this.previewImg.imgList.filter(item => item.bsmClmx != bsmClmx) | ||
251 | deleteClmx(bsmClmx).then(res => { | 253 | deleteClmx(bsmClmx).then(res => { |
252 | if (res.code == 200) { | 254 | if (res.code == 200) { |
253 | that.$emit('updateList', res.result) | 255 | that.$emit('updateList', { children: this.previewImg.imgList, bsmSj: bsmSj }) |
254 | that.$message({ | 256 | that.$message({ |
255 | message: '删除成功!', | 257 | message: '删除成功!', |
256 | type: 'success' | 258 | type: 'success' | ... | ... |
1 | <!-- | 1 | <!-- |
2 | * @Description: | 2 | * @Description: |
3 | * @Autor: renchao | 3 | * @Autor: renchao |
4 | * @LastEditTime: 2023-06-21 15:30:43 | 4 | * @LastEditTime: 2023-06-21 16:29:37 |
5 | --> | 5 | --> |
6 | <template> | 6 | <template> |
7 | <div class="clxx"> | 7 | <div class="clxx"> |
... | @@ -120,8 +120,9 @@ | ... | @@ -120,8 +120,9 @@ |
120 | this.previewImg.bsmSj = item.bsmSj; | 120 | this.previewImg.bsmSj = item.bsmSj; |
121 | }, | 121 | }, |
122 | updateList (val) { | 122 | updateList (val) { |
123 | console.log(val, 'valvalvalval'); | ||
123 | let that = this | 124 | let that = this |
124 | if (val != null) { //删除最后一张图片时 val=null | 125 | if (val.children.length != []) { //删除最后一张图片时 val=null |
125 | this.tableData.forEach(item => { | 126 | this.tableData.forEach(item => { |
126 | if (item.bsmSj === val.bsmSj) { | 127 | if (item.bsmSj === val.bsmSj) { |
127 | item.children = val.children | 128 | item.children = val.children |
... | @@ -140,7 +141,6 @@ | ... | @@ -140,7 +141,6 @@ |
140 | } | 141 | } |
141 | }) | 142 | }) |
142 | } | 143 | } |
143 | |||
144 | }, | 144 | }, |
145 | // 添加材料目录 | 145 | // 添加材料目录 |
146 | handleAdd () { | 146 | handleAdd () { |
... | @@ -173,7 +173,7 @@ | ... | @@ -173,7 +173,7 @@ |
173 | this.previewImg.index = 0 | 173 | this.previewImg.index = 0 |
174 | this.treeCheckId = item?.bsmSj | 174 | this.treeCheckId = item?.bsmSj |
175 | this.treeCheckIndex = index | 175 | this.treeCheckIndex = index |
176 | this.previewImg.imgList = item.children? item.children: [] | 176 | this.previewImg.imgList = item.children ? item.children : [] |
177 | this.previewImg.bsmSj = item?.bsmSj | 177 | this.previewImg.bsmSj = item?.bsmSj |
178 | }, | 178 | }, |
179 | // 小图片点击 | 179 | // 小图片点击 | ... | ... |
-
Please register or sign in to post a comment