From 2cba069ff6f6a3f2dd13c9e7708eaf54497a6d7e Mon Sep 17 00:00:00 2001
From: yyb <995253665@qq.com>
Date: 星期三, 15 四月 2026 11:38:55 +0800
Subject: [PATCH] 优化销售台账页面:为产品信息的内联编辑功能添加禁用状态,调整字段宽度,更新结算单片面积的标签,提升用户交互体验和界面一致性
---
src/components/PIMTable/PIMTable.vue | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/src/components/PIMTable/PIMTable.vue b/src/components/PIMTable/PIMTable.vue
index eb0cf87..8e22459 100644
--- a/src/components/PIMTable/PIMTable.vue
+++ b/src/components/PIMTable/PIMTable.vue
@@ -367,11 +367,11 @@
return format(val);
} else return val;
};
+const validTagTypes = ["primary", "success", "info", "warning", "danger"];
const formatType = (val, format) => {
- if (typeof format === "function") {
- return format(val);
- } else return "";
+ const type = typeof format === "function" ? format(val) : undefined;
+ return validTagTypes.includes(type) ? type : undefined;
};
const isOperationDisabled = (operation, row) => {
--
Gitblit v1.9.3