From 7e0e9927ea3d73c8c21c21e7a49b44205e2d36e1 Mon Sep 17 00:00:00 2001
From: xueyinfei <1207092115@qq.com>
Date: Mon, 25 Aug 2025 14:23:13 +0800
Subject: [PATCH] =?UTF-8?q?=E5=85=83=E6=95=B0=E6=8D=AE=E6=A0=87=E7=AD=BE?=
=?UTF-8?q?=E8=AE=A1=E7=AE=97=E9=85=8D=E7=BD=AE?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../views/metadataConfig/metaclas/index.vue | 28 +++++++++++++++++--
1 file changed, 26 insertions(+), 2 deletions(-)
diff --git a/vue-fastapi-frontend/src/views/metadataConfig/metaclas/index.vue b/vue-fastapi-frontend/src/views/metadataConfig/metaclas/index.vue
index 5ca7d15..ef0137a 100644
--- a/vue-fastapi-frontend/src/views/metadataConfig/metaclas/index.vue
+++ b/vue-fastapi-frontend/src/views/metadataConfig/metaclas/index.vue
@@ -94,6 +94,14 @@
placeholder="只能输入数字"
>
+
+
+
+
+
+
+
+
取消
@@ -116,6 +124,14 @@
placeholder="只能输入数字"
>
+
+
+
+
+
+
+
+
取消
@@ -202,11 +218,15 @@ const clasFormRef3 = ref(null); // 字段处理类型 formRef
const form1 = ref({
datatype: "",
ratio: null,
+ ssysId: undefined,
+ mdlName: "",
});
const form2 = ref({
regexName: "",
regexPattern: "",
ratio: null,
+ ssysId: undefined,
+ mdlName: "",
});
const form3 = ref({
opType: "",
@@ -312,7 +332,9 @@ function handleSearch() {
// ===== 值类型弹窗处理 =====
function openAddDialog1() {
title.value = "新增值类型参数";
- Object.assign(form1.value, { datatype: "", ratio: null });
+ Object.assign(form1.value, { datatype: "", ratio: null,
+ ssysId: queryForm.ssysId,
+ mdlName: queryForm.mdlName, });
open1.value = true;
}
function openEditDialog1(row) {
@@ -328,7 +350,7 @@ function openEditDialog1(row) {
function submitForm1() {
clasFormRef1.value.validate(async (valid) => {
if (!valid) return;
- const submitData = { ...form1.value,ssysId:queryForm.ssysId,mdlName:queryForm.mdlName };
+ const submitData = { ...form1.value};
try {
if (title.value.includes("新增")) {
await addDatatypeLabel(submitData);
@@ -378,6 +400,8 @@ function openAddDialog2() {
regexName: "",
regexPattern: "",
ratio: null,
+ ssysId: queryForm.ssysId,
+ mdlName: queryForm.mdlName,
});
open2.value = true;
}