Преглед на файлове

修改单独报工登录逻辑

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(