Commit 8d9fad19 by 林家欣

新增表格下载列表页

parent 85c03127
......@@ -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,
......
......@@ -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: "表格下载" }],
}
];
......@@ -92,13 +92,13 @@ export default {
},
created() {
this.$store.commit("system/SET_SUB_NAV", search.children);
this.businessDownLoad();
this.businessDownLoadList();
},
methods: {
// 接收分页子组件传过来的值
receivePagesChild(val) {
this.pageParams.currPage = val;
this.businessDownLoad();
this.businessDownLoadList();
},
// 接收列表子组件传过来的值
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(businessDownLoadRes, "右侧表格下载功能");
console.log(businessDownLoadListRes, "表格下载功能");
},
},
};
......
......@@ -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, "右侧表格下载功能");
......
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