Jelajahi Sumber

调整排序

fengxu 2 tahun lalu
induk
melakukan
5bfa9cb62e
1 mengubah file dengan 10 tambahan dan 11 penghapusan
  1. 10 11
      cokingCoal/js/humanResources.js

+ 10 - 11
cokingCoal/js/humanResources.js

@@ -409,7 +409,6 @@ let app = new Vue({
     beforeCreate() {
         // 跳转地址
         let AddUrl = location.protocol + "//" + location.host + "/ierp"
-        return
         if (!window.location.search) {
             // alert("链接已失效,请重新打开")
             window.location.href = AddUrl
@@ -2836,13 +2835,13 @@ let app = new Vue({
                     }
                     let arr = []
                     if (res.bishiList.length != 0) {
-                        arr.push(...res.bishiList)
+                        arr.push(...that.getNo(res.bishiList))
                         res.bishiList = []
                         res.bishiList = arr.filter((_, index) => index % 2 === 0);
                         res.mianshiList = arr.filter((_, index) => index % 2 !== 0);
                         that.configInterviewElse.data = [...arr]
                     } else if (res.mianshiList.length != 0) {
-                        arr.push(...res.mianshiList)
+                        arr.push(...that.getNo(res.mianshiList))
                         res.mianshiList = []
                         res.bishiList = arr.filter((_, index) => index % 2 === 0);
                         res.mianshiList = arr.filter((_, index) => index % 2 !== 0);
@@ -2850,25 +2849,25 @@ let app = new Vue({
                     }
 
                     if (type == 1) {
-                        // that.configWritten.data = res.bishiList
-                        that.configWritten.data = that.getNo(res.bishiList)
+                        that.configWritten.data = res.bishiList
+                        // that.configWritten.data = that.getNo(res.bishiList)
                         setTimeout(() => {
                             that.showExamination = true
                         }, 10)
 
                     } else if (type == 2) {
-                        // that.configInterview.data = res.mianshiList
-                        that.configInterview.data = that.getNo(res.mianshiList)
+                        that.configInterview.data = res.mianshiList
+                        // that.configInterview.data = that.getNo(res.mianshiList)
                         setTimeout(() => {
                             that.showInterview = true
                         }, 10)
 
 
                     } else {
-                        // that.configWritten.data = res.bishiList
-                        that.configWritten.data = that.getNo(res.bishiList)
-                        // that.configInterview.data = res.mianshiList
-                        that.configInterview.data = that.getNo(res.mianshiList)
+                        that.configWritten.data = res.bishiList
+                        // that.configWritten.data = that.getNo(res.bishiList)
+                        that.configInterview.data = res.mianshiList
+                        // that.configInterview.data = that.getNo(res.mianshiList)
                         setTimeout(() => {
                             that.showInterview = true
                             that.showExamination = true