|  | @@ -70,6 +70,7 @@
 | 
											
												
													
														|  |                :max-count="fileList.length"
 |  |                :max-count="fileList.length"
 | 
											
												
													
														|  |                capture="camera"
 |  |                capture="camera"
 | 
											
												
													
														|  |                accept=""
 |  |                accept=""
 | 
											
												
													
														|  | 
 |  | +              @click-preview="downHandle"
 | 
											
												
													
														|  |              >
 |  |              >
 | 
											
												
													
														|  |              </van-uploader>
 |  |              </van-uploader>
 | 
											
												
													
														|  |            </template>
 |  |            </template>
 | 
											
										
											
												
													
														|  | @@ -124,17 +125,45 @@
 | 
											
												
													
														|  |            info.value.enclosure.split("|").forEach((item) => {
 |  |            info.value.enclosure.split("|").forEach((item) => {
 | 
											
												
													
														|  |              console.log(item);
 |  |              console.log(item);
 | 
											
												
													
														|  |              if (item.trim().length > 0) {
 |  |              if (item.trim().length > 0) {
 | 
											
												
													
														|  | 
 |  | +              // fileList.value.push({
 | 
											
												
													
														|  | 
 |  | +              //   name: decodeURIComponent(
 | 
											
												
													
														|  | 
 |  | +              //     item.substring(item.lastIndexOf("/") + 1)
 | 
											
												
													
														|  | 
 |  | +              //   ),
 | 
											
												
													
														|  | 
 |  | +              //   url: $base + item.replace('程序附件//','程序附件/'),
 | 
											
												
													
														|  | 
 |  | +              // });
 | 
											
												
													
														|  | 
 |  | +
 | 
											
												
													
														|  | 
 |  | +
 | 
											
												
													
														|  |                fileList.value.push({
 |  |                fileList.value.push({
 | 
											
												
													
														|  | -                name: decodeURIComponent(
 |  | 
 | 
											
												
													
														|  | -                  item.substring(item.lastIndexOf("/") + 1)
 |  | 
 | 
											
												
													
														|  | -                ),
 |  | 
 | 
											
												
													
														|  | -                url: $base + item.replace('程序附件//','程序附件/'),
 |  | 
 | 
											
												
													
														|  | 
 |  | +                file: {
 | 
											
												
													
														|  | 
 |  | +                  name: decodeURIComponent(
 | 
											
												
													
														|  | 
 |  | +                    item.substring(item.lastIndexOf("/") + 1)
 | 
											
												
													
														|  | 
 |  | +                  ),
 | 
											
												
													
														|  | 
 |  | +                },
 | 
											
												
													
														|  | 
 |  | +                url: $base + item.replace("程序附件//", "程序附件/"),
 | 
											
												
													
														|  |                });
 |  |                });
 | 
											
												
													
														|  | 
 |  | +
 | 
											
												
													
														|  |              }
 |  |              }
 | 
											
												
													
														|  |            });
 |  |            });
 | 
											
												
													
														|  |            isLoading.value = false;
 |  |            isLoading.value = false;
 | 
											
												
													
														|  |          });
 |  |          });
 | 
											
												
													
														|  |        });
 |  |        });
 | 
											
												
													
														|  | 
 |  | +
 | 
											
												
													
														|  | 
 |  | +      /**
 | 
											
												
													
														|  | 
 |  | +     * 下载文件 网页端可用
 | 
											
												
													
														|  | 
 |  | +     */
 | 
											
												
													
														|  | 
 |  | +    const downHandle = (fileObj) => {
 | 
											
												
													
														|  | 
 |  | +      if(!(fileObj.file.name.includes(".jpg")||fileObj.file.name.includes(".jpeg")||fileObj.file.name.includes(".png"))){
 | 
											
												
													
														|  | 
 |  | +        // 声明a标签
 | 
											
												
													
														|  | 
 |  | +        const aEle = document.createElement("a");
 | 
											
												
													
														|  | 
 |  | +        // 设置下载文件名
 | 
											
												
													
														|  | 
 |  | +        aEle.download = fileObj.file.name;
 | 
											
												
													
														|  | 
 |  | +        // 下载地址
 | 
											
												
													
														|  | 
 |  | +        aEle.href = fileObj.url;
 | 
											
												
													
														|  | 
 |  | +        // 调用下载
 | 
											
												
													
														|  | 
 |  | +        aEle.click();
 | 
											
												
													
														|  | 
 |  | +      }
 | 
											
												
													
														|  | 
 |  | +      
 | 
											
												
													
														|  | 
 |  | +    };
 | 
											
												
													
														|  |        
 |  |        
 | 
											
												
													
														|  |        // 审核通过
 |  |        // 审核通过
 | 
											
												
													
														|  |        const update = () => {
 |  |        const update = () => {
 | 
											
										
											
												
													
														|  | @@ -155,6 +184,7 @@
 | 
											
												
													
														|  |          onClickLeft,
 |  |          onClickLeft,
 | 
											
												
													
														|  |          info,
 |  |          info,
 | 
											
												
													
														|  |          fileList,
 |  |          fileList,
 | 
											
												
													
														|  | 
 |  | +        downHandle,
 | 
											
												
													
														|  |          isLoading,
 |  |          isLoading,
 | 
											
												
													
														|  |          update,
 |  |          update,
 | 
											
												
													
														|  |        };
 |  |        };
 |