fix: bug#10540、10885、10818、10566、10418

This commit is contained in:
JiangQiming 2023-03-24 16:31:24 +08:00
parent 8c2af7fe76
commit b8a587fd00
3 changed files with 20 additions and 23 deletions

View File

@ -61,26 +61,10 @@
" "
:itemType="record.type" :itemType="record.type"
:options=" :options="
record.type === 'enum' (record?.options || []).map((item:any) => ({
? ( label: item.text,
record?.options value: item.value,
?.elements || [] }))
).map((item:any) => ({
label: item.text,
value: item.value,
}))
: record.type === 'boolean'
? [
{
label: '是',
value: true,
},
{
label: '否',
value: false,
},
]
: undefined
" "
/> />
</j-form-item> </j-form-item>
@ -107,7 +91,10 @@
</j-col> </j-col>
<j-col :span="9"> <j-col :span="9">
<h6>执行结果</h6> <h6>执行结果</h6>
<span :ref="`result${func.id}Ref`" class="execute-result"> <span
:ref="`result${func.id}Ref`"
class="execute-result"
>
{{ func.executeResult }} {{ func.executeResult }}
</span> </span>
</j-col> </j-col>
@ -192,7 +179,7 @@ const newFunctions = computed(() => {
executeResult: '', executeResult: '',
}); });
}); });
// console.log('newFunctions: ', result) // console.log('newFunctions: ', result);
return result; return result;
}); });

View File

@ -25,7 +25,14 @@
<div class="tool-item" @click.stop="handleRefresh"> <div class="tool-item" @click.stop="handleRefresh">
刷新 刷新
</div> </div>
<div class="tool-item" @click.stop="handleReset">重置</div> <div class="tool-item">
<j-popconfirm
title="重置将断开直播, 可能会影响其他播放者"
@confirm="() => handleReset"
>
重置
</j-popconfirm>
</div>
</div> </div>
<LivePlayer <LivePlayer
ref="player" ref="player"

View File

@ -45,6 +45,7 @@
</PermissionButton> </PermissionButton>
<PermissionButton <PermissionButton
:danger="true"
:hasPermission="`${permission}:delete`" :hasPermission="`${permission}:delete`"
type="link" type="link"
:tooltip="{ title: '删除' }" :tooltip="{ title: '删除' }"
@ -161,6 +162,8 @@ const table = {
if (resp.status === 200) { if (resp.status === 200) {
tableRef.value?.reload(); tableRef.value?.reload();
message.success('操作成功!'); message.success('操作成功!');
} else {
message.error(resp.message);
} }
}); });
}, },