转岗管理-新增排序

dev-scheduling
ysn 4 weeks ago
parent 397cb1813b
commit 6b20adcd2b
  1. 4
      src/views/basicData/jobTransferManagement.vue
  2. 4
      src/views/changeJobManagement/trainingRecordManagement.vue
  3. 4
      src/views/workLicense/workLicense.vue

@ -1052,7 +1052,9 @@ export default {
this.query.descs = undefined; this.query.descs = undefined;
this.query.ascs = undefined; this.query.ascs = undefined;
let orderByFieldKey = order === 'descending' ? 'descs' : 'ascs'; let orderByFieldKey = order === 'descending' ? 'descs' : 'ascs';
this.query[orderByFieldKey] = prop.replace(/([a-z])([A-Z0-9])/g, '$1_$2').toUpperCase(); this.query[orderByFieldKey] = !prop
? undefined
: prop.replace(/([a-z])([A-Z0-9])/g, '$1_$2').toUpperCase();
// //
this.onLoad(this.page, this.query); this.onLoad(this.page, this.query);
}, },

@ -481,7 +481,9 @@ export default {
this.query.descs = undefined; this.query.descs = undefined;
this.query.ascs = undefined; this.query.ascs = undefined;
let orderByFieldKey = order === 'descending' ? 'descs' : 'ascs'; let orderByFieldKey = order === 'descending' ? 'descs' : 'ascs';
this.query[orderByFieldKey] = prop.replace(/([a-z])([A-Z0-9])/g, '$1_$2').toUpperCase(); this.query[orderByFieldKey] = !prop
? undefined
: prop.replace(/([a-z])([A-Z0-9])/g, '$1_$2').toUpperCase();
// //
this.onLoad(this.page, this.query); this.onLoad(this.page, this.query);
}, },

@ -663,7 +663,9 @@ export default {
this.query.descs = undefined; this.query.descs = undefined;
this.query.ascs = undefined; this.query.ascs = undefined;
let orderByFieldKey = order === 'descending' ? 'descs' : 'ascs'; let orderByFieldKey = order === 'descending' ? 'descs' : 'ascs';
this.query[orderByFieldKey] = prop.replace(/([a-z])([A-Z0-9])/g, '$1_$2').toUpperCase(); this.query[orderByFieldKey] = !prop
? undefined
: prop.replace(/([a-z])([A-Z0-9])/g, '$1_$2').toUpperCase();
// //
this.onLoad(this.page, this.query); this.onLoad(this.page, this.query);
}, },

Loading…
Cancel
Save