From c717c8fb4f9d99f28f33cc086d18c7d3532262eb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=A0=82=E7=B3=96?= Date: Sat, 6 Dec 2025 10:24:19 +0800 Subject: [PATCH] =?UTF-8?q?feat(CheckItemSelect):=20=E4=BC=98=E5=8C=96?= =?UTF-8?q?=E6=A3=80=E9=AA=8C=E6=96=B9=E6=A1=88=E9=80=89=E6=8B=A9=E7=BB=84?= =?UTF-8?q?=E4=BB=B6=E6=A0=B7=E5=BC=8F=E5=92=8C=E5=8A=9F=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 调整弹窗宽度并简化表单结构 - 添加分页功能支持 - 修改按钮文字为"选择预设检验方案"以更明确功能 - 统一错误提示方式 --- .../KLPService/CheckItemSelect/index.vue | 22 +++++++++++-------- 1 file changed, 13 insertions(+), 9 deletions(-) diff --git a/klp-ui/src/components/KLPService/CheckItemSelect/index.vue b/klp-ui/src/components/KLPService/CheckItemSelect/index.vue index 1292a080..673262fc 100644 --- a/klp-ui/src/components/KLPService/CheckItemSelect/index.vue +++ b/klp-ui/src/components/KLPService/CheckItemSelect/index.vue @@ -12,23 +12,25 @@ + - 选择模版 - - - - - - + + + + + @@ -57,6 +59,7 @@ export default { key: "itemId", // 唯一标识字段 label: "itemName" // 显示文本字段 }, + total: 0, // 数据加载状态 loading: false, templateList: [], @@ -135,9 +138,10 @@ export default { this.open = true; const response = await listInspectionItemTemplate(this.queryParams); this.inspectionItemTemplateList = response.rows || []; + this.total = response.total || 0; } catch (error) { if (this.$modal) { - this.$message.error("加载待检项方案列表失败"); + this.$modal.msgError("加载待检项方案列表失败"); } else if (this.$message) { this.$message.error("加载待检项方案列表失败"); }