Browse Source

[完善]视频播放

beijing
邵佳豪 2 years ago
parent
commit
6e2b5c00e6
  1. 4
      proxy.config.json
  2. 12
      src/app/pages/today-warning/get-out-of-line-details/get-out-of-line-details.component.html

4
proxy.config.json

@ -1,11 +1,11 @@
{
"/api": {
"target": "https://znaq.sinochemoilmarketing.com/",
"target": "http://121.36.37.70:8906/",
"secure": false,
"changeOrigin": true
},
"/signalr": {
"target": "https://znaq.sinochemoilmarketing.com/",
"target": "http://121.36.37.70:8906/",
"secure": false,
"ws": true,
"logLevel": "debug"

12
src/app/pages/today-warning/get-out-of-line-details/get-out-of-line-details.component.html

@ -31,8 +31,7 @@
</div>
<div *ngIf="selectedType == 'video'" class="vediobox">
<ng-container *ngIf="vedioUrl; else elseTemplate3">
<video crossorign="anonymous" controls style="width: 100%;height: 100%;"
src="http://121.36.37.70:8906/api/Objects/sinochemweb/video_vr/1669958550_3_192_168_110_72.mp4?directView=true"></video>
<video crossorign="anonymous" controls style="width: 100%;height: 100%;" [src]="vedioUrl"></video>
</ng-container>
<ng-template #elseTemplate3>
暂无视频
@ -62,12 +61,10 @@
<span
*ngIf="!data.handleTime && (data.appealStatus == 0 || data.appealStatus == 3 || data.appealStatus == 4) && isSubmit"
style="color: #FF4B65;cursor: pointer;margin-right: 20px;" (click)="appeal()">申诉</span>
<nz-modal [(nzVisible)]="isAppeal" nzTitle="申诉原因" (nzOnOk)="handleOk()"
(nzOnCancel)="handleCancel()">
<nz-modal [(nzVisible)]="isAppeal" nzTitle="申诉原因" (nzOnOk)="handleOk()" (nzOnCancel)="handleCancel()">
<ng-container *nzModalContent>
<textarea nz-input rows="2" placeholder="请输入申诉原因" name="appeal"
[(ngModel)]="appealValue"></textarea>
<textarea nz-input rows="2" placeholder="请输入申诉原因" name="appeal" [(ngModel)]="appealValue"></textarea>
<div class="appealUploadbox">
<div class="title">
上传附件:
@ -76,8 +73,7 @@
<button nz-button [nzLoading]="isLoadingSave">
<span nz-icon nzType="upload"></span>上传
</button>
<input type="file" name="" id="" (change)="filechange($event)"
*ngIf="!isLoadingSave">
<input type="file" name="" id="" (change)="filechange($event)" *ngIf="!isLoadingSave">
<ul>
<li *ngFor="let item of fileList;let key = index">
<span class="filename" (click)="lookfile(item)">{{item | fileName}}</span>

Loading…
Cancel
Save