From bd360c43a8ecff510e947e4950a93b0f563994b8 Mon Sep 17 00:00:00 2001 From: SHAOJIAHAO <55341701@qq.com> Date: Wed, 18 Aug 2021 16:35:55 +0800 Subject: [PATCH] =?UTF-8?q?[=E5=AE=8C=E5=96=84]=E9=A2=84=E6=A1=88=E7=B4=A0?= =?UTF-8?q?=E6=9D=90=E5=9B=BE=E6=A0=87=E5=90=8D=E7=A7=B0=E9=BB=98=E8=AE=A4?= =?UTF-8?q?=E9=9A=90=E8=97=8F,=E5=88=A0=E9=99=A4=E5=AE=9E=E6=99=AF?= =?UTF-8?q?=E5=9B=BE=E6=96=87=E4=BB=B6=E6=8F=90=E9=86=92?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../realistic-picture/realistic-picture.component.ts | 7 +++++++ src/app/ui/collection-tools/collection-tools.component.ts | 2 +- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/src/app/key-unit/realistic-picture/realistic-picture.component.ts b/src/app/key-unit/realistic-picture/realistic-picture.component.ts index 9c61489..9bf8b4f 100644 --- a/src/app/key-unit/realistic-picture/realistic-picture.component.ts +++ b/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) { diff --git a/src/app/ui/collection-tools/collection-tools.component.ts b/src/app/ui/collection-tools/collection-tools.component.ts index 340a82e..500fef7 100644 --- a/src/app/ui/collection-tools/collection-tools.component.ts +++ b/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