|
|
|
@ -221,6 +221,13 @@ export class RealisticPictureComponent implements OnInit {
|
|
|
|
|
//删除实景图文件
|
|
|
|
|
delete() { |
|
|
|
|
let companyId = this.route.snapshot.queryParams.id |
|
|
|
|
if(this.selectReal.name == '重点部位' || this.selectReal.name == '安全出口' || this.selectReal.name == '外观'){ |
|
|
|
|
const config = new MatSnackBarConfig(); |
|
|
|
|
config.verticalPosition = 'top'; |
|
|
|
|
config.duration = 3000 |
|
|
|
|
this.snackBar.open('内置项不允许删除', '确定', config); |
|
|
|
|
return |
|
|
|
|
} |
|
|
|
|
if (this.selectReal) { |
|
|
|
|
let isDelete = confirm('您确定要删除吗') |
|
|
|
|
if (isDelete) { |
|
|
|
|