|
@ -445,7 +445,7 @@ const open = async (type: string, strategyCode: string, id?: number) => { |
|
|
formData.value.name = data.name |
|
|
formData.value.name = data.name |
|
|
formData.value.description = data.description |
|
|
formData.value.description = data.description |
|
|
formData.value.priority = data.priority |
|
|
formData.value.priority = data.priority |
|
|
formData.value.status = data.status == 1 ? true : false |
|
|
formData.value.status = data.status == 0 ? true : false |
|
|
if (data.condition) { |
|
|
if (data.condition) { |
|
|
formData.value.condition = JSON.parse(data.condition) |
|
|
formData.value.condition = JSON.parse(data.condition) |
|
|
} |
|
|
} |
|
@ -491,7 +491,7 @@ const submitForm = async () => { |
|
|
name: formData.value.name,//名称 |
|
|
name: formData.value.name,//名称 |
|
|
description: formData.value.description,//描述 |
|
|
description: formData.value.description,//描述 |
|
|
priority: formData.value.priority,//优先级 |
|
|
priority: formData.value.priority,//优先级 |
|
|
status: formData.value.status ? 1 : 0,//状态 |
|
|
status: formData.value.status ? 0 : 1,//状态 |
|
|
//规则条件集合 |
|
|
//规则条件集合 |
|
|
condition: JSON.stringify(formData.value.condition), |
|
|
condition: JSON.stringify(formData.value.condition), |
|
|
configuration: JSON.stringify(formData.value.configuration) |
|
|
configuration: JSON.stringify(formData.value.configuration) |
|
|