Browse Source

fix: 密封测试失败loading

master
guoapeng 2 weeks ago
parent
commit
873d87a594
  1. 2
      src/components/home/LineChart.vue
  2. 23
      src/views/home/chart.vue
  3. 2
      src/views/seal/index.vue

2
src/components/home/LineChart.vue

@ -25,7 +25,7 @@ watchEffect(() => {
onMounted(() => {
const chartDom = document.getElementById(props.chartId)
if (chartDom) {
const myChart = echarts.init(chartDom)
const myChart = echarts.init(chartDom, null, { renderer: 'svg' })
const option = {
title: {

23
src/views/home/chart.vue

@ -83,24 +83,9 @@ const onClose = () => {
<main v-loading="loading" class="main-content">
<div class="line-chart-title">
<div v-if="formulaInfo && formulaInfo.name" class="line-chart-formula">
<HomeFormula />
<HomeFormula style="background: #E0F0FF;" />
</div>
<div class="line-chart-set">
<!-- <bt-button
button-text="消毒机数据"
text-size="14px"
border-radius="5px"
height="3.5rem"
text-color="#1989fa"
padding="0.8vw"
@click="goHome"
>
<template #icon>
<el-icon style="font-weight: bold;">
<Operation />
</el-icon>
</template>
</bt-button> -->
<bt-button
button-text="消毒设置"
text-size="14px"
@ -181,13 +166,13 @@ const onClose = () => {
background: $gradient-color;
height: $main-container-height;
.line-chart-formula{
width: 30vw;
background: #E0F0FF;
width: 40vw;
//background: #E0F0FF;
height: 3.5rem;
display: flex;
justify-content: center;
align-items: center;
border: 1px solid #E0F0FF;
//border: 1px solid #E0F0FF;
border-radius: 10px;
margin-left: 2rem;
}

2
src/views/seal/index.vue

@ -117,6 +117,8 @@ const onStartTest = () => {
}
}).catch(() => {
FtMessage.error('指令发送失败,请稍候再试')
}).finally(() => {
loading.value = false
})
}
const onFinishTest = () => {

Loading…
Cancel
Save