diff --git a/src/components/DialogForm/index.vue b/src/components/DialogForm/index.vue
index b0d57759..e95c6251 100644
--- a/src/components/DialogForm/index.vue
+++ b/src/components/DialogForm/index.vue
@@ -190,6 +190,10 @@ export default {
type: Boolean,
default: false,
},
+ hasFile: {
+ type: Boolean,
+ default: false,
+ },
labelPosition: {
type: String,
default: 'right',
@@ -232,7 +236,9 @@ export default {
dataForm: {
handler(val) {
this.form = JSON.parse(JSON.stringify(val));
- this.form.files = this.form.files ?? [];
+ if (this.hasFile) {
+ this.form.files = this.form.files ?? [];
+ }
},
deep: true,
immediate: true,
diff --git a/src/views/base/equipmentGroup/index.vue b/src/views/base/equipmentGroup/index.vue
index f3509adc..fb06472d 100644
--- a/src/views/base/equipmentGroup/index.vue
+++ b/src/views/base/equipmentGroup/index.vue
@@ -38,7 +38,7 @@
@close="cancel"
@cancel="cancel"
@confirm="submitForm">
-
+
diff --git a/src/views/core/base/equipment/index.vue b/src/views/core/base/equipment/index.vue
index ae2b9ced..597c45c4 100644
--- a/src/views/core/base/equipment/index.vue
+++ b/src/views/core/base/equipment/index.vue
@@ -44,8 +44,9 @@
ref="form"
label-position="top"
size="small"
- :dataForm="form"
- :rows="computedRows" />
+ v-model="form"
+ :rows="computedRows"
+ :has-file="true" />
diff --git a/src/views/core/base/equipmentType/index.vue b/src/views/core/base/equipmentType/index.vue
index 65ddf6cb..eaa24895 100644
--- a/src/views/core/base/equipmentType/index.vue
+++ b/src/views/core/base/equipmentType/index.vue
@@ -37,7 +37,12 @@
@close="cancel"
@cancel="cancel"
@confirm="submitForm">
-
+