fix: bug#10540、10885、10818、10566、10418
This commit is contained in:
parent
8c2af7fe76
commit
b8a587fd00
|
@ -61,26 +61,10 @@
|
|||
"
|
||||
:itemType="record.type"
|
||||
:options="
|
||||
record.type === 'enum'
|
||||
? (
|
||||
record?.options
|
||||
?.elements || []
|
||||
).map((item:any) => ({
|
||||
label: item.text,
|
||||
value: item.value,
|
||||
}))
|
||||
: record.type === 'boolean'
|
||||
? [
|
||||
{
|
||||
label: '是',
|
||||
value: true,
|
||||
},
|
||||
{
|
||||
label: '否',
|
||||
value: false,
|
||||
},
|
||||
]
|
||||
: undefined
|
||||
(record?.options || []).map((item:any) => ({
|
||||
label: item.text,
|
||||
value: item.value,
|
||||
}))
|
||||
"
|
||||
/>
|
||||
</j-form-item>
|
||||
|
@ -107,7 +91,10 @@
|
|||
</j-col>
|
||||
<j-col :span="9">
|
||||
<h6>执行结果:</h6>
|
||||
<span :ref="`result${func.id}Ref`" class="execute-result">
|
||||
<span
|
||||
:ref="`result${func.id}Ref`"
|
||||
class="execute-result"
|
||||
>
|
||||
{{ func.executeResult }}
|
||||
</span>
|
||||
</j-col>
|
||||
|
@ -192,7 +179,7 @@ const newFunctions = computed(() => {
|
|||
executeResult: '',
|
||||
});
|
||||
});
|
||||
// console.log('newFunctions: ', result)
|
||||
// console.log('newFunctions: ', result);
|
||||
return result;
|
||||
});
|
||||
|
||||
|
|
|
@ -25,7 +25,14 @@
|
|||
<div class="tool-item" @click.stop="handleRefresh">
|
||||
刷新
|
||||
</div>
|
||||
<div class="tool-item" @click.stop="handleReset">重置</div>
|
||||
<div class="tool-item">
|
||||
<j-popconfirm
|
||||
title="重置将断开直播, 可能会影响其他播放者"
|
||||
@confirm="() => handleReset"
|
||||
>
|
||||
重置
|
||||
</j-popconfirm>
|
||||
</div>
|
||||
</div>
|
||||
<LivePlayer
|
||||
ref="player"
|
||||
|
|
|
@ -45,6 +45,7 @@
|
|||
</PermissionButton>
|
||||
|
||||
<PermissionButton
|
||||
:danger="true"
|
||||
:hasPermission="`${permission}:delete`"
|
||||
type="link"
|
||||
:tooltip="{ title: '删除' }"
|
||||
|
@ -161,6 +162,8 @@ const table = {
|
|||
if (resp.status === 200) {
|
||||
tableRef.value?.reload();
|
||||
message.success('操作成功!');
|
||||
} else {
|
||||
message.error(resp.message);
|
||||
}
|
||||
});
|
||||
},
|
||||
|
|
Loading…
Reference in New Issue