Commit 8d9fad19 by 林家欣

新增表格下载列表页

parent 85c03127
...@@ -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,
......
...@@ -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: "表格下载" }],
}
]; ];
...@@ -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.businessDownLoadList();
}, },
methods: { methods: {
// 接收分页子组件传过来的值 // 接收分页子组件传过来的值
receivePagesChild(val) { receivePagesChild(val) {
this.pageParams.currPage = val; this.pageParams.currPage = val;
this.businessDownLoad(); this.businessDownLoadList();
}, },
// 接收列表子组件传过来的值 // 接收列表子组件传过来的值
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(businessDownLoadRes, "右侧表格下载功能"); console.log(businessDownLoadListRes, "表格下载功能");
}, },
}, },
}; };
......
...@@ -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, "右侧表格下载功能");
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment