Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
pet-business-web
Project
Project
Details
Activity
Releases
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
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
刘怀志
pet-business-web
Commits
fb15a8f2
Commit
fb15a8f2
authored
Sep 01, 2023
by
盖献康
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bug - 治疗管理文件上传名
parent
abc11567
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
27 additions
and
2 deletions
+27
-2
index.vue
src/components/FileUpload/index.vue
+18
-1
treatment-detail.vue
...vice-management/treatment-management/treatment-detail.vue
+9
-1
No files found.
src/components/FileUpload/index.vue
View file @
fb15a8f2
...
...
@@ -30,7 +30,10 @@
<transition-group
class=
"upload-file-list el-upload-list el-upload-list--text"
name=
"el-fade-in-linear"
tag=
"ul"
>
<li
v-for=
"(file, index) in fileList"
:key=
"file.url"
class=
"el-upload-list__item ele-upload-list__item-content"
>
<el-link
:href=
"`${baseUrl}${file.url}`"
:underline=
"false"
target=
"_blank"
>
<span
class=
"el-icon-document"
>
{{ getShowFileName(file.name) }}
</span>
<el-tooltip
:content=
"getShowFileName(file.name)"
placement=
"top"
effect=
"light"
>
<span
v-if=
"isCustomLength"
class=
"el-icon-document"
:style=
"{ width: customLength, whiteSpace: 'nowrap', overflow: 'hidden', textOverflow: 'ellipsis', position: 'relative', top: '3px', left: '2px' }"
>
{{ getShowFileName(file.name) }}
</span>
<span
v-else
class=
"el-icon-document"
>
{{ getShowFileName(file.name) }}
</span>
</el-tooltip>
</el-link>
<div
class=
"ele-upload-list__item-content-action"
>
<el-link
:underline=
"false"
type=
"danger"
@
click=
"handleDelete(index)"
>
删除
</el-link>
...
...
@@ -67,6 +70,14 @@ export default {
isShowTip
:
{
type
:
Boolean
,
default
:
true
},
isCustomLength
:
{
type
:
Boolean
,
default
:
false
},
customLength
:
{
type
:
String
,
default
:
''
}
},
data
()
{
...
...
@@ -236,4 +247,10 @@ export default {
.ele-upload-list__item-content-action
.el-link
{
margin-right
:
10px
;
}
.el-link.el-link--default
:hover
{
color
:
#5FB54B
;
}
.el-icon-document
:hover
{
color
:
#5FB54B
;
}
</
style
>
src/views/service-management/treatment-management/treatment-detail.vue
View file @
fb15a8f2
...
...
@@ -618,7 +618,15 @@
<
div
style
=
"margin-top: 20px"
>
<
el
-
form
ref
=
"file"
label
-
width
=
"120px"
>
<
el
-
form
-
item
label
=
"治疗日志"
>
<
FileUpload
v
-
model
=
"videoReport"
:
limit
=
"1"
:
file
-
size
=
"4"
:
file
-
type
=
"['pdf']"
:
is
-
show
-
tip
=
"false"
/>
<
FileUpload
v
-
model
=
"videoReport"
:
limit
=
"1"
:
file
-
size
=
"4"
:
file
-
type
=
"['pdf']"
:
is
-
show
-
tip
=
"false"
:
is
-
custom
-
length
=
"true"
:
custom
-
length
=
"'360px'"
/>
<
/el-form-item
>
<
/el-form
>
<
/div
>
...
...
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