Browse Source

[修改]放开在线编辑

zhuzhou
chenjingyu 4 years ago
parent
commit
13647ee381
  1. 4
      src/app/plan-audit/plan-record/plan-record.component.ts
  2. 7
      src/app/plan-audit/wait-examineer/wait-examineer.component.html
  3. 6
      src/app/plan-audit/wait-examineer/wait-examineer.component.scss
  4. 24
      src/app/plan-audit/wait-examineer/wait-examineer.component.ts
  5. 4
      src/app/plan-management/entry-plan-look/entry-plan-look.component.ts
  6. 4
      src/app/plan-management/meet-plan/meet-plan.component.ts
  7. 6
      src/app/plan-management/onetwo-entry-plan/onetwo-entry-plan.component.ts
  8. 2
      src/app/plan-management/pass-plan/pass-plan.component.ts
  9. 6
      src/app/plan-management/type-plan/type-plan.component.ts

4
src/app/plan-audit/plan-record/plan-record.component.ts

@ -4,7 +4,7 @@
* @Author: sueRimn
* @Date: 2020-12-25 10:19:31
* @LastEditors: sueRimn
* @LastEditTime: 2021-01-28 13:40:31
* @LastEditTime: 2021-01-29 15:45:34
*/
import { Component, OnInit } from '@angular/core';
import { FormControl } from '@angular/forms';
@ -131,7 +131,7 @@ export class PlanRecordComponent implements OnInit {
docId: item.id,
title: filename,
//title: filename,
fetchUrl: "http://39.106.78.171:8000/api/Objects/PlanPlatform/"+fetchUrl
fetchUrl: `http://${location.host}/api/Objects/PlanPlatform/`+fetchUrl
},
user: {
uid: "test",

7
src/app/plan-audit/wait-examineer/wait-examineer.component.html

@ -87,7 +87,7 @@
</div>
</div>
<mat-tab-group *ngIf="isallDate&&wordShow==false" style="flex: 1;overflow-y: auto;margin-top: 10px;" [selectedIndex]="selected.value" (selectedIndexChange)="selected.setValue($event)">
<mat-tab-group *ngIf="isallDate&&wordShow==false&&!showAllimg" style="flex: 1;overflow-y: auto;margin-top: 10px;" [selectedIndex]="selected.value" (selectedIndexChange)="selected.setValue($event)">
<mat-tab label="基本信息">
<ng-template matTabContent>
@ -141,7 +141,7 @@
</mat-tab> -->
</mat-tab-group>
<div id="firefacilities" *ngIf="!isallDate&&wordShow==false" style="margin: 10px;">
<div id="firefacilities" *ngIf="!isallDate&&wordShow==false&&!showAllimg" style="margin: 10px;">
<mat-accordion class="tableContent" >
<mat-expansion-panel expanded style="box-shadow: 0 0 black;border: 1px solid #EEF1F5;">
<mat-expansion-panel-header collapsedHeight ='40px' expandedHeight='40px' class="panelhead" style="background-color: #2196F3;">
@ -240,9 +240,10 @@
</mat-expansion-panel>
</mat-accordion>
</div>
<div class="word">
<div class="word" *ngIf="wordShow">
<iframe [src]='iframeSrc'></iframe>
</div>
<div id="viewer" *ngIf="showAllimg"></div>
</div>
</div>

6
src/app/plan-audit/wait-examineer/wait-examineer.component.scss

@ -105,6 +105,11 @@
overflow-y: auto;
}
}
#viewer{
margin: 10px 10px 10px 10px;
width: 97%;
height: 91%;
}
}
}
th,td{
@ -201,3 +206,4 @@ th,td{
::-webkit-scrollbar-thumb{
background-color: #2196F3;
}

24
src/app/plan-audit/wait-examineer/wait-examineer.component.ts

@ -4,7 +4,7 @@
* @Author: sueRimn
* @Date: 2020-12-25 16:13:50
* @LastEditors: sueRimn
* @LastEditTime: 2021-01-28 11:30:48
* @LastEditTime: 2021-01-29 15:45:27
*/
import { Component, OnInit } from '@angular/core';
import { FormControl } from '@angular/forms';
@ -12,6 +12,7 @@ import { MatSnackBar, MatSnackBarConfig } from '@angular/material/snack-bar';
import { HttpClient } from '@angular/common/http'
import CryptoJS from 'crypto-js/crypto-js'
import { DomSanitizer } from '@angular/platform-browser';
import { Viewer } from 'photo-sphere-viewer';
declare var echarts: any;
@Component({
@ -101,6 +102,7 @@ export class WaitExamineerComponent implements OnInit {
chuorzhong//判断初审还是终审
radioid//选中的id
shenheTable=[]//选中要审核的对象
showAllimg=false
//获取表格数据
getAlltabledate(){
@ -144,11 +146,25 @@ export class WaitExamineerComponent implements OnInit {
//radio点击事件
radioClick(e,item){
//e.target.parentElement.bgColor='#2196F3'
console.log(e,item)
//console.log(e,item)
let filename:string
let fetchUrl
this.http.get(`/api/PlanComponents/${item.itemId}`).subscribe((data:any)=>{
fetchUrl=data.attachmentUrls[0]
if(fetchUrl.substr(0,3)=='psw'){
this.wordShow=false
this.showAllimg=true
window.setTimeout(()=>{
const viewer = new Viewer({
container: document.querySelector('#viewer'),
panorama:'/api/Objects/PlanPlatform/'+ fetchUrl,
});
})
}else{
this.wordShow=true
this.showAllimg=false
this.http.get(`/api/ObjectMetadata/PlanPlatform/${fetchUrl}`).subscribe((data:any)=>{
filename=data.fileName
let json={
@ -156,7 +172,7 @@ export class WaitExamineerComponent implements OnInit {
docId: item.id,
title: filename,
//title: filename,
fetchUrl: "http://39.106.78.171:8000/api/Objects/PlanPlatform/"+fetchUrl
fetchUrl: `http://${location.host}/api/Objects/PlanPlatform/`+fetchUrl
},
user: {
uid: "test",
@ -174,6 +190,8 @@ export class WaitExamineerComponent implements OnInit {
this.iframeSrc=this.sanitizer.bypassSecurityTrustResourceUrl(this.src);
//window.open(`http://121.5.10.84/apps/editor/openPreview?data=${base64}`)
})
}
})
if(e.checked){

4
src/app/plan-management/entry-plan-look/entry-plan-look.component.ts

@ -122,14 +122,14 @@ export class EntryPlanLookComponent implements OnInit {
docId: e.id,
title: filename,
//title: filename,
fetchUrl: "http://39.106.78.171:8000/api/Objects/PlanPlatform/"+fetchUrl
fetchUrl: `http://${location.host}/api/Objects/PlanPlatform/`+fetchUrl
},
user: {
uid: "test",
nickName: "test",
avatar: "",
privilege: [
'FILE_READ','FILE_DOWNLOAD', 'FILE_PRINT'
'FILE_READ','FILE_WRITE','FILE_DOWNLOAD', 'FILE_PRINT'
],
},
}

4
src/app/plan-management/meet-plan/meet-plan.component.ts

@ -178,14 +178,14 @@ export class MeetPlanComponent implements OnInit {
docId: element.id,
title: filename,
//title: filename,
fetchUrl: "http://39.106.78.171:8000/api/Objects/PlanPlatform/"+fetchUrl
fetchUrl: `http://${location.host}/api/Objects/PlanPlatform/`+fetchUrl
},
user: {
uid: "test",
nickName: "test",
avatar: "",
privilege: [
'FILE_READ','FILE_DOWNLOAD', 'FILE_PRINT'
'FILE_READ','FILE_WRITE','FILE_DOWNLOAD', 'FILE_PRINT'
],
},
}

6
src/app/plan-management/onetwo-entry-plan/onetwo-entry-plan.component.ts

@ -4,7 +4,7 @@
* @Author: sueRimn
* @Date: 2020-12-24 14:15:10
* @LastEditors: sueRimn
* @LastEditTime: 2021-01-28 14:07:24
* @LastEditTime: 2021-01-29 15:42:53
*/
import { Component, OnInit, ViewChild, Inject } from '@angular/core';
import { HttpClient } from '@angular/common/http'
@ -199,14 +199,14 @@ export class OnetwoEntryPlanComponent implements OnInit {
docId: element.id,
title: filename,
//title: filename,
fetchUrl: "http://39.106.78.171:8000/api/Objects/PlanPlatform/"+fetchUrl
fetchUrl: `http://${location.host}/api/Objects/PlanPlatform/`+fetchUrl
},
user: {
uid: "test",
nickName: "test",
avatar: "",
privilege: [
'FILE_READ','FILE_DOWNLOAD', 'FILE_PRINT'
'FILE_READ','FILE_WRITE','FILE_DOWNLOAD', 'FILE_PRINT'
],
},
}

2
src/app/plan-management/pass-plan/pass-plan.component.ts

@ -305,7 +305,7 @@ export class PassPlanComponent implements OnInit {
docId: element.id,
title: filename,
//title: filename,
fetchUrl: "http://39.106.78.171:8000/api/Objects/PlanPlatform/"+fetchUrl
fetchUrl: `http://${location.host}/api/Objects/PlanPlatform/`+fetchUrl
},
user: {
uid: "test",

6
src/app/plan-management/type-plan/type-plan.component.ts

@ -4,7 +4,7 @@
* @Author: sueRimn
* @Date: 2021-01-06 09:47:43
* @LastEditors: sueRimn
* @LastEditTime: 2021-01-27 15:49:53
* @LastEditTime: 2021-01-29 15:42:14
*/
import { Component, OnInit, ViewChild, Inject } from '@angular/core';
import { HttpClient } from '@angular/common/http'
@ -183,14 +183,14 @@ export class TypePlanComponent implements OnInit {
docId: element.id,
title: filename,
//title: filename,
fetchUrl: "http://39.106.78.171:8000/api/Objects/PlanPlatform/"+fetchUrl
fetchUrl: `http://${location.host}/api/Objects/PlanPlatform/`+fetchUrl
},
user: {
uid: "test",
nickName: "test",
avatar: "",
privilege: [
'FILE_READ','FILE_DOWNLOAD', 'FILE_PRINT'
'FILE_READ','FILE_WRITE','FILE_DOWNLOAD', 'FILE_PRINT'
],
},
}

Loading…
Cancel
Save