Browse Source

[完善]预案素材图标名称默认隐藏,删除实景图文件提醒

tangshan
邵佳豪 3 years ago
parent
commit
bd360c43a8
  1. 7
      src/app/key-unit/realistic-picture/realistic-picture.component.ts
  2. 2
      src/app/ui/collection-tools/collection-tools.component.ts

7
src/app/key-unit/realistic-picture/realistic-picture.component.ts

@ -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) {

2
src/app/ui/collection-tools/collection-tools.component.ts

@ -878,7 +878,7 @@ export class CollectionToolsComponent implements OnInit {
}
basicInfo: boolean = false //基本信息名称显隐
wantToWork: boolean = true //想定作业名称显隐
wantToWork: boolean = false //想定作业名称显隐
//点击基本信息名称
basicInfoClick() {
this.basicInfo = !this.basicInfo

Loading…
Cancel
Save