From ab152ab5d1ecca18d2a1d5cca89800b5c110431c Mon Sep 17 00:00:00 2001 From: lion <120344285@qq.com> Date: Fri, 11 Aug 2023 09:20:40 +0800 Subject: [PATCH] upup --- src/api/system/baseForm.js | 24 +- src/components/XyDialog/index.vue | 2 +- src/components/XyTable/index.vue | 6 +- src/views/component/table.vue | 5 +- src/views/jsc/index.vue | 3 +- src/views/record/components/addRecord.vue | 6 +- src/views/record/index.vue | 414 +++++++++++--------- src/views/record/searchall.vue | 438 ++++++++++++++++++++++ src/views/system/form.vue | 2 +- 9 files changed, 716 insertions(+), 184 deletions(-) create mode 100644 src/views/record/searchall.vue diff --git a/src/api/system/baseForm.js b/src/api/system/baseForm.js index f5f5284..f79df0e 100644 --- a/src/api/system/baseForm.js +++ b/src/api/system/baseForm.js @@ -4,13 +4,23 @@ function customParamsSerializer(params) { for (let key in params) { if (params.hasOwnProperty(key)) { if (Array.isArray(params[key])) { - params[key].forEach((item,index) => { - if(typeof item === 'object'){ - result += `${key}[${index}][key]=${item.key}&${key}[${index}][op]=${item.op}&${key}[${index}][value]=${item.value}&`; - }else{ - result += `${key}[${index}]=${item}&`; - } - }); + if(key=='link_tables'){ + params[key].forEach((item,index) => { + if(typeof item === 'object'){ + console.log('item.tables',item.tables) + result += `${key}[year]=${item.year}&${key}[tables]=${item.tables}&`; + } + }); + }else{ + params[key].forEach((item,index) => { + if(typeof item === 'object'){ + result += `${key}[${index}][key]=${item.key}&${key}[${index}][op]=${item.op}&${key}[${index}][value]=${item.value}&`; + }else{ + result += `${key}[${index}]=${item}&`; + } + }); + } + } else { result += `${key}=${params[key]}&`; } diff --git a/src/components/XyDialog/index.vue b/src/components/XyDialog/index.vue index 32bda2d..62d7f45 100644 --- a/src/components/XyDialog/index.vue +++ b/src/components/XyDialog/index.vue @@ -208,7 +208,7 @@ export default { diff --git a/src/views/record/searchall.vue b/src/views/record/searchall.vue new file mode 100644 index 0000000..270e757 --- /dev/null +++ b/src/views/record/searchall.vue @@ -0,0 +1,438 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 查询 + 重置 + + + + + + select.pageSize = e" @pageIndexChange="pageChange" + :table-item="table"> + + + + + + + + + + + diff --git a/src/views/system/form.vue b/src/views/system/form.vue index 6001fb6..c0a0a7d 100644 --- a/src/views/system/form.vue +++ b/src/views/system/form.vue @@ -64,7 +64,7 @@ export default { return { select:{ page:1, - page_size:10 + page_size:40 }, list:[], table:[