From be027530e123c33560a7c18af815ece1465816f7 Mon Sep 17 00:00:00 2001 From: zouyu <2723363702@qq.com> Date: 星期二, 21 十一月 2023 12:54:47 +0800 Subject: [PATCH] modified: src/views/quality/exception/exception.vue --- src/views/quality/exception/exception.vue | 8 +++++++- 1 files changed, 7 insertions(+), 1 deletions(-) diff --git a/src/views/quality/exception/exception.vue b/src/views/quality/exception/exception.vue index 9f502eb..0c49eae 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) -- Gitblit v1.9.3