| | |
| | | </el-option> |
| | | </el-select> |
| | | </el-form-item> |
| | | <el-form-item label="文件记录:" > |
| | | <el-input v-model.trim="data.queryParams.templateName" placeholder="请输入"></el-input> |
| | | </el-form-item> |
| | | <el-form-item label="分类:" > |
| | | <el-input v-model.trim="data.queryParams.type" placeholder="请输入"></el-input> |
| | | </el-form-item> |
| | |
| | | pageSize: 10, |
| | | companyId: null, |
| | | industryType: null, |
| | | type: '' |
| | | type: '', |
| | | templateName: '' |
| | | }, |
| | | total: 0, |
| | | dataList: [], |
| | |
| | | }) |
| | | const openFile = async(path)=>{ |
| | | const ext = path.split('.').pop().toLowerCase(); |
| | | if (ext === 'doc') { |
| | | ElMessageBox.confirm('暂不支持线上预览.doc文件,是否下载查看?', '提示', { confirmButtonText: '确认', cancelButtonText: '取消', type: 'warning' }).then(() => { |
| | | if (ext === 'doc' || ext === 'xls' || ext === 'xlsx') { |
| | | ElMessageBox.confirm('暂不支持线上预览文件,是否下载查看?', '提示', { confirmButtonText: '确认', cancelButtonText: '取消', type: 'warning' }).then(() => { |
| | | window.open(`${import.meta.env.VITE_APP_BASE_API}/${path}`, '_blank'); |
| | | }).catch(() => { |
| | | console.log('取消预览') |
| | |
| | | pageSize: 10, |
| | | companyId: null, |
| | | industryType: null, |
| | | type: '' |
| | | type: '', |
| | | templateName: '' |
| | | } |
| | | await getCompanyList() |
| | | }else { |
| | |
| | | pageSize: 10, |
| | | companyId: data.queryParams.companyId, |
| | | industryType: null, |
| | | type: '' |
| | | type: '', |
| | | templateName: '' |
| | | } |
| | | } |
| | | await getList() |