人效管理-绩效管理-绩效公示-新增排序

dev-scheduling
ysn 1 month ago
parent c483c45678
commit 3d4c8ac2a4
  1. 15
      src/views/personnelEfficiencyManagement/performanceManagement/performanceDisclosure.vue

@ -15,6 +15,7 @@
@refresh-change="refreshChange"
@on-load="onLoad"
@cell-click="cellClick"
@sort-change="sortChange"
>
</avue-crud>
<prefDetail
@ -287,6 +288,20 @@ export default {
this.onLoad(this.page, this.query);
done();
},
//
sortChange({ prop, order }) {
if (!prop) {
//
this.query.orderByField = undefined;
this.query.isAsc = undefined;
} else {
const orderByField = prop.replace(/([a-z])([A-Z0-9])/g, '$1_$2').toUpperCase();
this.query.orderByField = orderByField;
this.query.isAsc = order === 'ascending' ? true : false;
}
// //
this.onLoad();
},
//
async onLoad() {
this.loading = true;

Loading…
Cancel
Save