|
|
@@ -82,7 +82,7 @@
|
|
|
<template #tip>
|
|
|
<div class="has-bottom-padding--sm u-font-size--sm">
|
|
|
<div class="c-sibling-item--v u-color--black u-bold">{{ taskInfo }}电源</div>
|
|
|
- <div class="c-sibling-item--v nearest has-bottom-padding--sm u-color--error dark u-font-size--sm">同步中请勿关闭弹窗,否则将停止同步</div>
|
|
|
+ <div class="c-sibling-item--v nearest u-color--error dark u-font-size--sm">同步中请勿关闭弹窗,否则将停止同步</div>
|
|
|
</div>
|
|
|
</template>
|
|
|
</table-dialog>
|
|
|
@@ -117,7 +117,7 @@ import DevicePowerTask from './components/DevicePowerTask.vue'
|
|
|
const FOREVER = '4016-06-06'
|
|
|
|
|
|
export default {
|
|
|
- name: 'DeviceList',
|
|
|
+ name: 'BatchPowerOperation',
|
|
|
data () {
|
|
|
return {
|
|
|
schema: {
|
|
|
@@ -212,6 +212,9 @@ export default {
|
|
|
taskAction: 0,
|
|
|
asyncSchema: {
|
|
|
nonPagination: true,
|
|
|
+ props: {
|
|
|
+ size: 'small'
|
|
|
+ },
|
|
|
list: this.getSyncDevices,
|
|
|
cols: [
|
|
|
{ prop: 'name', label: '设备名称', 'min-width': 60 },
|
|
|
@@ -227,7 +230,7 @@ export default {
|
|
|
},
|
|
|
created () {
|
|
|
this.$timer = -1
|
|
|
- this.$deitalTimer = -1
|
|
|
+ this.$detailTimer = -1
|
|
|
subscribe([
|
|
|
'+/+/online',
|
|
|
'+/+/offline'
|
|
|
@@ -235,7 +238,7 @@ export default {
|
|
|
},
|
|
|
beforeDestroy () {
|
|
|
clearTimeout(this.$timer)
|
|
|
- clearTimeout(this.$deitalTimer)
|
|
|
+ clearTimeout(this.$detailTimer)
|
|
|
unsubscribe([
|
|
|
'+/+/online',
|
|
|
'+/+/offline'
|
|
|
@@ -357,10 +360,10 @@ export default {
|
|
|
this.$refs.detailDialog.show()
|
|
|
},
|
|
|
getOperationResult () {
|
|
|
- clearTimeout(this.$deitalTimer)
|
|
|
+ clearTimeout(this.$detailTimer)
|
|
|
return getOperationResult(this.$taskId).then(({ data }) => {
|
|
|
if (data.operationStatus === 0) {
|
|
|
- this.$deitalTimer = setTimeout(() => {
|
|
|
+ this.$detailTimer = setTimeout(() => {
|
|
|
this.$refs.detailDialog?.getTable()?.refreshCurrentPageOnBackground()
|
|
|
}, 2000)
|
|
|
}
|