|
@@ -242,7 +242,7 @@ let app = new Vue({
|
|
|
icon: "./images/humanResources/times.png"
|
|
|
},
|
|
|
{
|
|
|
- name: "参与人数",
|
|
|
+ name: "参与人次",
|
|
|
value: 0,
|
|
|
unit: "人",
|
|
|
icon: "./images/humanResources/user.png"
|
|
@@ -414,7 +414,6 @@ let app = new Vue({
|
|
|
// 跳转地址
|
|
|
let AddUrl = location.protocol + "//" + location.host + "/ierp"
|
|
|
// return
|
|
|
-
|
|
|
if (!window.location.search) {
|
|
|
// alert("链接已失效,请重新打开")
|
|
|
window.location.href = AddUrl
|
|
@@ -436,7 +435,7 @@ let app = new Vue({
|
|
|
|
|
|
var diffInSeconds = Math.floor(diff / 1000); // 将差值转换为秒数
|
|
|
|
|
|
- let effective = diffInSeconds <= 30; // 判断差值是否在30秒以内
|
|
|
+ let effective = diffInSeconds <= 300; // 判断差值是否在30秒以内
|
|
|
|
|
|
console.log(diff);
|
|
|
console.log(diffInSeconds);
|
|
@@ -459,14 +458,15 @@ let app = new Vue({
|
|
|
|
|
|
let date = new Date()
|
|
|
let year = date.getFullYear()
|
|
|
+ let year2 = date.getFullYear() - 1
|
|
|
let month = date.getMonth() + 1
|
|
|
if (month < 10) {
|
|
|
month = "0" + month
|
|
|
- this.timeList1 = [year + "-" + month, year + "-" + (month)]
|
|
|
- this.timeList2 = [year + "-" + month, year + "-" + (month)]
|
|
|
+ this.timeList1 = [year2 + "-" + month, year + "-" + (month)]
|
|
|
+ this.timeList2 = [year2 + "-" + month, year + "-" + (month)]
|
|
|
} else {
|
|
|
- this.timeList1 = [year + "-" + (month), year + "-" + (month)]
|
|
|
- this.timeList2 = [year + "-" + (month), year + "-" + (month)]
|
|
|
+ this.timeList1 = [year2 + "-" + (month), year + "-" + (month)]
|
|
|
+ this.timeList2 = [year2 + "-" + (month), year + "-" + (month)]
|
|
|
}
|
|
|
this.newList = listToChange(yearList, monthList)
|
|
|
this.employmentList3.data = employmentList
|
|
@@ -1026,7 +1026,6 @@ let app = new Vue({
|
|
|
chat.setOption(option)
|
|
|
},
|
|
|
initLineRight(el, data, type) {
|
|
|
- console.log(data);
|
|
|
let that = this;
|
|
|
let myChart
|
|
|
if (type) {
|
|
@@ -1326,9 +1325,7 @@ let app = new Vue({
|
|
|
type: "value",
|
|
|
gridIndex: 0,
|
|
|
min: 0,
|
|
|
- max: 100,
|
|
|
- interval: 25,
|
|
|
- // splitNumber: 4,
|
|
|
+ splitNumber: 4,
|
|
|
splitLine: {
|
|
|
show: false,
|
|
|
lineStyle: {
|
|
@@ -2781,7 +2778,7 @@ let app = new Vue({
|
|
|
let title = "lineRight" + (index + 1)
|
|
|
that.initLineRight(child.children[1], { value: dataList[index].value, point: dataList[index].point, total }, title)
|
|
|
}
|
|
|
- }, 10)
|
|
|
+ }, 100)
|
|
|
|
|
|
}
|
|
|
|
|
@@ -2931,7 +2928,7 @@ let app = new Vue({
|
|
|
scrollChangeList(index) {
|
|
|
let that = this;
|
|
|
if (that.noticList.length != 1) {
|
|
|
- if (index + that.employmentList1.rowNum == that.employmentList1.data.length + 1) {
|
|
|
+ if (index + that.employmentList1.rowNum == that.employmentList1.data.length + 1 || index == 0) {
|
|
|
if (that.noticIndex >= that.noticList.length - 1) {
|
|
|
that.noticIndex = 0
|
|
|
} else {
|
|
@@ -2962,6 +2959,7 @@ let app = new Vue({
|
|
|
}, 10)
|
|
|
}
|
|
|
}
|
|
|
+
|
|
|
}
|
|
|
},
|
|
|
changeCardNo(str) {
|
|
@@ -3100,99 +3098,105 @@ let app = new Vue({
|
|
|
// this.leftTime && clearInterval(this.leftTime)
|
|
|
|
|
|
fetchPostMethods("/ierp/kapi/v2/mdnb/mdnb_control/PositionAll", data).then(res => {
|
|
|
- that.leftFlag = false
|
|
|
- that.config2.data = []
|
|
|
- let lastList = []
|
|
|
- let topList = []
|
|
|
- let mainList = []
|
|
|
- if (res) {
|
|
|
- if (res.date) {
|
|
|
- that.allTimeList[1] = that.getYearMonth(res.date.value)
|
|
|
- }
|
|
|
- res.data.forEach((item, index) => {
|
|
|
- if (index <= 8) {
|
|
|
- item.unshift("0" + (index + 1))
|
|
|
- } else {
|
|
|
- item.unshift((index + 1).toString())
|
|
|
+ if(res.data){
|
|
|
+ res.data.sort((a, b) => b[1] - a[1]);
|
|
|
+ }
|
|
|
+ setTimeout(()=>{
|
|
|
+ that.leftFlag = false
|
|
|
+ that.config2.data = []
|
|
|
+ let lastList = []
|
|
|
+ let topList = []
|
|
|
+ let mainList = []
|
|
|
+ if (res) {
|
|
|
+ if (res.date) {
|
|
|
+ that.allTimeList[1] = that.getYearMonth(res.date.value)
|
|
|
}
|
|
|
- })
|
|
|
- if (res.data.length > 5) {
|
|
|
- for (let i = 0; i < 3; i++) {
|
|
|
- let color;
|
|
|
- if (i == 0) {
|
|
|
- color = "yellow"
|
|
|
- } else if (i == 1) {
|
|
|
- color = "red"
|
|
|
+ res.data.forEach((item, index) => {
|
|
|
+ if (index <= 8) {
|
|
|
+ item.unshift("0" + (index + 1))
|
|
|
} else {
|
|
|
- color = "green"
|
|
|
- }
|
|
|
- topList.push(["<span class='" + color + "'>" + res.data[i][0] + "</span>", "<span class='" + color + "'>" + res.data[i][1] + "</span>", "<span class='" + color + "'>" + res.data[i][2] + "</span>"])
|
|
|
- }
|
|
|
- res.data.splice(0, 3)
|
|
|
- mainList.push(...spArr(res.data, 2))
|
|
|
-
|
|
|
- mainList.forEach(item => {
|
|
|
- item.unshift(...topList)
|
|
|
- if (item.length < 5) {
|
|
|
- item.push(["", "", ""])
|
|
|
+ item.unshift((index + 1).toString())
|
|
|
}
|
|
|
- lastList.push(...item)
|
|
|
})
|
|
|
-
|
|
|
- } else if (res.data.length <= 5 && res.data.length >= 3) {
|
|
|
- for (let i = 0; i < 3; i++) {
|
|
|
- let color;
|
|
|
- if (i == 0) {
|
|
|
- color = "yellow"
|
|
|
- } else if (i == 1) {
|
|
|
- color = "red"
|
|
|
- } else {
|
|
|
- color = "green"
|
|
|
+ if (res.data.length > 5) {
|
|
|
+ for (let i = 0; i < 3; i++) {
|
|
|
+ let color;
|
|
|
+ if (i == 0) {
|
|
|
+ color = "yellow"
|
|
|
+ } else if (i == 1) {
|
|
|
+ color = "red"
|
|
|
+ } else {
|
|
|
+ color = "green"
|
|
|
+ }
|
|
|
+ topList.push(["<span class='" + color + "'>" + res.data[i][0] + "</span>", "<span class='" + color + "'>" + res.data[i][1] + "</span>", "<span class='" + color + "'>" + res.data[i][2] + "</span>"])
|
|
|
}
|
|
|
- topList.push(["<span class='" + color + "'>" + res.data[i][0] + "</span>", "<span class='" + color + "'>" + res.data[i][1] + "</span>", "<span class='" + color + "'>" + res.data[i][2] + "</span>"])
|
|
|
- }
|
|
|
- res.data.splice(0, 3)
|
|
|
- lastList.push(...topList, ...res.data)
|
|
|
- } else if (res.data.length < 3) {
|
|
|
- for (let i = 0; i < res.data.length; i++) {
|
|
|
- let color;
|
|
|
- if (i == 0) {
|
|
|
- color = "yellow"
|
|
|
- } else if (i == 1) {
|
|
|
- color = "red"
|
|
|
- } else {
|
|
|
- color = "green"
|
|
|
+ res.data.splice(0, 3)
|
|
|
+ mainList.push(...spArr(res.data, 2))
|
|
|
+
|
|
|
+ mainList.forEach(item => {
|
|
|
+ item.unshift(...topList)
|
|
|
+ if (item.length < 5) {
|
|
|
+ item.push(["", "", ""])
|
|
|
+ }
|
|
|
+ lastList.push(...item)
|
|
|
+ })
|
|
|
+
|
|
|
+ } else if (res.data.length <= 5 && res.data.length >= 3) {
|
|
|
+ for (let i = 0; i < 3; i++) {
|
|
|
+ let color;
|
|
|
+ if (i == 0) {
|
|
|
+ color = "yellow"
|
|
|
+ } else if (i == 1) {
|
|
|
+ color = "red"
|
|
|
+ } else {
|
|
|
+ color = "green"
|
|
|
+ }
|
|
|
+ topList.push(["<span class='" + color + "'>" + res.data[i][0] + "</span>", "<span class='" + color + "'>" + res.data[i][1] + "</span>", "<span class='" + color + "'>" + res.data[i][2] + "</span>"])
|
|
|
+ }
|
|
|
+ res.data.splice(0, 3)
|
|
|
+ lastList.push(...topList, ...res.data)
|
|
|
+ } else if (res.data.length < 3) {
|
|
|
+ for (let i = 0; i < res.data.length; i++) {
|
|
|
+ let color;
|
|
|
+ if (i == 0) {
|
|
|
+ color = "yellow"
|
|
|
+ } else if (i == 1) {
|
|
|
+ color = "red"
|
|
|
+ } else {
|
|
|
+ color = "green"
|
|
|
+ }
|
|
|
+ lastList.push(["<span class='" + color + "'>" + res.data[i][0] + "</span>", "<span class='" + color + "'>" + res.data[i][1] + "</span>", "<span class='" + color + "'>" + res.data[i][2] + "</span>"])
|
|
|
}
|
|
|
- lastList.push(["<span class='" + color + "'>" + res.data[i][0] + "</span>", "<span class='" + color + "'>" + res.data[i][1] + "</span>", "<span class='" + color + "'>" + res.data[i][2] + "</span>"])
|
|
|
}
|
|
|
+
|
|
|
+ that.config2.data = lastList
|
|
|
+ that.leftTime && clearInterval(that.leftTime)
|
|
|
+ that.leftTime = setTimeout(() => {
|
|
|
+ that.leftFlag = true
|
|
|
+ that.leftTime = setInterval(() => {
|
|
|
+ that.leftList.forEach((item, index) => {
|
|
|
+ item.flag = !item.flag
|
|
|
+ if (item.flag) {
|
|
|
+ if (index == 0) {
|
|
|
+ that.leftFlag = true
|
|
|
+ // that.timeList2 = [that.allTimeList[1][1], that.allTimeList[1][0]]
|
|
|
+ that.getPositionAll()
|
|
|
+ } else {
|
|
|
+ that.leftFlag = false
|
|
|
+ // that.timeList2 = [that.allTimeList[0][1], that.allTimeList[0][0]]
|
|
|
+ that.getRecruitType()
|
|
|
+ setTimeout(() => {
|
|
|
+ let leftChange = that.$refs.leftChange
|
|
|
+ that.initThreeBig(leftChange)
|
|
|
+ })
|
|
|
+ }
|
|
|
+ }
|
|
|
+ })
|
|
|
+ }, 15000)
|
|
|
+ }, 10)
|
|
|
}
|
|
|
+ },0)
|
|
|
|
|
|
- that.config2.data = lastList
|
|
|
- that.leftTime && clearInterval(that.leftTime)
|
|
|
- that.leftTime = setTimeout(() => {
|
|
|
- that.leftFlag = true
|
|
|
- that.leftTime = setInterval(() => {
|
|
|
- that.leftList.forEach((item, index) => {
|
|
|
- item.flag = !item.flag
|
|
|
- if (item.flag) {
|
|
|
- if (index == 0) {
|
|
|
- that.leftFlag = true
|
|
|
- // that.timeList2 = [that.allTimeList[1][1], that.allTimeList[1][0]]
|
|
|
- that.getPositionAll()
|
|
|
- } else {
|
|
|
- that.leftFlag = false
|
|
|
- // that.timeList2 = [that.allTimeList[0][1], that.allTimeList[0][0]]
|
|
|
- that.getRecruitType()
|
|
|
- setTimeout(() => {
|
|
|
- let leftChange = that.$refs.leftChange
|
|
|
- that.initThreeBig(leftChange)
|
|
|
- })
|
|
|
- }
|
|
|
- }
|
|
|
- })
|
|
|
- }, 15000)
|
|
|
- }, 10)
|
|
|
- }
|
|
|
})
|
|
|
},
|
|
|
|