From 2f389328789b81de7d7c93c0c8e74f3a58b56fad Mon Sep 17 00:00:00 2001
From: 2256907009 <2256907009@qq.com>
Date: Thu, 5 Feb 2026 17:00:39 +0800
Subject: [PATCH] =?UTF-8?q?feate:=E6=B7=BB=E5=8A=A0=E5=88=9B=E5=BB=BA?=
=?UTF-8?q?=E5=8F=82=E6=95=B0=E7=9A=84=E5=BF=85=E9=80=89=E5=8F=82=E6=95=B0?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/views/product/ProductList.vue | 15 ++++++++++++++-
1 file changed, 14 insertions(+), 1 deletion(-)
diff --git a/src/views/product/ProductList.vue b/src/views/product/ProductList.vue
index a93b271..149e0ad 100644
--- a/src/views/product/ProductList.vue
+++ b/src/views/product/ProductList.vue
@@ -325,6 +325,15 @@
选择
+
+
+
数值参数配置
@@ -1335,6 +1344,7 @@ const paramForm = reactive({
arg_id: undefined,
arg_name: '',
arg_type: 'string',
+ must: false,
arg_step: 1,
arg_min: 0,
arg_max: 100
@@ -1415,6 +1425,7 @@ const handleAddParameter = () => {
arg_id: undefined,
arg_name: '',
arg_type: 'string',
+ must: false,
arg_step: 1,
arg_min: 0,
arg_max: 100
@@ -1432,6 +1443,7 @@ const handleEditParameter = (row) => {
arg_id: row.id,
arg_name: row.name,
arg_type: row.type,
+ must: row.must || false,
arg_step: row.step || 1,
arg_min: row.min || 0,
arg_max: row.max || 100
@@ -1463,7 +1475,8 @@ const submitParamForm = () => {
const submitData = {
good_id: Number(currentProductId.value),
arg_name: paramForm.arg_name,
- arg_type: paramForm.arg_type
+ arg_type: paramForm.arg_type,
+ must: paramForm.must === true
}
// number 类型添加额外参数
if (paramForm.arg_type === 'number') {