Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gs1
Overview
Overview
Details
Activity
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
吴迪
gs1
Commits
8d9fad19
Commit
8d9fad19
authored
Jan 02, 2022
by
林家欣
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
新增表格下载列表页
parent
85c03127
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
31 additions
and
22 deletions
+31
-22
business.js
src/axios/module/business.js
+7
-0
mock.js
src/components/layout/header/mock.js
+8
-8
FormDownload.vue
src/views/Business/FormDownload.vue
+13
-11
bgxz.vue
src/views/Business/copms/bgxz.vue
+3
-3
No files found.
src/axios/module/business.js
View file @
8d9fad19
...
...
@@ -12,6 +12,12 @@ const businessDownLoad = (params = {}) => {
return
POST
(
`
${
Prefix
}
/office/doc/api/downLoad`
,
params
)
}
// 表格列表
const
businessDownLoadList
=
(
params
=
{})
=>
{
return
POST
(
`
${
Prefix
}
/office/doc/api/list`
,
params
)
}
// 右侧政策法规前四条数据
const
businessGetTop4
=
(
params
=
{})
=>
{
return
POST
(
`
${
Prefix
}
/office/policy/api/getTop4`
,
params
)
...
...
@@ -50,6 +56,7 @@ const businessGetFaqById = (params = {}) => {
export
default
{
businessDownLoad
,
businessDownLoadList
,
businessGetTop4
,
businessGetEanUpcTop4
,
businessGetEanUpcByCondition
,
...
...
src/components/layout/header/mock.js
View file @
8d9fad19
...
...
@@ -634,6 +634,14 @@ export const nav = [
}
],
},
{
id
:
"0"
,
name
:
"表格下载"
,
index
:
2
,
link
:
"/statute/FormDownload"
,
isHiddenMenu
:
true
,
breadcrumb
:
[{
name
:
"业务办理"
,
path
:
"/Business"
},
{
name
:
"表格下载"
}],
},
search
,
service
,
{
...
...
@@ -988,12 +996,4 @@ export const nav = [
link
:
"/Member"
,
children
:
[],
},
{
id
:
"9"
,
name
:
"表格下载"
,
index
:
2
,
link
:
"/statute/FormDownload"
,
isHiddenMenu
:
true
,
breadcrumb
:
[{
name
:
"业务办理"
,
path
:
"/Business"
},
{
name
:
"表格下载"
}],
}
];
src/views/Business/FormDownload.vue
View file @
8d9fad19
...
...
@@ -92,13 +92,13 @@ export default {
},
created
()
{
this
.
$store
.
commit
(
"system/SET_SUB_NAV"
,
search
.
children
);
this
.
businessDownLoad
();
this
.
businessDownLoad
List
();
},
methods
:
{
// 接收分页子组件传过来的值
receivePagesChild
(
val
)
{
this
.
pageParams
.
currPage
=
val
;
this
.
businessDownLoad
();
this
.
businessDownLoad
List
();
},
// 接收列表子组件传过来的值
receiveListChild
(
obj
)
{
...
...
@@ -106,17 +106,19 @@ export default {
window
.
open
(
obj
.
docfile
,
'_blank'
);
},
// 右侧表格下载功能
async
businessDownLoad
()
{
const
businessDownLoadRes
=
await
this
.
$api
.
business
.
businessDownLoad
();
const
{
returnCode
,
data
}
=
businessDownLoadRes
;
console
.
log
(
businessDownLoadRes
,
"businessDownLoadRes"
);
async
businessDownLoadList
()
{
const
params
=
{
page
:
this
.
pageParams
.
currPage
,
size
:
this
.
pageParams
.
pageSize
,
}
const
businessDownLoadListRes
=
await
this
.
$api
.
business
.
businessDownLoadList
(
params
);
const
{
returnCode
,
data
}
=
businessDownLoadListRes
;
console
.
log
(
businessDownLoadListRes
,
"businessDownLoadListRes"
);
if
(
returnCode
===
"0"
)
{
data
.
forEach
((
el
)
=>
{
el
.
docfile
=
`
${
this
.
urls
.
gs1cnTwo
}
manage/down/
${
el
.
docfile
}
`
;
});
this
.
list
=
data
;
this
.
list
=
data
.
list
;
this
.
pageParams
.
total
=
data
.
totalCount
}
console
.
log
(
businessDownLoad
Res
,
"右侧
表格下载功能"
);
console
.
log
(
businessDownLoad
ListRes
,
"
表格下载功能"
);
},
},
};
...
...
src/views/Business/copms/bgxz.vue
View file @
8d9fad19
...
...
@@ -45,9 +45,9 @@ export default {
const
businessDownLoadRes
=
await
this
.
$api
.
business
.
businessDownLoad
();
const
{
returnCode
,
data
}
=
businessDownLoadRes
;
if
(
returnCode
===
"0"
)
{
data
.
forEach
(
el
=>
{
el
.
docfile
=
`
${
this
.
urls
.
gs1cnTwo
}
manage/down/
${
el
.
docfile
}
`
;
});
//
data.forEach(el => {
//
el.docfile = `${this.urls.gs1cnTwo}manage/down/${el.docfile}`;
//
});
this
.
list
=
data
;
}
console
.
log
(
businessDownLoadRes
,
"右侧表格下载功能"
);
...
...
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