|
|
@@ -105,7 +105,6 @@ import {
|
|
|
} from '@/utils/adapter'
|
|
|
import {
|
|
|
Status,
|
|
|
- RELEASE_MULTI,
|
|
|
GET_POWER_STATUS,
|
|
|
SET_POWER_STATUS,
|
|
|
GET_POWER_TIMING,
|
|
|
@@ -167,8 +166,7 @@ export default {
|
|
|
list: this.getPowers,
|
|
|
buttons: [
|
|
|
{ label: '一键开启', on: this.onSwitchOpen },
|
|
|
- { label: '一键关闭', on: this.onSwitchClose },
|
|
|
- { label: '停止上报', render: () => this.isSuperAdmin, on: this.onRelease }
|
|
|
+ { label: '一键关闭', on: this.onSwitchClose }
|
|
|
],
|
|
|
cols: [
|
|
|
{ label: '设备', render: ({ portIndex }) => portIndex === RELAY_KEY ? '播控盒' : '控电设备' },
|
|
|
@@ -232,7 +230,7 @@ export default {
|
|
|
}
|
|
|
},
|
|
|
computed: {
|
|
|
- ...mapGetters(['isSuperAdmin', 'account']),
|
|
|
+ ...mapGetters(['account']),
|
|
|
powerStatusTip () {
|
|
|
switch (this.powerStatus) {
|
|
|
case Status.OK:
|
|
|
@@ -1088,9 +1086,6 @@ export default {
|
|
|
this.hasChanged = true
|
|
|
this.$tasks.splice(index, 1)
|
|
|
this.$refs.table.pageTo()
|
|
|
- },
|
|
|
- onRelease () {
|
|
|
- this.sendTopic(RELEASE_MULTI)
|
|
|
}
|
|
|
}
|
|
|
}
|