Commit 5cbb8703 authored by dxw's avatar dxw

tj

parent f65cf8e7
...@@ -174,7 +174,7 @@ ...@@ -174,7 +174,7 @@
> >
<el-button <el-button
type="text" type="text"
@click="statusHandle" @click="gzHandle(scope.scope)"
v-if="activeTab == 'b45827c068254695864ee3c1d42573cb' && scope.scope.status == 4" v-if="activeTab == 'b45827c068254695864ee3c1d42573cb' && scope.scope.status == 4"
>故障复位</el-button >故障复位</el-button
> >
...@@ -669,6 +669,25 @@ export default { ...@@ -669,6 +669,25 @@ export default {
} }
}) })
}, },
gzHandle(row){
this.$http({
url: this.$http.adornUrl('/equipment/onOrOff'),
method: 'post',
data: {
id: row.id,
status: 1,
actionName: row.name + "故障复位",
actionType: 12
}
}).then((data) => {
if (data && data.code === 0) {
this.$message.success(data.msg)
this.getDataList(this.pageIndex, this.pageSize)
} else {
this.$message.error(data.msg)
}
})
},
// 人工节能 // 人工节能
handleSwitch(state) { handleSwitch(state) {
this.isSaving = state this.isSaving = state
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment