Commit fa818f293dac924d7eae36f938c7a7c67ced1c30
1 parent
b4a0875b
fix: DEFECT-1619 新增里面的测试和启用后的测试转换脚本时,如果该脚本为上行解析,则设备鉴权不可点击,反之则一样
Showing
2 changed files
with
9 additions
and
2 deletions
... | ... | @@ -323,7 +323,7 @@ |
323 | 323 | }; |
324 | 324 | |
325 | 325 | const setDisableRadio = (value) => { |
326 | - reportTypeOptions.scriptTypeOptions.forEach((item: any) => { | |
326 | + unref(reportTypeOptions.scriptTypeOptions).forEach((item: any) => { | |
327 | 327 | if (item.value === value) item.disabled = false; |
328 | 328 | else item.disabled = true; |
329 | 329 | }); | ... | ... |
... | ... | @@ -56,7 +56,14 @@ |
56 | 56 | if (!data.innerTest) { |
57 | 57 | const rest = await getScriptManageDetail(data.record?.id); |
58 | 58 | converScriptFormRef.value?.setFormData(rest); |
59 | - } else converScriptFormRef.value?.setFormData(data.record); | |
59 | + if (data.text !== BusinessConvertScriptTextEnum.BUSINESS_EDIT_TEXT) { | |
60 | + //编辑是不能禁用脚本类型的 | |
61 | + converScriptFormRef.value?.setDisableRadio(data.record.scriptType); | |
62 | + } | |
63 | + } else { | |
64 | + //从新增页面里点击的测试 | |
65 | + converScriptFormRef.value?.setFormData(data.record); | |
66 | + } | |
60 | 67 | if (data.scriptType) { |
61 | 68 | converScriptFormRef.value?.setDisableRadio(data.scriptType); |
62 | 69 | } | ... | ... |