ソースを参照

首页中最近收到的文件模块预览更新

yxc 2 年 前
コミット
b6f4c3fc8d
1 ファイル変更10 行追加122 行削除
  1. 10 122
      src/views1/Page/PageView.vue

+ 10 - 122
src/views1/Page/PageView.vue

@@ -385,14 +385,11 @@ export default {
     gb1() {
       this.check = false;
     },
-    // 预览关闭
-    gb() {
-      this.preview = false;
-    },
+
 
     // 是否机密
     isSecretRole(row) {
-      console.log(`row=${row}`);
+      // console.log(`row=${row}`);
       if (row.isSecret == "是") {
         this.check = true;
         this.currentRow = row;
@@ -400,66 +397,13 @@ export default {
     },
 
     //预览
-    handlePreview() {
-      const previewRow = this.currentRow;
-      // console.log("handlePreview started");
-
-      //图片后缀名
-      var pictures = ["jpeg", "tiff", "raw", "bmp", "gif", "png", "jpg"];
-      //音频后缀名
-      var audios = [
-        "mid",
-        "mp3",
-        "wav",
-        "wma",
-        "ra",
-        "ogg",
-        "flac",
-        "aac",
-        "ape",
-      ];
-      //视频后缀名
-      var videos = [
-        "asf",
-        "avi",
-        "mp4",
-        "ogm",
-        "ifo",
-        "mpg",
-        "mov",
-        "mpeg",
-        "mpg",
-        "vob",
-        "wmv",
-        "rm",
-        "rmvb",
-      ];
-
-      //判断后缀名
-      if (videos.some((item) => item == previewRow.docType)) {
-        this.preview = true;
-        this.vid1 = true;
-        this.aud1 = false;
-        this.img1 = false;
-        this.vid = previewRow.docPath;
-      } else if (audios.some((item) => item == previewRow.docType)) {
-        this.preview = true;
-        this.aud1 = true;
-        this.vid1 = false;
-        this.img1 = false;
-        this.aud = previewRow.docPath;
-      } else if (pictures.some((item) => item == previewRow.docType)) {
-        this.preview = true;
-        this.aud1 = false;
-        this.vid1 = false;
-        this.img1 = true;
-        this.imgg = previewRow.docPath;
-      } else {
-        this.$tab.openPage(
-          window.open("/individual/Pre/user/" + previewRow.docId, "_blank"),
-          localStorage.setItem("docName", previewRow.docName)
-        );
-      }
+    handlePreview(row) {
+      row = this.currentRow;
+      this.$tab.openPage(
+          window.open('/individual/Pre/user/' + row.docId + "?row=" + JSON.stringify(row),'_blank'),
+          // localStorage.setItem("docName", previewRow.docName)
+          // console.log( previewRow )
+      );
     },
 
     //验证账号密码
@@ -477,13 +421,6 @@ export default {
 
     //验证账号密码
     submitForm(row) {
-      // this.$refs.loginForm.validate((valid) => {
-      //   if (valid) {
-      //     login(this.loginForm.username, this.loginForm.password).then(
-
-      //     );
-      //   }
-      // });
       this.$refs.loginForm.validate((valid) => {
         if (valid) {
           if (this.loginForm.rememberMe) {
@@ -645,24 +582,6 @@ export default {
           .el-icon-arrow-down {
             font-size: 12px;
           }
-          //     .cen-cen {
-          //   width: calc(100vw * (96 / 1920));
-          //   height: calc(100vh * (136 / 1080));
-          //   background: #0f1540ff;
-          //   position: absolute;
-          //   top: 30px;
-          //   left: 25px;
-          //   list-style: none;
-          //   padding: 0 calc(100vw * (3 / 1920));
-          //   padding-top: calc(100vh * (10 / 1080));
-          //   border: 1px solid #00000040;
-          //   border-radius: 2px 2px 2px 2px;
-          //   z-index: 99;
-          //   // display: none;
-          //   li {
-          //   padding: calc(100vh * (6 / 1080)) calc(100vw * (10 / 1920));
-          //   }
-          // }
         }
         .cen—top-right {
           width: calc(100vw * (536 / 1920));
@@ -865,38 +784,7 @@ export default {
       }
     }
   }
-  .dhk {
-    width: calc(100vw * (1500 / 1920));
-    height: calc(100vh * (850 / 1080));
-    // background: salmon;
-    background: #0f1540ff;
-    position: absolute;
-    top: 10%;
-    left: 10%;
-    z-index: 99;
-    display: flex;
-    justify-content: center;
-    align-items: center;
-    .gb {
-      position: absolute;
-      top: 0;
-      right: 0;
-    }
-    video {
-      width: calc(100vw * (1440 / 1920));
-      height: calc(100vh * (810 / 1080));
-    }
-    .el-image {
-      width: calc(100vw * (960 / 1920));
-      height: calc(100vh * (720 / 1080));
-    }
-    .el-button-group {
-      position: absolute;
-      top: 10%;
-      right: 1%;
-    }
-  }
-
+   //机密验证界面
   .jm {
     width: calc(100vw * (530 / 1920));
     height: calc(100vh * (370 / 1080));