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
44facacf
Commit
44facacf
authored
Nov 16, 2021
by
罗超
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
7acd2fc8
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
35 additions
and
13 deletions
+35
-13
clue.ts
src/api/clue.ts
+1
-1
clueModule.ts
src/module/customer/clueModule.ts
+22
-2
clue.vue
src/pages/customerManage/clue.vue
+12
-10
No files found.
src/api/clue.ts
View file @
44facacf
...
@@ -23,7 +23,7 @@ interface ClueParams {
...
@@ -23,7 +23,7 @@ interface ClueParams {
}
}
class
clueService
{
class
clueService
{
// 获取客户线索规则列表
// 获取客户线索规则列表
static
async
getCustomerClue
Rule
List
(
data
:
ClueParams
):
Promise
<
HttpResponse
>
{
static
async
getCustomerClueList
(
data
:
ClueParams
):
Promise
<
HttpResponse
>
{
return
Axios
(
'/QYCustomer/GetCustomerCluePageList'
,
{
return
Axios
(
'/QYCustomer/GetCustomerCluePageList'
,
{
method
:
'post'
,
method
:
'post'
,
responseType
:
'json'
,
responseType
:
'json'
,
...
...
src/module/customer/clueModule.ts
View file @
44facacf
...
@@ -58,13 +58,33 @@ const ClueModule = () => {
...
@@ -58,13 +58,33 @@ const ClueModule = () => {
EmployeeList
:
[],
EmployeeList
:
[],
rowsPerPage
:
0
rowsPerPage
:
0
})
})
const
TypeList
=
reactive
([
{
Name
:
'企业'
,
Id
:
0
},
{
Name
:
'昵称'
,
Id
:
1
},
{
Name
:
'备注名'
,
Id
:
2
},
{
Name
:
'电话'
,
Id
:
3
}
])
//获取线索列表
//获取线索列表
const
getCluerList
=
(
param
:
ClueParams
)
=>
{
const
getCluerList
=
(
param
:
ClueParams
)
=>
{
clueService
.
getCustomerClue
Rule
List
(
param
).
then
(
res
=>
{
clueService
.
getCustomerClueList
(
param
).
then
(
res
=>
{
console
.
log
(
res
,
'数据'
)
console
.
log
(
res
,
'数据'
)
data
.
dataList
=
res
.
data
.
Data
.
PageData
msg
.
pageCount
=
res
.
data
.
Data
.
PageCount
})
})
}
}
return
{
useTab
,
msg
,
data
,
getCluer
List
}
return
{
useTab
,
msg
,
data
,
getCluerList
,
Type
List
}
}
}
export
default
ClueModule
export
default
ClueModule
src/pages/customerManage/clue.vue
View file @
44facacf
...
@@ -4,16 +4,16 @@
...
@@ -4,16 +4,16 @@
<q-tabs
<q-tabs
v-model=
"tab"
v-model=
"tab"
dense
dense
class=
"text-grey"
class=
"text-grey
q-mb-md
"
align=
"left"
align=
"left"
active-color=
"primary"
active-color=
"primary"
indicator-color=
"primary"
indicator-color=
"primary"
narrow-indicator
narrow-indicator
>
>
<q-tab
name=
"1"
label=
"业务模式
"
/>
<q-tab
:name=
"1"
label=
"未处理
"
/>
<q-tab
name=
"2"
label=
"客户字段
"
/>
<q-tab
:name=
"2"
label=
"待回访
"
/>
<q-tab
name=
"3"
label=
"标签
"
/>
<q-tab
:name=
"3"
label=
"无效线索
"
/>
<q-tab
name=
"4"
label=
"线索分配规则
"
/>
<q-tab
:name=
"4"
label=
"已转客户
"
/>
</q-tabs>
</q-tabs>
<div
class=
"page-search row items-center"
>
<div
class=
"page-search row items-center"
>
<div
class=
"col row wrap q-mr-lg q-col-gutter-md"
>
<div
class=
"col row wrap q-mr-lg q-col-gutter-md"
>
...
@@ -30,6 +30,9 @@
...
@@ -30,6 +30,9 @@
:options="TimeList" emit-value map-options />
:options="TimeList" emit-value map-options />
<q-date v-model="days" multiple /> -->
<q-date v-model="days" multiple /> -->
</div>
</div>
<div
class=
"col-3"
>
<a-date-picker
v-model:value=
"value1"
/>
</div>
</div>
</div>
</div>
</div>
<div
class=
"page-content"
>
<div
class=
"page-content"
>
...
@@ -37,11 +40,10 @@
...
@@ -37,11 +40,10 @@
:columns=
"data.columns"
:columns=
"data.columns"
class=
"my-sticky-header-column-table"
class=
"my-sticky-header-column-table"
row-key=
"name"
row-key=
"name"
v-model:pagination=
"data.pagination"
selection=
"multiple"
>
selection=
"multiple"
>
<
template
v-slot:bottom
>
<
template
v-slot:bottom
>
<q-pagination
class=
"full-width justify-end"
v-model=
"msg.PageIndex"
color=
"primary"
:max=
"msg.pageCount"
<q-pagination
class=
"full-width justify-end"
v-model=
"msg.PageIndex"
color=
"primary"
:max=
"msg.pageCount"
:input=
"true"
@
input=
"changePage"
/>
:input=
"true"
/>
</
template
>
</
template
>
</q-table>
</q-table>
</div>
</div>
...
@@ -49,13 +51,13 @@
...
@@ -49,13 +51,13 @@
</div>
</div>
</template>
</template>
<
script
lang=
'ts'
>
<
script
lang=
'ts'
>
import
{
defineComponent
,
onMounted
}
from
'vue'
import
{
defineComponent
,
ref
,
onMounted
}
from
'vue'
import
ClueModule
from
'@/module/customer/clueModule'
import
ClueModule
from
'@/module/customer/clueModule'
export
default
defineComponent
({
export
default
defineComponent
({
setup
()
{
setup
()
{
let
{
let
{
useTab
,
getCluerList
,
msg
,
data
useTab
,
getCluerList
,
msg
,
data
,
TypeList
}
=
ClueModule
()
}
=
ClueModule
()
let
[
tab
,
setTab
]
=
useTab
()
let
[
tab
,
setTab
]
=
useTab
()
onMounted
(()
=>
{
onMounted
(()
=>
{
...
@@ -63,7 +65,7 @@
...
@@ -63,7 +65,7 @@
})
})
return
{
return
{
tab
,
setTab
,
msg
,
getCluerList
,
data
tab
,
setTab
,
msg
,
getCluerList
,
data
,
TypeList
,
value1
:
ref
(
""
)
}
}
}
}
})
})
...
...
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