|
@@ -29,7 +29,7 @@
|
|
|
<!-- 文件列表 -->
|
|
<!-- 文件列表 -->
|
|
|
<transition-group class="upload-file-list el-upload-list el-upload-list--text" name="el-fade-in-linear" tag="ul">
|
|
<transition-group class="upload-file-list el-upload-list el-upload-list--text" name="el-fade-in-linear" tag="ul">
|
|
|
<li :key="file.url" class="el-upload-list__item ele-upload-list__item-content" v-for="(file, index) in fileList">
|
|
<li :key="file.url" class="el-upload-list__item ele-upload-list__item-content" v-for="(file, index) in fileList">
|
|
|
- <el-link :href="`${baseUrl}${file.url}`" :underline="false" target="_blank">
|
|
|
|
|
|
|
+ <el-link :href="`${file.url}`" :underline="false" target="_blank">
|
|
|
<span class="el-icon-document"> {{ getFileName(file.name) }} </span>
|
|
<span class="el-icon-document"> {{ getFileName(file.name) }} </span>
|
|
|
</el-link>
|
|
</el-link>
|
|
|
<div class="ele-upload-list__item-content-action">
|
|
<div class="ele-upload-list__item-content-action">
|
|
@@ -162,12 +162,14 @@ export default {
|
|
|
this.number = 0;
|
|
this.number = 0;
|
|
|
this.$emit("input", this.listToString(this.fileList));
|
|
this.$emit("input", this.listToString(this.fileList));
|
|
|
this.$modal.closeLoading();
|
|
this.$modal.closeLoading();
|
|
|
|
|
+ this.$modal.msgSuccess("文件上传成功!");
|
|
|
}
|
|
}
|
|
|
},
|
|
},
|
|
|
// 删除文件
|
|
// 删除文件
|
|
|
handleDelete(index) {
|
|
handleDelete(index) {
|
|
|
this.fileList.splice(index, 1);
|
|
this.fileList.splice(index, 1);
|
|
|
this.$emit("input", this.listToString(this.fileList));
|
|
this.$emit("input", this.listToString(this.fileList));
|
|
|
|
|
+ this.$modal.msgSuccess("删除成功!");
|
|
|
},
|
|
},
|
|
|
// 获取文件名称
|
|
// 获取文件名称
|
|
|
getFileName(name) {
|
|
getFileName(name) {
|