|
@@ -207,6 +207,7 @@ let app = new Vue({
|
|
|
headerBGC: "#69c1ff2d",
|
|
|
oddRowBGC: "rgba(105, 193, 255, 0)",
|
|
|
evenRowBGC: "#69c1ff21",
|
|
|
+ hoverPause: false,
|
|
|
},
|
|
|
configInterviewElse: {
|
|
|
waitTime: 2000,
|
|
@@ -222,6 +223,7 @@ let app = new Vue({
|
|
|
},
|
|
|
configWritten: {
|
|
|
waitTime: 2000,
|
|
|
+ hoverPause: false,
|
|
|
header: ["序号", "姓名", "地点", "双选单位", "时间"],
|
|
|
headerHeight: 55,
|
|
|
columnWidth: [90, 120, 170, 200],
|
|
@@ -404,6 +406,8 @@ let app = new Vue({
|
|
|
mianshiTime: null,
|
|
|
bishiTime: null,
|
|
|
noteListIndex: 0,
|
|
|
+
|
|
|
+ mianBiTime: null,
|
|
|
}
|
|
|
},
|
|
|
beforeCreate() {
|
|
@@ -421,18 +425,29 @@ let app = new Vue({
|
|
|
window.user = dataList[0]
|
|
|
let newDate = new Date().getTime()
|
|
|
let authorityType = window.sessionStorage.getItem("authorityType") || false
|
|
|
- console.log(newDate);
|
|
|
- console.log(parseInt(dataList[1]));
|
|
|
- console.log(newDate - parseInt(dataList[1]) < 30000);
|
|
|
+ // console.log(newDate);
|
|
|
+ // console.log(parseInt(dataList[1]));
|
|
|
+ // console.log(parseInt(dataList[1]) + 30000 >= newDate);
|
|
|
+ // return
|
|
|
+
|
|
|
+ var diff = Math.abs(newDate - parseInt(dataList[1])); // 获取两个时间戳的差值(以毫秒为单位)
|
|
|
+
|
|
|
+ var diffInSeconds = Math.floor(diff / 1000); // 将差值转换为秒数
|
|
|
+
|
|
|
+ let effective = diffInSeconds <= 30; // 判断差值是否在30秒以内
|
|
|
+
|
|
|
+ console.log(diff);
|
|
|
+ console.log(diffInSeconds);
|
|
|
+ console.log(effective);
|
|
|
+
|
|
|
if (!authorityType) {
|
|
|
- if (newDate - parseInt(dataList[1]) < 30000) {
|
|
|
+ if (!effective) {
|
|
|
+ console.log("链接已失效,请重新打开");
|
|
|
+ window.location.href = AddUrl
|
|
|
+ } else {
|
|
|
+ console.log("链接未失效")
|
|
|
window.sessionStorage.setItem("authorityType", true)
|
|
|
- return
|
|
|
}
|
|
|
- // alert("链接已失效,请重新打开")
|
|
|
- console.log("链接已失效,请重新打开");
|
|
|
- window.location.href = AddUrl
|
|
|
-
|
|
|
}
|
|
|
},
|
|
|
beforeDestroy() {
|
|
@@ -582,6 +597,8 @@ let app = new Vue({
|
|
|
handleClickIcon(item, index) {
|
|
|
let that = this;
|
|
|
if (index == 1) {
|
|
|
+ that.mianBiTime && clearInterval(that.mianBiTime)
|
|
|
+
|
|
|
if (that.showBigList) {
|
|
|
that.configInterview.rowNum = 20
|
|
|
that.configWritten.rowNum = 20
|
|
@@ -599,6 +616,13 @@ let app = new Vue({
|
|
|
if (that.roseEcharts) {
|
|
|
that.roseEcharts.dispose()
|
|
|
}
|
|
|
+
|
|
|
+ if (that.configInterviewElse.data.length <= that.configInterviewElse.rowNum) {
|
|
|
+ that.mianBiTime = setInterval(() => {
|
|
|
+ that.getNoticePerson()
|
|
|
+ }, 1000 * 60 * 5)
|
|
|
+ }
|
|
|
+
|
|
|
setTimeout(() => {
|
|
|
that.showBigList = false
|
|
|
}, 10)
|
|
@@ -785,7 +809,7 @@ let app = new Vue({
|
|
|
},
|
|
|
grid,
|
|
|
legend: {
|
|
|
- data: ["双选人数", "报名人数", "录用人数"],
|
|
|
+ data: ["需求人数", "报名人数", "录用人数"],
|
|
|
align: 'left',
|
|
|
itemGap: 50,
|
|
|
right: 500,
|
|
@@ -848,7 +872,7 @@ let app = new Vue({
|
|
|
},
|
|
|
series: [{
|
|
|
type: 'bar',
|
|
|
- name: "双选人数",
|
|
|
+ name: "需求人数",
|
|
|
barWidth: 26,
|
|
|
itemStyle: {
|
|
|
color: new echarts.graphic.LinearGradient(0, 1, 0, 0, [{
|
|
@@ -2730,9 +2754,9 @@ let app = new Vue({
|
|
|
if (res.data.length != 0) {
|
|
|
let dataList = []
|
|
|
let total = 0
|
|
|
- dataList.forEach(item => {
|
|
|
- total = total + item.value
|
|
|
- })
|
|
|
+ // dataList.forEach(item => {
|
|
|
+ // total = total + item.value
|
|
|
+ // })
|
|
|
that.rightData.push(...dataList)
|
|
|
res.data.forEach((item, index) => {
|
|
|
item.forEach(i => {
|
|
@@ -2743,6 +2767,7 @@ let app = new Vue({
|
|
|
if (i.key == "不通过数量") {
|
|
|
obj.value = i.value
|
|
|
dataList[index] = obj
|
|
|
+ total = total + i.value
|
|
|
}
|
|
|
})
|
|
|
})
|
|
@@ -2759,7 +2784,7 @@ let app = new Vue({
|
|
|
let title = "lineRight" + (index + 1)
|
|
|
that.initLineRight(child.children[1], { value: dataList[index].value, total }, title)
|
|
|
}
|
|
|
- },)
|
|
|
+ }, 10)
|
|
|
|
|
|
}
|
|
|
|
|
@@ -2834,20 +2859,36 @@ let app = new Vue({
|
|
|
}
|
|
|
}
|
|
|
let arr = []
|
|
|
+ let len = false
|
|
|
if (res.bishiList.length != 0) {
|
|
|
arr.push(...that.getNo(res.bishiList))
|
|
|
+ if (arr.length % 2 == 0) {
|
|
|
+ arr.push([])
|
|
|
+ len = true
|
|
|
+ }
|
|
|
res.bishiList = []
|
|
|
res.bishiList = arr.filter((_, index) => index % 2 === 0);
|
|
|
res.mianshiList = arr.filter((_, index) => index % 2 !== 0);
|
|
|
that.configInterviewElse.data = [...arr]
|
|
|
+ if (len) {
|
|
|
+ that.configInterviewElse.data.pop()
|
|
|
+ }
|
|
|
} else if (res.mianshiList.length != 0) {
|
|
|
arr.push(...that.getNo(res.mianshiList))
|
|
|
+ if (arr.length % 2 != 0) {
|
|
|
+ arr.push([])
|
|
|
+ len = true
|
|
|
+ }
|
|
|
res.mianshiList = []
|
|
|
res.bishiList = arr.filter((_, index) => index % 2 === 0);
|
|
|
res.mianshiList = arr.filter((_, index) => index % 2 !== 0);
|
|
|
that.configInterviewElse.data = [...arr]
|
|
|
+ if (len) {
|
|
|
+ that.configInterviewElse.data.pop()
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
+
|
|
|
if (type == 1) {
|
|
|
that.configWritten.data = res.bishiList
|
|
|
// that.configWritten.data = that.getNo(res.bishiList)
|
|
@@ -3169,7 +3210,7 @@ let app = new Vue({
|
|
|
},
|
|
|
scrollChangeListW(index) {
|
|
|
let that = this;
|
|
|
- if (index + 10 == that.configWritten.data.length) {
|
|
|
+ if (index + that.configInterview.rowNum == that.configInterview.data.length) {
|
|
|
console.log("笔试更新");
|
|
|
setTimeout(() => {
|
|
|
that.getNoticePerson(1)
|
|
@@ -3178,13 +3219,22 @@ let app = new Vue({
|
|
|
},
|
|
|
scrollChangeListIn(index) {
|
|
|
let that = this;
|
|
|
- if (index + 10 == that.configInterview.data.length) {
|
|
|
+ if (index + that.configInterview.rowNum == that.configInterview.data.length) {
|
|
|
console.log("面试更新");
|
|
|
setTimeout(() => {
|
|
|
that.getNoticePerson(2)
|
|
|
}, 1700)
|
|
|
}
|
|
|
},
|
|
|
+ scrollChangeListElse(index) {
|
|
|
+ let that = this;
|
|
|
+ if (index + that.configInterviewElse.rowNum == that.configInterviewElse.data.length) {
|
|
|
+ console.log("面试更新");
|
|
|
+ setTimeout(() => {
|
|
|
+ that.getNoticePerson()
|
|
|
+ }, 1700)
|
|
|
+ }
|
|
|
+ },
|
|
|
|
|
|
},
|
|
|
|