|
@@ -153,13 +153,13 @@ export default {
|
|
|
{ key: GET_POWER_STATUS, name: '电源状态' }
|
|
{ key: GET_POWER_STATUS, name: '电源状态' }
|
|
|
],
|
|
],
|
|
|
powerSchema: {
|
|
powerSchema: {
|
|
|
|
|
+ nonPagination: true,
|
|
|
|
|
+ list: this.getPowers,
|
|
|
buttons: [
|
|
buttons: [
|
|
|
{ label: '一键开启', on: this.onSwitchOpen },
|
|
{ label: '一键开启', on: this.onSwitchOpen },
|
|
|
{ label: '一键关闭', on: this.onSwitchClose },
|
|
{ label: '一键关闭', on: this.onSwitchClose },
|
|
|
{ label: '回读', on: this.getPowerStatus }
|
|
{ label: '回读', on: this.getPowerStatus }
|
|
|
],
|
|
],
|
|
|
- singlePage: true,
|
|
|
|
|
- list: this.getPowers,
|
|
|
|
|
cols: [
|
|
cols: [
|
|
|
{ label: '设备', render: ({ portIndex }) => portIndex === RELAY_KEY ? '播控盒' : `多功能卡${portIndex}` },
|
|
{ label: '设备', render: ({ portIndex }) => portIndex === RELAY_KEY ? '播控盒' : `多功能卡${portIndex}` },
|
|
|
{ prop: 'powerIndex', label: '电源端口' },
|
|
{ prop: 'powerIndex', label: '电源端口' },
|
|
@@ -241,7 +241,7 @@ export default {
|
|
|
},
|
|
},
|
|
|
taskSchema () {
|
|
taskSchema () {
|
|
|
return {
|
|
return {
|
|
|
- singlePage: true,
|
|
|
|
|
|
|
+ nonPagination: true,
|
|
|
list: this.getTasks,
|
|
list: this.getTasks,
|
|
|
condition: { type: '', action: '', enable: '' },
|
|
condition: { type: '', action: '', enable: '' },
|
|
|
buttons: [
|
|
buttons: [
|
|
@@ -966,7 +966,7 @@ export default {
|
|
|
}
|
|
}
|
|
|
if (this.isAdd) {
|
|
if (this.isAdd) {
|
|
|
task.enable = true
|
|
task.enable = true
|
|
|
- this.$tasks.push(task)
|
|
|
|
|
|
|
+ this.$tasks.unshift(task)
|
|
|
this.$refs.table.pageTo()
|
|
this.$refs.table.pageTo()
|
|
|
} else {
|
|
} else {
|
|
|
Object.assign(this.$task, task)
|
|
Object.assign(this.$task, task)
|