From f0609716bce60b886aaf1c5ec0fac137482140d7 Mon Sep 17 00:00:00 2001 From: re-JZzzz Date: Mon, 22 Sep 2025 16:15:50 +0800 Subject: [PATCH 1/3] =?UTF-8?q?1.=E5=AE=8C=E6=88=90=E7=94=9F=E4=BA=A7?= =?UTF-8?q?=E7=AE=A1=E7=90=86-=E7=94=B5=E9=87=8F=E5=88=86=E6=9E=90?= =?UTF-8?q?=E9=9D=99=E6=80=81=E7=95=8C=E9=9D=A2=202.=E5=AE=8C=E6=88=90?= =?UTF-8?q?=E7=BB=BC=E5=90=88=E7=AE=A1=E7=90=86-=E4=BA=BA=E5=91=98?= =?UTF-8?q?=E6=8E=92=E7=8F=AD=E7=AE=A1=E7=90=86=E4=BA=A4=E4=BA=92=203.?= =?UTF-8?q?=E4=BF=AE=E6=94=B9=E9=83=A8=E5=88=86=E9=80=BB=E8=BE=91=E5=92=8C?= =?UTF-8?q?=E6=A0=B7=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../components/renyuanguanliDialog.vue | 257 +++++++++++++++++ .../attendManage/components/renyuanpaiban.vue | 43 +++ .../integratedManage/attendManage/index.vue | 269 ++++++++++++------ .../stateManage/components/stateTrend.vue | 1 - .../alarmAnalysis/components/data.vue | 83 ++---- .../pvSystem/alarmAnalysis/components/pie.vue | 3 + .../powerfenxi/components/detaildata.vue | 32 ++- .../powerfenxi/components/duibifenxiBar.vue | 53 ++-- .../powerfenxi/components/tongbifenxiLine.vue | 63 ++-- .../powerfenxi/components/zonglan.vue | 200 +++++++++++++ .../shengchanManage/powerfenxi/index.vue | 81 +++++- 11 files changed, 894 insertions(+), 191 deletions(-) create mode 100644 src/views/integratedManage/attendManage/components/renyuanguanliDialog.vue create mode 100644 src/views/shengchanManage/powerfenxi/components/zonglan.vue diff --git a/src/views/integratedManage/attendManage/components/renyuanguanliDialog.vue b/src/views/integratedManage/attendManage/components/renyuanguanliDialog.vue new file mode 100644 index 0000000..d716041 --- /dev/null +++ b/src/views/integratedManage/attendManage/components/renyuanguanliDialog.vue @@ -0,0 +1,257 @@ + + + + + \ No newline at end of file diff --git a/src/views/integratedManage/attendManage/components/renyuanpaiban.vue b/src/views/integratedManage/attendManage/components/renyuanpaiban.vue index 84e4684..afe193d 100644 --- a/src/views/integratedManage/attendManage/components/renyuanpaiban.vue +++ b/src/views/integratedManage/attendManage/components/renyuanpaiban.vue @@ -26,6 +26,15 @@
{{ dateInfo.weekDay }}
+ @@ -34,6 +43,10 @@ \ No newline at end of file diff --git a/src/views/shengchanManage/powerfenxi/components/tongbifenxiLine.vue b/src/views/shengchanManage/powerfenxi/components/tongbifenxiLine.vue index cea4673..d610267 100644 --- a/src/views/shengchanManage/powerfenxi/components/tongbifenxiLine.vue +++ b/src/views/shengchanManage/powerfenxi/components/tongbifenxiLine.vue @@ -1,43 +1,45 @@ + + \ No newline at end of file diff --git a/src/views/shengchanManage/powerfenxi/index.vue b/src/views/shengchanManage/powerfenxi/index.vue index c7cb7cc..2be3d4d 100644 --- a/src/views/shengchanManage/powerfenxi/index.vue +++ b/src/views/shengchanManage/powerfenxi/index.vue @@ -1,12 +1,81 @@ + + From 84b2a05e3ceeb72c6774246909f362abc516d3e3 Mon Sep 17 00:00:00 2001 From: Teo <2642673902@qq.com> Date: Mon, 22 Sep 2025 17:50:22 +0800 Subject: [PATCH 2/3] =?UTF-8?q?=E8=A7=92=E8=89=B2=E7=AE=A1=E7=90=86?= =?UTF-8?q?=E6=96=B0=E5=A2=9E=E9=83=A8=E9=97=A8=E5=88=97=E8=A1=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/system/menu/index.ts | 5 +- src/api/system/role/index.ts | 5 +- src/api/system/role/types.ts | 1 + src/api/system/user/index.ts | 5 +- src/plugins/download.ts | 2 + src/views/system/role/index.vue | 260 ++++++++++++++++++++------------ 6 files changed, 177 insertions(+), 101 deletions(-) diff --git a/src/api/system/menu/index.ts b/src/api/system/menu/index.ts index 81461fd..409fc32 100644 --- a/src/api/system/menu/index.ts +++ b/src/api/system/menu/index.ts @@ -20,10 +20,11 @@ export const getMenu = (menuId: string | number): AxiosPromise => { }; // 查询菜单下拉树结构 -export const treeselect = (): AxiosPromise => { +export const treeselect = (params?: any): AxiosPromise => { return request({ url: '/system/menu/treeselect', - method: 'get' + method: 'get', + params }); }; diff --git a/src/api/system/role/index.ts b/src/api/system/role/index.ts index fb0fcab..6727852 100644 --- a/src/api/system/role/index.ts +++ b/src/api/system/role/index.ts @@ -147,10 +147,11 @@ export const authUserSelectAll = (data: any) => { }); }; // 根据角色ID查询部门树结构 -export const deptTreeSelect = (roleId: string | number): AxiosPromise => { +export const deptTreeSelect = (roleId: string | number, params?) => { return request({ url: '/system/role/deptTree/' + roleId, - method: 'get' + method: 'get', + params }); }; diff --git a/src/api/system/role/types.ts b/src/api/system/role/types.ts index 7dbb6ff..ff52f7e 100644 --- a/src/api/system/role/types.ts +++ b/src/api/system/role/types.ts @@ -39,6 +39,7 @@ export interface RoleQuery extends PageQuery { export interface RoleForm { roleName: string; + deptId: string | undefined; roleKey: string; roleSort: number; status: string; diff --git a/src/api/system/user/index.ts b/src/api/system/user/index.ts index a61ad14..7766fc3 100644 --- a/src/api/system/user/index.ts +++ b/src/api/system/user/index.ts @@ -202,10 +202,11 @@ export const listUserByDeptId = (deptId: string | number): AxiosPromise => { +export const deptTreeSelect = (data?: { isShow: string }): AxiosPromise => { return request({ url: '/system/user/deptTree', - method: 'get' + method: 'get', + params: data }); }; diff --git a/src/plugins/download.ts b/src/plugins/download.ts index ef66b3a..798e340 100644 --- a/src/plugins/download.ts +++ b/src/plugins/download.ts @@ -42,6 +42,8 @@ export default { responseType: 'blob', headers: globalHeaders() }); + console.log('🚀 ~ zip ~ res:', res); + const isBlob = blobValidate(res.data); if (isBlob) { const blob = new Blob([res.data], { type: 'application/zip' }); diff --git a/src/views/system/role/index.vue b/src/views/system/role/index.vue index c6d83b4..f3dfce4 100644 --- a/src/views/system/role/index.vue +++ b/src/views/system/role/index.vue @@ -15,92 +15,113 @@ - - - - - 搜索 + 搜索 重置 - - - - - - - - - - - - + + +
+ +
@@ -110,9 +123,17 @@ const getCurrentMonthDates = () => { return dates; }; +// 分页相关状态 +const currentPage = ref(1); +const pageSize = ref(10); +const total = ref(50); // 总数据条数,模拟数据 + // 生成排班数据 const scheduleData = computed(() => { - return Array.from({ length: 20 }, (_, index) => { + const startIndex = (currentPage.value - 1) * pageSize.value; + const endIndex = startIndex + pageSize.value; + + return Array.from({ length: total.value }, (_, index) => { // 循环使用员工数据 const employee = employees[index % employees.length]; @@ -131,9 +152,20 @@ const scheduleData = computed(() => { }); return rowData; - }); + }).slice(startIndex, endIndex); }); +// 分页大小变化处理 +const handleSizeChange = (size: number) => { + pageSize.value = size; + currentPage.value = 1; // 重置为第一页 +}; + +// 当前页码变化处理 +const handleCurrentChange = (current: number) => { + currentPage.value = current; +}; + // 组件挂载时获取当前月数据 onMounted(() => { currentMonthDates.value = getCurrentMonthDates(); @@ -216,7 +248,20 @@ const handleCellClick = (rowData: any, columnData: any, cellEvent: any) => { } .week-day { - font-size: 12px; - color: #666; -} + font-size: 12px; + color: #666; + } + + /* 分页容器样式 */ + .pagination-container { + margin-top: 16px; + display: flex; + justify-content: flex-end; + align-items: center; + } + + /* 分页组件样式优化 */ + :deep(.el-pagination) { + font-size: 14px; + } diff --git a/src/views/integratedManage/attendManage/components/leftBox/approval.vue b/src/views/integratedManage/attendManage/components/rightBox/approval.vue similarity index 100% rename from src/views/integratedManage/attendManage/components/leftBox/approval.vue rename to src/views/integratedManage/attendManage/components/rightBox/approval.vue diff --git a/src/views/integratedManage/attendManage/components/leftBox/calendar.vue b/src/views/integratedManage/attendManage/components/rightBox/calendar.vue similarity index 100% rename from src/views/integratedManage/attendManage/components/leftBox/calendar.vue rename to src/views/integratedManage/attendManage/components/rightBox/calendar.vue diff --git a/src/views/integratedManage/attendManage/components/leftBox/todayAttend.vue b/src/views/integratedManage/attendManage/components/rightBox/todayAttend.vue similarity index 100% rename from src/views/integratedManage/attendManage/components/leftBox/todayAttend.vue rename to src/views/integratedManage/attendManage/components/rightBox/todayAttend.vue diff --git a/src/views/integratedManage/attendManage/index.vue b/src/views/integratedManage/attendManage/index.vue index 8328837..1caf5b8 100644 --- a/src/views/integratedManage/attendManage/index.vue +++ b/src/views/integratedManage/attendManage/index.vue @@ -72,6 +72,7 @@ @@ -107,13 +108,49 @@