Showing
2 changed files
with
9 additions
and
5 deletions
| ... | @@ -40,7 +40,10 @@ | ... | @@ -40,7 +40,10 @@ |
| 40 | > | 40 | > |
| 41 | Empty | 41 | Empty |
| 42 | </div> --> | 42 | </div> --> |
| 43 | - <div v-loading="scope.row.loading" style="margin-top: 5px;padding:5px"> | 43 | + <div |
| 44 | + v-loading="scope.row.loading" | ||
| 45 | + style="margin-top: 5px; padding: 5px" | ||
| 46 | + > | ||
| 44 | <div | 47 | <div |
| 45 | class="fileItem" | 48 | class="fileItem" |
| 46 | v-for="(item, index) in scope.row.files" | 49 | v-for="(item, index) in scope.row.files" |
| ... | @@ -245,16 +248,16 @@ export default { | ... | @@ -245,16 +248,16 @@ export default { |
| 245 | res.data.forEach((item) => { | 248 | res.data.forEach((item) => { |
| 246 | item.file = item.filePath; | 249 | item.file = item.filePath; |
| 247 | if (item.bizTypeCode == "attachmentBizType_01") { | 250 | if (item.bizTypeCode == "attachmentBizType_01") { |
| 248 | - item.index = wab.length == 0 ? 0 : wab.length - 1; | 251 | + item.index = wab.length == 0 ? 0 : wab.length; |
| 249 | wab.push(item); | 252 | wab.push(item); |
| 250 | } else if (item.bizTypeCode == "attachmentBizType_02") { | 253 | } else if (item.bizTypeCode == "attachmentBizType_02") { |
| 251 | - item.index = inv.length == 0 ? 0 : inv.length - 1; | 254 | + item.index = inv.length == 0 ? 0 : inv.length; |
| 252 | inv.push(item); | 255 | inv.push(item); |
| 253 | } else if (item.bizTypeCode == "attachmentBizType_03") { | 256 | } else if (item.bizTypeCode == "attachmentBizType_03") { |
| 254 | - item.index = pink.length == 0 ? 0 : pink.length - 1; | 257 | + item.index = pink.length == 0 ? 0 : pink.length; |
| 255 | pink.push(item); | 258 | pink.push(item); |
| 256 | } else if (item.bizTypeCode == "attachmentBizType_04") { | 259 | } else if (item.bizTypeCode == "attachmentBizType_04") { |
| 257 | - item.index = oth.length == 0 ? 0 : oth.length - 1; | 260 | + item.index = oth.length == 0 ? 0 : oth.length; |
| 258 | oth.push(item); | 261 | oth.push(item); |
| 259 | } | 262 | } |
| 260 | }); | 263 | }); | ... | ... |
| ... | @@ -316,6 +316,7 @@ export default { | ... | @@ -316,6 +316,7 @@ export default { |
| 316 | item.files = res[2].list; | 316 | item.files = res[2].list; |
| 317 | } | 317 | } |
| 318 | }); | 318 | }); |
| 319 | + | ||
| 319 | this.$emit("fileDataChange", this.fileData); | 320 | this.$emit("fileDataChange", this.fileData); |
| 320 | }); | 321 | }); |
| 321 | } | 322 | } | ... | ... |
-
Please register or login to post a comment