Commit 8c92cddc authored by 姬鋆屾's avatar 姬鋆屾

feated:窗口绩效汇总增加排序功能

parent 9f3000ba
...@@ -118,6 +118,20 @@ export default { ...@@ -118,6 +118,20 @@ export default {
}, },
methods: { methods: {
handleSortChange({ column, prop, order }) {
console.log(column);
console.log(prop);
console.log(order);
if (order) {
let obj = {};
this.orderColList = [];
obj.colName = prop;
order == "ascending" ? (obj.sortKind = "asc") : (obj.sortKind = "desc");
this.orderColList.push(obj);
} else {
this.orderColList = [];
}
},
countDown() { countDown() {
if (this.percent == 95) { if (this.percent == 95) {
if (this.selection.length > 0) { if (this.selection.length > 0) {
...@@ -130,6 +144,7 @@ export default { ...@@ -130,6 +144,7 @@ export default {
...this.query, ...this.query,
page: 1, page: 1,
size: -1, size: -1,
orderColList: this.orderColList,
}, },
{ type: "excel", name: "窗口绩效汇总" } { type: "excel", name: "窗口绩效汇总" }
) )
...@@ -268,6 +283,7 @@ export default { ...@@ -268,6 +283,7 @@ export default {
}, },
data() { data() {
return { return {
orderColList: [],
toString: ["suggestion"], toString: ["suggestion"],
endTime: "", endTime: "",
restTime: "15", restTime: "15",
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment