|
|
|
@ -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); |
|
|
|
}, |
|
|
|
}, |
|
|
|
|