| | |
| | | <!-- 岗位职责 --> |
| | | <template> |
| | | <div class="view"> |
| | | <div style="display: flex;justify-content: space-between;"> |
| | | <el-form ref="page" size="small" :inline="true"> |
| | | <el-form-item label="员工"> |
| | | <el-input v-model="userName" clearable placeholder="请输入员工" size="small" style="width: 20vh;"></el-input> |
| | | </el-form-item> |
| | | <el-form-item> |
| | | <div style="display: flex;justify-content: space-between"> |
| | | <div style="display: flex;"> |
| | | <div style="margin-bottom: 18px;margin-right: 10px;display: flex;align-items: center;line-height: 32px;"> |
| | | <span style="width: 50px;font-size: 14px;font-weight: 700;color: #606266;">员工</span> |
| | | <el-input size="small" placeholder="请输入" clearable v-model="userName" |
| | | @keyup.enter.native="refreshTable"></el-input> |
| | | </div> |
| | | <div style="line-height: 30px;"> |
| | | <el-button size="small" type="primary" @click="refreshTable">查询</el-button> |
| | | </el-form-item> |
| | | </el-form> |
| | | <div> |
| | | </div> |
| | | </div> |
| | | <div style="line-height: 30px;"> |
| | | <el-button size="small" type="primary" @click="addPost">新增</el-button> |
| | | <!-- <el-button size="small" type="primary">导出excel</el-button>--> |
| | | </div> |
| | | </div> |
| | | <div class="table"> |
| | | <el-table :data="tableData" v-loading="tableLoading" height="66.5vh" style="width: 100%"> |
| | | <el-table :data="tableData" v-loading="tableLoading" height="66.5vh" style="width: 100%" |
| | | :header-cell-style="{ background: '#f8f8f9', color: '#515a6e' }" border> |
| | | <el-table-column label="序号" type="index" width="60"></el-table-column> |
| | | <el-table-column label="员工编号" min-width="120" prop="account"></el-table-column> |
| | | <el-table-column label="岗位名称" min-width="180" prop="postName"></el-table-column> |
| | |
| | | }, |
| | | // 获取负责人信息接口 |
| | | getUserList() { |
| | | selectUserCondition().then(res => { |
| | | selectUserCondition({type: 2}).then(res => { |
| | | if (res.code == 200) { |
| | | this.responsibleOptions = res.data |
| | | } |