Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
GaoQuIncubator
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
Kimber
GaoQuIncubator
Commits
36fdc16d
Commit
36fdc16d
authored
Jan 08, 2025
by
xinzhedeai
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
企业信息导出
parent
df575cc8
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
27 additions
and
1 deletion
+27
-1
httpApi.js
src/assets/js/httpApi.js
+26
-0
index.vue
src/views/business/basicInfo/index.vue
+1
-1
No files found.
src/assets/js/httpApi.js
View file @
36fdc16d
...
...
@@ -819,6 +819,29 @@ var reqApis = function(){
}
],
otherBtn
:
[
{
type
:
'
primary
'
,
icon
:
'
el-icon-document
'
,
name
:
'
导出
'
,
showYN
:
true
,
'
callback
'
:
function
()
{
// reqApi.common.toExports.call(this);
this
.
$confirm
(
'
您确认要导出该页数据吗?
'
,
'
提示
'
,
{
confirmButtonText
:
'
确定
'
,
cancelButtonText
:
'
取消
'
,
type
:
'
warning
'
}).
then
((
e
)
=>
{
var
loading
=
this
.
$loading
({
lock
:
true
,
text
:
'
请稍后.....
'
,
spinner
:
'
el-icon-loading
'
,
background
:
'
rgba(0, 0, 0, 0.7)
'
});
var
param
=
reqApi
.
getBaseParams
.
call
(
this
);
this
.
pageApi
.
downloadEnterpriseExcel
(
param
).
then
((
res
)
=>
{
loading
.
close
();
var
name
=
this
.
pageApi
.
name
+
'
数据
'
+
Tools
.
Dates
.
format
(
'
yyyy-MM-dd HH:mm:ss
'
);
Tools
.
downloadFile
(
res
,
name
,
'
xlsx
'
)
})
})
}
},
{
fn
:
'
toAdd
'
,
type
:
'
primary
'
,
icon
:
'
el-icon-plus
'
,
name
:
'
添加企业
'
,
'
callback
'
:
function
()
{
reqApi
.
common
.
toAdd
.
call
(
this
);
...
...
@@ -1035,6 +1058,9 @@ var reqApis = function(){
uploadjyfile
:
function
(
data
)
{
return
reqPublic
(
'
api/companyAnnualInfo/import
'
,
'
post
'
,
data
)
},
downloadEnterpriseExcel
:
function
(
param
)
{
return
reqPublic
(
'
api/company/exportExcel
'
,
'
get
'
,
param
,
{
responseType
:
'
blob
'
})
},
},
product
:
{
// 产品信息
name
:
'
企业产品信息
'
,
...
...
src/views/business/basicInfo/index.vue
View file @
36fdc16d
...
...
@@ -19,7 +19,7 @@
<el-button
type=
"text"
style=
"font-size: 18px;"
>
公司数:
{{
table
.
total
}}
</el-button>
<el-button
v-for=
"(item, key) in form.config.otherBtn"
v-show=
"item.name==='添加企业' || showYN"
v-show=
"item.name==='添加企业' || showYN
|| item.showYN
"
size=
"mini"
:type=
"item.type"
:icon=
"item.icon"
...
...
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