seimin 4 lat temu
rodzic
commit
551ed2898f
1 zmienionych plików z 11 dodań i 1 usunięć
  1. 11 1
      src/app/views/main/main.component.ts

+ 11 - 1
src/app/views/main/main.component.ts

@@ -208,7 +208,17 @@ export class MainComponent implements OnInit {
208 208
     if (this.screenType === "largeScreen") {
209 209
       window.open(http.bigScreenHost + "/#/" + id);
210 210
     } else if (this.screenType === "specimenView") {
211
-      this.getTypeByDept(id);
211
+      // this.getTypeByDept(id);
212
+      let remember = JSON.parse(localStorage.getItem("remember"));
213
+      window.open(
214
+        http.specimenViewHost +
215
+          "/#/" +
216
+          id +
217
+          "/" +
218
+          encodeURIComponent(remember.username) +
219
+          "/" +
220
+          encodeURIComponent(remember.password)
221
+      );
212 222
     }
213 223
   }
214 224
   //获取系统设置中的科室类型