|
|
@ -127,7 +127,10 @@ export default { |
|
|
|
service_path:item.service_path |
|
|
|
}).then(({code, data})=>{ |
|
|
|
this.loading=false; |
|
|
|
this.getList(); |
|
|
|
if(code==200){ |
|
|
|
this.msgSuccess("启动成功,请稍后刷新列表数据"); |
|
|
|
this.getList(); |
|
|
|
} |
|
|
|
}) |
|
|
|
}, |
|
|
|
// 暂停服务 |
|
|
@ -138,7 +141,10 @@ export default { |
|
|
|
service_path:item.service_path |
|
|
|
}).then(({code, data})=>{ |
|
|
|
this.loading=false; |
|
|
|
this.getList(); |
|
|
|
if(code==200){ |
|
|
|
this.msgSuccess("暂停成功,请稍后刷新列表数据"); |
|
|
|
this.getList(); |
|
|
|
} |
|
|
|
}) |
|
|
|
}, |
|
|
|
// 恢复服务 |
|
|
@ -149,7 +155,10 @@ export default { |
|
|
|
service_path:item.service_path |
|
|
|
}).then(({code, data})=>{ |
|
|
|
this.loading=false; |
|
|
|
this.getList(); |
|
|
|
if(code==200){ |
|
|
|
this.msgSuccess("恢复成功,请稍后刷新列表数据"); |
|
|
|
this.getList(); |
|
|
|
} |
|
|
|
}) |
|
|
|
}, |
|
|
|
// 停止服务 |
|
|
@ -160,7 +169,10 @@ export default { |
|
|
|
service_path:item.service_path |
|
|
|
}).then(({code, data})=>{ |
|
|
|
this.loading=false; |
|
|
|
this.getList(); |
|
|
|
if(code==200){ |
|
|
|
this.msgSuccess("停止成功,请稍后刷新列表数据"); |
|
|
|
this.getList(); |
|
|
|
} |
|
|
|
}) |
|
|
|
}, |
|
|
|
// 删除按钮操作 |
|
|
|