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
47e97436
Commit
47e97436
authored
Nov 12, 2021
by
Mac
Browse files
Options
Browse Files
Download
Plain Diff
解决冲突
parents
843e9654
c2e74e03
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
65 additions
and
5 deletions
+65
-5
customer.ts
src/api/customer.ts
+8
-1
request-group.vue
src/components/customer/request-group.vue
+49
-0
customerModule.ts
src/module/customer/customerModule.ts
+1
-1
customerSetup.vue
src/pages/customer/customerSetup.vue
+7
-3
No files found.
src/api/customer.ts
View file @
47e97436
...
...
@@ -30,7 +30,14 @@
data
})
}
// 获取客户线索规则列表
static
async
getCustomerClueRuleList
(
data
:
any
):
Promise
<
HttpResponse
>
{
return
Axios
(
'QYCustomer/GetCustomerClueRuleList'
,
{
method
:
'post'
,
responseType
:
'json'
,
data
})
}
}
export
default
customerService
src/components/customer/request-group.vue
0 → 100644
View file @
47e97436
<
template
>
<div
class=
"requestgroup"
>
</div>
</
template
>
<
script
lang=
"ts"
>
import
{
defineComponent
,
ref
,
onMounted
}
from
'vue'
import
customerService
from
'@/api/customer'
export
default
defineComponent
({
setup
()
{
const
filedList
=
ref
([])
const
addMsg
=
ref
([])
onMounted
(()
=>
{
//进入页面就调用
getCustomerFiledList
();
//获取客户字段
})
const
getCustomerFiledList
=
()
=>
{
customerService
.
getCustomerFiledList
({
Enable
:
1
}).
then
((
res
)
=>
{
let
data
=
res
.
data
.
Data
filedList
.
value
=
data
;
filedList
.
value
.
forEach
(
x
=>
{
// IsCustom 是否自定义字段 1是 2标签 3阶段
x
.
IsCustom
=
1
})
let
obj
=
{
Id
:
'客户阶段'
,
Name
:
'客户阶段'
,
Type
:
4
,
IsCustom
:
3
}
filedList
.
value
.
unshift
(
obj
)
let
obj2
=
{
Id
:
'标签'
,
Name
:
'标签'
,
Type
:
3
,
IsCustom
:
2
}
filedList
.
value
.
unshift
(
obj2
)
addMsg
.
value
.
push
({
Name
:
filedList
.
value
[
0
].
Id
,
Type
:
filedList
.
value
,
Direction
:
1
,
StartValue
:
''
,
EndValue
:
''
,
IsCustom
:
2
,
})
})
}
return
{
getCustomerFiledList
}
}
})
</
script
>
\ No newline at end of file
src/module/customer/customerModule.ts
View file @
47e97436
...
...
@@ -122,7 +122,7 @@ const CustomerModule = () => {
}
}
const
changePage
=
(
val
:
any
)
=>
{
console
.
log
(
val
);
console
.
log
(
125
,
val
)
}
return
{
getCustomerList
,
data
,
msg
,
title
,
TypeList
,
SeletObj
,
getSelectWay
,
TimeObj
,
TimeList
,
changePage
,
pagination
}
...
...
src/pages/customer/customerSetup.vue
View file @
47e97436
...
...
@@ -13,9 +13,11 @@
<q-tab
name=
"yewumoshi"
label=
"业务模式"
/>
<q-tab
name=
"field"
label=
"客户字段"
/>
<q-tab
name=
"label"
label=
"标签"
/>
<q-tab
name=
"clue"
label=
"线索分配规则"
/>
</q-tabs>
<div
v-if=
"tab == 'field'"
>
<customer-Field></customer-Field>
<div>
<customer-Field
v-if=
"tab == 'field'"
></customer-Field>
<clue-rule
v-if=
"tab == 'clue'"
></clue-rule>
</div>
</q-page>
</div>
...
...
@@ -23,13 +25,15 @@
<
script
lang=
"ts"
>
import
customerField
from
'./components/customerField.vue'
import
clueRule
from
'./components/clueRule.vue'
import
{
defineComponent
,
ref
}
from
'vue'
export
default
defineComponent
({
components
:
{
customerField
customerField
,
clueRule
},
setup
()
{
return
{
...
...
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