|
|
@ -10,7 +10,7 @@ |
|
|
|
<el-card shadow="hover" class="m-b-20 teacher_tab"> |
|
|
|
<el-card shadow="hover" class="m-b-20 teacher_tab"> |
|
|
|
<div class="flex j-between m-b-20"> |
|
|
|
<div class="flex j-between m-b-20"> |
|
|
|
<div> |
|
|
|
<div> |
|
|
|
<el-input placeholder="请输入员工姓名/工号" v-model="keyword" prefix-icon="el-icon-search" clearable></el-input> |
|
|
|
<el-input style="width: 250px" placeholder="请输入员工姓名/工号/角色名称" v-model="keyword" prefix-icon="el-icon-search" clearable></el-input> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<div> |
|
|
|
<div> |
|
|
|
<el-button type="primary" size="small" round @click="addTeacher" v-auth="'/system/list:员工管理:新增员工'">新增员工</el-button> |
|
|
|
<el-button type="primary" size="small" round @click="addTeacher" v-auth="'/system/list:员工管理:新增员工'">新增员工</el-button> |
|
|
@ -47,7 +47,7 @@ |
|
|
|
</el-table-column> |
|
|
|
</el-table-column> |
|
|
|
</el-table> |
|
|
|
</el-table> |
|
|
|
<div class="pagination"> |
|
|
|
<div class="pagination"> |
|
|
|
<el-pagination background layout="prev, pager, next" :current-page="pageNo" @current-change="handleCurrentChange" :total="pages"> |
|
|
|
<el-pagination background layout="total,prev, pager, next" :current-page="pageNo" @current-change="handleCurrentChange" :total="total"> |
|
|
|
</el-pagination> |
|
|
|
</el-pagination> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</el-card> |
|
|
|
</el-card> |
|
|
@ -118,6 +118,7 @@ |
|
|
|
:limit="1" |
|
|
|
:limit="1" |
|
|
|
:on-exceed="handleExceed" |
|
|
|
:on-exceed="handleExceed" |
|
|
|
:action="this.api.uploadFileStaff" |
|
|
|
:action="this.api.uploadFileStaff" |
|
|
|
|
|
|
|
:data="{schoolId: this.clientId}" |
|
|
|
:file-list="uploadList" |
|
|
|
:file-list="uploadList" |
|
|
|
name="file" |
|
|
|
name="file" |
|
|
|
> |
|
|
|
> |
|
|
@ -262,7 +263,7 @@ export default { |
|
|
|
keyword: function(val) { |
|
|
|
keyword: function(val) { |
|
|
|
clearTimeout(this.searchTimer) |
|
|
|
clearTimeout(this.searchTimer) |
|
|
|
this.searchTimer = setTimeout(() => { |
|
|
|
this.searchTimer = setTimeout(() => { |
|
|
|
this.getData() |
|
|
|
this.initData() |
|
|
|
},500) |
|
|
|
},500) |
|
|
|
} |
|
|
|
} |
|
|
|
}, |
|
|
|
}, |
|
|
@ -308,13 +309,23 @@ export default { |
|
|
|
staffProfessionalArchitectureIds: this.oneDepartmentIds, |
|
|
|
staffProfessionalArchitectureIds: this.oneDepartmentIds, |
|
|
|
staffGradeIds: this.twoDepartmentIds, |
|
|
|
staffGradeIds: this.twoDepartmentIds, |
|
|
|
searchContent: this.keyword, |
|
|
|
searchContent: this.keyword, |
|
|
|
schoolId: this.clientId |
|
|
|
schoolId: this.clientId, |
|
|
|
|
|
|
|
pageNum: this.pageNo, |
|
|
|
|
|
|
|
pageSize: this.pageSize |
|
|
|
} |
|
|
|
} |
|
|
|
this.$get(`${this.api.queryStaff}/${this.pageNo}/${this.pageSize}`,data).then(res => { |
|
|
|
this.$get(`${this.api.queryStaff}/${this.pageNo}/${this.pageSize}`,data).then(res => { |
|
|
|
this.listData = res.data.staffList |
|
|
|
this.listData = res.data.staffList.list |
|
|
|
this.total = res.data.total |
|
|
|
this.total = res.data.staffList.totalCount |
|
|
|
|
|
|
|
if(!this.listData.length && this.total){ |
|
|
|
|
|
|
|
this.pageNo-- |
|
|
|
|
|
|
|
this.getData() |
|
|
|
|
|
|
|
} |
|
|
|
}).catch(res => {}); |
|
|
|
}).catch(res => {}); |
|
|
|
}, |
|
|
|
}, |
|
|
|
|
|
|
|
initData(){ |
|
|
|
|
|
|
|
this.pageNo = 1 |
|
|
|
|
|
|
|
this.getData() |
|
|
|
|
|
|
|
}, |
|
|
|
getRoles() { |
|
|
|
getRoles() { |
|
|
|
let data = { |
|
|
|
let data = { |
|
|
|
clientId: this.clientId |
|
|
|
clientId: this.clientId |
|
|
|