Commit 3c2504d6 authored by 赵啸非's avatar 赵啸非

修改站点请求地址

parent 2ccf1687
...@@ -61,7 +61,7 @@ ...@@ -61,7 +61,7 @@
slot="table-body-head" slot="table-body-head"
size="mini" size="mini"
class="cursord" class="cursord"
@click="changeStat(null)" @click="changeStatAll()"
>设备总数:{{ tableData.totalCount }}</el-tag >设备总数:{{ tableData.totalCount }}</el-tag
> >
...@@ -91,7 +91,7 @@ ...@@ -91,7 +91,7 @@
style="margin: 5px" style="margin: 5px"
type="danger" type="danger"
class="cursord" class="cursord"
@click="changeStat(null, 0)" @click="changeStatEnabled( 0)"
>停用:{{ tableData.stopCount }}</el-tag >停用:{{ tableData.stopCount }}</el-tag
> >
...@@ -318,22 +318,33 @@ export default { ...@@ -318,22 +318,33 @@ export default {
this.$refs.drawerViewform.view(row); this.$refs.drawerViewform.view(row);
}, },
changeStat(val, enabled) { changeStatAll() {
//去除其它条件
delete this.query["productId"] delete this.query["productId"]
delete this.query["deviceName"] delete this.query["deviceName"]
delete this.query["deviceCode"] delete this.query["deviceCode"]
if(val!=null){ delete this.query["deviceStatus"]
this.query = Object.assign(this.query, { deviceStatus: val });
} this.query["page"]=1
this.query = Object.assign(this.query, {
deviceStatusList: [1, 2],
enabled: 1,
});
this.getData();
},
changeStatEnabled( enabled) {
//去除其它条件
// delete this.query["productId"]
//delete this.query["deviceName"]
//delete this.query["deviceCode"]
this.query["page"]=1 this.query["page"]=1
if (!enabled) {
this.query = Object.assign(this.query, { this.query = Object.assign(this.query, {
deviceStatusList: [1, 2], deviceStatusList: [1, 2],
enabled: enabled, enabled: enabled,
}); });
}
this.getData(); this.getData();
// delete this.query.deviceStatus // delete this.query.deviceStatus
...@@ -341,6 +352,17 @@ export default { ...@@ -341,6 +352,17 @@ export default {
// delete this.query.deviceStatusList // delete this.query.deviceStatusList
}, },
changeStat(val) {
//去除其它条件
// delete this.query["productId"]
//delete this.query["deviceName"]
// delete this.query["deviceCode"]
this.query = Object.assign(this.query, { deviceStatus: val });
this.query["page"]=1
this.getData();
},
activeDevice(row) { activeDevice(row) {
this.$post("/device/active", { this.$post("/device/active", {
......
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