人员绩效表排序问题,绩效详情状态判断问题
parent
3a7e373394
commit
e7a69e87f8
|
@ -51,6 +51,10 @@
|
||||||
@current-change="handleCurrentChange"
|
@current-change="handleCurrentChange"
|
||||||
tableHeight="495px"
|
tableHeight="495px"
|
||||||
@sortChange="sortChange"
|
@sortChange="sortChange"
|
||||||
|
:default-sort="{
|
||||||
|
prop:'score',
|
||||||
|
order:null,
|
||||||
|
}"
|
||||||
>
|
>
|
||||||
<template slot="operation" slot-scope="{ row }">
|
<template slot="operation" slot-scope="{ row }">
|
||||||
<div class="operation-buttons">
|
<div class="operation-buttons">
|
||||||
|
@ -174,7 +178,7 @@ export default {
|
||||||
.getTaskUserList({
|
.getTaskUserList({
|
||||||
...this.searchForm,
|
...this.searchForm,
|
||||||
taskId: this.taskId,
|
taskId: this.taskId,
|
||||||
|
sortFiled :'all',
|
||||||
pageNum: this.pageNum,
|
pageNum: this.pageNum,
|
||||||
pageSize: this.pageSize,
|
pageSize: this.pageSize,
|
||||||
})
|
})
|
||||||
|
@ -210,6 +214,17 @@ export default {
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
sortChange({ order }) {
|
sortChange({ order }) {
|
||||||
|
let ele=document.getElementsByClassName('is-sortable')[0]
|
||||||
|
|
||||||
|
let className=ele.getAttribute('class')
|
||||||
|
if(order == "descending"){
|
||||||
|
ele.setAttribute('class',className.replace('ascending','')+' descending')
|
||||||
|
}else if(order == "ascending"){
|
||||||
|
ele.setAttribute('class',className.replace('descending','')+' ascending')
|
||||||
|
}else{
|
||||||
|
ele.setAttribute('class',className.replace('ascending','').replace('descending',''))
|
||||||
|
}
|
||||||
|
|
||||||
this.searchForm.isAsc =
|
this.searchForm.isAsc =
|
||||||
order == "descending" ? "desc" : order == "ascending" ? "asc" : "";
|
order == "descending" ? "desc" : order == "ascending" ? "asc" : "";
|
||||||
this.getTaskUserList();
|
this.getTaskUserList();
|
||||||
|
|
|
@ -168,6 +168,7 @@ export default {
|
||||||
pageNum: this.pageNum,
|
pageNum: this.pageNum,
|
||||||
pageSize: this.pageSize,
|
pageSize: this.pageSize,
|
||||||
isAsc: this.isAsc,
|
isAsc: this.isAsc,
|
||||||
|
sortFiled: "manageScore",
|
||||||
})
|
})
|
||||||
.then((res) => {
|
.then((res) => {
|
||||||
this.tableData = res.rows;
|
this.tableData = res.rows;
|
||||||
|
|
|
@ -25,7 +25,7 @@
|
||||||
</div>
|
</div>
|
||||||
<div
|
<div
|
||||||
class="action-buttons aic"
|
class="action-buttons aic"
|
||||||
@click="viewDetails(item, 1)"
|
@click="viewDetails(item, item.examineStatusSelf == 1 ?0: 1)"
|
||||||
:class="{ waitBtn: !item.taskEditFlag }"
|
:class="{ waitBtn: !item.taskEditFlag }"
|
||||||
>
|
>
|
||||||
{{ item.examineStatusSelf == 1 ? "查看详情" : "考核评分" }}
|
{{ item.examineStatusSelf == 1 ? "查看详情" : "考核评分" }}
|
||||||
|
|
Loading…
Reference in New Issue