Merge branch 'dev' of http://39.105.222.208:1024/compliance_management/ruoyi-ui into dev
正在显示
7 个修改的文件
包含
20 行增加
和
9 行删除
| @@ -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> |
| @@ -267,10 +267,10 @@ export default { | @@ -267,10 +267,10 @@ export default { | ||
| 267 | // 假设后端返回的数据结构中有一个字段 url 表示文件地址 | 267 | // 假设后端返回的数据结构中有一个字段 url 表示文件地址 |
| 268 | const fileUrl = response.data.fileNames; | 268 | const fileUrl = response.data.fileNames; |
| 269 | // 将文件地址或文件名赋值给表单的字段 | 269 | // 将文件地址或文件名赋值给表单的字段 |
| 270 | - this.form.templatefile =fileUrl; | 270 | + this.form.attachments =fileUrl; |
| 271 | }, | 271 | }, |
| 272 | handleRemove(file, fileList) { | 272 | handleRemove(file, fileList) { |
| 273 | - this.form.templatefile='' | 273 | + this.form.attachments='' |
| 274 | console.log(file, fileList); | 274 | console.log(file, fileList); |
| 275 | }, | 275 | }, |
| 276 | handlePreview(file) { | 276 | handlePreview(file) { |
| @@ -295,7 +295,6 @@ export default { | @@ -295,7 +295,6 @@ export default { | ||
| 295 | // console.log(this.formData) | 295 | // console.log(this.formData) |
| 296 | if (valid) { | 296 | if (valid) { |
| 297 | console.log("===", this.form); | 297 | console.log("===", this.form); |
| 298 | - this.form.attachments = this.fileList[0].name; | ||
| 299 | // return | 298 | // return |
| 300 | addAndStart(this.form).then((response) => { | 299 | addAndStart(this.form).then((response) => { |
| 301 | this.$modal.msgSuccess("流程启动成功"); | 300 | this.$modal.msgSuccess("流程启动成功"); |
| @@ -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 |
| @@ -402,8 +402,8 @@ export default { | @@ -402,8 +402,8 @@ export default { | ||
| 402 | this.$refs["elForm"].validate((valid) => { | 402 | this.$refs["elForm"].validate((valid) => { |
| 403 | // console.log(this.formData) | 403 | // console.log(this.formData) |
| 404 | if (valid) { | 404 | if (valid) { |
| 405 | - console.log("===", this.formData); | ||
| 406 | this.formData.attachments = this.fileList[0].name; | 405 | this.formData.attachments = this.fileList[0].name; |
| 406 | + console.log("===", this.formData); | ||
| 407 | // return | 407 | // return |
| 408 | addAndStart(this.formData).then((response) => { | 408 | addAndStart(this.formData).then((response) => { |
| 409 | this.$modal.msgSuccess("流程启动成功"); | 409 | this.$modal.msgSuccess("流程启动成功"); |
| @@ -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> |
-
请 注册 或 登录 后发表评论