From e12d6d161bad53be3efd03ed50c61a79ac0d14b3 Mon Sep 17 00:00:00 2001 From: lb Date: Mon, 10 Jul 2023 10:57:50 +0800 Subject: [PATCH] add AttachmentDialog --- src/components/attachmentDialog.vue | 107 +++++++++++++++++++++++ src/views/atomViews/ListViewWithHead.vue | 23 +++-- 2 files changed, 124 insertions(+), 6 deletions(-) create mode 100644 src/components/attachmentDialog.vue diff --git a/src/components/attachmentDialog.vue b/src/components/attachmentDialog.vue new file mode 100644 index 0000000..02dd60b --- /dev/null +++ b/src/components/attachmentDialog.vue @@ -0,0 +1,107 @@ + + + + + diff --git a/src/views/atomViews/ListViewWithHead.vue b/src/views/atomViews/ListViewWithHead.vue index e9dbeea..a2c58b7 100644 --- a/src/views/atomViews/ListViewWithHead.vue +++ b/src/views/atomViews/ListViewWithHead.vue @@ -44,6 +44,9 @@ :dialog-visible.sync="carPayloadDialogVisible" :configs="carPayloadDialogConfigs" @refreshDataList="getList" /> + + + { + this.$refs["attachmentDialog"].init(); + }, 300); break; } case "view-blender-batch-details": { @@ -446,11 +456,12 @@ export default { if (shouldShowOverlay) this.overlayVisible = false; }) .catch((errMsg) => { - errMsg !== 'cancel' && this.$message({ - message: errMsg, - type: "error", - duration: 1500, - }); + errMsg !== "cancel" && + this.$message({ + message: errMsg, + type: "error", + duration: 1500, + }); if (shouldShowOverlay) this.overlayVisible = false; }); break;