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') {