fix: bug#10540、10885、10818、10566、10418
This commit is contained in:
parent
8c2af7fe76
commit
b8a587fd00
|
@ -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;
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
|
@ -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"
|
||||||
|
|
|
@ -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);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in New Issue