|
|
|
@ -20,8 +20,10 @@ export class KnowRouteComponent implements OnInit {
|
|
|
|
|
|
|
|
|
|
constructor(public snackBar: MatSnackBar,private http: HttpClient) { } |
|
|
|
|
|
|
|
|
|
ngOnInit(): void { |
|
|
|
|
|
|
|
|
|
pattern:any = localStorage.getItem("pattern")//模式
|
|
|
|
|
ngOnInit(): void { |
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
@ -101,8 +103,17 @@ export class KnowRouteComponent implements OnInit {
|
|
|
|
|
|
|
|
|
|
//熟悉部位点击事件
|
|
|
|
|
addRoute(event,item){ |
|
|
|
|
this.knowRoute.push({name:event.target.innerHTML,idnum:"🠖"}) |
|
|
|
|
this.uploadSucced.push({name:item.name,src:"",smark:""}) |
|
|
|
|
if(this.pattern == 'edit'){ |
|
|
|
|
|
|
|
|
|
this.knowRoute.push({name:event.target.innerHTML,idnum:"🠖"}) |
|
|
|
|
this.uploadSucced.push({name:item.name,src:"",smark:""}) |
|
|
|
|
}else{ |
|
|
|
|
const config = new MatSnackBarConfig(); |
|
|
|
|
config.verticalPosition = 'top'; |
|
|
|
|
config.duration = 3000 |
|
|
|
|
this.snackBar.open('处于查看模式','确定',config); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
savekey |
|
|
|
|