Commit 0ece7525 authored by 赵啸非's avatar 赵啸非

添加批量激活设备

parent 16e69799
......@@ -12,4 +12,4 @@ VUE_APP_PORTAL_URL = /portal_home
# 站点请求地址
VUE_APP_SITETREE_URL = http://10.12.185.213:11078/base/site/siteTree
VUE_APP_SITETREE_URL = /basics_api/base/site/siteTree
......@@ -272,8 +272,7 @@ export default {
},
onSubmit() {
let { path, query } = this.$route;
let temp=Object.assign({}, this.form);
let data = this.decode(temp);
let data = this.decode(this.form);
this.$router.push({
path: path,
query: Object.assign({}, query, data),
......
......@@ -66,12 +66,11 @@
</slot>
<slot name="table-head-left2"></slot>
</el-row>
<el-row>
<slot name="table-head-row2-left"></slot>
</el-row>
</div>
</div>
<el-row>
<slot name="table-head-row2-left"></slot>
</el-row>
<div class="table-head-right">
<div class="extend flex flex-pack-justify">
......@@ -377,4 +376,4 @@ export default {
}
}
}
</style>
\ No newline at end of file
</style>
......@@ -366,7 +366,7 @@ export default {
},
batchRestartApp(row) {
this.$post("/device/restartApp", {
this.$post("/device/batchRestartApp", {
idList: this.selection,
})
.then((res) => {
......@@ -381,7 +381,7 @@ export default {
},
restartApp(row) {
this.$post("/device/restartApp", {
this.$post("/device/batchRestartApp", {
idList: [row.id],
})
.then((res) => {
......@@ -625,7 +625,7 @@ export default {
<el-button
type="text"
size="mini"
onClick={() => this.restart(row.id)}
onClick={() => this.restartApp(row)}
>
重启
</el-button>
......
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