Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
J
jiedao-app-operator-master
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
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
lanbaoming
jiedao-app-operator-master
Commits
6f8443cf
Commit
6f8443cf
authored
Nov 16, 2024
by
zhengyi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
跟进列表切换数据权限查询与导出接口
parent
97ddd548
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
30 additions
and
11 deletions
+30
-11
customerFollow.js
src/api/ecw/customerFollow.js
+21
-2
logListCommon.vue
src/views/ecw/offer/logListCommon.vue
+9
-9
No files found.
src/api/ecw/customerFollow.js
View file @
6f8443cf
...
...
@@ -60,13 +60,22 @@ export function exportCustomerFollowExcel(query) {
})
}
export
function
getCustomerFollowList
(
params
)
{
// 跟进分页列表
export
function
getCustomerFollowupList
(
params
)
{
return
request
({
url
:
"
/customer/followup/page
"
,
method
:
"
get
"
,
params
})
}
// 数据权限跟进分页列表
export
function
getDataSpaceCustomerFollowupList
(
params
)
{
return
request
({
url
:
"
/customer/followup/data/space/page
"
,
method
:
"
get
"
,
params
})
}
export
function
getCustomerFollowDetail
(
params
)
{
return
request
({
...
...
@@ -99,7 +108,7 @@ export function updateCustomerFollowupStatus(data) {
})
}
export
function
exportCustomerFollow
(
params
)
{
export
function
exportCustomerFollow
up
(
params
)
{
return
request
({
url
:
"
/customer/followup/export-excel
"
,
method
:
"
get
"
,
...
...
@@ -107,6 +116,16 @@ export function exportCustomerFollow(params) {
})
}
// 数据权限导出跟进 Excel
export
function
exportDataSpaceCustomerFollowup
(
query
)
{
return
request
({
url
:
"
/customer/followup/data/space/export-excel
"
,
method
:
"
get
"
,
params
:
query
,
responseType
:
"
blob
"
})
}
export
function
getFollowupNewNumber
()
{
return
request
({
url
:
"
/customer/followup/getFollowupNewNumber
"
,
...
...
src/views/ecw/offer/logListCommon.vue
View file @
6f8443cf
...
...
@@ -46,7 +46,7 @@
</el-form-item>
<el-form-item
style=
"padding-left: 20px; width: auto"
>
<div
class=
"flex-c-c"
>
<el-button
type=
"primary"
icon=
"el-icon-search"
@
click=
"get
CustomerFollow
List"
>
{{
$t
(
"
搜索
"
)
}}
</el-button>
<el-button
type=
"primary"
icon=
"el-icon-search"
@
click=
"get
DataSpaceCustomerFollowup
List"
>
{{
$t
(
"
搜索
"
)
}}
</el-button>
<el-button
type=
"primary"
@
click=
"reset"
>
{{
$t
(
"
重置
"
)
}}
</el-button>
</div>
</el-form-item>
...
...
@@ -121,7 +121,7 @@
</
template
>
</el-table-column>
</el-table>
<pagination
:total=
"customerFollowTotal"
:page.sync=
"followForm.pageNo"
:limit.sync=
"followForm.pageSize"
@
pagination=
"get
CustomerFollow
List"
/>
<pagination
:total=
"customerFollowTotal"
:page.sync=
"followForm.pageNo"
:limit.sync=
"followForm.pageSize"
@
pagination=
"get
DataSpaceCustomerFollowup
List"
/>
</el-card>
<customer-follow
ref=
"customerFollow"
@
close=
"customerFollowVisible = false"
@
handleCustomerFollowAdd=
"handleCustomerFollowAdd"
@
refresh=
"handleQuery"
v-if=
"customerFollowVisible"
:customer-id=
"customerId"
:customerService=
"customerService"
:customerNumber=
"customerNumber"
/>
<customer-follow-update-status
:show.sync=
"updateStatus"
:followup-ids.sync=
"selectCustomerFollowList"
@
refresh=
"handleQuery"
></customer-follow-update-status>
...
...
@@ -129,7 +129,7 @@
</template>
<
script
>
import
{
get
CustomerFollowList
,
exportCustomerFollow
}
from
"
@/api/ecw/customerFollow
"
import
{
get
DataSpaceCustomerFollowupList
,
exportDataSpaceCustomerFollowup
}
from
"
@/api/ecw/customerFollow
"
import
{
getDictDatas
,
DICT_TYPE
,
getDictDatas2
}
from
"
@/utils/dict
"
import
CustomerFollow
from
"
@/views/ecw/customer/components/customerFollow
"
import
UserSelector
from
"
@/components/UserSelector
"
...
...
@@ -186,7 +186,7 @@ export default {
watch
:
{
selectCustomerFollowList
(
val
)
{
if
(
val
.
length
===
0
)
{
this
.
get
CustomerFollow
List
()
this
.
get
DataSpaceCustomerFollowup
List
()
this
.
$refs
.
multipleTable
.
clearSelection
()
}
},
...
...
@@ -243,13 +243,13 @@ export default {
this
.
followForm
.
pageNo
=
1
this
.
customerFollowTotal
=
0
this
.
customerFollowList
=
[]
this
.
get
CustomerFollow
List
()
this
.
get
DataSpaceCustomerFollowup
List
()
},
/** 跟进记录导出按钮操作 */
handleExport
()
{
// 执行导出
this
.
$modal
.
confirm
(
this
.
$t
(
"
是否确认导出客户跟进记录数据项?
"
)).
then
(()
=>
{
export
CustomerFollow
({
export
DataSpaceCustomerFollowup
({
...
this
.
followForm
,
...
this
.
formatQuery
(),
pageNo
:
null
,
...
...
@@ -259,9 +259,9 @@ export default {
})
})
},
get
CustomerFollow
List
()
{
get
DataSpaceCustomerFollowup
List
()
{
this
.
loading
=
true
get
CustomerFollow
List
({
get
DataSpaceCustomerFollowup
List
({
...
this
.
followForm
,
...
this
.
formatQuery
()
}).
then
((
r
)
=>
{
...
...
@@ -276,7 +276,7 @@ export default {
pageNo
:
1
,
pageSize
:
10
}
this
.
get
CustomerFollow
List
()
this
.
get
DataSpaceCustomerFollowup
List
()
}
}
}
...
...
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