seimin 3 年之前
父节点
当前提交
551ed2898f
共有 1 个文件被更改,包括 11 次插入1 次删除
  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
   //获取系统设置中的科室类型