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 @@ + + + + + + +