Commit 9c985723 authored by 黎博's avatar 黎博

新增重置所有服务功能

parent e20ff5fd
......@@ -162,6 +162,7 @@
<div style="float: right">
<el-button type="warning" size="mini" round @click="getRepository(item._id)">新增服务</el-button>
<el-button type="success" size="mini" round @click="refresh">刷新状态</el-button>
<el-button type="danger" size="mini" round @click="restartAll(FormatTabledata[item._id])">重置所有服务</el-button>
</div>
</div>
<el-table
......@@ -550,6 +551,12 @@ export default {
this.getServicelist()
},
restartAll(serviceList) {
for (var x in serviceList) {
this.restartService(serviceList[x])
}
},
refreshInterval(value) {
this.$store.dispatch('changeSwitch', value)
if (value) {
......
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