2025-01-20 01:42:19 +00:00
|
|
|
|
// import { h } from 'vue'
|
|
|
|
|
import { NDataTable, NInputNumber, NSwitch } from 'naive-ui'
|
|
|
|
|
import { useModal } from '@/views/Content/hooks/modal'
|
2025-01-23 01:05:13 +00:00
|
|
|
|
import Detection from '@/views/Payload/Detection.jsx'
|
|
|
|
|
import Communication from '@/views/Payload/Communication.jsx'
|
|
|
|
|
|
2025-01-20 01:42:19 +00:00
|
|
|
|
const { openDetailsModal } = useModal()
|
|
|
|
|
export const useMubiaoDetail = () => {
|
|
|
|
|
return { showDetailsMubiao }
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
const data = ref([
|
|
|
|
|
{
|
|
|
|
|
id: 3,
|
|
|
|
|
radius: 5000,
|
|
|
|
|
minimumClock: 20.0,
|
|
|
|
|
maximumClock: 110.0,
|
|
|
|
|
minimumCone: 20.0,
|
|
|
|
|
maximumCone: 90.0,
|
|
|
|
|
height: 100,
|
|
|
|
|
status: true,
|
|
|
|
|
},
|
|
|
|
|
])
|
|
|
|
|
|
|
|
|
|
function renderMubiaoDetailsContent(mbData) {
|
|
|
|
|
// return h(
|
|
|
|
|
// 'div',
|
|
|
|
|
// {},
|
|
|
|
|
// Object.keys(mbData).map(key => h('div', {}, `${key}:${mbData[key]}`))
|
|
|
|
|
// )
|
|
|
|
|
return () => (
|
|
|
|
|
<div class="detail-container">
|
|
|
|
|
<div class="detail-item-title">基本信息</div>
|
|
|
|
|
<div>
|
|
|
|
|
{Object.keys(mbData).map(key => (
|
|
|
|
|
<div>
|
|
|
|
|
{key}:{mbData[key]}
|
|
|
|
|
</div>
|
|
|
|
|
))}
|
|
|
|
|
</div>
|
|
|
|
|
<div class="detail-item-title">探测载荷</div>
|
2025-01-23 01:05:13 +00:00
|
|
|
|
<Detection type="radar" data={data.value} />
|
2025-01-20 01:42:19 +00:00
|
|
|
|
</div>
|
|
|
|
|
)
|
|
|
|
|
}
|
|
|
|
|
function showDetailsMubiao(mbData) {
|
|
|
|
|
openDetailsModal({
|
|
|
|
|
titleString: 'zb详情',
|
|
|
|
|
contentSlot: renderMubiaoDetailsContent(mbData),
|
|
|
|
|
})
|
|
|
|
|
}
|