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

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

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