保存进度!

This commit is contained in:
2023-01-18 23:47:38 +08:00
parent 905d22abc6
commit aaf25460a4
4 changed files with 36 additions and 25 deletions

View File

@@ -3,7 +3,7 @@
* @Author: Kane
* @Date: 2023-01-12 14:43:46
* @LastEditors: Kane
* @LastEditTime: 2023-01-18 17:38:03
* @LastEditTime: 2023-01-18 23:24:41
* @FilePath: \admin_system\src\views\info\StaffInfo.vue
* @Description:
*
@@ -11,7 +11,7 @@
-->
<template>
<div class="query_box">
<el-form inline="true" width="600px">
<el-form inline width="600px">
<el-row :gutter="10" class="el-row">
<el-col :span="8">
<el-input v-model="query_param.staff_code" placeholder="请输入P09工号或P13账号"></el-input>
@@ -22,15 +22,21 @@
<el-col :span="12"></el-col>
</el-row>
</el-form>
<el-table ref="table" :data="table_data" border width="100%" :stripe="true">
<el-table ref="table" :data="table_data" border width="100%" stripe>
<el-table-column type="selection" min-width="30" align="center"></el-table-column>
<el-table-column prop="staff_name" min-width="200" label="员工名称" align="center"></el-table-column>
<el-table-column prop="staff_code" min-width="100" label="工号" align="center"></el-table-column>
<el-table-column prop="p13uid" min-width="200" label="P13账号" align="center"></el-table-column>
<el-table-column label="操作" min-width="200" align="center">
<template #default="scope">
<el-button type="warning" size="mini" @click="onTableEdit(scope.row)">编辑</el-button>
<el-button type="danger" size="mini">删除</el-button>
<el-table-column min-width="200" label="员工名称" align="left" fixed="left">
<template #default="rowdata">
<span @click="onShowStaffInfo(rowdata.row)" style="cursor:pointer;display:block;height:100%;">{{
rowdata.row.staff_name
}}</span>
</template>
</el-table-column>
<el-table-column prop="staff_code" min-width="100" label="工号" align="left"></el-table-column>
<el-table-column prop="p13uid" min-width="200" label="P13账号" align="left"></el-table-column>
<el-table-column label="操作" min-width="200" align="center" fixed="right">
<template #default>
<el-button type="warning">编辑</el-button>
<el-button type="danger">删除</el-button>
</template>
</el-table-column>
</el-table>
@@ -75,6 +81,10 @@ export default {
return 'warning-row';
}
},
onShowStaffInfo(staff)
{
console.log("点击名称", staff);
},
},
};
</script>
@@ -120,4 +130,8 @@ export default {
.info_box:hover {
box-shadow: 0px 0px 3px 3px #cccccc;
}
div.cell {
height: 100%;
}
</style>