Merge branch 'master' of https://gitlab.s1f.top/lin/ApiServer-Web-admin_dashboard_pc
Build and Deploy Vue3 / build (push) Successful in 1m29s
Build and Deploy Vue3 / deploy (push) Successful in 6m21s

This commit is contained in:
2025-12-30 14:22:52 +08:00
10 changed files with 2199 additions and 1239 deletions
+16 -4
View File
@@ -706,7 +706,10 @@ const paramValueForm = reactive({
attr_id: undefined,
attr_name: '',
attr_value: '',
attr_price: 0
attr_price: 0,
index: 0,
attr_range: 0,
range_type: 'equal'
})
const paramValueRules = {
@@ -853,7 +856,10 @@ const handleAddParamValue = () => {
attr_id: undefined,
attr_name: '',
attr_value: '',
attr_price: 0
attr_price: 0,
index: 0,
attr_range: 0,
range_type: 'equal'
})
paramValueFormRef.value?.resetFields()
}
@@ -866,7 +872,10 @@ const handleEditParamValue = (row) => {
attr_id: row.id,
attr_name: row.name,
attr_value: row.value,
attr_price: row.price / 100
attr_price: row.price / 100,
index: row.index || 0,
attr_range: row.attr_range || 0,
range_type: row.range_type || 'equal'
})
}
@@ -900,7 +909,10 @@ const submitParamValueForm = () => {
arg_id: Number(currentParam.value.id),
attr_name: paramValueForm.attr_name,
attr_value: paramValueForm.attr_value,
attr_price: paramValueForm.attr_price
attr_price: paramValueForm.attr_price,
index: Number(paramValueForm.index),
attr_range: Number(paramValueForm.attr_range),
range_type: paramValueForm.range_type
}
if (paramValueFormType.value === 'edit') {
submitData.attr_id = paramValueForm.attr_id