Explorar el Código

修复文件上传的bug

“yueshang” hace 1 año
padre
commit
ed6d116b60
Se han modificado 2 ficheros con 2 adiciones y 10 borrados
  1. 0 4
      src/views/department/MyFile.vue
  2. 2 6
      src/views/myfile/MyFile.vue

+ 0 - 4
src/views/department/MyFile.vue

@@ -2186,10 +2186,6 @@ p {
     border-bottom: none;
 }
 
-:deep(.el-collapse-item__wrap) {
-    // height: 300px;
-}
-
 // 隐藏全选按钮
 .file-jia {
     :deep(.el-table th.el-table__cell:nth-child(1) .cell) {

+ 2 - 6
src/views/myfile/MyFile.vue

@@ -375,7 +375,7 @@
                     </el-upload>
                     <template #footer>
                         <span class="dialog-footer">
-                            <el-button @click="uploadModal = false">取消</el-button>
+                            <el-button @click="closeUpload">取消</el-button>
                             <el-button type="primary" @click="throttleSureUpload">确认</el-button>
                         </span>
                     </template>
@@ -1136,6 +1136,7 @@ export default {
         //关闭文件上传
         const closeUpload =() =>{
             uploadModal.value = false;
+            fileArr.value = [];
             loadingUpload.value = false
         }
         // 移除上传的某些文件
@@ -2343,10 +2344,6 @@ p {
     border-bottom: none;
 }
 
-:deep(.el-collapse-item__wrap) {
-    // height: 100%;
-}
-
 // 隐藏全选按钮
 .file-jia {
     :deep(.el-table th.el-table__cell:nth-child(1) .cell) {
@@ -2371,4 +2368,3 @@ p {
     margin-right: 20px;
 }
 </style>
-</style>