Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
Toggle navigation
This project
Loading...
Sign in
李宁
/
Activity
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 3d33fcb4
authored
Dec 18, 2025
by
李宁
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
1
1 parent
1a3f0393
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
52 additions
and
6 deletions
zhiJianBusi/zjbPc/src/assets/js/api/interface/business/index.js
zhiJianBusi/zjbPc/src/views/OpportunityManagement.vue
zhiJianBusi/zjbPc/src/assets/js/api/interface/business/index.js
View file @
3d33fcb
...
...
@@ -11,6 +11,17 @@ export function queryAllBusi(data) {
}
/**
* 全部商机-列表导出
*/
export
function
exportAllBusi
(
data
)
{
return
request
({
url
:
'/compass/api/opportunity/export'
,
data
,
responseType
:
'blob'
})
}
/**
* 全部商机-商机审核
*/
export
function
audioBusi
(
data
)
{
...
...
zhiJianBusi/zjbPc/src/views/OpportunityManagement.vue
View file @
3d33fcb
...
...
@@ -185,15 +185,15 @@
</el-select>
</el-col>
<el-col
:span=
"
3
"
>
<el-col
:span=
"
4
"
>
<el-button
size=
"small"
@
click=
"handleFilter"
>
<i
class=
"el-icon-filter"
></i>
查询
</el-button>
<
!--
<el-button
size=
"small"
@
click=
"handleExport"
type=
"default"
disabled
>
<
el-button
size=
"small"
@
click=
"handleExport"
type=
"default"
v-loading
.
fullscreen
.
lock=
"fullscreenLoading"
>
<i
class=
"el-icon-download"
></i>
导出数据
</el-button>
-->
</el-button>
</el-col>
</el-row>
</div>
...
...
@@ -429,8 +429,9 @@
export
default
{
name
:
'OpportunityManagement'
,
data
()
{
let
fthis
=
this
return
{
fullscreenLoading
:
false
,
formData
:{
customerPhone
:
''
,
maintenanceStaffName
:
''
,
...
...
@@ -967,8 +968,42 @@ export default {
this
.
handleOpenAudit
(
row
.
id
)
},
handleExport
()
{
// 模拟导出功能
this
.
$message
.
success
(
'商机数据导出成功'
)
let
d
=
this
.
formData
if
(
d
.
createTime
)
{
d
.
startDate
=
new
Date
(
d
.
createTime
[
0
]).
getTime
()
d
.
endDate
=
new
Date
(
d
.
createTime
[
1
]).
getTime
()
+
24
*
60
*
60
*
1000
-
1000
}
else
{
d
.
startDate
=
''
d
.
endDate
=
''
}
this
.
fullscreenLoading
=
true
this
.
apiReq
.
exportAllBusi
({
pageNum
:
this
.
pageStore
.
currentPage
,
pageSize
:
this
.
pageStore
.
pageSize
,
areaCode
:
this
.
addressStore
.
county
||
this
.
addressStore
.
city
,
gridCode
:
this
.
addressStore
.
grid
,
...
d
}).
then
(
res
=>
{
this
.
fullscreenLoading
=
false
if
(
res
.
type
==
'blob'
)
{
let
fileJson
=
{
content
:
res
.
value
,
fileType
:
'xls'
,
fileName
:
'商机列表数据'
}
this
.
common
.
exportExcel
(
fileJson
)
}
else
{
let
errorText
try
{
errorText
=
res
.
value
.
msg
}
catch
(
e
)
{
errorText
=
'网络异常,请稍后重试'
}
this
.
$message
.
error
(
errorText
)
}
})
},
handleOpenAudit
(
opportunityId
)
{
this
.
auditOpportunityId
=
opportunityId
...
...
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