|
@@ -283,6 +283,22 @@
|
|
|
style="width: 100%; height: 100%; overflow: auto"
|
|
|
></pdf>
|
|
|
</div>
|
|
|
+ <div
|
|
|
+ class="wheel"
|
|
|
+ v-if="showType == 4"
|
|
|
+ style="
|
|
|
+ height: 520px;
|
|
|
+ width: 90%;
|
|
|
+ margin: 0 0 20px 30px;
|
|
|
+ overflow: auto;
|
|
|
+ "
|
|
|
+ >
|
|
|
+ <el-image
|
|
|
+ :src="pptImgUrl1"
|
|
|
+ fit="cover"
|
|
|
+ style="width: 100%"
|
|
|
+ ></el-image>
|
|
|
+ </div>
|
|
|
</div>
|
|
|
<!-- :class="
|
|
|
vedio[taskCount].length == 0 && file[taskCount].length == 0
|
|
@@ -2501,7 +2517,7 @@ export default {
|
|
|
file.name.split(".")[0] +
|
|
|
new Date().getTime() +
|
|
|
"." +
|
|
|
- file.name.split(".")[file.name.split(".").length-1],
|
|
|
+ file.name.split(".")[file.name.split(".").length - 1],
|
|
|
ContentType: file.type,
|
|
|
Body: file,
|
|
|
"Access-Control-Allow-Credentials": "*",
|
|
@@ -2850,6 +2866,15 @@ export default {
|
|
|
) {
|
|
|
this.showType = 3;
|
|
|
this.pptImgUrl1 = _url;
|
|
|
+ } else if (
|
|
|
+ this.isAssetTypeAnImage(
|
|
|
+ _url
|
|
|
+ .split(".")
|
|
|
+ [_url.split(".").length - 1].toLocaleLowerCase()
|
|
|
+ )
|
|
|
+ ) {
|
|
|
+ this.showType = 4;
|
|
|
+ this.pptImgUrl1 = _url;
|
|
|
} else {
|
|
|
this.showType = 2;
|
|
|
this.pptImgUrl1 =
|
|
@@ -2881,6 +2906,15 @@ export default {
|
|
|
) {
|
|
|
this.showType = 3;
|
|
|
this.pptImgUrl1 = _url;
|
|
|
+ }else if (
|
|
|
+ this.isAssetTypeAnImage(
|
|
|
+ _url
|
|
|
+ .split(".")
|
|
|
+ [_url.split(".").length - 1].toLocaleLowerCase()
|
|
|
+ )
|
|
|
+ ) {
|
|
|
+ this.showType = 4;
|
|
|
+ this.pptImgUrl1 = _url;
|
|
|
} else {
|
|
|
this.showType = 2;
|
|
|
this.pptImgUrl1 =
|
|
@@ -3017,6 +3051,13 @@ export default {
|
|
|
"https://view.officeapps.live.com/op/view.aspx?src=" + f.url;
|
|
|
// this.dialogVisible3 = true;
|
|
|
this.showType = 2;
|
|
|
+ } else if (
|
|
|
+ this.isAssetTypeAnImage(
|
|
|
+ f.url.split(".")[f.url.split(".").length - 1].toLocaleLowerCase()
|
|
|
+ )
|
|
|
+ ) {
|
|
|
+ this.showType = 4;
|
|
|
+ this.pptImgUrl1 = f.url;
|
|
|
} else if (
|
|
|
f.url.split(".")[f.url.split(".").length - 1].toLocaleUpperCase() ==
|
|
|
"PDF"
|