|
@ -26,12 +26,12 @@ |
|
|
</el-col> |
|
|
</el-col> |
|
|
<el-col :span="24"> |
|
|
<el-col :span="24"> |
|
|
<el-form-item :label="t('ts.名称').replace('ts.','')" prop="name"> |
|
|
<el-form-item :label="t('ts.名称').replace('ts.','')" prop="name"> |
|
|
<el-input key="name" v-model="formData.name" :placeholder="t('ts.请输入名称').replace('ts.','')" clearable /> |
|
|
<el-input key="name" v-model="formData.name" :placeholder="t('ts.请输入名称').replace('ts.','')" clearable :disabled="formData.name=='默认规则'&&formType=='update'"/> |
|
|
</el-form-item> |
|
|
</el-form-item> |
|
|
</el-col> |
|
|
</el-col> |
|
|
<el-col :span="24"> |
|
|
<el-col :span="24"> |
|
|
<el-form-item :label="t('ts.描述').replace('ts.','')" prop="description"> |
|
|
<el-form-item :label="t('ts.描述').replace('ts.','')" prop="description"> |
|
|
<el-input key="description" v-model="formData.description" :placeholder="t('ts.请输入描述').replace('ts.','')" clearable /> |
|
|
<el-input key="description" v-model="formData.description" :placeholder="t('ts.请输入描述').replace('ts.','')" clearable :disabled="formData.name=='默认规则'&&formType=='update'"/> |
|
|
</el-form-item> |
|
|
</el-form-item> |
|
|
</el-col> |
|
|
</el-col> |
|
|
<el-col :span="12"> |
|
|
<el-col :span="12"> |
|
@ -459,17 +459,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) => { |
|
|