Browse Source

协作 ppt等预览

liuQiang 2 years ago
parent
commit
5471c00443
2 changed files with 2 additions and 2 deletions
  1. 1 1
      src/utils/index.js
  2. 1 1
      src/views/myjoin/MyJoin.vue

+ 1 - 1
src/utils/index.js

@@ -21,7 +21,7 @@ export function formatDate(cellValue) {
  * @param {string} fileType
  */
 export const canPreviewFile = (fileType)=>{
-    const array = ['.doc', '.docm', '.docx', '.dot', '.dotm', '.dotx', '.epub', '.fodt', '.htm', '.html', '.mht', '.odt', '.ott', '.pdf', '.rtf', '.txt', '.djvu', '.xps','csv', 'fods', 'ods', 'ots', 'xls', 'xlsm', 'xlsx', 'xlt', 'xltm', 'xltx','fodp', 'odp', 'otp', 'pot', 'potm', 'potx', 'pps', 'ppsm', 'ppsx', 'ppt', 'pptm', 'pptx']
+    const array = ['.doc', '.docm', '.docx', '.dot', '.dotm', '.dotx', '.epub', '.fodt', '.htm', '.html', '.mht', '.odt', '.ott', '.pdf', '.rtf', '.txt', '.djvu', '.xps','.csv', '.fods', '.ods', '.ots', '.xls', '.xlsm', '.xlsx', '.xlt', '.xltm', '.xltx','.fodp', '.odp', '.otp', '.pot', '.potm', '.potx', '.pps', '.ppsm', '.ppsx', '.ppt', '.pptm', '.pptx']
     if(array.includes(fileType)){
       return true
     }

+ 1 - 1
src/views/myjoin/MyJoin.vue

@@ -36,7 +36,7 @@
                         </div>
                     </el-tab-pane>
                     <el-tab-pane label="我参与的" name="second">
-                        <el-table :data="myPack" style="width: 100%">
+                        <el-table :data="myPack" style="width: 100%" @row-click="rowClickFN">
                             <el-table-column type="selection" width="55" />
                             <el-table-column label="名称" width="200">
                                 <template #default="scope">