|
|
@@ -371,7 +371,7 @@ let app = new Vue({
|
|
|
pageFlag: true,
|
|
|
hecharts: null,
|
|
|
leftErrorList: ["信息不完整", "信息有误", "任职条件不符", "出勤不足", "工作年限不符"],
|
|
|
-
|
|
|
+
|
|
|
isShowList: true,
|
|
|
isListEnd: 0,
|
|
|
address: "西山煤电屯兰矿。",
|
|
|
@@ -411,6 +411,7 @@ let app = new Vue({
|
|
|
beforeCreate() {
|
|
|
// 跳转地址
|
|
|
let AddUrl = location.protocol + "//" + location.host + "/ierp"
|
|
|
+ // return
|
|
|
if (!window.location.search) {
|
|
|
// alert("链接已失效,请重新打开")
|
|
|
window.location.href = AddUrl
|
|
|
@@ -438,7 +439,12 @@ let app = new Vue({
|
|
|
|
|
|
let date = new Date()
|
|
|
let year = date.getFullYear()
|
|
|
- let month = "0" + date.getMonth()
|
|
|
+ let month
|
|
|
+ if (date.getMonth() <= 9) {
|
|
|
+ month = "0" + date.getMonth()
|
|
|
+ } else {
|
|
|
+ month = date.getMonth()
|
|
|
+ }
|
|
|
this.timeList1 = [(year - 1) + "-" + month, year + "-" + month]
|
|
|
this.timeList2 = [(year - 1) + "-" + month, year + "-" + month]
|
|
|
|
|
|
@@ -597,6 +603,17 @@ let app = new Vue({
|
|
|
|
|
|
let vita = this.$refs.vita
|
|
|
that.initVitaEcharts(vita)
|
|
|
+
|
|
|
+
|
|
|
+ setTimeout(() => {
|
|
|
+ let itemContent = document.getElementById("itemContent")
|
|
|
+ if (itemContent) {
|
|
|
+ let target = itemContent.getElementsByClassName("row-item")
|
|
|
+ let targetList = target.item(0)
|
|
|
+ targetList.style.background = "#302e2d50"
|
|
|
+ targetList.style.color = "#E1AF27"
|
|
|
+ }
|
|
|
+ }, 10)
|
|
|
})
|
|
|
},
|
|
|
methods: {
|
|
|
@@ -916,6 +933,7 @@ let app = new Vue({
|
|
|
});
|
|
|
},
|
|
|
scrollChange(index) {
|
|
|
+ this.itemClass = "item_content_6",
|
|
|
this.rollFlag = false;
|
|
|
let listIndex = index
|
|
|
if (listIndex >= this.config1.data.length) {
|
|
|
@@ -2390,7 +2408,7 @@ let app = new Vue({
|
|
|
list.push([item[0], item[1], item[2], item[3], item[4]])
|
|
|
a[index] = []
|
|
|
let arr = item[5].split("&")
|
|
|
- if(arr[0].length == 2){
|
|
|
+ if (arr[0].length == 2) {
|
|
|
arr.shift()
|
|
|
}
|
|
|
arr.forEach(i => {
|
|
|
@@ -2409,19 +2427,19 @@ let app = new Vue({
|
|
|
that.itemClass = "item_content_99"
|
|
|
if (that.config1.data.length <= that.config1.rowNum) {
|
|
|
that.listChange = setInterval(() => {
|
|
|
-
|
|
|
// that.configDataIndex
|
|
|
+ console.log(that.configDataIndex >= that.config1.data.length);
|
|
|
if (that.configDataIndex >= that.config1.data.length) {
|
|
|
that.configDataIndex = 1
|
|
|
that.itemClass = "item_content_99"
|
|
|
that.funChangeList(0)
|
|
|
+ that.recruitInfoIndex = 0
|
|
|
return
|
|
|
}
|
|
|
that.itemClass = "item_content_" + (that.configDataIndex + 5)
|
|
|
that.funChangeList(that.configDataIndex)
|
|
|
- // console.log(that.itemClass);
|
|
|
- that.configDataIndex += 1
|
|
|
that.recruitInfoIndex = that.configDataIndex
|
|
|
+ that.configDataIndex += 1
|
|
|
}, that.config1.waitTime)
|
|
|
} else {
|
|
|
setTimeout(() => {
|
|
|
@@ -2443,15 +2461,23 @@ let app = new Vue({
|
|
|
|
|
|
} else {
|
|
|
that.config1.data = list
|
|
|
+ that.itemClass = "item_content_6"
|
|
|
that.listChange && clearInterval(that.listChange)
|
|
|
+ setTimeout(() => {
|
|
|
+ let itemContent = document.getElementById("itemContent")
|
|
|
+ if (itemContent) {
|
|
|
+ let target = itemContent.getElementsByClassName("row-item")
|
|
|
+ let targetList = target.item(0)
|
|
|
+ targetList.style.background = "#302e2d50"
|
|
|
+ targetList.style.color = "#E1AF27"
|
|
|
+ }
|
|
|
+
|
|
|
+ }, 0)
|
|
|
}
|
|
|
setTimeout(() => {
|
|
|
that.isShowInfoList = true
|
|
|
})
|
|
|
})
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
},
|
|
|
funChangeList(idnex) {
|
|
|
let listIndex = idnex
|
|
|
@@ -2720,11 +2746,14 @@ let app = new Vue({
|
|
|
if (Array.isArray(res[key])) {
|
|
|
res[key].forEach(item => {
|
|
|
// item.splice(item.length - 2, 1);
|
|
|
- item[item.length - 1] = item[item.length - 1].replaceAll("年", "-")
|
|
|
- item[item.length - 1] = item[item.length - 1].replaceAll("月", "-")
|
|
|
- item[item.length - 1] = item[item.length - 1].replaceAll("日", " ")
|
|
|
- item[item.length - 1] = item[item.length - 1].replaceAll("/", "-")
|
|
|
- item[item.length - 1] = item[item.length - 1].replaceAll("|", "-")
|
|
|
+ if (item[item.length - 1]) {
|
|
|
+ item[item.length - 1] = item[item.length - 1].replaceAll("年", "-")
|
|
|
+ item[item.length - 1] = item[item.length - 1].replaceAll("月", "-")
|
|
|
+ item[item.length - 1] = item[item.length - 1].replaceAll("日", " ")
|
|
|
+ item[item.length - 1] = item[item.length - 1].replaceAll("/", "-")
|
|
|
+ item[item.length - 1] = item[item.length - 1].replaceAll("|", "-")
|
|
|
+ }
|
|
|
+
|
|
|
})
|
|
|
}
|
|
|
}
|