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
b384f1bd
Commit
b384f1bd
authored
Mar 22, 2022
by
Sweet Zhang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修复保单看不完整
parent
a80c7a5f
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
23 additions
and
3 deletions
+23
-3
src/app/my/file-upload/file-upload.component.html
+9
-2
src/app/my/file-upload/file-upload.component.ts
+13
-0
src/app/my/sales-detail/sales-detail.component.scss
+1
-1
src/assets/images/playIcon.png
+0
-0
src/assets/images/videoIcon.png
+0
-0
No files found.
src/app/my/file-upload/file-upload.component.html
View file @
b384f1bd
...
@@ -11,9 +11,16 @@
...
@@ -11,9 +11,16 @@
<ul>
<ul>
<li
*
ngFor=
"let fileUploadItem of fileUploadItemList"
>
<li
*
ngFor=
"let fileUploadItem of fileUploadItemList"
>
<a
href=
"{{fileUploadItem.filePath}}"
download=
"{{fileUploadItem.itemName}}"
target=
"_blank"
>
<a
href=
"{{fileUploadItem.filePath}}"
download=
"{{fileUploadItem.itemName}}"
target=
"_blank"
>
<div><i
class=
"iconfont icon-pdf"
></i></div>
<div>
<i
class=
"iconfont icon-pdf"
*
ngIf=
"!judgmentFile(fileUploadItem.filePath)"
></i>
<img
src=
"assets/images/videoIcon.png"
alt=
"视频"
*
ngIf=
"judgmentFile(fileUploadItem.filePath)"
style=
" width: 26px;
margin-right: 6px;"
>
</div>
<div
title=
"{{fileUploadItem.itemName}}"
>
{{fileUploadItem.itemName}}
</div>
<div
title=
"{{fileUploadItem.itemName}}"
>
{{fileUploadItem.itemName}}
</div>
<div
style=
"position: absolute;right: 5px;top: 6px;"
><i
class=
"iconfont icon-xiazai"
></i></div>
<div
style=
"position: absolute;right: 5px;top: 6px;"
>
<i
class=
"iconfont icon-xiazai"
*
ngIf=
"!judgmentFile(fileUploadItem.filePath)"
></i>
<img
src=
"assets/images/playIcon.png"
alt=
"播放"
*
ngIf=
"judgmentFile(fileUploadItem.filePath)"
style=
" width: 26px;"
>
</div>
</a>
</a>
</li>
</li>
</ul>
</ul>
...
...
src/app/my/file-upload/file-upload.component.ts
View file @
b384f1bd
...
@@ -28,6 +28,19 @@ export class FileUploadComponent implements OnInit {
...
@@ -28,6 +28,19 @@ export class FileUploadComponent implements OnInit {
}
}
}
}
// 判断是不是视频文件
judgmentFile
(
picUrl
)
{
let
filename
=
picUrl
;
//文件路径地址
let
index1
=
filename
.
lastIndexOf
(
"."
);
let
index2
=
filename
.
length
;
let
postf
=
filename
.
substring
(
index1
,
index2
);
//获取文bai件后缀名duzhi
//判断文件后缀名是否等于视频文件的后缀名
if
(
postf
===
".avi"
||
postf
===
".mp4"
||
postf
===
".rmvb"
)
{
return
true
}
else
{
return
false
}
}
// 文件下载
// 文件下载
fileUpload
(
itemType
,
itemId
,
fileCategory
,
code
,
mdDropOptionId
)
{
fileUpload
(
itemType
,
itemId
,
fileCategory
,
code
,
mdDropOptionId
)
{
...
...
src/app/my/sales-detail/sales-detail.component.scss
View file @
b384f1bd
...
@@ -63,7 +63,7 @@
...
@@ -63,7 +63,7 @@
.salesContent
{
.salesContent
{
overflow
:
auto
;
overflow
:
auto
;
height
:
100%
;
height
:
calc
(
100%
-
180px
)
;
.salesItem
{
.salesItem
{
border-bottom
:
1px
#dcdcdc
solid
;
border-bottom
:
1px
#dcdcdc
solid
;
padding
:
10px
;
padding
:
10px
;
...
...
src/assets/images/playIcon.png
0 → 100644
View file @
b384f1bd
10.4 KB
src/assets/images/videoIcon.png
0 → 100644
View file @
b384f1bd
3.02 KB
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