diff --git a/package.json b/package.json index 65628c7..00ad7bb 100644 --- a/package.json +++ b/package.json @@ -5,6 +5,7 @@ "ng": "ng", "start": "ng serve --proxy-config proxy.config.json --open", "build": "ng build", + "build-prod": "node --max_old_space_size=5048 ./node_modules/@angular/cli/bin/ng build --prod", "publish": "ng build --prod --verbose", "test": "ng test", "lint": "ng lint", diff --git a/src/app/external-links-plan/external-links-plan.component.ts b/src/app/external-links-plan/external-links-plan.component.ts index c3f65b8..99c8647 100644 --- a/src/app/external-links-plan/external-links-plan.component.ts +++ b/src/app/external-links-plan/external-links-plan.component.ts @@ -105,12 +105,30 @@ export class ExternalLinksPlanComponent implements OnInit { // this.threedUrl = this.sanitizer.bypassSecurityTrustResourceUrl(`/keyUnit/viewunitinfoplans?id=${data.companyId}`) }) } else if (this.planData.planMode == 3) { //预案planMode=3时, 第三方网址' - this.http.get(`/api/Plans/${data.companyId}`).subscribe((data: any) => { - data && data.company ? this.companyData = data.company : null - this.threedUrl = this.sanitizer.bypassSecurityTrustResourceUrl(data.url) - this.showType = 2 - }) + // this.http.get(`/api/Plans/${data.companyId}`).subscribe((data: any) => { + // data && data.company ? this.companyData = data.company : null + // this.threedUrl = this.sanitizer.bypassSecurityTrustResourceUrl(data.url) + // this.showType = 2 + // }) + let localhostPath = window.document.location.href.substring( 0, window.document.location.href.indexOf(window.document.location.pathname)) + //localhostPath : http://39.106.78.171:8000/ + let url = data.url + if(url.indexOf(localhostPath) != -1){ + window.location.href = `${url}?unitId=${data.company.id}&unitName=${data.company.name}&editMode=false` + }else{ + // let substr = url.split('/').splice(3,url.split('/').length) + // let port = url.split(':')[2] + // if(port.indexOf('/') != -1){ + // port = port.split('/')[0] + // } + // let ip = localhostPath.split(':') + // ip.pop() + // let newurl = ip.join(':') + ":" + port + "/" + substr.join('/'); + // // console.log('xxx',newurl) + // window.location.href = `${newurl}?unitId=${data.company.id}&unitName=${data.company.name}&editMode=false` + window.location.href = `${url}?unitId=${data.company.id}&unitName=${data.company.name}&editMode=false` + } } } } diff --git a/src/app/gis-management/allaround/allaround.component.scss b/src/app/gis-management/allaround/allaround.component.scss index dd828a2..45cd0e0 100644 --- a/src/app/gis-management/allaround/allaround.component.scss +++ b/src/app/gis-management/allaround/allaround.component.scss @@ -1,10 +1,4 @@ *{ - -webkit-touch-callout: none; - -webkit-user-select: none; - -khtml-user-select: none; - -moz-user-select: none; - -ms-user-select: none; - user-select: none; scrollbar-width: none; /* Firefox */ } ::-webkit-scrollbar { diff --git a/src/app/gis-management/basic-info/basic-info.component.scss b/src/app/gis-management/basic-info/basic-info.component.scss index 282cfe8..6003c92 100644 --- a/src/app/gis-management/basic-info/basic-info.component.scss +++ b/src/app/gis-management/basic-info/basic-info.component.scss @@ -2,12 +2,6 @@ table,table tr th, table tr td { border: 1px solid #EEF1F5; } table { text-align: center; border-collapse: collapse; padding:2px;} *{ - -webkit-touch-callout: none; - -webkit-user-select: none; - -khtml-user-select: none; - -moz-user-select: none; - -ms-user-select: none; - user-select: none; scrollbar-width: none; /* Firefox */ } ::-webkit-scrollbar { diff --git a/src/app/gis-management/cad-draw/cad-draw.component.scss b/src/app/gis-management/cad-draw/cad-draw.component.scss index ddf1517..ff9b22f 100644 --- a/src/app/gis-management/cad-draw/cad-draw.component.scss +++ b/src/app/gis-management/cad-draw/cad-draw.component.scss @@ -1,10 +1,4 @@ *{ - -webkit-touch-callout: none; - -webkit-user-select: none; - -khtml-user-select: none; - -moz-user-select: none; - -ms-user-select: none; - user-select: none; scrollbar-width: none; /* Firefox */ } ::-webkit-scrollbar { diff --git a/src/app/gis-management/fire-facilities/fire-facilities.component.scss b/src/app/gis-management/fire-facilities/fire-facilities.component.scss index 180645e..f5d7706 100644 --- a/src/app/gis-management/fire-facilities/fire-facilities.component.scss +++ b/src/app/gis-management/fire-facilities/fire-facilities.component.scss @@ -1,10 +1,4 @@ *{ - -webkit-touch-callout: none; - -webkit-user-select: none; - -khtml-user-select: none; - -moz-user-select: none; - -ms-user-select: none; - user-select: none; scrollbar-width: none; /* Firefox */ } ::-webkit-scrollbar { diff --git a/src/app/gis-management/function-partition/function-partition.component.scss b/src/app/gis-management/function-partition/function-partition.component.scss index df4d0d5..64dba43 100644 --- a/src/app/gis-management/function-partition/function-partition.component.scss +++ b/src/app/gis-management/function-partition/function-partition.component.scss @@ -1,10 +1,4 @@ *{ - -webkit-touch-callout: none; - -webkit-user-select: none; - -khtml-user-select: none; - -moz-user-select: none; - -ms-user-select: none; - user-select: none; scrollbar-width: none; /* Firefox */ } ::-webkit-scrollbar { diff --git a/src/app/gis-management/gis-labeling/lookPlan.scss b/src/app/gis-management/gis-labeling/lookPlan.scss index c9936e4..6124465 100644 --- a/src/app/gis-management/gis-labeling/lookPlan.scss +++ b/src/app/gis-management/gis-labeling/lookPlan.scss @@ -1,14 +1,4 @@ -// table,table tr th, table tr td { border: 1px solid #EEF1F5; } table { text-align: center; border-collapse: collapse; padding:2px;} -*{ - -webkit-touch-callout: none; - -webkit-user-select: none; - -khtml-user-select: none; - -moz-user-select: none; - -ms-user-select: none; - user-select: none; -} - .box{ position: relative; display: flex; diff --git a/src/app/gis-management/key-site-look/key-site.component.scss b/src/app/gis-management/key-site-look/key-site.component.scss index f085649..ea61a5e 100644 --- a/src/app/gis-management/key-site-look/key-site.component.scss +++ b/src/app/gis-management/key-site-look/key-site.component.scss @@ -1,10 +1,4 @@ *{ - -webkit-touch-callout: none; - -webkit-user-select: none; - -khtml-user-select: none; - -moz-user-select: none; - -ms-user-select: none; - user-select: none; scrollbar-width: none; /* Firefox */ } ::-webkit-scrollbar { diff --git a/src/app/gis-management/plan-list/plan-list.component.scss b/src/app/gis-management/plan-list/plan-list.component.scss index fd8de1e..866a192 100644 --- a/src/app/gis-management/plan-list/plan-list.component.scss +++ b/src/app/gis-management/plan-list/plan-list.component.scss @@ -1,10 +1,4 @@ *{ - -webkit-touch-callout: none; - -webkit-user-select: none; - -khtml-user-select: none; - -moz-user-select: none; - -ms-user-select: none; - user-select: none; scrollbar-width: none; /* Firefox */ } ::-webkit-scrollbar { diff --git a/src/app/gis-management/realistic-picture-look/realistic-picture.component.scss b/src/app/gis-management/realistic-picture-look/realistic-picture.component.scss index 2354ca6..35b37f2 100644 --- a/src/app/gis-management/realistic-picture-look/realistic-picture.component.scss +++ b/src/app/gis-management/realistic-picture-look/realistic-picture.component.scss @@ -1,10 +1,4 @@ *{ - -webkit-touch-callout: none; - -webkit-user-select: none; - -khtml-user-select: none; - -moz-user-select: none; - -ms-user-select: none; - user-select: none; scrollbar-width: none; /* Firefox */ } ::-webkit-scrollbar { diff --git a/src/app/key-unit/basicinfo/addhouseinfo.component.html b/src/app/key-unit/basicinfo/addhouseinfo.component.html index 3ce162d..e4afdf0 100644 --- a/src/app/key-unit/basicinfo/addhouseinfo.component.html +++ b/src/app/key-unit/basicinfo/addhouseinfo.component.html @@ -1,14 +1,14 @@