定时刷新

master
夜笙歌 2 years ago
parent 9fab26ee4d
commit cb63183038

@ -218,9 +218,9 @@ export default {
// this.$nextTick(async () => {
// this.getErrInfo()
await this.setInfo()
setInterval(()=>{
this.setInfo()
},10*1000)
// setInterval(()=>{
// this.setInfo()
// },20*1000)
this.$nextTick(() => {
let domList = this.$refs.warningRef
let domParent = this.$refs.warningRefP

@ -26,14 +26,14 @@
<div style="display: inline-block;width: 560px;height:auto">
<div class="bg" style="margin-right: 40px;">
<div v-for="(item,index) in tireArrangement">
<div class="item" @click="tyreClick((index+1)+'-1-1',((index+1)+t('web.rowLeftOuterTire')))">
<div class="item1" @click="tyreClick((index+1)+'-1-1',((index+1)+t('web.rowLeftOuterTire')))">
<div
:style="`background-color:${backgroundColorState((index+1)+'-1-1')};border-color:${borderColorState((index+1)+'-1-1')}`"
class="circle">
<span style="white-space: nowrap">{{ index + 1 }}{{ t('web.rowLeftOuterTire') }}</span>
</div>
</div>
<div class="item" @click="tyreClick((index+1)+'-1-2',((index+1)+t('web.rowLeftInnerTube')))">
<div class="item1" @click="tyreClick((index+1)+'-1-2',((index+1)+t('web.rowLeftInnerTube')))">
<div
:style="`${item === 2? '':'display:none;'}background-color:${backgroundColorState((index+1)+'-1-2')};border-color:${borderColorState((index+1)+'-1-2')}`"
class="circle">
@ -44,14 +44,14 @@
</div>
<div class="bg">
<div v-for="(item,index) in tireArrangement">
<div class="item" @click="tyreClick((index+1)+'-2-2',((index+1)+t('web.rowRightInnerTube')))">
<div class="item1" @click="tyreClick((index+1)+'-2-2',((index+1)+t('web.rowRightInnerTube')))">
<div
:style="`${item === 2? '':'display:none;'}background-color:${backgroundColorState((index+1)+'-2-2')};border-color:${borderColorState((index+1)+'-2-2')}`"
class="circle">
<span style="white-space: nowrap">{{ index + 1 }}{{ t('web.rowRightInnerTube') }}</span>
</div>
</div>
<div class="item" @click="tyreClick((index+1)+'-2-1',((index+1)+ t('web.rowRightOuterTire') ))">
<div class="item1" @click="tyreClick((index+1)+'-2-1',((index+1)+ t('web.rowRightOuterTire') ))">
<div
:style="`background-color:${backgroundColorState((index+1)+'-2-1')};border-color:${borderColorState((index+1)+'-2-1')}`"
class="circle">
@ -382,7 +382,7 @@ getList()
margin-top: 20px;
}
.item {
.item1 {
text-align: center;
width: 100px;
height: 100px;

Loading…
Cancel
Save