From a7f1016f4cb963be3e67ff8c26bdeae37686b2fc Mon Sep 17 00:00:00 2001 From: 王震 <10952869+daywangzhen@user.noreply.gitee.com> Date: 星期四, 07 十二月 2023 10:54:44 +0800 Subject: [PATCH] modified: src/views/plan/manufacturingorder/index.vue modified: vue.config.js --- 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