Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Y
ydLife
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Sweet Zhang
ydLife
Commits
a3dc4e21
Commit
a3dc4e21
authored
Aug 18, 2022
by
Sweet Zhang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
filePathQuery传值问题修改
parent
1a8c51a0
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
10 additions
and
7 deletions
+10
-7
src/app/my/course-detail/course-detail.component.html
+1
-1
src/app/my/course-detail/course-detail.component.ts
+6
-3
src/app/my/more-features/more-features.component.ts
+1
-1
src/app/my/my-routing.module.ts
+1
-1
src/app/my/yd-college/yd-college.component.ts
+1
-1
No files found.
src/app/my/course-detail/course-detail.component.html
View file @
a3dc4e21
...
...
@@ -4,7 +4,7 @@
[
src
]="
fileUploadItem
?.
filePath
"
controls=
"true"
[
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>
<img
*
ngIf=
"!canplay"
[
src
]="
fileUploadItem
?.
fileFirstImg
"
alt=
""
srcset=
""
>
...
...
src/app/my/course-detail/course-detail.component.ts
View file @
a3dc4e21
...
...
@@ -48,14 +48,17 @@ export class CourseDetailComponent implements OnInit,OnDestroy {
if
(
type
===
3
)
{
this
.
lecturerQuery
(
this
.
fileUploadItem
.
fileLecturerId
);
}
else
if
(
type
==
2
)
{
this
.
filePathQuery
(
this
.
status
,
null
)
this
.
filePathQuery
(
this
.
status
,
null
,
this
.
fileUploadItem
.
mdDropOptionCode
)
}
else
{
this
.
filePathQuery
(
this
.
status
,
this
.
fileId
)
}
}
filePathQuery
(
status
,
fileId
)
{
this
.
myService
.
filePath
(
'3'
,
'0'
,
'23'
,
'yd_trainning_file_type'
,
null
,
this
.
customerId
,
status
,
fileId
).
subscribe
(
res
=>
{
filePathQuery
(
status
,
fileId
,
code
=
null
)
{
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
(
fileId
)
{
this
.
fileUploadItem
=
res
[
'data'
][
'fileUploadItemList'
]
?
res
[
'data'
][
'fileUploadItemList'
][
0
]
:
null
;
...
...
src/app/my/more-features/more-features.component.ts
View file @
a3dc4e21
...
...
@@ -51,7 +51,7 @@ export class MoreFeaturesComponent implements OnInit,OnDestroy {
,{
key
:
'05'
,
title
:
'银盾学院'
,
subItems
:[
{
no
:
23
,
name
:
'保险ABC'
,
icon
:
'insuranceABC'
,
link
:
''
,
path
:
`https://
${
window
.
location
.
host
}
/issue`
,
isOpen
:
true
},
{
no
:
24
,
name
:
'岗前训'
,
icon
:
'preJobTraining'
,
link
:
'/pre
jobTraining
'
,
path
:
''
,
isOpen
:
true
},
{
no
:
24
,
name
:
'岗前训'
,
icon
:
'preJobTraining'
,
link
:
'/pre
JobTraining
'
,
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
:
26
,
name
:
'提升训'
,
icon
:
'promotionTraining'
,
link
:
'/advanceTraining'
,
path
:
''
,
isOpen
:
true
},
...
...
src/app/my/my-routing.module.ts
View file @
a3dc4e21
...
...
@@ -91,7 +91,7 @@ const myRoutes: Routes = [
{
path
:
'material/:itemId'
,
component
:
MkMaterialDetailComponent
,
canActivate
:
[
AuthGuard
],
data
:[{
title
:
'产品海报'
}]
},
{
path
:
'fileUpload'
,
component
:
FileUploadComponent
,
canActivate
:
[
AuthGuard
],
data
:
[{
type
:
'fileUpload'
,
title
:
'文件下载'
}]
},
{
path
:
'trainingVideo'
,
component
:
FileUploadComponent
,
canActivate
:
[
AuthGuard
],
data
:
[{
type
:
'trainingVideo'
,
title
:
'视频培训'
}]
},
{
path
:
'pre
j
obTraining'
,
component
:
TrainingRecordsComponent
,
canActivate
:
[
AuthGuard
],
data
:
[{
type
:
'yd_trainning_file_type'
,
title
:
'岗前训'
}]
},
{
path
:
'pre
J
obTraining'
,
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
:
'cffpElementaryTraining'
,
component
:
TrainingRecordsComponent
,
canActivate
:
[
AuthGuard
],
data
:
[{
type
:
'yd_trainning_file_type'
,
title
:
'CFFP初级训'
}]
},
...
...
src/app/my/yd-college/yd-college.component.ts
View file @
a3dc4e21
...
...
@@ -9,7 +9,7 @@ import { Router } from '@angular/router';
export
class
YdCollegeComponent
implements
OnInit
{
public
courseLists
=
[
{
no
:
23
,
name
:
'保险ABC'
,
icon
:
'insuranceABC'
,
link
:
''
,
path
:
`https://
${
window
.
location
.
host
}
/issue`
,
isOpen
:
true
},
{
no
:
24
,
name
:
'岗前训'
,
icon
:
'preJobTraining'
,
link
:
'/pre
j
obTraining'
,
path
:
''
,
isOpen
:
true
},
{
no
:
24
,
name
:
'岗前训'
,
icon
:
'preJobTraining'
,
link
:
'/pre
J
obTraining'
,
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
:
27
,
name
:
'提升训'
,
icon
:
'promotionTraining'
,
link
:
'/advanceTraining'
,
path
:
''
,
isOpen
:
true
},
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment