From ea21f3d4bc9bc240d099e4d0f57c518de90a24c0 Mon Sep 17 00:00:00 2001 From: lb Date: Tue, 12 Dec 2023 16:27:37 +0800 Subject: [PATCH] =?UTF-8?q?add=20=E5=AE=89=E5=85=A8=E8=AE=BE=E5=A4=87?= =?UTF-8?q?=EF=BC=8C=E7=89=B9=E7=A7=8D=E8=AE=BE=E5=A4=87?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/DialogForm/index.vue | 27 +- src/views/specialEquipment/basic/Manage.vue | 498 +++++++++++++++- src/views/specialEquipment/basic/Safety.vue | 498 +++++++++++++++- .../components/AssetsUpload.vue | 399 +++++++++++++ .../components/DialogForm.vue | 313 ++++++++++ .../components/EquipmentDrawer.vue | 550 ++++++++++++++++++ .../components/EquipmentInfoForm.vue | 288 +++++++++ 7 files changed, 2547 insertions(+), 26 deletions(-) create mode 100644 src/views/specialEquipment/components/AssetsUpload.vue create mode 100644 src/views/specialEquipment/components/DialogForm.vue create mode 100644 src/views/specialEquipment/components/EquipmentDrawer.vue create mode 100644 src/views/specialEquipment/components/EquipmentInfoForm.vue diff --git a/src/components/DialogForm/index.vue b/src/components/DialogForm/index.vue index c780edba..3248ce17 100644 --- a/src/components/DialogForm/index.vue +++ b/src/components/DialogForm/index.vue @@ -86,8 +86,8 @@ - + @@ -117,6 +117,7 @@ v-for="file in form[col.prop]" :file="file" :key="file.fileUrl" + :disabled="disabled" @delete="!disabled && handleDeleteFile(file, col.prop)" /> @@ -143,7 +144,7 @@ function findMaxLabelWidth(rows) { if (opt.label.length > max) { max = opt.label.length; if (opt.label.includes('(')) { - max = max - 3 + max = max - 3; } } }); @@ -153,7 +154,7 @@ function findMaxLabelWidth(rows) { const uploadedFile = { name: 'UploadedFile', - props: ['file'], + props: ['file', 'disabled'], data() { return {}; }, @@ -198,13 +199,15 @@ const uploadedFile = { display: 'inline-block', }}> {this.file.fileName} - + {!this.disabled && ( + + )} ); }, @@ -242,7 +245,7 @@ export default { size: { type: String, default: '', - } + }, }, data() { return { diff --git a/src/views/specialEquipment/basic/Manage.vue b/src/views/specialEquipment/basic/Manage.vue index 3c238564..4661cf8b 100644 --- a/src/views/specialEquipment/basic/Manage.vue +++ b/src/views/specialEquipment/basic/Manage.vue @@ -6,19 +6,503 @@ --> diff --git a/src/views/specialEquipment/basic/Safety.vue b/src/views/specialEquipment/basic/Safety.vue index 6abb78b6..25cd5a61 100644 --- a/src/views/specialEquipment/basic/Safety.vue +++ b/src/views/specialEquipment/basic/Safety.vue @@ -6,19 +6,503 @@ --> diff --git a/src/views/specialEquipment/components/AssetsUpload.vue b/src/views/specialEquipment/components/AssetsUpload.vue new file mode 100644 index 00000000..3b9969b0 --- /dev/null +++ b/src/views/specialEquipment/components/AssetsUpload.vue @@ -0,0 +1,399 @@ + + + + + + + diff --git a/src/views/specialEquipment/components/DialogForm.vue b/src/views/specialEquipment/components/DialogForm.vue new file mode 100644 index 00000000..39c16824 --- /dev/null +++ b/src/views/specialEquipment/components/DialogForm.vue @@ -0,0 +1,313 @@ + + + + + + + diff --git a/src/views/specialEquipment/components/EquipmentDrawer.vue b/src/views/specialEquipment/components/EquipmentDrawer.vue new file mode 100644 index 00000000..3c58a5c9 --- /dev/null +++ b/src/views/specialEquipment/components/EquipmentDrawer.vue @@ -0,0 +1,550 @@ + + + + + + + diff --git a/src/views/specialEquipment/components/EquipmentInfoForm.vue b/src/views/specialEquipment/components/EquipmentInfoForm.vue new file mode 100644 index 00000000..926c850a --- /dev/null +++ b/src/views/specialEquipment/components/EquipmentInfoForm.vue @@ -0,0 +1,288 @@ + + + + + + +