Commit a3dc4e21 by Sweet Zhang

filePathQuery传值问题修改

parent 1a8c51a0
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
[src]="fileUploadItem?.filePath" [src]="fileUploadItem?.filePath"
controls="true" controls="true"
[poster]="fileUploadItem?.fileFirstImg" [poster]="fileUploadItem?.fileFirstImg"
width="100%" height="200px" preload="auto" (contextmenu)="menuPrevent()" x5-playsinline="true" playsinline="true" webkit-playsinline="true" disablePictureInPicture> width="100%" height="200px" preload="none" (contextmenu)="menuPrevent()" x5-playsinline="true" playsinline="true" webkit-playsinline="true" disablePictureInPicture>
您的浏览器不支持 video 标签。 您的浏览器不支持 video 标签。
</video> </video>
<img *ngIf="!canplay" [src]="fileUploadItem?.fileFirstImg" alt="" srcset=""> <img *ngIf="!canplay" [src]="fileUploadItem?.fileFirstImg" alt="" srcset="">
......
...@@ -48,14 +48,17 @@ export class CourseDetailComponent implements OnInit,OnDestroy { ...@@ -48,14 +48,17 @@ export class CourseDetailComponent implements OnInit,OnDestroy {
if (type === 3) { if (type === 3) {
this.lecturerQuery(this.fileUploadItem.fileLecturerId); this.lecturerQuery(this.fileUploadItem.fileLecturerId);
} else if (type == 2) { } else if (type == 2) {
this.filePathQuery(this.status, null) this.filePathQuery(this.status, null,this.fileUploadItem.mdDropOptionCode)
} else { } else {
this.filePathQuery(this.status, this.fileId) this.filePathQuery(this.status, this.fileId)
} }
} }
filePathQuery(status, fileId) { filePathQuery(status, fileId,code=null) {
this.myService.filePath('3', '0', '23', 'yd_trainning_file_type', null, this.customerId, status, fileId).subscribe(res => { if(status==='undefined'){
status = undefined;
}
this.myService.filePath('3', '0', '23', 'yd_trainning_file_type', code, this.customerId, status, fileId).subscribe(res => {
if (res['success']) { if (res['success']) {
if (fileId) { if (fileId) {
this.fileUploadItem = res['data']['fileUploadItemList'] ? res['data']['fileUploadItemList'][0] : null; this.fileUploadItem = res['data']['fileUploadItemList'] ? res['data']['fileUploadItemList'][0] : null;
......
...@@ -51,7 +51,7 @@ export class MoreFeaturesComponent implements OnInit,OnDestroy { ...@@ -51,7 +51,7 @@ export class MoreFeaturesComponent implements OnInit,OnDestroy {
,{ ,{
key:'05',title:'银盾学院',subItems:[ key:'05',title:'银盾学院',subItems:[
{no:23,name:'保险ABC',icon:'insuranceABC',link:'',path:`https://${window.location.host}/issue`,isOpen:true}, {no:23,name:'保险ABC',icon:'insuranceABC',link:'',path:`https://${window.location.host}/issue`,isOpen:true},
{no:24,name:'岗前训',icon:'preJobTraining',link:'/prejobTraining',path:'',isOpen:true}, {no:24,name:'岗前训',icon:'preJobTraining',link:'/preJobTraining ',path:'',isOpen:true},
{no:25,name:'新人训',icon:'newTraining',link:'/newTraining',path:'',isOpen:true}, {no:25,name:'新人训',icon:'newTraining',link:'/newTraining',path:'',isOpen:true},
{no:27,name:'CFFP初级训',icon:'cffpTraining',link:'/cffpElementaryTraining',path:'',isOpen:true}, {no:27,name:'CFFP初级训',icon:'cffpTraining',link:'/cffpElementaryTraining',path:'',isOpen:true},
{no:26,name:'提升训',icon:'promotionTraining',link:'/advanceTraining',path:'',isOpen:true}, {no:26,name:'提升训',icon:'promotionTraining',link:'/advanceTraining',path:'',isOpen:true},
......
...@@ -91,7 +91,7 @@ const myRoutes: Routes = [ ...@@ -91,7 +91,7 @@ const myRoutes: Routes = [
{ path: 'material/:itemId', component: MkMaterialDetailComponent, canActivate: [AuthGuard],data:[{title:'产品海报'}] }, { path: 'material/:itemId', component: MkMaterialDetailComponent, canActivate: [AuthGuard],data:[{title:'产品海报'}] },
{ path: 'fileUpload', component: FileUploadComponent, canActivate: [AuthGuard], data: [{ type: 'fileUpload',title:'文件下载' }] }, { path: 'fileUpload', component: FileUploadComponent, canActivate: [AuthGuard], data: [{ type: 'fileUpload',title:'文件下载' }] },
{ path: 'trainingVideo', component: FileUploadComponent, canActivate: [AuthGuard], data: [{ type: 'trainingVideo' ,title:'视频培训'}] }, { path: 'trainingVideo', component: FileUploadComponent, canActivate: [AuthGuard], data: [{ type: 'trainingVideo' ,title:'视频培训'}] },
{ path: 'prejobTraining', component: TrainingRecordsComponent, canActivate: [AuthGuard], data: [{ type: 'yd_trainning_file_type' ,title:'岗前训'}] }, { path: 'preJobTraining', component: TrainingRecordsComponent, canActivate: [AuthGuard], data: [{ type: 'yd_trainning_file_type' ,title:'岗前训'}] },
{ path: 'newTraining', component: TrainingRecordsComponent, canActivate: [AuthGuard], data: [{ type: 'yd_trainning_file_type',title:'新人训' }] }, { path: 'newTraining', component: TrainingRecordsComponent, canActivate: [AuthGuard], data: [{ type: 'yd_trainning_file_type',title:'新人训' }] },
{ path: 'advanceTraining', component: TrainingRecordsComponent, canActivate: [AuthGuard], data: [{ type: 'yd_trainning_file_type',title:'提升训' }] }, { path: 'advanceTraining', component: TrainingRecordsComponent, canActivate: [AuthGuard], data: [{ type: 'yd_trainning_file_type',title:'提升训' }] },
{ path: 'cffpElementaryTraining', component: TrainingRecordsComponent, canActivate: [AuthGuard], data: [{ type: 'yd_trainning_file_type',title:'CFFP初级训' }] }, { path: 'cffpElementaryTraining', component: TrainingRecordsComponent, canActivate: [AuthGuard], data: [{ type: 'yd_trainning_file_type',title:'CFFP初级训' }] },
......
...@@ -9,7 +9,7 @@ import { Router } from '@angular/router'; ...@@ -9,7 +9,7 @@ import { Router } from '@angular/router';
export class YdCollegeComponent implements OnInit { export class YdCollegeComponent implements OnInit {
public courseLists = [ public courseLists = [
{no:23,name:'保险ABC',icon:'insuranceABC',link:'',path:`https://${window.location.host}/issue`,isOpen:true}, {no:23,name:'保险ABC',icon:'insuranceABC',link:'',path:`https://${window.location.host}/issue`,isOpen:true},
{no:24,name:'岗前训',icon:'preJobTraining',link:'/prejobTraining',path:'',isOpen:true}, {no:24,name:'岗前训',icon:'preJobTraining',link:'/preJobTraining',path:'',isOpen:true},
{no:25,name:'新人训',icon:'newTraining',link:'/newTraining',path:'',isOpen:true}, {no:25,name:'新人训',icon:'newTraining',link:'/newTraining',path:'',isOpen:true},
{no:26,name:'CFFP初级训',icon:'cffpElementaryTraining',link:'/cffpElementaryTraining',path:'',isOpen:true}, {no:26,name:'CFFP初级训',icon:'cffpElementaryTraining',link:'/cffpElementaryTraining',path:'',isOpen:true},
{no:27,name:'提升训',icon:'promotionTraining',link:'/advanceTraining',path:'',isOpen:true}, {no:27,name:'提升训',icon:'promotionTraining',link:'/advanceTraining',path:'',isOpen:true},
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment