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 @@