jason.lu 6 jaren geleden
bovenliggende
commit
e2f55a4f0b
1 gewijzigde bestanden met toevoegingen van 7 en 0 verwijderingen
  1. 7 0
      js/newRedrankvue.js

+ 7 - 0
js/newRedrankvue.js

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