Commit aaa27ee8 authored by 赵啸非's avatar 赵啸非

修改接口设备更新站点后,站点名称和编码未更新问题

parent a23f125a
...@@ -43,7 +43,7 @@ ...@@ -43,7 +43,7 @@
:disabled="isExport" :disabled="isExport"
>导出</el-button >导出</el-button
> >
<el-tag slot="table-head-row2-left" size="mini" <el-tag slot="table-head-row2-left" size="mini" class="cursord" @click="changeStat(null)"
>设备总数:{{ tableData.totalCount }}</el-tag >设备总数:{{ tableData.totalCount }}</el-tag
> >
...@@ -52,6 +52,8 @@ ...@@ -52,6 +52,8 @@
size="mini" size="mini"
style="margin: 5px" style="margin: 5px"
type="success" type="success"
class="cursord"
@click="changeStat(2)"
>在线:{{ tableData.onlineCount }}</el-tag >在线:{{ tableData.onlineCount }}</el-tag
> >
...@@ -60,6 +62,8 @@ ...@@ -60,6 +62,8 @@
size="mini" size="mini"
style="margin: 5px" style="margin: 5px"
type="danger" type="danger"
class="cursord"
@click="changeStat(1)"
>离线:{{ tableData.offlineCount }}</el-tag >离线:{{ tableData.offlineCount }}</el-tag
> >
...@@ -68,6 +72,8 @@ ...@@ -68,6 +72,8 @@
size="mini" size="mini"
style="margin: 5px" style="margin: 5px"
type="danger" type="danger"
class="cursord"
@click="changeStat(null,0)"
>停用:{{ tableData.stopCount }}</el-tag >停用:{{ tableData.stopCount }}</el-tag
> >
...@@ -76,6 +82,8 @@ ...@@ -76,6 +82,8 @@
size="mini" size="mini"
style="margin: 5px" style="margin: 5px"
type="danger" type="danger"
class="cursord"
@click="changeStat(0)"
>未激活:{{ tableData.unActiveCount }}</el-tag >未激活:{{ tableData.unActiveCount }}</el-tag
> >
</LayoutTable> </LayoutTable>
...@@ -284,6 +292,24 @@ export default { ...@@ -284,6 +292,24 @@ export default {
this.$refs.drawerViewform.view(row); this.$refs.drawerViewform.view(row);
}, },
changeStat(val,enabled){
this.query=Object.assign(this.query,{deviceStatus:val});
if(!enabled){
this.query=Object.assign(this.query,{deviceStatusList:[1,2],enabled:enabled});
}
this.getData();
// delete this.query.deviceStatus
// delete this.query.deviceStatusList
},
downMsg(row) { downMsg(row) {
this.$prompt("请输入下发消息内容", "提示", { this.$prompt("请输入下发消息内容", "提示", {
confirmButtonText: "确定", confirmButtonText: "确定",
...@@ -425,11 +451,11 @@ export default { ...@@ -425,11 +451,11 @@ export default {
label: "设备编码", label: "设备编码",
fuzzy: true, fuzzy: true,
}, },
{ // {
name: "deviceStatus", // name: "deviceStatus",
type: "select", // type: "select",
label: "状态", // label: "状态",
}, // },
], ],
columns: [ columns: [
{ {
...@@ -540,4 +566,8 @@ export default { ...@@ -540,4 +566,8 @@ export default {
background: 0 0; background: 0 0;
border-top: 1px solid #e8eaec; border-top: 1px solid #e8eaec;
} }
.cursord{
cursor:pointer
}
</style> </style>
\ No newline at end of file
...@@ -58,4 +58,7 @@ public class DeviceVo extends BaseEntityLong { ...@@ -58,4 +58,7 @@ public class DeviceVo extends BaseEntityLong {
private List <Long> productIdList; private List <Long> productIdList;
private List <Integer> deviceStatusList;
} }
\ No newline at end of file
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