|
|
@ -4,7 +4,7 @@ |
|
|
|
* @Author: sueRimn |
|
|
|
* @Author: sueRimn |
|
|
|
* @Date: 2020-12-25 16:13:50 |
|
|
|
* @Date: 2020-12-25 16:13:50 |
|
|
|
* @LastEditors: sueRimn |
|
|
|
* @LastEditors: sueRimn |
|
|
|
* @LastEditTime: 2021-02-07 14:37:44 |
|
|
|
* @LastEditTime: 2021-02-20 16:34:00 |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
import { Component, Inject, OnInit } from '@angular/core'; |
|
|
|
import { Component, Inject, OnInit } from '@angular/core'; |
|
|
|
import { FormControl } from '@angular/forms'; |
|
|
|
import { FormControl } from '@angular/forms'; |
|
|
@ -212,19 +212,25 @@ export class WaitExamineerComponent implements OnInit { |
|
|
|
//毕升
|
|
|
|
//毕升
|
|
|
|
lookWord(){ |
|
|
|
lookWord(){ |
|
|
|
this.showtype=0 |
|
|
|
this.showtype=0 |
|
|
|
|
|
|
|
let docIdWordArray = CryptoJS.enc.Utf8.parse(`PlanPlatform/` + this.fetchUrl); |
|
|
|
|
|
|
|
let docId = CryptoJS.enc.Base64.stringify(docIdWordArray); |
|
|
|
|
|
|
|
let jwt = sessionStorage.getItem("token"); |
|
|
|
|
|
|
|
let rawJwt = CryptoJS.enc.Base64.parse(jwt.split('.')[1]); |
|
|
|
|
|
|
|
let identityJson = CryptoJS.enc.Utf8.stringify(rawJwt); |
|
|
|
|
|
|
|
let identityJsonparse=JSON.parse(identityJson) |
|
|
|
let filename:string |
|
|
|
let filename:string |
|
|
|
this.http.get(`/api/ObjectMetadata/PlanPlatform/${this.fetchUrl}`).subscribe((data:any)=>{ |
|
|
|
this.http.get(`/api/ObjectMetadata/PlanPlatform/${this.fetchUrl}`).subscribe((data:any)=>{ |
|
|
|
filename=data.fileName
|
|
|
|
filename=data.fileName
|
|
|
|
let json={ |
|
|
|
let json={ |
|
|
|
doc: { |
|
|
|
doc: { |
|
|
|
docId: this.id,
|
|
|
|
docId: docId,
|
|
|
|
title: filename, |
|
|
|
title: filename, |
|
|
|
//title: filename,
|
|
|
|
//title: filename,
|
|
|
|
fetchUrl: `http://${location.host}/api/Objects/PlanPlatform/`+this.fetchUrl |
|
|
|
fetchUrl: `http://${location.host}/api/Objects/PlanPlatform/`+this.fetchUrl |
|
|
|
}, |
|
|
|
}, |
|
|
|
user: { |
|
|
|
user: { |
|
|
|
uid: "test", |
|
|
|
uid: identityJsonparse.sub, |
|
|
|
nickName: "test", |
|
|
|
nickName: identityJsonparse.name, |
|
|
|
avatar: "", |
|
|
|
avatar: "", |
|
|
|
privilege: [ |
|
|
|
privilege: [ |
|
|
|
'FILE_READ','FILE_DOWNLOAD', 'FILE_PRINT'
|
|
|
|
'FILE_READ','FILE_DOWNLOAD', 'FILE_PRINT'
|
|
|
|