From 5e9b4920000a4d02eef3b207218e3ce8d68935be Mon Sep 17 00:00:00 2001
From: charles <981744753@qq.com>
Date: 星期四, 11 七月 2024 17:47:05 +0800
Subject: [PATCH] feat:纤度登记表重构
---
src/views/reportManage/productionReport/index.vue | 27 +++++++++++++++++++--------
1 files changed, 19 insertions(+), 8 deletions(-)
diff --git a/src/views/reportManage/productionReport/index.vue b/src/views/reportManage/productionReport/index.vue
index 8ee0aa1..8f34543 100644
--- a/src/views/reportManage/productionReport/index.vue
+++ b/src/views/reportManage/productionReport/index.vue
@@ -53,15 +53,15 @@
>
</TableCommonView>
</div>
- <!-- <div class="btn-pager">
+ <div class="btn-pager">
<PagerView class="page" :pager-options="pagerOptions" v-on="pagerEvents" />
- </div> -->
+ </div>
</div>
</div>
</template>
<script>
-import { getAttendanceStatistic } from "@/api/employeeSalary/attendanceManage.js";
+import { getAttendanceStatistic } from "@/api/reportManage/report.js";
import pageMixin from "@/components/makepager/pager/mixin/pageMixin";
import { getDictList } from "@/api/productManage/silkRegisterForm.js";
export default {
@@ -176,8 +176,8 @@
await getAttendanceStatistic({
keyword: this.keyword,
month: "2024-04",
- // page: this.pagerOptions.currPage,
- // pageSize: this.pagerOptions.pageSize
+ page: this.pagerOptions.currPage,
+ pageSize: this.pagerOptions.pageSize
})
.then((res) => {
if (res.code == 200) {
@@ -188,7 +188,7 @@
};
});
this.tableList.tableInfomation = list || [];
- this.pagerOptions.totalCount = res.total;
+ this.pagerOptions.totalCount = res.total||0;
} else {
this.tableList.tableInfomation = [];
}
@@ -230,9 +230,20 @@
}
.body-card {
margin: 0 30px;
+ border-radius: 12px;
background-color: #fff;
- padding: 10px 15px;
- height: calc(100% - 180px);
+ height: calc(100% - 140px);
+ }
+ .list-view {
+ height: calc(100% - 60px);
+ overflow: hidden;
+ }
+ .btn-pager {
+ display: flex;
+ margin-top: 10px;
+ .page {
+ margin-left: auto;
+ }
}
}
</style>
--
Gitblit v1.8.0