Add displayName field only, no other changes, v1.0.19

This commit is contained in:
2026-07-24 09:14:18 +04:00
parent 981ec66a9a
commit 46af9bb7fa
2 changed files with 5 additions and 3 deletions
+4 -2
View File
@@ -144,7 +144,9 @@ async function selectOperation(opId,opName,svcId){
const params=await r.json();
const form=document.getElementById('params-form');
form.innerHTML=params.map(p=>{
const displayName='autotest-'+svcId+'-'+Date.now().toString(36);
form.innerHTML='<div class="param-row"><label class="req">displayName</label><input type="text" id="param-displayname" value="'+displayName+'"></div>'
+ params.map(p=>{
const req=p.isRequired;
const hasDfl=p.defaultValue!==null&&p.defaultValue!==undefined&&p.defaultValue!=='';
const labelCls=req?(hasDfl?'req':'req-nodfl'):'';
@@ -187,7 +189,7 @@ async function runTest(){
svcOperationId:selectedOp.opId,
params,
instanceUid:instUid,
displayName:'autotest-'+selectedOp.svcId
displayName:document.getElementById('param-displayname')?.value||('autotest-'+selectedOp.svcId)
})});
const d=await r.json();
const cls=d.status==='OK'?'badge badge-success':'badge';