浏览代码

修改单独报工登录逻辑

695593266@qq.com 9 月之前
父节点
当前提交
04f5ca697c
共有 1 个文件被更改,包括 6 次插入6 次删除
  1. 6 6
      src/views/singleLogin/index.vue

+ 6 - 6
src/views/singleLogin/index.vue

@@ -422,13 +422,13 @@
         this.infoForm.deviceId = '';
         this.infoForm.centerId = '';
 
-        const teamData = this.teamList.find((item) => item.teamId == teamId);
+        console.log(this.userData, teamId, '111');
 
-        if (teamData) {
-          this.teamList = this.userData.deviceList.filter(
-            (it) => it.teamId == teamData.teamId
-          );
-        }
+        // const teamData = this.teamList.find((item) => item.teamId == teamId);
+
+        this.workCenterList = this.userData.centerList.filter(
+          (it) => it.teamId == teamId
+        );
 
         if (this.userData.deviceList.length != 0) {
           this.deviceList = this.userData.deviceList.filter(