From 813bab524f7803987043b072157259fbdceb6228 Mon Sep 17 00:00:00 2001 From: zouyu <2723363702@qq.com> Date: 星期一, 11 十二月 2023 17:41:20 +0800 Subject: [PATCH] modified: src/views/plan/manufacturingorder/index.vue --- src/views/quality/exception/exception.vue | 9 +++++++-- 1 files changed, 7 insertions(+), 2 deletions(-) diff --git a/src/views/quality/exception/exception.vue b/src/views/quality/exception/exception.vue index 9f502eb..8381c98 100644 --- a/src/views/quality/exception/exception.vue +++ b/src/views/quality/exception/exception.vue @@ -53,6 +53,9 @@ @refreshDataList="getData" ></table-form> </div> + <el-dialog title="鍥剧墖棰勮" width="60%" :visible.sync="previewVisible" top="5vh"> + <img style="width:100%;height: 70vh" :src="dialogImageUrl" alt=""> + </el-dialog> </div> </template> <style lang="scss" scoped> @@ -111,6 +114,8 @@ }, data() { return { + previewVisible: false, + dialogImageUrl: null, fileList: [], headers: { Authorization: 'Bearer ' + getStore({ name: 'access_token' }) @@ -293,7 +298,7 @@ } }, handlePreview(file) { - window.open(file.url) + this.previewVisible = true }, uploadSuccess(response, file, fileList) { this.getFileList() @@ -312,6 +317,7 @@ fileEl = {} fileEl.name = attachment.original fileEl.url = attachment.url + this.dialogImageUrl = attachment.url fileEl.id = attachment.id fileEl.fileName = attachment.fileName this.fileList.push(fileEl) @@ -322,7 +328,6 @@ }, submitUpload(file) { console.info(this.currentRow && this.currentRow.id) - console.log(file); if (this.currentRow && this.currentRow.id) { const maxSize = 5 * 1024 *1024 let jpgType = 'image/jpeg' -- Gitblit v1.9.3