正在显示
5 个修改的文件
包含
17 行增加
和
5 行删除
| @@ -187,7 +187,7 @@ | @@ -187,7 +187,7 @@ | ||
| 187 | @pagination="getList" | 187 | @pagination="getList" |
| 188 | /> | 188 | /> |
| 189 | <el-dialog title="合同预览" :visible.sync="dialogVisibleContract" width="50%" center :before-close="handleClose"> | 189 | <el-dialog title="合同预览" :visible.sync="dialogVisibleContract" width="50%" center :before-close="handleClose"> |
| 190 | - <vue-pdf :src="pdfUrl" type="application/pdf" width="100%" height="800px" /> | 190 | + <embed :src="pdfUrl" type="application/pdf" width="100%" height="800px" /> |
| 191 | </el-dialog> | 191 | </el-dialog> |
| 192 | <!-- 添加或修改合规审查对话框 --> | 192 | <!-- 添加或修改合规审查对话框 --> |
| 193 | <el-dialog :title="title" :visible.sync="open" width="500px" append-to-body> | 193 | <el-dialog :title="title" :visible.sync="open" width="500px" append-to-body> |
| @@ -101,7 +101,8 @@ | @@ -101,7 +101,8 @@ | ||
| 101 | @pagination="getList" | 101 | @pagination="getList" |
| 102 | /> | 102 | /> |
| 103 | <el-dialog title="合同预览" :visible.sync="dialogVisibleContract" width="50%" center :before-close="handleClose" > | 103 | <el-dialog title="合同预览" :visible.sync="dialogVisibleContract" width="50%" center :before-close="handleClose" > |
| 104 | - <pdf :src="pdfUrl" type="application/pdf" width="100%" height="800px" v-if="pdfUrl" /> | 104 | + <embed :src="pdfUrl" type="application/pdf" width="100%" height="800px" v-if="pdfUrl" |
| 105 | + /> | ||
| 105 | </el-dialog> | 106 | </el-dialog> |
| 106 | <!-- 添加或修改【请填写功能名称】对话框 --> | 107 | <!-- 添加或修改【请填写功能名称】对话框 --> |
| 107 | <el-dialog :title="title" :visible.sync="open" width="700px" append-to-body> | 108 | <el-dialog :title="title" :visible.sync="open" width="700px" append-to-body> |
| @@ -193,6 +194,8 @@ export default { | @@ -193,6 +194,8 @@ export default { | ||
| 193 | }, | 194 | }, |
| 194 | data() { | 195 | data() { |
| 195 | return { | 196 | return { |
| 197 | + currentPage: 0, // 页码 | ||
| 198 | + pageCount: 0, // 总页数 | ||
| 196 | headers: { | 199 | headers: { |
| 197 | Authorization: "Bearer " + getToken(), | 200 | Authorization: "Bearer " + getToken(), |
| 198 | }, | 201 | }, |
| @@ -321,6 +324,15 @@ export default { | @@ -321,6 +324,15 @@ export default { | ||
| 321 | this.getList(); | 324 | this.getList(); |
| 322 | }, | 325 | }, |
| 323 | methods: { | 326 | methods: { |
| 327 | + setNumPages(numPages) { | ||
| 328 | + this.numPages = numPages; | ||
| 329 | + for (let i = 1; i <= numPages; i++) { | ||
| 330 | + this.pages.push(i); | ||
| 331 | + } | ||
| 332 | + }, | ||
| 333 | + onPageLoaded(page) { | ||
| 334 | + console.log(`Page ${page} loaded`); | ||
| 335 | + }, | ||
| 324 | 336 | ||
| 325 | handleUploadSealContract(row){ | 337 | handleUploadSealContract(row){ |
| 326 | this.contractnoTemp = row.contractno | 338 | this.contractnoTemp = row.contractno |
| @@ -85,7 +85,7 @@ | @@ -85,7 +85,7 @@ | ||
| 85 | /> | 85 | /> |
| 86 | <!-- 合同预览 --> | 86 | <!-- 合同预览 --> |
| 87 | <el-dialog title="合同预览" :visible.sync="dialogVisibleContract" width="50%" center :before-close="handleClose" > | 87 | <el-dialog title="合同预览" :visible.sync="dialogVisibleContract" width="50%" center :before-close="handleClose" > |
| 88 | - <pdf :src="pdfUrl" type="application/pdf" width="100%" height="800px" v-if="pdfUrl" /> | 88 | + <embed :src="pdfUrl" type="application/pdf" width="100%" height="800px" v-if="pdfUrl" /> |
| 89 | </el-dialog> | 89 | </el-dialog> |
| 90 | <!-- 合同变更 --> | 90 | <!-- 合同变更 --> |
| 91 | <el-dialog :title="title" :visible.sync="open" width="700px" append-to-body> | 91 | <el-dialog :title="title" :visible.sync="open" width="700px" append-to-body> |
| @@ -157,7 +157,7 @@ | @@ -157,7 +157,7 @@ | ||
| 157 | /> | 157 | /> |
| 158 | 158 | ||
| 159 | <el-dialog :visible.sync="dialogVisible" title="合同预览" width="50%"> | 159 | <el-dialog :visible.sync="dialogVisible" title="合同预览" width="50%"> |
| 160 | - <vue-pdf :src="currentFile" /> | 160 | + <embed :src="currentFile" /> |
| 161 | <span slot="footer" class="dialog-footer"> | 161 | <span slot="footer" class="dialog-footer"> |
| 162 | <el-button @click="dialogVisible = false">关闭</el-button> | 162 | <el-button @click="dialogVisible = false">关闭</el-button> |
| 163 | </span> | 163 | </span> |
-
请 注册 或 登录 后发表评论