Files
vue-learning/企业级管理系统/web/admin_system/src/views/info/StaffInfo.vue

79 lines
1.7 KiB
Vue
Raw Normal View History

2023-01-12 18:16:45 +08:00
<!--
* @Author: Kane
* @Date: 2023-01-12 14:43:46
* @LastEditors: Kane
2023-01-18 11:46:16 +08:00
* @LastEditTime: 2023-01-18 11:45:26
2023-01-12 18:16:45 +08:00
* @FilePath: \admin_system\src\views\info\StaffInfo.vue
* @Description:
*
* Copyright (c) ${2022} by Kane, All Rights Reserved.
-->
<template>
2023-01-13 15:15:57 +08:00
<div class="query_box">
2023-01-18 11:46:16 +08:00
<el-form inline="true" width="600px">
2023-01-14 23:53:15 +08:00
<el-row :gutter="10" class="el-row">
2023-01-18 11:46:16 +08:00
<el-col :span="8">
2023-01-14 23:53:15 +08:00
<el-input v-model="query_param.staff_code" placeholder="请输入P09工号或P13账号"></el-input>
</el-col>
2023-01-18 11:46:16 +08:00
<el-col :span="4">
2023-01-14 23:53:15 +08:00
<el-button type="danger">查询</el-button>
</el-col>
2023-01-18 11:46:16 +08:00
<el-col :span="12"></el-col>
2023-01-14 23:53:15 +08:00
</el-row>
2023-01-13 18:00:27 +08:00
</el-form>
2023-01-18 00:39:30 +08:00
<el-table ref="table" :data="table_data"> </el-table>
</div>
2023-01-12 18:16:45 +08:00
</template>
<script>
2023-01-18 00:39:30 +08:00
/* eslint-disable */
2023-01-12 18:16:45 +08:00
export default {
name: "staff-info",
2023-01-13 15:15:57 +08:00
data()
{
return {
query_param: {
staff_code: "",
},
2023-01-18 00:39:30 +08:00
table_data: [
{ staff_name: "王炜", staff_code: "588", p13uid: "wangwei-202" },
],
2023-01-13 15:15:57 +08:00
};
},
2023-01-12 18:16:45 +08:00
};
</script>
<style scoped>
2023-01-13 15:15:57 +08:00
.el-row {
display: flex;
justify-content: center;
align-items: center;
}
2023-01-12 18:16:45 +08:00
2023-01-13 15:15:57 +08:00
.el-label {
text-align: right;
}
.query_box {
2023-01-18 11:46:16 +08:00
width: 100%;
2023-01-13 15:15:57 +08:00
background-color: #fff;
border-radius: 5px;
padding: 15px;
2023-01-18 11:46:16 +08:00
margin-bottom: 15px;
text-align: left;
2023-01-13 15:15:57 +08:00
}
2023-01-18 11:46:16 +08:00
.info_box {
background-color: #fff;
border-radius: 5px;
padding: 15px;
margin-bottom: 15px;
width: 100%;
}
.query_box:hover,
.info_box:hover {
2023-01-13 18:00:27 +08:00
box-shadow: 0px 0px 3px 3px #cccccc;
2023-01-13 15:15:57 +08:00
}
2023-01-12 18:16:45 +08:00
</style>