|  |  | 
 |  |  | <!--    <el-table-column prop="fileName" label="附件名称" min-width="100px"></el-table-column> | 
 |  |  |         <el-table-column prop="fileSize" label="附件大小" min-width="100px"></el-table-column>--> | 
 |  |  |         <el-table-column | 
 |  |  |           v-if="containPermissions(['business:companydocuments:update', 'business:companydocuments:delete'])" | 
 |  |  |           v-if="containPermissions(['business:companydocuments:update', 'business:companydocuments:delete', 'business:companydocuments:query'])" | 
 |  |  |           label="操作" | 
 |  |  |           min-width="120" | 
 |  |  |           min-width="180" | 
 |  |  |           fixed="right" | 
 |  |  |         > | 
 |  |  |           <template slot-scope="{row}"> | 
 |  |  |             <el-button type="text" @click="$refs.operaCompanyDocumentsWindow.open('编辑资料', row)" icon="el-icon-edit" v-permissions="['business:companydocuments:update']">编辑</el-button> | 
 |  |  |             <el-button type="text" v-if="row.fileurlFull" @click="download(row)" icon="el-icon-download" v-permissions="['business:companydocuments:download']">下载</el-button> | 
 |  |  |             <el-button type="text" v-if="row.fileurlFull" @click="downloadBiz(row)" icon="el-icon-download" v-permissions="['business:companydocuments:query']">下载</el-button> | 
 |  |  |             <el-button type="text" @click="deleteById(row)" icon="el-icon-delete" v-permissions="['business:companydocuments:delete']">删除</el-button> | 
 |  |  |           </template> | 
 |  |  |         </el-table-column> | 
 |  |  | 
 |  |  | import TableLayout from '@/layouts/TableLayout' | 
 |  |  | import Pagination from '@/components/common/Pagination' | 
 |  |  | import OperaCompanyDocumentsWindow from '@/components/business/OperaCompanyDocumentsWindow' | 
 |  |  | import {downloadFile} from "@/api/system/common"; | 
 |  |  |  | 
 |  |  | export default { | 
 |  |  |   name: 'CompanyDocuments', | 
 |  |  |   extends: BaseTable, | 
 |  |  | 
 |  |  |     }) | 
 |  |  |     this.search() | 
 |  |  |   }, | 
 |  |  |   methods:{ | 
 |  |  |     download(row){ | 
 |  |  |       if(row.fileurlFull){ | 
 |  |  |         window.open(row.fileurlFull) | 
 |  |  |   methods: { | 
 |  |  |     downloadBiz (row) { | 
 |  |  |       if (row.fileurlFull) { | 
 |  |  |         downloadFile({ url: row.fileurlFull, fileName:row.fileName }).then(response => { | 
 |  |  |           this.download(response) | 
 |  |  |         }) | 
 |  |  |       } | 
 |  |  |     } | 
 |  |  |   } |