From 00343fa5b9e4bfbd5acd980444e05e639cc244d3 Mon Sep 17 00:00:00 2001 From: g7hoo Date: Fri, 12 Aug 2022 14:48:36 +0800 Subject: [PATCH] init upload --- src/components/base-dialog/addOrUpdate/index.vue | 3 ++- src/components/base-upload/index.vue | 9 +++++++++ src/views/modules/monitoring/equipmentType.vue | 10 +++++++++- 3 files changed, 20 insertions(+), 2 deletions(-) create mode 100644 src/components/base-upload/index.vue diff --git a/src/components/base-dialog/addOrUpdate/index.vue b/src/components/base-dialog/addOrUpdate/index.vue index 1df1347..5251e1f 100644 --- a/src/components/base-dialog/addOrUpdate/index.vue +++ b/src/components/base-dialog/addOrUpdate/index.vue @@ -45,7 +45,8 @@ diff --git a/src/components/base-upload/index.vue b/src/components/base-upload/index.vue new file mode 100644 index 0000000..f873be0 --- /dev/null +++ b/src/components/base-upload/index.vue @@ -0,0 +1,9 @@ + + + \ No newline at end of file diff --git a/src/views/modules/monitoring/equipmentType.vue b/src/views/modules/monitoring/equipmentType.vue index 0ebe2b9..85d6416 100644 --- a/src/views/modules/monitoring/equipmentType.vue +++ b/src/views/modules/monitoring/equipmentType.vue @@ -79,7 +79,15 @@ const addOrUpdateConfigs = { { name: 'save', url: '/monitoring/equipmentType', permission: '', showOnEdit: false }, { name: 'update', url: '/monitoring/equipmentType', permission: '', showOnEdit: true } ], - extraComponents: null + extraComponents: [ + { + name: 'file-upload-key', + label: '上传资料', + component: null, + props: { // 上传组件需要的 props + } + } + ] } export default {