From bc24e4f04130f26dd8f89fda65420c79e0d4ae45 Mon Sep 17 00:00:00 2001 From: Kane Wang Date: Thu, 19 Jan 2023 18:01:35 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=9D=E5=AD=98=E8=BF=9B=E5=BA=A6=EF=BC=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../web/admin_system/src/App.vue | 14 +- .../web/admin_system/src/layout/Index.vue | 82 ++++++------ .../src/layout/components/Header.vue | 121 +++++++++--------- .../admin_system/src/views/info/StaffInfo.vue | 84 +++++++++--- 4 files changed, 182 insertions(+), 119 deletions(-) diff --git a/企业级管理系统/web/admin_system/src/App.vue b/企业级管理系统/web/admin_system/src/App.vue index 91a00da..64fe4bd 100644 --- a/企业级管理系统/web/admin_system/src/App.vue +++ b/企业级管理系统/web/admin_system/src/App.vue @@ -2,21 +2,29 @@ * @Author: Kane * @Date: 2022-12-14 15:12:46 * @LastEditors: Kane - * @LastEditTime: 2022-12-14 17:03:58 + * @LastEditTime: 2023-01-19 14:26:17 * @FilePath: \admin_system\src\App.vue * @Description: * * Copyright (c) ${2022} by Kane, All Rights Reserved. --> \ No newline at end of file diff --git a/企业级管理系统/web/admin_system/src/layout/components/Header.vue b/企业级管理系统/web/admin_system/src/layout/components/Header.vue index 248820f..d98a26c 100644 --- a/企业级管理系统/web/admin_system/src/layout/components/Header.vue +++ b/企业级管理系统/web/admin_system/src/layout/components/Header.vue @@ -2,24 +2,29 @@ * @Author: Kane * @Date: 2023-01-04 11:39:04 * @LastEditors: Kane - * @LastEditTime: 2023-01-18 14:18:28 + * @LastEditTime: 2023-01-19 14:53:38 * @FilePath: \admin_system\src\layout\components\Header.vue * @Description: * * Copyright (c) ${2022} by Kane, All Rights Reserved. --> \ No newline at end of file diff --git a/企业级管理系统/web/admin_system/src/views/info/StaffInfo.vue b/企业级管理系统/web/admin_system/src/views/info/StaffInfo.vue index e1b8f3b..0d07407 100644 --- a/企业级管理系统/web/admin_system/src/views/info/StaffInfo.vue +++ b/企业级管理系统/web/admin_system/src/views/info/StaffInfo.vue @@ -3,7 +3,7 @@ * @Author: Kane * @Date: 2023-01-12 14:43:46 * @LastEditors: Kane - * @LastEditTime: 2023-01-18 23:24:41 + * @LastEditTime: 2023-01-19 15:40:26 * @FilePath: \admin_system\src\views\info\StaffInfo.vue * @Description: * @@ -26,7 +26,7 @@ @@ -40,6 +40,17 @@ + + + + + 重置 + 批量删除 + + @@ -53,20 +64,38 @@ export default { query_param: { staff_code: "", }, + table_current_page: 1, table_data: [ - { staff_name: "王炜", staff_code: "588", p13uid: "wangwei-202" }, - { staff_name: "王炜", staff_code: "588", p13uid: "wangwei-202" }, - { staff_name: "王炜", staff_code: "588", p13uid: "wangwei-202" }, - { staff_name: "王炜", staff_code: "588", p13uid: "wangwei-202" }, - { staff_name: "王炜", staff_code: "588", p13uid: "wangwei-202" }, + { + staff_name: "王炜", + staff_code: "588", + p13uid: "wangwei-202", + }, + { + staff_name: "王炜", + staff_code: "588", + p13uid: "wangwei-202", + }, + { + staff_name: "王炜", + staff_code: "588", + p13uid: "wangwei-202", + }, + { + staff_name: "王炜", + staff_code: "588", + p13uid: "wangwei-202", + }, + { + staff_name: "王炜", + staff_code: "588", + p13uid: "wangwei-202", + }, ], }; }, methods: { - onTableEdit(row) - { - - }, + onTableEdit(row) { }, /** * 根据表格行index返回样式,实现斑马纹 * @param row @@ -78,13 +107,25 @@ export default { let index = rowIndex + 1; if (index % 2 == 0) { - return 'warning-row'; + return "warning-row"; } }, + /** + * 点击表格 用户名称 时的消息处理函数 + * @param {*} staff + */ onShowStaffInfo(staff) { console.log("点击名称", staff); }, + /** + * 表格页显示数量变更时消息处理函数 + */ + onTablePageSizeChange() { }, + /** + * 用户变更当前页时消息处理函数 + */ + onCurrentPageIndexChange() { }, }, }; @@ -122,10 +163,9 @@ export default { } .el-table .warning-row { - background-color: #F3F9FF; + background-color: #f3f9ff; } - .query_box:hover, .info_box:hover { box-shadow: 0px 0px 3px 3px #cccccc; @@ -134,4 +174,18 @@ export default { div.cell { height: 100%; } - \ No newline at end of file + +.pull_left { + margin-left: 15px; + margin-right: auto; +} + +.pull_right { + display: flex; + justify-content: right; +} + +.pull_right:last-child { + margin-right: 15px; +} +