保存进度!

This commit is contained in:
Kane Wang 2023-01-19 18:01:35 +08:00
parent aaf25460a4
commit bc24e4f041
4 changed files with 182 additions and 119 deletions

View File

@ -2,21 +2,29 @@
* @Author: Kane * @Author: Kane
* @Date: 2022-12-14 15:12:46 * @Date: 2022-12-14 15:12:46
* @LastEditors: Kane * @LastEditors: Kane
* @LastEditTime: 2022-12-14 17:03:58 * @LastEditTime: 2023-01-19 14:26:17
* @FilePath: \admin_system\src\App.vue * @FilePath: \admin_system\src\App.vue
* @Description: * @Description:
* *
* Copyright (c) ${2022} by Kane, All Rights Reserved. * Copyright (c) ${2022} by Kane, All Rights Reserved.
--> -->
<template> <template>
<el-config-provider :locale="this.locale">
<router-view></router-view> <router-view></router-view>
</el-config-provider>
</template> </template>
<script> <script>
// import HelloWorld from "./components/HelloWorld.vue"; //
import zhCn from "element-plus/lib/locale/lang/zh-cn";
export default { export default {
name: "App", name: "App",
data() {
return {
locale: zhCn, //
};
},
components: { components: {
// HelloWorld, // HelloWorld,
}, },

View File

@ -2,7 +2,7 @@
* @Author: Kane * @Author: Kane
* @Date: 2023-01-04 11:05:44 * @Date: 2023-01-04 11:05:44
* @LastEditors: Kane * @LastEditors: Kane
* @LastEditTime: 2023-01-18 23:05:42 * @LastEditTime: 2023-01-19 14:52:24
* @FilePath: \admin_system\src\layout\Index.vue * @FilePath: \admin_system\src\layout\Index.vue
* @Description: * @Description:
* *
@ -32,16 +32,17 @@ import LayoutMain from "./components/Main.vue";
export default { export default {
name: "layoutPage", name: "layoutPage",
components: { components: {
LayoutAside, LayoutHeader, LayoutMain, LayoutAside,
LayoutHeader,
LayoutMain,
}, },
computed: { computed: {
asideWidth() asideWidth() {
{
const collapse = this.$store.state.app.asideBarCollapse; const collapse = this.$store.state.app.asideBarCollapse;
return collapse === true ? "65px" : "175px"; return collapse === true ? "65px" : "180px";
} },
} },
}; };
</script> </script>
@ -75,6 +76,5 @@ export default {
#layout-container-down { #layout-container-down {
height: calc(100vh - 50px); height: calc(100vh - 50px);
/* max-height: calc(100vh - 50px); */ /* max-height: calc(100vh - 50px); */
} }
</style> </style>

View File

@ -2,7 +2,7 @@
* @Author: Kane * @Author: Kane
* @Date: 2023-01-04 11:39:04 * @Date: 2023-01-04 11:39:04
* @LastEditors: Kane * @LastEditors: Kane
* @LastEditTime: 2023-01-18 14:18:28 * @LastEditTime: 2023-01-19 14:53:38
* @FilePath: \admin_system\src\layout\components\Header.vue * @FilePath: \admin_system\src\layout\components\Header.vue
* @Description: * @Description:
* *
@ -16,8 +16,13 @@
<div>3.6.7 x64 Build 202208301257</div> <div>3.6.7 x64 Build 202208301257</div>
</div> </div>
<div class="buttons_div"> <div class="buttons_div">
<User style="width: 25px; height; 25px; margin-right: 8px" /> <User
<SwitchButton style="width: 25px; height; 25px; margin-right: 8px; cursor:pointer;" @click="logout" /> style="width: 25px; height; 25px; margin-right: 8px; cursor:pointer;"
/>
<SwitchButton
style="width: 25px; height; 25px; margin-right: 8px; cursor:pointer;"
@click="logout"
/>
</div> </div>
</div> </div>
</template> </template>
@ -28,26 +33,22 @@ import { Logout } from "../../utils/api/info/account";
export default { export default {
name: "AppBanner", name: "AppBanner",
data() data() {
{
return {}; return {};
}, },
// created() { // created() {
// console.log("banner"); // console.log("banner");
// }, // },
mounted() mounted() {
{
//console.log("banner"); //console.log("banner");
}, },
methods: { methods: {
logout() logout() {
{
this.$confirm("是否退出系统?", "请确认", { this.$confirm("是否退出系统?", "请确认", {
confirmButtonText: "是", confirmButtonText: "是",
cancelButtonText: "否", cancelButtonText: "否",
type: "warning", type: "warning",
}).then(() => }).then(() => {
{
Logout(); Logout();
}); });
}, },

View File

@ -3,7 +3,7 @@
* @Author: Kane * @Author: Kane
* @Date: 2023-01-12 14:43:46 * @Date: 2023-01-12 14:43:46
* @LastEditors: Kane * @LastEditors: Kane
* @LastEditTime: 2023-01-18 23:24:41 * @LastEditTime: 2023-01-19 15:40:26
* @FilePath: \admin_system\src\views\info\StaffInfo.vue * @FilePath: \admin_system\src\views\info\StaffInfo.vue
* @Description: * @Description:
* *
@ -26,7 +26,7 @@
<el-table-column type="selection" min-width="30" align="center"></el-table-column> <el-table-column type="selection" min-width="30" align="center"></el-table-column>
<el-table-column min-width="200" label="员工名称" align="left" fixed="left"> <el-table-column min-width="200" label="员工名称" align="left" fixed="left">
<template #default="rowdata"> <template #default="rowdata">
<span @click="onShowStaffInfo(rowdata.row)" style="cursor:pointer;display:block;height:100%;">{{ <span @click="onShowStaffInfo(rowdata.row)" style="cursor: pointer; display: block; height: 100%">{{
rowdata.row.staff_name rowdata.row.staff_name
}}</span> }}</span>
</template> </template>
@ -40,6 +40,17 @@
</template> </template>
</el-table-column> </el-table-column>
</el-table> </el-table>
<el-row :gutter="10" width="100%">
<el-col :span="18"></el-col>
<el-pagination class="pull_left" @current-change="onCurrentPageIndexChange"
@size-change="onTablePageSizeChange" size="small" background :current-page="this.table_current_page"
:page-size="10" :page-sizes="[10, 20, 50, 100]" layout="total, sizes, prev, pager, nex, jumper"
:total="table_data.length"></el-pagination>
<el-col :span="6" class="pull_right">
<el-button type="primary">重置</el-button>
<el-button type="danger">批量删除</el-button>
</el-col>
</el-row>
</div> </div>
</template> </template>
@ -53,20 +64,38 @@ export default {
query_param: { query_param: {
staff_code: "", staff_code: "",
}, },
table_current_page: 1,
table_data: [ table_data: [
{ staff_name: "王炜", staff_code: "588", p13uid: "wangwei-202" }, {
{ staff_name: "王炜", staff_code: "588", p13uid: "wangwei-202" }, staff_name: "王炜",
{ staff_name: "王炜", staff_code: "588", p13uid: "wangwei-202" }, staff_code: "588",
{ staff_name: "王炜", staff_code: "588", p13uid: "wangwei-202" }, 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: { methods: {
onTableEdit(row) onTableEdit(row) { },
{
},
/** /**
* 根据表格行index返回样式实现斑马纹 * 根据表格行index返回样式实现斑马纹
* @param row * @param row
@ -78,13 +107,25 @@ export default {
let index = rowIndex + 1; let index = rowIndex + 1;
if (index % 2 == 0) if (index % 2 == 0)
{ {
return 'warning-row'; return "warning-row";
} }
}, },
/**
* 点击表格 用户名称 时的消息处理函数
* @param {*} staff
*/
onShowStaffInfo(staff) onShowStaffInfo(staff)
{ {
console.log("点击名称", staff); console.log("点击名称", staff);
}, },
/**
* 表格页显示数量变更时消息处理函数
*/
onTablePageSizeChange() { },
/**
* 用户变更当前页时消息处理函数
*/
onCurrentPageIndexChange() { },
}, },
}; };
</script> </script>
@ -122,10 +163,9 @@ export default {
} }
.el-table .warning-row { .el-table .warning-row {
background-color: #F3F9FF; background-color: #f3f9ff;
} }
.query_box:hover, .query_box:hover,
.info_box:hover { .info_box:hover {
box-shadow: 0px 0px 3px 3px #cccccc; box-shadow: 0px 0px 3px 3px #cccccc;
@ -134,4 +174,18 @@ export default {
div.cell { div.cell {
height: 100%; height: 100%;
} }
.pull_left {
margin-left: 15px;
margin-right: auto;
}
.pull_right {
display: flex;
justify-content: right;
}
.pull_right:last-child {
margin-right: 15px;
}
</style> </style>