From 4b709c7eeafe8dfb3a3f838cbde57d6d12cc96c1 Mon Sep 17 00:00:00 2001
From: zhaojiale <631455805@qq.com>
Date: 星期二, 09 八月 2022 11:03:45 +0800
Subject: [PATCH] 多选下拉树修改

---
 src/components/equipmentDailog/standardDailog.vue |   13 ++++++++-----
 1 files changed, 8 insertions(+), 5 deletions(-)

diff --git a/src/components/equipmentDailog/standardDailog.vue b/src/components/equipmentDailog/standardDailog.vue
index c3b4e7c..a1f901e 100644
--- a/src/components/equipmentDailog/standardDailog.vue
+++ b/src/components/equipmentDailog/standardDailog.vue
@@ -1,5 +1,5 @@
 <template>
-	<el-dialog v-model="dialogVisible" :fullscreen="full" :title="titles" width="50%" draggable>
+	<el-dialog v-model="dialogVisible" :fullscreen="full" :before-close="resetForm" :title="titles" width="50%" draggable>
 		<el-button @click="toggleFullscreen" size="small"  class="pot" :icon="FullScreen"></el-button>
 		<el-form :model="form" label-width="120px" :disabled="disabled">
 			<el-row>
@@ -61,7 +61,7 @@
 			checkContent: '',
 			checkTarget: '',
 			unit: '',
-			checkPart: false,
+			checkPart: "",
 			rate: '',
 		});
 		// 开启弹窗
@@ -74,8 +74,9 @@
 			if (title == '查看') {
 				disabled.value = true;
 				form.value = data;
-			} else {
+			} else if(title=='修改'){
 				disabled.value = false;
+				form.value = data;
 			}
 		};
 		// 开启用户弹窗
@@ -92,9 +93,10 @@
 				checkContent: '',
 				checkTarget: '',
 				unit: '',
-				checkPart: false,
+				checkPart: "",
 				rate: '',
 			};
+			disabled.value = false;
 		};
 		//   取消
 		const resetForm = () => {
@@ -104,9 +106,10 @@
 				checkContent: '',
 				checkTarget: '',
 				unit: '',
-				checkPart: false,
+				checkPart: "",
 				rate: '',
 			};
+			disabled.value = false;
 		};
 		//全屏
 		const full = ref(false);

--
Gitblit v1.9.2