Commit 8de7ed17 authored by 高飞's avatar 高飞

修改目标对象列表刷新问题,和gif展示问题,以及登陆页用户名颜色问题

parent a9b3ffeb
......@@ -8,6 +8,7 @@ import {
} from 'file-saver';
import { ACCESS_TOKEN, ACCESS_USER, HTTP_STATUS } from "../constant/user";
/**
* 添加请求头
* @param {} headers
......@@ -353,7 +354,7 @@ let imageToBase64 = (file, that) => {
//文件上传限制格式
let format_file = () => {
return ".TXT,.DOC,.XLS,.PPT,.DOCX,.XLSX,.PPTX,.pdf,.JPG,.PNG,.TIFF,.SWF,.rar,.zip,.EXE,.FLV,.RMVB,.rm,.MP4,.MVB,.avi,.WMA,.MP3"
return ".TXT,.DOC,.XLS,.PPT,.DOCX,.XLSX,.PPTX,.pdf,.JPG,.PNG,.JPEG,.TIFF,.SWF,.rar,.zip,.EXE,.FLV,.RMVB,.rm,.MP4,.MVB,.avi,.WMA,.MP3"
}
//视频播放格式
let arr_video_format = () => {
......@@ -363,6 +364,10 @@ let arr_video_format = () => {
let arr_sound_format = () => {
return ["WMA", "MP3"]
}
//图片
let arr_img_format = () =>{
return ["JPG", "PNG","JPEG"]
}
//人物机构字段确认状态后缀名
let rw_jg_IsConfirm = () => {
return '_DOUBT'
......@@ -684,5 +689,6 @@ export {
fileUpload_PUT,
post_technique,
post_technique_entity,
addParamNew
addParamNew,
arr_img_format
}
\ No newline at end of file
......@@ -643,6 +643,7 @@ export default {
this.filterText = "";
this.jgName = '1';
this.jgName_public = 2;
this.rwkxx = [];
this.query_tree_jg();
} else {
delCookie("dfzy_jgk");
......
......@@ -670,6 +670,7 @@ export default {
this.filterText = "";
this.input3 = "";
this.types = 2;
this.rwkxx = [];
this.query_tree_jg();
} else {
delCookie("dfzy_rwk");
......
......@@ -108,10 +108,23 @@
]" @click="handleView(index, item)">
<div class="img-div">
<!-- <img class="tx-bg" :src="item.photos" :onerror="errimg" /> -->
<div class="tx-bg animate__animated animate__infinite animate__pulse">
<!-- <div class="tx-bg animate__animated animate__infinite animate__pulse">
<span>
{{ item.file.type.toUpperCase() }}
</span>
</div> -->
<div
class="tx-bg"
style="display: flex;justify-content: center;"
:class="[item.imgUrl==undefined?'animate__animated animate__infinite animate__pulse':'']"
>
<span v-if="item.imgUrl==undefined">
{{ item.file.type.toUpperCase() }}
</span>
<div style="width: 60px;height: 60px;" v-else>
<img :src="item.imgUrl==null?'':item.imgUrl" :onerror="errimg" style="background-size: 100% 100%;width: 100%;height: 100%;border-radius: 0px 10px"/>
</div>
</div>
</div>
<div class="text-div">
......@@ -364,6 +377,7 @@ import {
format_file, //上传的文件格式
arr_video_format, //视频的文件格式
arr_sound_format, //音频的文件格式
arr_img_format, //图片的文件格式
} from "../../util/http_util";
import { uuid } from "../../util/data_util";
import VanillaTilt from "vanilla-tilt";
......@@ -486,6 +500,25 @@ export default {
queryDoc(pageNum, _this.pageSize, _this.paramData).then((data) => {
setTimeout(() => {
if (data.list.length != 0) {
data.list.forEach(item=>{
//用户判断此格式是否是视频格式
let video_type = false;
//用户判断此格式是否是音频格式
let img_type = false;
arr_video_format().forEach((name) => {
if (name.toUpperCase() == item.file.type.toUpperCase()) {
video_type = true;
}
});
arr_img_format().forEach((name) => {
if (name.toUpperCase() == item.file.type.toUpperCase()) {
img_type = true;
}
});
if(video_type || img_type){
item.imgUrl = 'api/rest/file/viewPicture/DocumentPicture?objectName='+item.file.uuid+'&'+new Date().getTime();
}
})
_this.tableData = data.list;
}
_this.total = data.totals;
......
......@@ -132,11 +132,16 @@
<div class="img-div">
<!-- <img class="tx-bg" :src="item.photos" :onerror="errimg" /> -->
<div
class="tx-bg animate__animated animate__infinite animate__pulse"
class="tx-bg"
style="display: flex;justify-content: center;"
:class="[item.imgUrl==undefined?'animate__animated animate__infinite animate__pulse':'']"
>
<span>
<span v-if="item.imgUrl==undefined">
{{ item.file.type.toUpperCase() }}
</span>
<div style="width: 60px;height: 60px;" v-else>
<img :src="item.imgUrl==null?'':item.imgUrl" :onerror="errimg" style="background-size: 100% 100%;width: 100%;height: 100%;border-radius: 0px 10px"/>
</div>
</div>
</div>
<div class="text-div">
......@@ -571,6 +576,7 @@ import {
format_file, //上传的文件格式
arr_video_format, //视频的文件格式
arr_sound_format, //音频的文件格式
arr_img_format, //图片的文件格式
} from "../../util/http_util";
import { uuid } from "../../util/data_util";
import VanillaTilt from "vanilla-tilt";
......@@ -579,6 +585,7 @@ import { queryDoc, searchFiles } from '../../api/zfclk/wxgl';
export default {
data() {
return {
errimg:'',
centerDialogVisible_add: false,
centerDialogVisible_edit: false,
centerDialogVisible_video: false,
......@@ -693,6 +700,25 @@ export default {
queryDoc(pageNum, _this.pageSize, _this.paramData).then((data) => {
setTimeout(() => {
if (data.list.length != 0) {
data.list.forEach(item=>{
//用户判断此格式是否是视频格式
let video_type = false;
//用户判断此格式是否是音频格式
let img_type = false;
arr_video_format().forEach((name) => {
if (name.toUpperCase() == item.file.type.toUpperCase()) {
video_type = true;
}
});
arr_img_format().forEach((name) => {
if (name.toUpperCase() == item.file.type.toUpperCase()) {
img_type = true;
}
});
if(video_type || img_type){
item.imgUrl = 'api/rest/file/viewPicture/DocumentPicture?objectName='+item.file.uuid+'&'+new Date().getTime();
}
})
_this.tableData = data.list;
}
_this.total = data.totals;
......
......@@ -267,6 +267,8 @@ export default {
input {
background-color: transparent;
color: white !important;
letter-spacing: 2px;
}
}
}
......
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