Browse Source

[修改]实景图去掉默认的重点部位文件夹

zhuzhou
邵佳豪 3 years ago
parent
commit
aa43b3c2d7
  1. 4
      proxy.config.json
  2. 2
      src/app/key-unit/key-unit-management/upname.html
  3. 14
      src/app/key-unit/realistic-picture-look/realistic-picture.component.ts
  4. 14
      src/app/key-unit/realistic-picture/realistic-picture.component.ts

4
proxy.config.json

@ -1,7 +1,7 @@
{ {
"/api": { "/api": {
"target": "http://39.106.78.171:8890", "target": "http://218.75.214.31:28085",
"secure": false, "secure": false,
"changeOrigin": true "changeOrigin": true
} }
} }

2
src/app/key-unit/key-unit-management/upname.html

@ -17,7 +17,7 @@
<div class="queryField"> <div class="queryField">
<label style="margin-right: 10px;">新单位名称:</label> <label style="margin-right: 10px;">新单位名称:</label>
<mat-form-field class="example-full-width"> <mat-form-field class="example-full-width">
<input matInput placeholder="请输入新预案名称" required name="companyName" autocomplete="off" [(ngModel)]="unitname"> <input matInput placeholder="请输入新单位名称" required name="companyName" autocomplete="off" [(ngModel)]="unitname">
</mat-form-field> </mat-form-field>
</div> </div>
<div class="bottom"> <div class="bottom">

14
src/app/key-unit/realistic-picture-look/realistic-picture.component.ts

@ -29,12 +29,12 @@ export class RealisticPictureLookComponent implements OnInit {
companyId : companyId companyId : companyId
}}).subscribe((data:any)=>{ }}).subscribe((data:any)=>{
this.allRealPicture = data this.allRealPicture = data
this.allRealPicture.unshift({ // this.allRealPicture.unshift({
companyId:sessionStorage.getItem('companyId'), // companyId:sessionStorage.getItem('companyId'),
id:'重点部位', // id:'重点部位',
name: "重点部位", // name: "重点部位",
realityImages:null // realityImages:null
}) // })
this.selectReal = data[0] this.selectReal = data[0]
this.getAllRealPicture() this.getAllRealPicture()
}) })
@ -77,7 +77,7 @@ export class RealisticPictureLookComponent implements OnInit {
getAllRealPicture () { getAllRealPicture () {
if (this.selectReal) { if (this.selectReal) {
let data let data
if(this.selectReal.id == '重点部位'){ if(this.selectReal.id == 'xxxxxxxxxxxxx'){
data = { data = {
groupId: this.selectReal.id, groupId: this.selectReal.id,
companyId : this.selectReal.companyId, companyId : this.selectReal.companyId,

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

@ -30,12 +30,12 @@ export class RealisticPictureComponent implements OnInit {
companyId : companyId companyId : companyId
}}).subscribe((data:any)=>{ }}).subscribe((data:any)=>{
this.allRealPicture = data this.allRealPicture = data
this.allRealPicture.unshift({ // this.allRealPicture.unshift({
companyId:sessionStorage.getItem('companyId'), // companyId:sessionStorage.getItem('companyId'),
id:'重点部位', // id:'重点部位',
name: "重点部位", // name: "重点部位",
realityImages:null // realityImages:null
}) // })
this.selectReal = data[0] this.selectReal = data[0]
this.getAllRealPicture() this.getAllRealPicture()
}) })
@ -78,7 +78,7 @@ export class RealisticPictureComponent implements OnInit {
getAllRealPicture () { getAllRealPicture () {
if (this.selectReal) { if (this.selectReal) {
let data let data
if(this.selectReal.id == '重点部位'){ if(this.selectReal.id == 'xxxxxxxxxxx'){
data = { data = {
groupId: this.selectReal.id, groupId: this.selectReal.id,
companyId : this.selectReal.companyId, companyId : this.selectReal.companyId,

Loading…
Cancel
Save