From e04c8dab8e435cabf1360bbcd6936e5ac9e77906 Mon Sep 17 00:00:00 2001
From: shj <1790240199@qq.com>
Date: Mon, 08 Aug 2022 16:46:47 +0800
Subject: [PATCH] Merge branch 'master' of https://sinanoaq.cn:8888/r/gtqtOut
---
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