fix: bug#10538

This commit is contained in:
JiangQiming 2023-03-17 15:01:16 +08:00
parent a553cdd191
commit 2050990998
2 changed files with 6 additions and 3 deletions

View File

@ -51,7 +51,7 @@
<h3 class="card-item-content-title"> <h3 class="card-item-content-title">
{{ slotProps.name }} {{ slotProps.name }}
</h3> </h3>
<p>通道数量{{ slotProps.count }}</p> <p>通道数量{{ slotProps.count || 0 }}</p>
<Ellipsis> <Ellipsis>
<j-badge <j-badge
:text="`sip:${slotProps.sipConfigs[0]?.sipId}@${slotProps.sipConfigs[0]?.hostAndPort}`" :text="`sip:${slotProps.sipConfigs[0]?.sipId}@${slotProps.sipConfigs[0]?.hostAndPort}`"
@ -91,6 +91,9 @@
<template #publicHost="slotProps"> <template #publicHost="slotProps">
{{ slotProps.sipConfigs[0]?.publicHost }} {{ slotProps.sipConfigs[0]?.publicHost }}
</template> </template>
<template #count="slotProps">
{{ slotProps.count || 0 }}
</template>
<template #status="slotProps"> <template #status="slotProps">
<j-badge <j-badge
:text="slotProps.status?.text" :text="slotProps.status?.text"
@ -180,6 +183,7 @@ const columns = [
title: '通道数量', title: '通道数量',
dataIndex: 'count', dataIndex: 'count',
key: 'count', key: 'count',
scopedSlots: true,
width: 100, width: 100,
}, },
{ {

View File

@ -24,9 +24,8 @@
</j-form-item> </j-form-item>
<j-row :gutter="24"> <j-row :gutter="24">
<j-col :span="8"> <j-col :span="8">
<JUpload <JProUpload
v-model:modelValue="formData.photoUrl" v-model:modelValue="formData.photoUrl"
:bgImage="formData.photoUrl"
/> />
</j-col> </j-col>
<j-col :span="16"> <j-col :span="16">