|
@@ -300,6 +300,7 @@
|
|
v-if="checkFileType(scope.row.fileUrl) == 'image'"
|
|
v-if="checkFileType(scope.row.fileUrl) == 'image'"
|
|
style="width: 120px; height: 120px"
|
|
style="width: 120px; height: 120px"
|
|
fit="cover"
|
|
fit="cover"
|
|
|
|
+ :preview-src-list="[imageURL + scope.row.fileUrl]"
|
|
>
|
|
>
|
|
</el-image>
|
|
</el-image>
|
|
<img
|
|
<img
|
|
@@ -322,6 +323,11 @@
|
|
src="@/assets/common/pdf.png"
|
|
src="@/assets/common/pdf.png"
|
|
v-if="checkFileType(scope.row.fileUrl) == 'pdf'"
|
|
v-if="checkFileType(scope.row.fileUrl) == 'pdf'"
|
|
/>
|
|
/>
|
|
|
|
+ <img
|
|
|
|
+ v-if="checkFileType(scope.row.fileUrl) == 'file'"
|
|
|
|
+ class="file aaa"
|
|
|
|
+ src="@/assets/common/zip.jpeg"
|
|
|
|
+ />
|
|
</template>
|
|
</template>
|
|
</el-table-column>
|
|
</el-table-column>
|
|
<el-table-column
|
|
<el-table-column
|
|
@@ -549,7 +555,13 @@ export default {
|
|
checkNote: "",
|
|
checkNote: "",
|
|
};
|
|
};
|
|
},
|
|
},
|
|
|
|
+ computed: {
|
|
|
|
+ previewImages() {
|
|
|
|
+ const fileList = [];
|
|
|
|
|
|
|
|
+ return fileList;
|
|
|
|
+ },
|
|
|
|
+ },
|
|
created() {
|
|
created() {
|
|
console.log(this.$imageUrl, 8888);
|
|
console.log(this.$imageUrl, 8888);
|
|
this.checkBy = this.name;
|
|
this.checkBy = this.name;
|
|
@@ -589,6 +601,8 @@ export default {
|
|
return "ppt";
|
|
return "ppt";
|
|
} else if (["pdf"].includes(fileSuffix)) {
|
|
} else if (["pdf"].includes(fileSuffix)) {
|
|
return "pdf";
|
|
return "pdf";
|
|
|
|
+ } else if (["zip", "rar", "gz", "apk"].includes(fileSuffix)) {
|
|
|
|
+ return "file";
|
|
} else {
|
|
} else {
|
|
return "";
|
|
return "";
|
|
}
|
|
}
|
|
@@ -661,6 +675,10 @@ export default {
|
|
</script>
|
|
</script>
|
|
|
|
|
|
<style lang="scss" scoped>
|
|
<style lang="scss" scoped>
|
|
|
|
+.aaa {
|
|
|
|
+ height: 64px;
|
|
|
|
+ width: 64px;
|
|
|
|
+}
|
|
.dateS {
|
|
.dateS {
|
|
.value {
|
|
.value {
|
|
padding: 0;
|
|
padding: 0;
|