|
@@ -117,28 +117,35 @@ var newRedrankvue = new Vue({
|
|
},
|
|
},
|
|
useSort: function (column) {
|
|
useSort: function (column) {
|
|
let sorter = function () {};
|
|
let sorter = function () {};
|
|
|
|
+ let sortName = "";
|
|
switch (column) {
|
|
switch (column) {
|
|
case "Pass": {
|
|
case "Pass": {
|
|
|
|
+ sortName = "良品数量";
|
|
sorter = RedRankTablePlugin.sortPass;
|
|
sorter = RedRankTablePlugin.sortPass;
|
|
break;
|
|
break;
|
|
}
|
|
}
|
|
case "Fail": {
|
|
case "Fail": {
|
|
|
|
+ sortName = "坏品数量";
|
|
sorter = RedRankTablePlugin.sortFail;
|
|
sorter = RedRankTablePlugin.sortFail;
|
|
break;
|
|
break;
|
|
}
|
|
}
|
|
case "Rate": {
|
|
case "Rate": {
|
|
|
|
+ sortName = "不良率数量";
|
|
sorter = RedRankTablePlugin.sortRate;
|
|
sorter = RedRankTablePlugin.sortRate;
|
|
break;
|
|
break;
|
|
}
|
|
}
|
|
case "Total": {
|
|
case "Total": {
|
|
|
|
+ sortName = "总量数量";
|
|
sorter = RedRankTablePlugin.sortTotal;
|
|
sorter = RedRankTablePlugin.sortTotal;
|
|
break;
|
|
break;
|
|
}
|
|
}
|
|
case "Id": {
|
|
case "Id": {
|
|
|
|
+ sortName = "人员ID";
|
|
sorter = RedRankTablePlugin.sortId;
|
|
sorter = RedRankTablePlugin.sortId;
|
|
break;
|
|
break;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
+ send_alert("已经切换为按照 " + sortName + " 进行排序!");
|
|
RedRankTablePlugin.workerDailyService.list.sortBy(sorter);
|
|
RedRankTablePlugin.workerDailyService.list.sortBy(sorter);
|
|
console.warn(column);
|
|
console.warn(column);
|
|
}
|
|
}
|