| | |
| | | </el-form-item> |
| | | </el-col> |
| | | </el-row> |
| | | <el-row :gutter="24" v-if="title == '查看'"> |
| | | <el-row :gutter="24" > |
| | | <el-col :span="24" style="margin-left: 50px"> |
| | | <span style="font-size: 19px;font-weight: 600;">签字意见</span> |
| | | <el-table :data="state.form.flows" :border="true" style="width: 90%;margin-top: 10px"> |
| | | <el-table-column label="流程名称" prop="flowName" width="220" align="center"></el-table-column> |
| | | <el-table-column label="内容" align="center"> |
| | | <template #default="scope"> |
| | | <template #default="scope" v-if="title != '新增'"> |
| | | <span>{{scope.row.approveDeptName}}/{{scope.row.approveUserName}} {{scope.row.approveTime}} {{scope.row.approveContent}} {{scope.row.approveMess}}</span> |
| | | </template> |
| | | </el-table-column> |
| | |
| | | const path = file.path |
| | | const ext = path.split('.').pop().toLowerCase(); |
| | | if (ext === 'doc' || ext === 'xls' || ext === 'xlsx'|| ext === 'ppt'|| ext === 'pptx') { |
| | | ElMessageBox.confirm('暂不支持线上预览.doc文件,是否下载查看?', '提示', { confirmButtonText: '确认', cancelButtonText: '取消', type: 'warning' }).then(() => { |
| | | ElMessageBox.confirm('暂不支持线上预览.doc、.xls、.xlsx文件,是否下载查看?', '提示', { confirmButtonText: '确认', cancelButtonText: '取消', type: 'warning' }).then(() => { |
| | | window.open(`${import.meta.env.VITE_APP_BASE_API}/${path}`, '_blank'); |
| | | }).catch(() => { |
| | | console.log('取消预览') |