Commit 69cfa573 authored by 高飞's avatar 高飞

修改图片预览路径

parent 789b63a0
......@@ -520,9 +520,12 @@ export default {
img_type = true;
}
});
if (video_type || img_type) {
if (video_type) {
item.imgUrl = 'api/rest/file/viewPicture/DocumentPicture?objectName=' + item.file.uuid + '&' + new Date().getTime();
}
if (img_type) {
item.imgUrl = 'api/rest/file/viewPicture/Document?objectName=' + item.file.uuid + '&' + new Date().getTime();
}
})
_this.tableData = data.list;
}
......
......@@ -508,7 +508,7 @@ export default {
data.list.forEach(item => {
//用户判断此格式是否是视频格式
let video_type = false;
//用户判断此格式是否是音频格式
//用户判断此格式是否是图片格式
let img_type = false;
arr_video_format().forEach((name) => {
if (name.toUpperCase() == item.file.type.toUpperCase()) {
......@@ -524,7 +524,7 @@ export default {
item.imgUrl = 'api/rest/file/viewPicture/DocumentPicture?objectName=' + item.file.uuid + '&' + new Date().getTime();
}
if (img_type) {
item.imgUrl = 'api/rest/file/viewPicture/DocumentPDF?objectName=' + item.file.uuid + '&' + new Date().getTime();
item.imgUrl = 'api/rest/file/viewPicture/Document?objectName=' + item.file.uuid + '&' + new Date().getTime();
}
})
_this.tableData = data.list;
......
......@@ -514,9 +514,12 @@ export default {
img_type = true;
}
});
if (video_type || img_type) {
if (video_type) {
item.imgUrl = 'api/rest/file/viewPicture/DocumentPicture?objectName=' + item.file.uuid + '&' + new Date().getTime();
}
if (img_type) {
item.imgUrl = 'api/rest/file/viewPicture/Document?objectName=' + item.file.uuid + '&' + new Date().getTime();
}
})
_this.tableData = data.list;
}
......
......@@ -694,6 +694,13 @@ export default {
//新增弹出框弹出
handleAdd() {
if (this.clientDetails_type[0] == 1 || this.clientDetails_type[0] == 2 || this.clientDetails_type[0] == 3 || this.clientDetails_type[0] == 4) {
this.$message({
type: "warning",
message: "请选择文档列表子节点",
});
return;
}
let _this = this;
//设置下拉框默认选择第一条
// _this.form_add.region = _this.options[0].value;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment