|
@@ -627,6 +627,16 @@ export default {
|
|
|
|
|
|
/**组织机构*/
|
|
|
handleDeptNodeClick(data) {
|
|
|
+ console.log("组织结构",data)
|
|
|
+ if (data.deptId === '-1') {
|
|
|
+ this.queryParams.areaCode = null;
|
|
|
+ this.MeterQueryParams.areaCode = null;
|
|
|
+ } else {
|
|
|
+ this.queryParams.areaCode = data.deptId;
|
|
|
+ }
|
|
|
+ this.getMeterData();
|
|
|
+ },
|
|
|
+ handleDeptNodeClick1(data) {
|
|
|
if (data.deptId === 'all') {
|
|
|
this.organOptions = this.deptList.slice(1).map(item => {
|
|
|
const { children, ...rest } = item;
|
|
@@ -644,7 +654,6 @@ export default {
|
|
|
}
|
|
|
}
|
|
|
this.getMeterData(data);
|
|
|
-
|
|
|
},
|
|
|
|
|
|
/** 设施节点点击事件 */
|
|
@@ -859,6 +868,15 @@ export default {
|
|
|
this.loading = false;
|
|
|
});
|
|
|
} else if (this.activeTab === 'organ') {
|
|
|
+ objType = 4;
|
|
|
+ listDevice({ ...this.MeterQueryParams, meterCls }).then(response => {
|
|
|
+ this.organUnbound = response.rows;
|
|
|
+ this.loading = false;
|
|
|
+ })
|
|
|
+ listByObj(objType, meterCls, this.queryParams.areaCode).then(response => {
|
|
|
+ this.organBound = response.data;
|
|
|
+ this.loading = false;
|
|
|
+ });
|
|
|
this.loading = false;
|
|
|
|
|
|
} else if (this.activeTab === 'facs') {
|