Commit 69028fa3 by 姜雷

修改切换区域同时更新设备数据

parent b22a8cb3
...@@ -98,6 +98,7 @@ const actions = { ...@@ -98,6 +98,7 @@ const actions = {
let list = res.data; let list = res.data;
if (data && data.updatePercentList) { if (data && data.updatePercentList) {
commit(GET_PERCENT_DATA, list); commit(GET_PERCENT_DATA, list);
commit(GET_EUIPMENT_DATA, list);
return; return;
} }
if (data && data.updateEuipmentList) { if (data && data.updateEuipmentList) {
......
...@@ -113,6 +113,7 @@ export default { ...@@ -113,6 +113,7 @@ export default {
clickHandle(ev) { clickHandle(ev) {
let data = ev.data._origin; let data = ev.data._origin;
if (this.SelectedDataIndex.serviceId !== data.serviceId) { if (this.SelectedDataIndex.serviceId !== data.serviceId) {
this.SelectedDataIndex = data;
let data = ev.data._origin; let data = ev.data._origin;
this.changeSelected(data); this.changeSelected(data);
this.changeServiceHandle(data); this.changeServiceHandle(data);
......
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