From 126586f6636d11a3c5068480b29593f9257f66eb Mon Sep 17 00:00:00 2001
From: A0066811 <961502390@qq.com>
Date: Fri, 7 Nov 2025 14:55:26 +0800
Subject: [PATCH] =?UTF-8?q?hgwms-2098=20fix=20=E7=A7=9F=E6=88=B7=E7=AE=A1?=
=?UTF-8?q?=E7=90=86=E5=BC=B9=E7=AA=97=E4=BF=AE=E6=94=B9?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/view/tenant/modal/edit.vue | 79 +++++++++++++++++++---------------
src/view/tenant/modal/give.vue | 64 +++++++++++++--------------
src/view/tenant/modal/info.vue | 45 +++++++++++--------
src/view/tenant/modal/save.vue | 16 +++----
4 files changed, 110 insertions(+), 94 deletions(-)
diff --git a/src/view/tenant/modal/edit.vue b/src/view/tenant/modal/edit.vue
index 5212bed..20e9434 100644
--- a/src/view/tenant/modal/edit.vue
+++ b/src/view/tenant/modal/edit.vue
@@ -11,19 +11,25 @@
ref="formRef"
:model="formState"
:rules="formRules"
- :label-col="labelCol"
- :wrapper-col="wrapperCol">
-
-
-
-
-
-
+ layout="vertical"
+ >
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
+
diff --git a/src/view/tenant/modal/give.vue b/src/view/tenant/modal/give.vue
index 1bb8754..a0e9f1d 100644
--- a/src/view/tenant/modal/give.vue
+++ b/src/view/tenant/modal/give.vue
@@ -1,21 +1,19 @@
-
-
-
+
+
+
+ 取消
+ 保存
+
+
\ No newline at end of file
+
diff --git a/src/view/tenant/modal/info.vue b/src/view/tenant/modal/info.vue
index 7d4dee4..147081b 100644
--- a/src/view/tenant/modal/info.vue
+++ b/src/view/tenant/modal/info.vue
@@ -11,14 +11,20 @@
ref="formRef"
:model="formState"
:rules="formRules"
- :label-col="labelCol"
- :wrapper-col="wrapperCol">
-
-
-
-
-
-
+ layout="vertical"
+ >
+
+
+
+
+
+
+
+
+
+
+
+
@@ -33,25 +39,26 @@ export default defineComponent({
},
record: {
type: Object,
- }
+ },
},
emit: ["close"],
setup(props, context) {
-
const formRef = ref();
-
+
let formState = reactive({});
const formRules = {
name: [{ required: true, message: "请输入租户名称", trigger: "blur" }],
- describe: [{ required: true, message: "请输入租户描述", trigger: "blur" }],
+ describe: [
+ { required: true, message: "请输入租户描述", trigger: "blur" },
+ ],
};
- watch(props,(props) => {
- formState.id = props.record.id
- formState.name = props.record.name
- formState.describe = props.record.describe
- })
+ watch(props, (props) => {
+ formState.id = props.record.id;
+ formState.name = props.record.name;
+ formState.describe = props.record.describe;
+ });
const submit = (e) => {
formRef.value.resetFields();
@@ -69,10 +76,10 @@ export default defineComponent({
formRef,
formState,
formRules,
-
+
labelCol: { span: 6 },
wrapperCol: { span: 18 },
};
},
});
-
\ No newline at end of file
+
diff --git a/src/view/tenant/modal/save.vue b/src/view/tenant/modal/save.vue
index 91a2eba..b39c461 100644
--- a/src/view/tenant/modal/save.vue
+++ b/src/view/tenant/modal/save.vue
@@ -1,18 +1,14 @@
-
@@ -43,7 +39,11 @@
-
+
+ 取消
+ 提交
+
+