| | |
| | | </el-dialog> |
| | | <!--预览报告--> |
| | | <el-dialog :visible.sync="lookDialogVisible" fullscreen title="查看附件" top="5vh" width="800px"> |
| | | <filePreview v-if="lookDialogVisible" :currentFile="{}" |
| | | <filePreview v-if="lookDialogVisible" :currentFile="{}" :option="option" |
| | | :fileUrl="javaApi + '/word/' + currentInfo.finishReportUrl" style="height: 70vh;overflow-y: auto;" /> |
| | | <div> |
| | | 批准状态: |
| | |
| | | <div style="margin: 0 auto;"> |
| | | <el-upload ref="upload1" :action="action1" :auto-upload="false" |
| | | :data="{ qualityMonitorDetailsId: qualityMonitorDetailsId }" :file-list="fileList1" :headers="uploadHeader" |
| | | :limit="1" :on-change="beforeUpload1" :on-error="onError1" :on-success="onSuccess1" accept='.doc,.docx' drag |
| | | :limit="1" :on-change="beforeUpload1" :on-error="onError1" :on-success="onSuccess1" accept='.doc,.docx,application/pdf,' drag |
| | | name="file"> |
| | | <i class="el-icon-upload"></i> |
| | | <div class="el-upload__text">将文件拖到此处,或<em>点击上传</em></div> |
| | |
| | | ratifyRemark: '', |
| | | downloadDialog: false, |
| | | download: {}, |
| | | planYear: '' |
| | | planYear: '', |
| | | option: {} |
| | | }; |
| | | }, |
| | | mounted() { |
| | |
| | | if (row.finishReportUrl) { |
| | | this.currentInfo = row |
| | | this.ratifyStatus = row.ratifyStatus |
| | | const userName = this.nickName |
| | | const isPdf = /\.pdf$/i.test(row.finishReportUrl) |
| | | if (isPdf) { |
| | | this.option = { |
| | | url: this.javaApi + "/word/" + row.finishReportUrl, |
| | | isEdit: false, |
| | | fileType: 'pdf', |
| | | title: '报告', |
| | | lang: 'zh-CN', |
| | | isPrint: false, |
| | | user_id: 1, |
| | | user_name: userName, |
| | | editUrl: this.javaApi + "/insReport/onlyOffice/save?fileName=" + row.finishReportUrl |
| | | } |
| | | } else { |
| | | this.option = {} |
| | | } |
| | | this.lookDialogVisible = true |
| | | } else { |
| | | this.uploadDia1 = true |
| | |
| | | }, |
| | | // 用于上传文件的信息 |
| | | computed: { |
| | | ...mapGetters(["userId"]), |
| | | ...mapGetters(["userId", "nickName"]), |
| | | action() { |
| | | return this.javaApi + '/qualityMonitor/importQualityMonitor' |
| | | }, |