yujialong 4 years ago
parent 04041235ca
commit bd4157f0a3
  1. 2
      src/api/index.js
  2. 8
      src/pages/client/list/index.vue
  3. 23
      src/pages/system/list/staff.vue
  4. 6
      src/pages/user/list/index.vue
  5. 2
      src/setting.js

@ -44,7 +44,7 @@ export default {
updateStaff: `management/staff/updateStaff`,
exportFailureStaff: `${Setting.apiBaseURL}/management/staff/exportFailure`,
uploadFileStaff: `${Setting.apiBaseURL}/management/staff/uploadFile`,
downloadStaffTemp: `http://liuwanr.oss-cn-shenzhen.aliyuncs.com/xlsx/20201102/1604658763812.xlsx`,
downloadStaffTemp: `http://39.108.250.202/template/%E8%80%83%E8%AF%95%E5%B9%B3%E5%8F%B0%E5%91%98%E5%B7%A5%E5%AF%BC%E5%85%A5%E6%A8%A1%E6%9D%BF.xlsx`,
// 角色管理
getRole: `management/role/get`,

@ -22,7 +22,7 @@
</el-col>
<el-col :span="6">
<el-form-item label="城市">
<el-select v-model="form.city" clearable placeholder="请选择城市" :disabled="form.provinces ? false : true" @change="getData()">
<el-select v-model="form.city" clearable placeholder="请选择城市" :disabled="form.provinces ? false : true" @change="initData()">
<el-option v-for="(item,index) in cityList" :key="index" :label="item.cityName" :value="item.cityId"></el-option>
</el-select>
</el-form-item>
@ -117,7 +117,7 @@ export default {
keyword: function(val) {
clearTimeout(this.searchTimer)
this.searchTimer = setTimeout(() => {
this.getData()
this.initData()
},500)
}
},
@ -141,6 +141,10 @@ export default {
this.totals = res.data.list.totalCount
}).catch(res => {});
},
initData(){
this.pageNo = 1
this.getData()
},
getProvince(){
this.$get(this.api.queryProvince).then(res => {
this.provinceList = res.data.list

@ -10,7 +10,7 @@
<el-card shadow="hover" class="m-b-20 teacher_tab">
<div class="flex j-between m-b-20">
<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>
<el-button type="primary" size="small" round @click="addTeacher" v-auth="'/system/list:员工管理:新增员工'">新增员工</el-button>
@ -47,7 +47,7 @@
</el-table-column>
</el-table>
<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>
</div>
</el-card>
@ -118,6 +118,7 @@
:limit="1"
:on-exceed="handleExceed"
:action="this.api.uploadFileStaff"
:data="{schoolId: this.clientId}"
:file-list="uploadList"
name="file"
>
@ -262,7 +263,7 @@ export default {
keyword: function(val) {
clearTimeout(this.searchTimer)
this.searchTimer = setTimeout(() => {
this.getData()
this.initData()
},500)
}
},
@ -308,13 +309,23 @@ export default {
staffProfessionalArchitectureIds: this.oneDepartmentIds,
staffGradeIds: this.twoDepartmentIds,
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.listData = res.data.staffList
this.total = res.data.total
this.listData = res.data.staffList.list
this.total = res.data.staffList.totalCount
if(!this.listData.length && this.total){
this.pageNo--
this.getData()
}
}).catch(res => {});
},
initData(){
this.pageNo = 1
this.getData()
},
getRoles() {
let data = {
clientId: this.clientId

@ -168,7 +168,7 @@ export default {
keyword: function(val) {
clearTimeout(this.searchTimer)
this.searchTimer = setTimeout(() => {
this.getData()
this.initData()
},500)
}
},
@ -196,6 +196,10 @@ export default {
this.totals = res.data.list.totalCount
}).catch(res => {});
},
initData(){
this.pageNo = 1
this.getData()
},
accountChange(){
if(this.form.account !== this.originalAccount){
this.$get(`${this.api.getAccount}?account=${this.form.account}`).then(res => {

@ -16,7 +16,7 @@ const Setting = {
showProgressBar: true,
// 接口请求地址
// apiBaseURL: env === 'development' ? 'http://192.168.31.152:8001' : 'http://39.108.250.202:8000',
apiBaseURL: env === 'development' ? 'http://192.168.31.152:8001' : 'http://39.108.250.202:9000',
apiBaseURL: env === 'development' ? 'http://39.108.250.202:9000' : 'http://39.108.250.202:9000',
// 接口请求返回错误时,弹窗的持续时间,单位:秒
modalDuration: 3,
// 接口请求返回错误时,弹窗的类型,可选值为 Message 或 Notice

Loading…
Cancel
Save