|
@ -1150,17 +1150,17 @@ const open = async (type: string, strategyCode: string, id?: number) => { |
|
|
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 == 0 ? true : false |
|
|
formData.value.status = data.status == 0 ? true : false |
|
|
if (formData.value.priority == 0) { |
|
|
// if (formData.value.priority == 0) { |
|
|
Butttondata.value = [ |
|
|
// Butttondata.value = [ |
|
|
defaultButtons.formSaveBtn({ disabled: true }), // 保存 |
|
|
// defaultButtons.formSaveBtn({ disabled: true }), // 保存 |
|
|
defaultButtons.formCloseBtn(null) // 关闭 |
|
|
// defaultButtons.formCloseBtn(null) // 关闭 |
|
|
] |
|
|
// ] |
|
|
} else { |
|
|
// } else { |
|
|
Butttondata.value = [ |
|
|
Butttondata.value = [ |
|
|
defaultButtons.formSaveBtn(null), // 保存 |
|
|
defaultButtons.formSaveBtn(null), // 保存 |
|
|
defaultButtons.formCloseBtn(null) // 关闭 |
|
|
defaultButtons.formCloseBtn(null) // 关闭 |
|
|
] |
|
|
] |
|
|
} |
|
|
// } |
|
|
if (data.condition) { |
|
|
if (data.condition) { |
|
|
formData.value.condition = JSON.parse(data.condition) |
|
|
formData.value.condition = JSON.parse(data.condition) |
|
|
formData.value.condition.forEach((item, index) => { |
|
|
formData.value.condition.forEach((item, index) => { |
|
|