|
@@ -66,6 +66,18 @@
|
66
|
66
|
<el-button type="warning" plain icon="el-icon-download" size="mini" @click="handleExport"
|
67
|
67
|
v-hasPermi="['system:user:export']">导出</el-button>
|
68
|
68
|
</el-col>
|
|
69
|
+ <el-col :span="1.5">
|
|
70
|
+ <el-button type="text" plain size="mini" @click="lookOnTheJob()"
|
|
71
|
+ v-hasPermi="['system:user:edit']">查看正式员工</el-button>
|
|
72
|
+ </el-col>
|
|
73
|
+ <el-col :span="1.5">
|
|
74
|
+ <el-button type="text" plain size="mini" @click="lookResign()"
|
|
75
|
+ v-hasPermi="['system:user:edit']">查看离职人员</el-button>
|
|
76
|
+ </el-col>
|
|
77
|
+ <el-col :span="1.5">
|
|
78
|
+ <el-button type="text" plain size="mini" @click="lookRetire()"
|
|
79
|
+ v-hasPermi="['system:user:edit']">查看退休人员</el-button>
|
|
80
|
+ </el-col>
|
69
|
81
|
<el-col :span="1.5">
|
70
|
82
|
<div style="text-align:right;font-size:14px;line-height:28px;">共{{ total }}条数据</div>
|
71
|
83
|
</el-col>
|
|
@@ -103,7 +115,7 @@
|
103
|
115
|
:show-overflow-tooltip="true" sortable :sort-method="sortPostLevel">
|
104
|
116
|
<template slot-scope="scope">
|
105
|
117
|
{{ selectDictLabel(dict.type.sys_user_postlevel, scope.row.postLevel) +
|
106
|
|
- selectDictLabel(dict.type.sys_user_salarylevel, scope.row.salaryLevel) }}
|
|
118
|
+ selectDictLabel(dict.type.sys_user_salarylevel, scope.row.salaryLevel) }}
|
107
|
119
|
</template>
|
108
|
120
|
</el-table-column>
|
109
|
121
|
<el-table-column label="职务" align="center" key="postNames" prop="postNames" v-if="columns[17].visible"
|
|
@@ -113,9 +125,9 @@
|
113
|
125
|
<template slot-scope="scope">
|
114
|
126
|
{{ selectDictLabel(dict.type.sys_user_titles, scope.row.titles) }}
|
115
|
127
|
</template>
|
116
|
|
- </el-table-column>
|
|
128
|
+ </el-table-column>
|
117
|
129
|
<el-table-column label="执业证书" align="center" key="certificates" prop="certificates" v-if="columns[18].visible"
|
118
|
|
- :formatter="formatterCertificates" />
|
|
130
|
+ :formatter="formatterCertificates" />
|
119
|
131
|
<el-table-column label="毕业院校" align="center" key="graduateSchool" prop="graduateSchool"
|
120
|
132
|
v-if="columns[10].visible" sortable="custom" />
|
121
|
133
|
<el-table-column label="专业" align="center" key="major" prop="major" v-if="columns[11].visible" />
|
|
@@ -496,10 +508,13 @@ export default {
|
496
|
508
|
this.loading = true;
|
497
|
509
|
listUser(this.addDateRange(this.queryParams, this.dateRange)).then(response => {
|
498
|
510
|
this.userList = response.rows;
|
499
|
|
- // this.userList.forEach(user => {
|
500
|
|
- // this.getPostByUser(user)
|
501
|
|
- // })
|
502
|
511
|
this.total = response.total;
|
|
512
|
+ if (this.queryParams.status != 1 && this.queryParams.status != 2) {
|
|
513
|
+ this.userList = this.userList.filter(user =>
|
|
514
|
+ user.status != '1' && user.status != '2'
|
|
515
|
+ )
|
|
516
|
+ this.total = this.userList.length;
|
|
517
|
+ }
|
503
|
518
|
this.loading = false;
|
504
|
519
|
}
|
505
|
520
|
);
|
|
@@ -611,13 +626,6 @@ export default {
|
611
|
626
|
this.reset();
|
612
|
627
|
this.open = true;
|
613
|
628
|
this.title = "添加用户";
|
614
|
|
- // getUser().then(response => {
|
615
|
|
- // this.postOptions = response.posts;
|
616
|
|
- // this.roleOptions = response.roles;
|
617
|
|
- // this.open = true;
|
618
|
|
- // this.title = "添加用户";
|
619
|
|
- // this.form.password = this.initPassword;
|
620
|
|
- // });
|
621
|
629
|
},
|
622
|
630
|
// 查看人员详情按钮
|
623
|
631
|
handleView(row) {
|
|
@@ -659,6 +667,18 @@ export default {
|
659
|
667
|
this.form.password = "";
|
660
|
668
|
});
|
661
|
669
|
},
|
|
670
|
+ lookOnTheJob() {
|
|
671
|
+ this.queryParams.status = ''
|
|
672
|
+ this.getList();
|
|
673
|
+ },
|
|
674
|
+ lookResign() {
|
|
675
|
+ this.queryParams.status = 1
|
|
676
|
+ this.getList();
|
|
677
|
+ },
|
|
678
|
+ lookRetire() {
|
|
679
|
+ this.queryParams.status = 2
|
|
680
|
+ this.getList();
|
|
681
|
+ },
|
662
|
682
|
/** 重置密码按钮操作 */
|
663
|
683
|
handleResetPwd(row) {
|
664
|
684
|
this.$prompt('请输入"' + row.userName + '"的新密码', "提示", {
|