Browse Source

RING:素材库上传优化

ringcode 3 years ago
parent
commit
8a0daa2aa5

+ 3 - 2
src/views/material/component/preview.vue

@@ -78,6 +78,7 @@ export default PreviewBox;
   left: 0;
   left: 0;
   position: fixed;
   position: fixed;
   background: rgba(0, 0, 0, 0);
   background: rgba(0, 0, 0, 0);
+  z-index: 1000;
 }
 }
 .preview-box {
 .preview-box {
   // width: 100%;
   // width: 100%;
@@ -98,7 +99,7 @@ export default PreviewBox;
     font-size: 18px;
     font-size: 18px;
     color: white;
     color: white;
     font-weight: bold;
     font-weight: bold;
-    z-index: 1000;
+    z-index: 100000;
     &:hover {
     &:hover {
       color: rgb(253, 119, 235);
       color: rgb(253, 119, 235);
       cursor: pointer;
       cursor: pointer;
@@ -116,7 +117,7 @@ export default PreviewBox;
     bottom: 4px;
     bottom: 4px;
   }
   }
   .player {
   .player {
-    z-index: 10;
+    z-index: 1000000;
     width: 640px;
     width: 640px;
     height: 440px;
     height: 440px;
     margin: 30px auto;
     margin: 30px auto;

+ 2 - 2
src/views/material/component/upload-video.vue

@@ -109,7 +109,7 @@ const UploadVideo = defineComponent({
         key,
         key,
         message: "状态提示",
         message: "状态提示",
         description: "素材上传中...",
         description: "素材上传中...",
-        duration: 2,
+        duration: 0,
         icon: h(LoadingOutlined, { style: "color: #108ee9" }),
         icon: h(LoadingOutlined, { style: "color: #108ee9" }),
       });
       });
       let num = 0;
       let num = 0;
@@ -137,7 +137,7 @@ const UploadVideo = defineComponent({
               // message.success("素材上传完成")
               // message.success("素材上传完成")
               const key2 = "final";
               const key2 = "final";
               notification.open({
               notification.open({
-                key2,
+                key,
                 message: "状态提示",
                 message: "状态提示",
                 description: "素材上传完成!",
                 description: "素材上传完成!",
                 duration: 2,
                 duration: 2,