This commit is contained in:
Iruka 2025-02-18 16:58:28 +08:00
parent c8a8114d7d
commit 167d54aaec
4 changed files with 16 additions and 12 deletions

View File

@ -96,7 +96,7 @@
<u-col span="4" style="align-items: flex-end;">
<view class="fixed">
<u-button type="success" size="mini" text="刷新" icon="reload"
:loading="dc.dataObj[pop.item.dataKey]?.refresh"
:loading="dc.dataObj[pop.item.dataKey]?.refresh || dc.refreshObj[pop.item.dataKey]"
@click="dc.refreshDeviceItem(pop.item.dataKey, pop.item.device)" />
</view>
</u-col>

View File

@ -246,7 +246,7 @@
<u-col span="4" style="align-items: flex-end;">
<view class="fixed">
<u-button type="success" size="mini" text="刷新" icon="reload"
:loading="dc.dataObj[child.dataKey]?.refresh"
:loading="dc.dataObj[child.dataKey]?.refresh || dc.refreshObj[child.dataKey]"
@click="dc.refreshDeviceItem(child.dataKey, child.device)" />
</view>
</u-col>

View File

@ -505,15 +505,15 @@ class deviceControl {
dcEventType.refresh,
device
)
if (this.dataObj[mark]) {
this.dataObj[mark].refresh = true
} else {
this.dataObj[mark] = {
online: false, //在线状态
refresh: true, //刷新状态
warning: []
}
}
// if (this.dataObj[mark]) {
// this.dataObj[mark].refresh = true
// } else {
// this.dataObj[mark] = {
// online: false, //在线状态
// refresh: true, //刷新状态
// warning: []
// }
// }
// 设置刷新状态重置倒计时
this.setRefreshCountdown(mark)
} else {

View File

@ -24,6 +24,7 @@ import valve3_open from '@/static/images/valves/3/valve3_open.gif'
import valve3_open1 from '@/static/images/valves/3/valve3_open1.gif'
import valve3_open2 from '@/static/images/valves/3/valve3_open2.gif'
import valve3_run from '@/static/images/valves/3/valve3_run.gif'
import valve3_error from '@/static/images/valves/3/valve3_error.png'
import valve5 from '@/static/images/map/valve5.png'
import valve5_select from '@/static/images/map/valve5-select.png'
@ -44,6 +45,7 @@ import valve5_1101 from '@/static/images/valves/5/valve5_1101.gif'
import valve5_1110 from '@/static/images/valves/5/valve5_1110.gif'
import valve5_1111 from '@/static/images/valves/5/valve5_1111.gif'
import valve5_run from '@/static/images/valves/5/valve5_run.gif'
import valve5_error from '@/static/images/valves/5/valve5_error.png'
// 导出这个对象以便在其他地方使用
export {
@ -69,6 +71,7 @@ export {
valve3_open1,
valve3_open2,
valve3_run,
valve3_error,
valve5,
valve5_select,
valve5_0000,
@ -87,5 +90,6 @@ export {
valve5_1101,
valve5_1110,
valve5_1111,
valve5_run
valve5_run,
valve5_error
}