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
72c1c0eb
Commit
72c1c0eb
authored
Nov 15, 2021
by
Mac
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
e022d204
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
43 additions
and
6 deletions
+43
-6
customer.ts
src/api/customer.ts
+10
-1
label-group.vue
src/components/customer/label-group.vue
+33
-5
No files found.
src/api/customer.ts
View file @
72c1c0eb
...
...
@@ -13,6 +13,7 @@
interface
msg
{
Enable
:
number
}
...
...
@@ -29,7 +30,15 @@
responseType
:
'json'
,
data
})
}
}
// 获取客户标签
static
async
getLabelList
(
data
:
any
):
Promise
<
HttpResponse
>
{
return
Axios
(
'/QYWeChat/GetWeChatLableList'
,
{
method
:
'post'
,
responseType
:
'json'
,
data
})
}
// 获取客户线索规则列表
static
async
getCustomerClueRuleList
(
data
:
any
):
Promise
<
HttpResponse
>
{
return
Axios
(
'QYCustomer/GetCustomerClueRuleList'
,
{
...
...
src/components/customer/label-group.vue
View file @
72c1c0eb
...
...
@@ -26,7 +26,7 @@
</div>
</
template
>
<
script
>
import
{
defineComponent
,
ref
,
onMounted
}
from
'vue'
import
{
defineComponent
,
ref
,
onMounted
}
from
'vue'
import
customerService
from
'@/api/customer'
export
default
defineComponent
({
...
...
@@ -36,20 +36,48 @@
default
:
[]
},
},
setup
(
props
,
ctx
)
{
setup
(
props
,
ctx
)
{
let
selectList
=
ref
(
props
.
list
)
let
LableList
=
ref
([])
const
goclose
=
()
=>
{
ctx
.
emit
(
'close'
)
}
const
determine
=
()
=>
{
ctx
.
emit
(
'submit'
,
selectList
.
value
)
ctx
.
emit
(
'submit'
,
selectList
.
value
)
}
const
getLabelList
=
()
=>
{
customerService
.
getLabelList
({}).
then
((
res
)
=>
{
console
.
log
(
res
)
if
(
res
.
data
.
Code
==
1
)
{
LableList
.
value
=
res
.
data
.
Data
LableList
.
value
.
forEach
(
x
=>
{
if
(
x
.
ChildList
.
length
>
0
)
{
x
.
ChildList
.
forEach
(
j
=>
{
j
.
chek
=
false
;
// for (let index = 0; index
<
this
.
list
.
length
;
index
++
)
{
// const element = this.list[index];
// if (element.Id == j.Id) {
// j.chek = true;
// break
// }
// }
})
}
})
}
})
}
onMounted
(()
=>
{
//进入页面就调用
getLabelList
()
})
return
{
alert
:
ref
(
true
),
goclose
,
determine
,
selectList
selectList
,
getLabelList
}
}
...
...
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