From 94b510ac90d3525262c19af375c2095f20f3a2f6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=AE=89=E8=99=B9=E7=9D=BF?= <297504645@qq.com> Date: Mon, 20 May 2024 17:30:16 +0800 Subject: [PATCH] =?UTF-8?q?=E3=80=90nev-=E5=B9=B3=E6=9D=BF=E3=80=91?= =?UTF-8?q?=E6=9A=82=E5=AD=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- fe/PC/src/mixins/padListPageMixins.js | 53 ++++ fe/PC/src/styles/padMain.scss | 9 +- .../components/padListPage/index.vue | 243 ++++++++++++++++++ .../padManage/isPadForTransferLibJob_new.vue | 212 +++------------ 4 files changed, 341 insertions(+), 176 deletions(-) create mode 100644 fe/PC/src/mixins/padListPageMixins.js create mode 100644 fe/PC/src/views/padManage/components/padListPage/index.vue diff --git a/fe/PC/src/mixins/padListPageMixins.js b/fe/PC/src/mixins/padListPageMixins.js new file mode 100644 index 000000000..b5f4f8c5e --- /dev/null +++ b/fe/PC/src/mixins/padListPageMixins.js @@ -0,0 +1,53 @@ +export const padListPageMixins = { + data() { + return{ + // searchForm:[],// 查询条件属性 + // searchFormData:null,//查询条件数据 + padListLoading:false,//页面加载 + padListData:[],//页面数据 + // 分页配置 + padListPager:{ + totalCount:null,//总条数 + pageSize:10,//当前页显示条数 + currentPage:0,//当前页 + totalPage:null,//总页 + }, + // 查询条件配置 + padListParams:{ + sorting: null, + maxResultCount: 10, + skipCount:0, + condition:{filters:null} + } + } + }, + methods:{ + initPadParams(page){ + this.padListParams={ + sorting: null, + maxResultCount: this.padListPager.pageSize, + skipCount: this.padListPager.pageSize * (Number(page) - 1), + condition: { + filters: this.intSearchFilters(), + } + } + }, + // 查询条件拼接 + intSearchFilters(){ + let _filters = [] + this.searchForm.forEach(item => { + if(this.searchFormData[item.prop]){ + _filters.push( + { + logic: 'And', + column: item.prop, + action: item.action || "==", + value: this.searchFormData[item.prop] + } + ) + } + }); + return _filters + }, + } +} \ No newline at end of file diff --git a/fe/PC/src/styles/padMain.scss b/fe/PC/src/styles/padMain.scss index ba0b4aab9..2cb0241d6 100644 --- a/fe/PC/src/styles/padMain.scss +++ b/fe/PC/src/styles/padMain.scss @@ -7,10 +7,13 @@ min-width:800px; overflow:auto; } +.padListPageOuter{ + height: 100%; + padding:15px; +} .padListPage{ background:#fff; - margin:15px; - height:calc(100% - 30px); + height: 100%; min-width:800px; overflow:auto; display: flex; @@ -47,6 +50,7 @@ padding: 10px; background: #fff; margin-bottom: 10px; + border-bottom: #ddd solid 1px; } .detailDataBox{ @@ -62,6 +66,7 @@ text-align: center; color: #999; overflow: hidden; + box-shadow: 1px -1px 5px #ddd; ::v-deep .el-loading-spinner { display: flex; diff --git a/fe/PC/src/views/padManage/components/padListPage/index.vue b/fe/PC/src/views/padManage/components/padListPage/index.vue new file mode 100644 index 000000000..34d5b7701 --- /dev/null +++ b/fe/PC/src/views/padManage/components/padListPage/index.vue @@ -0,0 +1,243 @@ + + + + \ No newline at end of file diff --git a/fe/PC/src/views/padManage/isPadForTransferLibJob_new.vue b/fe/PC/src/views/padManage/isPadForTransferLibJob_new.vue index 184e646aa..1b0344ce0 100644 --- a/fe/PC/src/views/padManage/isPadForTransferLibJob_new.vue +++ b/fe/PC/src/views/padManage/isPadForTransferLibJob_new.vue @@ -1,100 +1,29 @@