|
@ -14,6 +14,14 @@ onMounted(async () => { |
|
|
loading.value = true |
|
|
loading.value = true |
|
|
await getSolutionList() |
|
|
await getSolutionList() |
|
|
loading.value = false |
|
|
loading.value = false |
|
|
|
|
|
for (const data of channelList.value) { |
|
|
|
|
|
if (data.solutionId && data.concentration) { |
|
|
|
|
|
volumeMap.value[data.channelCode] = await queryCraftList({ |
|
|
|
|
|
solutionId: data.solutionId, |
|
|
|
|
|
concentration: Number(data.concentration), |
|
|
|
|
|
}) |
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
}) |
|
|
}) |
|
|
|
|
|
|
|
|
const channelList = ref<System.ChannelState[]>([]) |
|
|
const channelList = ref<System.ChannelState[]>([]) |
|
@ -65,7 +73,7 @@ const receiveOkHandle = async (data: Log.LogItem & { channelCode: 'CHANNEL_1' | |
|
|
|
|
|
|
|
|
<template lang="pug"> |
|
|
<template lang="pug"> |
|
|
div.home-container(v-loading="loading") |
|
|
div.home-container(v-loading="loading") |
|
|
el-card(v-for="item in channelList" :key="item.channelCode") |
|
|
|
|
|
|
|
|
el-card(v-for="item in channelList.sort((a,b)=>a.channelCode.localeCompare(b.channelCode))" :key="item.channelCode") |
|
|
div.top-box |
|
|
div.top-box |
|
|
p.title {{channelMap[item.channelCode]}} |
|
|
p.title {{channelMap[item.channelCode]}} |
|
|
div.solution-box(@click="() => receiveHandle(item)") |
|
|
div.solution-box(@click="() => receiveHandle(item)") |
|
|