Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
H
horse
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
向伟
horse
Commits
b3a117d9
Commit
b3a117d9
authored
Nov 19, 2021
by
zhengke
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
65b6b8ef
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
83 additions
and
0 deletions
+83
-0
fileUpload.vue
src/components/common/fileUpload.vue
+83
-0
No files found.
src/components/common/fileUpload.vue
0 → 100644
View file @
b3a117d9
<
template
>
<div>
<template
v-if=
"!data.isShowEdit"
>
<q-input
filled
bg-color=
"myInput"
@
focus=
"data.isShowEdit=true"
label=
"请输入跟进记录"
/>
</
template
>
<
template
v-else
>
<div
class=
"editer_input"
>
<q-input
v-model=
"text"
style=
"50px"
maxlength=
"1000"
type=
"textarea"
placeholder=
"请填写跟进记录"
/>
<!--
<div></div>
-->
<div
class=
"file_Space"
>
<div
style=
"display:flex;align-items:center;"
>
<div>
<a-upload
v-model:file-list=
"data.imageList"
name=
"file"
:multiple=
"true"
action=
"https://www.mocky.io/v2/5cc8019d300000980a055e76"
@
change=
"handleChange"
>
<i
style=
"font-size:25px;cursor:pointer;"
class=
"iconfont icon-picture"
></i>
</a-upload>
</div>
<div
style=
"margin-left:8px;"
>
<a-upload
v-model:file-list=
"data.fileList"
name=
"file"
:multiple=
"true"
action=
"https://www.mocky.io/v2/5cc8019d300000980a055e76"
@
change=
"handleChange"
>
<i
style=
"font-size:20px;cursor:pointer;"
class=
"iconfont icon-paperclip"
></i>
</a-upload>
</div>
</div>
<div>
<q-btn
color=
"myInput"
text-color=
"#000"
size=
"sm"
@
click=
"data.isShowEdit=false"
label=
"取消"
/>
<q-btn
color=
"primary"
style=
"margin-left:10px;"
size=
"sm"
label=
"确定"
/>
</div>
</div>
</div>
</
template
>
</div>
</template>
<
script
lang=
"ts"
>
import
{
ref
,
reactive
,
onMounted
}
from
'vue'
import
message
from
'@/utils/message'
import
customer2
from
'@/api/customer2'
export
default
{
setup
(
props
,
ctx
)
{
interface
dataParam
{
[
key
:
string
]:
any
}
const
data
=
reactive
<
dataParam
>
({
isShowEdit
:
false
,
fileList
:
[],
imageList
:
[]
})
onMounted
(()
=>
{
})
return
{
data
}
}
}
</
script
>
<
style
lang=
"scss"
>
.editer_input
{
padding
:
5px
0
;
}
.myInput
{
background-color
:
#f6f6f6
!
important
;
}
.file_Space
{
display
:
flex
;
justify-content
:
space-between
;
margin-top
:
10px
;
align-items
:
center
;
}
.q-field__control
{
background-color
:
#f6f6f6
!
important
;
}
.q-field--filled
.q-field__control
:hover:before
{
opacity
:
0
;
}
</
style
>
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