.
This commit is contained in:
parent
c8a8114d7d
commit
167d54aaec
@ -96,7 +96,7 @@
|
|||||||
<u-col span="4" style="align-items: flex-end;">
|
<u-col span="4" style="align-items: flex-end;">
|
||||||
<view class="fixed">
|
<view class="fixed">
|
||||||
<u-button type="success" size="mini" text="刷新" icon="reload"
|
<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)" />
|
@click="dc.refreshDeviceItem(pop.item.dataKey, pop.item.device)" />
|
||||||
</view>
|
</view>
|
||||||
</u-col>
|
</u-col>
|
||||||
|
@ -246,7 +246,7 @@
|
|||||||
<u-col span="4" style="align-items: flex-end;">
|
<u-col span="4" style="align-items: flex-end;">
|
||||||
<view class="fixed">
|
<view class="fixed">
|
||||||
<u-button type="success" size="mini" text="刷新" icon="reload"
|
<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)" />
|
@click="dc.refreshDeviceItem(child.dataKey, child.device)" />
|
||||||
</view>
|
</view>
|
||||||
</u-col>
|
</u-col>
|
||||||
|
@ -505,15 +505,15 @@ class deviceControl {
|
|||||||
dcEventType.refresh,
|
dcEventType.refresh,
|
||||||
device
|
device
|
||||||
)
|
)
|
||||||
if (this.dataObj[mark]) {
|
// if (this.dataObj[mark]) {
|
||||||
this.dataObj[mark].refresh = true
|
// this.dataObj[mark].refresh = true
|
||||||
} else {
|
// } else {
|
||||||
this.dataObj[mark] = {
|
// this.dataObj[mark] = {
|
||||||
online: false, //在线状态
|
// online: false, //在线状态
|
||||||
refresh: true, //刷新状态
|
// refresh: true, //刷新状态
|
||||||
warning: []
|
// warning: []
|
||||||
}
|
// }
|
||||||
}
|
// }
|
||||||
// 设置刷新状态重置倒计时
|
// 设置刷新状态重置倒计时
|
||||||
this.setRefreshCountdown(mark)
|
this.setRefreshCountdown(mark)
|
||||||
} else {
|
} else {
|
||||||
|
@ -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_open1 from '@/static/images/valves/3/valve3_open1.gif'
|
||||||
import valve3_open2 from '@/static/images/valves/3/valve3_open2.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_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 from '@/static/images/map/valve5.png'
|
||||||
import valve5_select from '@/static/images/map/valve5-select.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_1110 from '@/static/images/valves/5/valve5_1110.gif'
|
||||||
import valve5_1111 from '@/static/images/valves/5/valve5_1111.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_run from '@/static/images/valves/5/valve5_run.gif'
|
||||||
|
import valve5_error from '@/static/images/valves/5/valve5_error.png'
|
||||||
|
|
||||||
// 导出这个对象以便在其他地方使用
|
// 导出这个对象以便在其他地方使用
|
||||||
export {
|
export {
|
||||||
@ -69,6 +71,7 @@ export {
|
|||||||
valve3_open1,
|
valve3_open1,
|
||||||
valve3_open2,
|
valve3_open2,
|
||||||
valve3_run,
|
valve3_run,
|
||||||
|
valve3_error,
|
||||||
valve5,
|
valve5,
|
||||||
valve5_select,
|
valve5_select,
|
||||||
valve5_0000,
|
valve5_0000,
|
||||||
@ -87,5 +90,6 @@ export {
|
|||||||
valve5_1101,
|
valve5_1101,
|
||||||
valve5_1110,
|
valve5_1110,
|
||||||
valve5_1111,
|
valve5_1111,
|
||||||
valve5_run
|
valve5_run,
|
||||||
|
valve5_error
|
||||||
}
|
}
|
Loading…
Reference in New Issue
Block a user