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 = {}) => {
...
@@ -12,6 +12,12 @@ const businessDownLoad = (params = {}) => {
return
POST
(
`
${
Prefix
}
/office/doc/api/downLoad`
,
params
)
return
POST
(
`
${
Prefix
}
/office/doc/api/downLoad`
,
params
)
}
}
// 表格列表
const
businessDownLoadList
=
(
params
=
{})
=>
{
return
POST
(
`
${
Prefix
}
/office/doc/api/list`
,
params
)
}
// 右侧政策法规前四条数据
// 右侧政策法规前四条数据
const
businessGetTop4
=
(
params
=
{})
=>
{
const
businessGetTop4
=
(
params
=
{})
=>
{
return
POST
(
`
${
Prefix
}
/office/policy/api/getTop4`
,
params
)
return
POST
(
`
${
Prefix
}
/office/policy/api/getTop4`
,
params
)
...
@@ -50,6 +56,7 @@ const businessGetFaqById = (params = {}) => {
...
@@ -50,6 +56,7 @@ const businessGetFaqById = (params = {}) => {
export
default
{
export
default
{
businessDownLoad
,
businessDownLoad
,
businessDownLoadList
,
businessGetTop4
,
businessGetTop4
,
businessGetEanUpcTop4
,
businessGetEanUpcTop4
,
businessGetEanUpcByCondition
,
businessGetEanUpcByCondition
,
...
...
src/components/layout/header/mock.js
View file @
8d9fad19
...
@@ -634,6 +634,14 @@ export const nav = [
...
@@ -634,6 +634,14 @@ export const nav = [
}
}
],
],
},
},
{
id
:
"0"
,
name
:
"表格下载"
,
index
:
2
,
link
:
"/statute/FormDownload"
,
isHiddenMenu
:
true
,
breadcrumb
:
[{
name
:
"业务办理"
,
path
:
"/Business"
},
{
name
:
"表格下载"
}],
},
search
,
search
,
service
,
service
,
{
{
...
@@ -988,12 +996,4 @@ export const nav = [
...
@@ -988,12 +996,4 @@ export const nav = [
link
:
"/Member"
,
link
:
"/Member"
,
children
:
[],
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 {
...
@@ -92,13 +92,13 @@ export default {
},
},
created
()
{
created
()
{
this
.
$store
.
commit
(
"system/SET_SUB_NAV"
,
search
.
children
);
this
.
$store
.
commit
(
"system/SET_SUB_NAV"
,
search
.
children
);
this
.
businessDownLoad
();
this
.
businessDownLoad
List
();
},
},
methods
:
{
methods
:
{
// 接收分页子组件传过来的值
// 接收分页子组件传过来的值
receivePagesChild
(
val
)
{
receivePagesChild
(
val
)
{
this
.
pageParams
.
currPage
=
val
;
this
.
pageParams
.
currPage
=
val
;
this
.
businessDownLoad
();
this
.
businessDownLoad
List
();
},
},
// 接收列表子组件传过来的值
// 接收列表子组件传过来的值
receiveListChild
(
obj
)
{
receiveListChild
(
obj
)
{
...
@@ -106,17 +106,19 @@ export default {
...
@@ -106,17 +106,19 @@ export default {
window
.
open
(
obj
.
docfile
,
'_blank'
);
window
.
open
(
obj
.
docfile
,
'_blank'
);
},
},
// 右侧表格下载功能
// 右侧表格下载功能
async
businessDownLoad
()
{
async
businessDownLoadList
()
{
const
businessDownLoadRes
=
await
this
.
$api
.
business
.
businessDownLoad
();
const
params
=
{
const
{
returnCode
,
data
}
=
businessDownLoadRes
;
page
:
this
.
pageParams
.
currPage
,
console
.
log
(
businessDownLoadRes
,
"businessDownLoadRes"
);
size
:
this
.
pageParams
.
pageSize
,
}
const
businessDownLoadListRes
=
await
this
.
$api
.
business
.
businessDownLoadList
(
params
);
const
{
returnCode
,
data
}
=
businessDownLoadListRes
;
console
.
log
(
businessDownLoadListRes
,
"businessDownLoadListRes"
);
if
(
returnCode
===
"0"
)
{
if
(
returnCode
===
"0"
)
{
data
.
forEach
((
el
)
=>
{
this
.
list
=
data
.
list
;
el
.
docfile
=
`
${
this
.
urls
.
gs1cnTwo
}
manage/down/
${
el
.
docfile
}
`
;
this
.
pageParams
.
total
=
data
.
totalCount
});
this
.
list
=
data
;
}
}
console
.
log
(
businessDownLoad
Res
,
"右侧
表格下载功能"
);
console
.
log
(
businessDownLoad
ListRes
,
"
表格下载功能"
);
},
},
},
},
};
};
...
...
src/views/Business/copms/bgxz.vue
View file @
8d9fad19
...
@@ -45,9 +45,9 @@ export default {
...
@@ -45,9 +45,9 @@ export default {
const
businessDownLoadRes
=
await
this
.
$api
.
business
.
businessDownLoad
();
const
businessDownLoadRes
=
await
this
.
$api
.
business
.
businessDownLoad
();
const
{
returnCode
,
data
}
=
businessDownLoadRes
;
const
{
returnCode
,
data
}
=
businessDownLoadRes
;
if
(
returnCode
===
"0"
)
{
if
(
returnCode
===
"0"
)
{
data
.
forEach
(
el
=>
{
//
data.forEach(el => {
el
.
docfile
=
`
${
this
.
urls
.
gs1cnTwo
}
manage/down/
${
el
.
docfile
}
`
;
//
el.docfile = `${this.urls.gs1cnTwo}manage/down/${el.docfile}`;
});
//
});
this
.
list
=
data
;
this
.
list
=
data
;
}
}
console
.
log
(
businessDownLoadRes
,
"右侧表格下载功能"
);
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