Browse Source

[版本] 版本回退到广西版本

develop
陈鹏飞 4 years ago
parent
commit
577a4d1dd6
  1. 4
      src/app/ui/basicinfo/basicinfo.component.html
  2. 4
      src/app/ui/basicinfo/basicinfo.component.ts
  3. 1
      src/index.html

4
src/app/ui/basicinfo/basicinfo.component.html

@ -63,7 +63,7 @@
</div>
</div>
</div>
<!-- <div class="inputbox" style="width: 700px;">
<div class="inputbox" style="width: 700px;">
<span style="color: red;">*</span>
<span>辖区中队:</span>
<mat-form-field style="width: 538px;">
@ -73,7 +73,7 @@
(focus)="openorganizationbox()"
readonly="value" >
</mat-form-field>
</div> -->
</div>
<div id="organizationbox" class="organizationbox" *ngIf="isorganizationbox">
<mat-tree [dataSource]="dataSource" [treeControl]="treeControl">
<mat-tree-node *matTreeNodeDef="let node" matTreeNodePadding (click)='add(node)' class="organizationlist">

4
src/app/ui/basicinfo/basicinfo.component.ts

@ -162,7 +162,7 @@ export class BasicinfoComponent implements OnInit {
getorganization() {
this.http.get('/api/Organizations').subscribe(
(data: any) => {
this.allorganizing = JSON.parse( JSON.stringify(data) )
this.allorganizing = data
this.dataSource.data = this.tree.toTree(data);
let _this = this
this.getunitinfo().then((e)=>{
@ -1105,7 +1105,7 @@ export class BasicinfoComponent implements OnInit {
imageUrl: this.imgsrc,
location: this.markerPosition,
modifiedTime: time,
organizationId: this.allorganizing.length? this.allorganizing[0].id : null,
organizationId: this.selectedorganizationid,
organizationName: null,
buildingTypes: [
{

1
src/index.html

@ -12,5 +12,4 @@
<app-root></app-root>
</body>
<script src='https://webapi.amap.com/maps?v=2.0&key=e4b359dc7b03f9418b7497f807131346'></script>
<!-- <script type="text/javascript" src="https://cache.amap.com/lbs/static/addToolbar.js"></script> -->
</html>

Loading…
Cancel
Save