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

添加批量激活设备

parent 16e69799
...@@ -12,4 +12,4 @@ VUE_APP_PORTAL_URL = /portal_home ...@@ -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 { ...@@ -272,8 +272,7 @@ export default {
}, },
onSubmit() { onSubmit() {
let { path, query } = this.$route; let { path, query } = this.$route;
let temp=Object.assign({}, this.form); let data = this.decode(this.form);
let data = this.decode(temp);
this.$router.push({ this.$router.push({
path: path, path: path,
query: Object.assign({}, query, data), query: Object.assign({}, query, data),
......
...@@ -66,12 +66,11 @@ ...@@ -66,12 +66,11 @@
</slot> </slot>
<slot name="table-head-left2"></slot> <slot name="table-head-left2"></slot>
</el-row> </el-row>
</div>
</div>
<el-row> <el-row>
<slot name="table-head-row2-left"></slot> <slot name="table-head-row2-left"></slot>
</el-row> </el-row>
</div>
</div>
<div class="table-head-right"> <div class="table-head-right">
<div class="extend flex flex-pack-justify"> <div class="extend flex flex-pack-justify">
......
...@@ -366,7 +366,7 @@ export default { ...@@ -366,7 +366,7 @@ export default {
}, },
batchRestartApp(row) { batchRestartApp(row) {
this.$post("/device/restartApp", { this.$post("/device/batchRestartApp", {
idList: this.selection, idList: this.selection,
}) })
.then((res) => { .then((res) => {
...@@ -381,7 +381,7 @@ export default { ...@@ -381,7 +381,7 @@ export default {
}, },
restartApp(row) { restartApp(row) {
this.$post("/device/restartApp", { this.$post("/device/batchRestartApp", {
idList: [row.id], idList: [row.id],
}) })
.then((res) => { .then((res) => {
...@@ -625,7 +625,7 @@ export default { ...@@ -625,7 +625,7 @@ export default {
<el-button <el-button
type="text" type="text"
size="mini" size="mini"
onClick={() => this.restart(row.id)} onClick={() => this.restartApp(row)}
> >
重启 重启
</el-button> </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