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

修改站点请求地址

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