Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
saas
/
scrm-micro-marketing
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 2526853b
authored
Mar 08, 2022
by
chenwq
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
sop-选择客户
1 parent
e574c792
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
22 additions
and
7 deletions
src/views/sop/editSop/baseInfo.vue
src/views/sop/editSop/components/selectCustomer.vue
src/views/sop/editSop/baseInfo.vue
View file @
2526853
...
...
@@ -7,8 +7,8 @@
<div
slot=
"customerList"
>
<el-button
class=
"default-blue-btn"
:size=
"size"
@
click=
"handleSelectCustomer"
>
选择客户
</el-button>
<el-button
:size=
"size"
@
click=
"handleResetCostomer"
>
重置客户
</el-button>
<div
v-show=
"editForm.customerList.length != 0"
:key=
"key"
class=
"el-input-tag input-tag-wrapper"
>
<el-tag
v-for=
"(item, idx) in editForm.customerList"
:key=
"idx"
:size=
"size"
type=
"info"
closable
:disable-transitions=
"false"
@
close=
"
removeTag(item,
idx)"
>
<div
v-show=
"editForm.customerList.length != 0"
:key=
"key"
class=
"el-input-tag input-tag-wrapper
m-t-10
"
>
<el-tag
v-for=
"(item, idx) in editForm.customerList"
:key=
"idx"
:size=
"size"
type=
"info"
closable
:disable-transitions=
"false"
@
close=
"
handleDeleteCustomer(
idx)"
>
<i
class=
"el-icon-user-solid"
></i>
{{
item
.
customerName
}}
</el-tag>
...
...
@@ -151,7 +151,13 @@ export default {
// console.log(this.isTagVisible)
},
handleResetCostomer
()
{
},
handleResetCostomer
()
{
this
.
editForm
.
customerList
=
[]
},
handleDeleteCustomer
(
idx
)
{
this
.
editForm
.
customerList
.
splice
(
idx
,
1
)
},
handleConfirm
()
{
this
.
$refs
.
editFormRef
.
$refs
[
this
.
editChildRef
].
validate
(
valid
=>
{
...
...
@@ -199,7 +205,7 @@ export default {
<
style
lang=
"scss"
scoped
>
.sop-base-info
{
.input-tag-wrapper
{
max-height
:
75
px
;
max-height
:
227
px
;
overflow
:
auto
;
position
:
relative
;
font-size
:
14px
;
...
...
@@ -211,7 +217,7 @@ export default {
color
:
#666
;
display
:
inline-block
;
outline
:
none
;
padding
:
5px
5px
0px
5px
;
padding
:
5px
;
flex-wrap
:
wrap
;
transition
:
border-color
0.2s
cubic-bezier
(
0.645
,
0.045
,
0.355
,
1
);
width
:
450px
;
...
...
src/views/sop/editSop/components/selectCustomer.vue
View file @
2526853
...
...
@@ -123,6 +123,15 @@ export default {
}
},
watch
:
{
selectedCustomerList
:
{
handler
()
{
this
.
selectedSum
=
this
.
selectedCustomerList
.
length
},
deep
:
true
}
},
mounted
()
{
// this.getList()
},
...
...
@@ -202,10 +211,10 @@ export default {
color
:
#666
;
display
:
inline-block
;
outline
:
none
;
padding
:
5px
5px
0px
5px
;
padding
:
5px
;
flex-wrap
:
wrap
;
transition
:
border-color
0.2s
cubic-bezier
(
0.645
,
0.045
,
0.355
,
1
);
width
:
450
px
;
width
:
648
px
;
display
:
flex
;
align-items
:
center
;
font-size
:
14px
;
...
...
Write
Preview
Markdown
is supported
Attach a file
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 post a comment