From a43becd99dec4696ed629b9f549819b7d788a022 Mon Sep 17 00:00:00 2001
From: maven <2163098428@qq.com>
Date: 星期六, 11 十月 2025 13:38:27 +0800
Subject: [PATCH] yys 修改是否为耗材字段名称
---
src/views/archiveManagement/mould/archiveDialog.vue | 10 +++++-----
1 files changed, 5 insertions(+), 5 deletions(-)
diff --git a/src/views/archiveManagement/mould/archiveDialog.vue b/src/views/archiveManagement/mould/archiveDialog.vue
index 55c359c..d60cd84 100644
--- a/src/views/archiveManagement/mould/archiveDialog.vue
+++ b/src/views/archiveManagement/mould/archiveDialog.vue
@@ -68,6 +68,7 @@
};
// 鍒濆鍖栬〃鍗曟暟鎹殑杈呭姪鍑芥暟
const initFormData = (rowData) => {
+ console.log("rowData", rowData);
if (rowData && rowData.id) {
return copyFormData(rowData);
}
@@ -97,9 +98,12 @@
type: [{required: true, message: "璇烽�夋嫨鏂囨。绫诲瀷", trigger: "blur"}],
status: [{required: true, message: "璇烽�夋嫨鏂囨。鐘舵��", trigger: "blur"}],
};
+const initTreeDataId = ref(null);
const fileUploadRef = ref(null);
-const initForm = () => {
+const initForm = (val) => {
+ initTreeDataId.value = val.id || null; // 纭繚 initTreeDataId 鍒濆鍖栦负 null
ruleForm.value = {};
+ ruleForm.value.treeId = val.id || null; // 纭繚 treeId 鍒濆鍖栦负 null
nextTick(() => {
fileUploadRef.value.init();
});
@@ -142,10 +146,6 @@
});
return;
}
- // 鍙戦�� emit 浜嬩欢
-
- // 鍏抽棴瀵硅瘽妗�
- ElMessage.success("鎿嶄綔鎴愬姛");
centerDialogVisible.value = false;
} catch (error) {
ElMessage({
--
Gitblit v1.9.3